Skip to content

Commit

Permalink
fix: add missed external build scripts for android
Browse files Browse the repository at this point in the history
  • Loading branch information
peilinok committed Nov 29, 2024
1 parent c0b037f commit 4e9e051
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
group = "io.agora.agorartm.agora_rtm"
version = "1.0"

def safeExtGet(prop, fallback) {
rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
}

buildscript {
repositories {
google()
Expand All @@ -26,14 +30,15 @@ android {
namespace = "io.agora.agorartm.agora_rtm"
}

compileSdk = 34
compileSdkVersion safeExtGet('compileSdkVersion', 31)

compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}

defaultConfig {
minSdkVersion safeExtGet('minSdkVersion', 21)
minSdk = 16
consumerProguardFiles 'consumer-rules.pro'
}
Expand All @@ -45,6 +50,13 @@ android {
}
}

externalNativeBuild {
cmake {
path '../src/CMakeLists.txt'
arguments '-DANDROID_STL=c++_static'
}
}

dependencies {
testImplementation("junit:junit:4.13.2")
testImplementation("org.mockito:mockito-core:5.0.0")
Expand Down

0 comments on commit 4e9e051

Please sign in to comment.