update build.gradle for Android example project

This commit is contained in:
Nick Fisher
2024-06-06 23:34:09 +08:00
parent 77322019ec
commit 0140911515

View File

@@ -7,8 +7,8 @@ plugins {
android { android {
namespace = "app.polyvox.example" namespace = "app.polyvox.example"
compileSdk = flutter.compileSdkVersion compileSdkVersion 34
ndkVersion = flutter.ndkVersion ndkVersion "25.2.9519653"
compileOptions { compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8 sourceCompatibility = JavaVersion.VERSION_1_8
@@ -24,19 +24,26 @@ android {
applicationId = "app.polyvox.example" applicationId = "app.polyvox.example"
// You can update the following values to match your application needs. // You can update the following values to match your application needs.
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration. // For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.
minSdk = flutter.minSdkVersion minSdk = 30
targetSdk = flutter.targetSdkVersion targetSdk = 31
versionCode = flutter.versionCode versionCode = flutter.versionCode
versionName = flutter.versionName versionName = flutter.versionName
} }
buildTypes { buildTypes {
release { release {
// TODO: Add your own signing config for the release build.
// Signing with the debug keys for now, so `flutter run --release` works.
signingConfig = signingConfigs.debug signingConfig = signingConfigs.debug
shrinkResources false
minifyEnabled false
} }
} debug {
}
}
}
dependencies {
implementation 'net.java.dev.jna:jna:5.10.0@aar'
} }
flutter { flutter {