1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2024-11-22 12:59:21 +00:00

Add WebRTC dependency

This commit is contained in:
Pierre HUBERT 2020-04-19 15:15:07 +02:00
parent 909e68e7bb
commit cb47f0351e
4 changed files with 29 additions and 1 deletions

View File

@ -35,6 +35,14 @@ if (keystorePropertiesFile.exists()) {
android { android {
compileSdkVersion 29 compileSdkVersion 29
compileOptions {
// Required to use WebRTC
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
lintOptions { lintOptions {
disable 'InvalidPackage' disable 'InvalidPackage'
} }
@ -42,7 +50,7 @@ android {
defaultConfig { defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId "org.communiquons.comunic" applicationId "org.communiquons.comunic"
minSdkVersion 16 minSdkVersion 18
targetSdkVersion 29 targetSdkVersion 29
versionCode flutterVersionCode.toInteger() versionCode flutterVersionCode.toInteger()
versionName flutterVersionName versionName flutterVersionName

View File

@ -5,6 +5,16 @@
<!-- Internet connection is required to access to the API --> <!-- Internet connection is required to access to the API -->
<uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.INTERNET" />
<!-- These permissions are required to make video calls (WebRTC) -->
<uses-feature android:name="android.hardware.camera" />
<uses-feature android:name="android.hardware.camera.autofocus" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.CHANGE_NETWORK_STATE" />
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
<!-- io.flutter.app.FlutterApplication is an android.app.Application that <!-- io.flutter.app.FlutterApplication is an android.app.Application that
calls FlutterMain.startInitialization(this); in its onCreate method. calls FlutterMain.startInitialization(this); in its onCreate method.
In most cases you can leave this as-is, but you if you want to provide In most cases you can leave this as-is, but you if you want to provide

View File

@ -149,6 +149,13 @@ packages:
description: flutter description: flutter
source: sdk source: sdk
version: "0.0.0" version: "0.0.0"
flutter_webrtc:
dependency: "direct main"
description:
name: flutter_webrtc
url: "https://pub.dartlang.org"
source: hosted
version: "0.2.7"
html: html:
dependency: "direct main" dependency: "direct main"
description: description:

View File

@ -75,6 +75,9 @@ dependencies:
# Events manager # Events manager
event_bus: ^1.1.1 event_bus: ^1.1.1
# WebRTC calls
flutter_webrtc: ^0.2.7
dev_dependencies: dev_dependencies:
flutter_test: flutter_test:
sdk: flutter sdk: flutter