Skip to content

Commit

Permalink
fix: update to android gradle v8 (#369)
Browse files Browse the repository at this point in the history
  • Loading branch information
GregoryConrad authored Dec 15, 2024
1 parent 9a88aea commit e82ef6a
Showing 1 changed file with 24 additions and 9 deletions.
33 changes: 24 additions & 9 deletions packages/flutter_mimir/android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
group 'com.gsconrad.flutter_mimir'
version '0.0.1'
group = "com.gsconrad.flutter_mimir"
version = "0.0.1"

buildscript {
repositories {
Expand All @@ -9,7 +9,7 @@ buildscript {

dependencies {
// The Android Gradle Plugin knows how to build native code with the NDK.
classpath 'com.android.tools.build:gradle:7.1.2'
classpath("com.android.tools.build:gradle:8.1.0")
}
}

Expand All @@ -20,19 +20,34 @@ rootProject.allprojects {
}
}

apply plugin: 'com.android.library'
apply plugin: "com.android.library"

android {
compileSdkVersion 31
namespace = "com.gsconrad.flutter_mimir"

defaultConfig {
minSdkVersion 16
}
// Bumping the plugin compileSdk version requires all clients of this plugin
// to bump the version in their app.
compileSdk = 35

// Use the NDK version
// declared in /android/app/build.gradle file of the Flutter project.
// Replace it with a version number if this plugin requires a specific NDK version.
// (e.g. ndkVersion "23.1.7779620")
ndkVersion = android.ndkVersion

// Trigger the binary download/update over in CMakeLists.txt
externalNativeBuild {
cmake {
path "CMakeLists.txt"
path = "CMakeLists.txt"
}
}

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

defaultConfig {
minSdk = 21
}
}

0 comments on commit e82ef6a

Please sign in to comment.