Updated webrtc sdk using an alternative repository https://github.com/webrtc-sdk/android instead of the deprecated and official Google library openvidu-android: Downgraded appcompat-resources to 1.4.2 Downgraded appcompat-resources to 1.4.2 for avoiding the targetSdk and compileSdk update openvidu-android: Removed enableDtlsSrtp from PeerConnection config enableDtlsSrtp is not longer exported as public configuration parameter (https://webrtc-review.googlesource.com/c/src/+/234864/10/sdk/android/api/org/webrtc/PeerConnection.java)
55 lines
1.9 KiB
Groovy
55 lines
1.9 KiB
Groovy
apply plugin: 'com.android.application'
|
|
|
|
// NOTES
|
|
// =====
|
|
//
|
|
// * minSdk: API level 21 (Android 5) required by org.webrtc:google-webrtc:1.0.32006 (Google WebRTC).
|
|
// * targetSdk: API level 31 (Android 12) required by Google Play Store, since August 1, 2022.
|
|
// See: https://support.google.com/googleplay/android-developer/answer/11926878
|
|
// * compileSdkVersion: Should match "targetSdk".
|
|
//
|
|
// For a complete table of all Android API levels, check https://apilevels.com/
|
|
|
|
android {
|
|
compileSdk 31
|
|
defaultConfig {
|
|
applicationId "io.openvidu.openvidu_android"
|
|
minSdk 21
|
|
targetSdk 31
|
|
versionCode 1
|
|
versionName "1.0"
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
multiDexEnabled true
|
|
}
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled false
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
}
|
|
debug {
|
|
debuggable true
|
|
minifyEnabled false
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt')
|
|
}
|
|
}
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
}
|
|
namespace 'io.openvidu.openvidu_android'
|
|
}
|
|
|
|
dependencies {
|
|
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
|
implementation 'androidx.appcompat:appcompat:1.4.2'
|
|
implementation 'com.android.support.constraint:constraint-layout:2.0.4'
|
|
implementation 'com.jakewharton:butterknife:10.2.0'
|
|
implementation 'com.squareup.okhttp3:okhttp:4.2.0'
|
|
implementation 'com.neovisionaries:nv-websocket-client:2.9'
|
|
implementation 'com.github.webrtc-sdk:android:104.5112.03'
|
|
annotationProcessor 'com.jakewharton:butterknife-compiler:10.2.0'
|
|
testImplementation 'junit:junit:4.12'
|
|
androidTestImplementation 'androidx.test:runner:1.4.0'
|
|
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
|
|
}
|