73 lines
2.0 KiB
Groovy
73 lines
2.0 KiB
Groovy
plugins {
|
|
id 'com.android.library'
|
|
id 'org.jetbrains.kotlin.android'
|
|
}
|
|
|
|
android {
|
|
compileSdk 33
|
|
namespace = "io.agora.onetoone"
|
|
|
|
defaultConfig {
|
|
ndk.abiFilters 'arm64-v8a', 'armeabi-v7a'
|
|
minSdk 24
|
|
targetSdk 33
|
|
versionCode 1
|
|
versionName "2.1.0"
|
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
|
|
buildConfigField("String", "AG_APP_ID", "\"${project.getProperty("AG_APP_ID")}\"")
|
|
buildConfigField("String", "AG_APP_CERTIFICATE", "\"${project.getProperty("AG_APP_CERTIFICATE")}\"")
|
|
buildConfigField "String", "IM_APP_KEY", "\"${IM_APP_KEY}\""
|
|
}
|
|
|
|
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled false
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
}
|
|
}
|
|
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
}
|
|
kotlinOptions {
|
|
jvmTarget = '1.8'
|
|
}
|
|
buildFeatures {
|
|
viewBinding true
|
|
}
|
|
|
|
packagingOptions {
|
|
pickFirst 'lib/*/libaosl.so'
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
api 'androidx.core:core-ktx:1.7.0'
|
|
api 'androidx.appcompat:appcompat:1.4.1'
|
|
api 'com.google.android.material:material:1.5.0'
|
|
api 'androidx.constraintlayout:constraintlayout:2.1.3'
|
|
api 'androidx.navigation:navigation-fragment-ktx:2.4.1'
|
|
api 'androidx.navigation:navigation-ui-ktx:2.4.1'
|
|
testImplementation 'junit:junit:4.13.2'
|
|
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
|
|
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
|
|
|
|
// api 'com.squareup.okhttp3:okhttp:3.12.0'
|
|
api 'com.squareup.okhttp3:okhttp:4.9.3'
|
|
|
|
api 'com.github.GrenderG:Toasty:1.5.0'
|
|
api 'com.orhanobut:logger:2.2.0'
|
|
|
|
// rtc
|
|
api 'io.agora:authentication:1.6.1'
|
|
api 'commons-codec:commons-codec:1.15'
|
|
|
|
// callapi
|
|
api project(":lib_callapi")
|
|
api project(":chatkit-ui")
|
|
|
|
} |