Skip to content

Commit

Permalink
fix: Update minSdkVersion to 21 to Fix NDK Compatibility Issue (#106)
Browse files Browse the repository at this point in the history
  • Loading branch information
littleGnAl authored Oct 9, 2024
1 parent 4fe6e7b commit 84440f0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
group 'com.agora.iris_method_channel'
version '1.0'

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

buildscript {
repositories {
google()
Expand All @@ -27,7 +31,7 @@ android {
namespace 'com.agora.iris_method_channel'
}

compileSdkVersion 31
compileSdkVersion safeExtGet('compileSdkVersion', 31)

externalNativeBuild {
cmake {
Expand All @@ -49,7 +53,7 @@ android {
}

defaultConfig {
minSdkVersion 16
minSdkVersion safeExtGet('minSdkVersion', 21)

externalNativeBuild {
cmake {
Expand Down
2 changes: 1 addition & 1 deletion example/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ android {
applicationId "com.agora.iris_method_channel_example"
// You can update the following values to match your application needs.
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-build-configuration.
minSdkVersion flutter.minSdkVersion
minSdkVersion 21
targetSdkVersion flutter.targetSdkVersion
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
Expand Down

0 comments on commit 84440f0

Please sign in to comment.