plugins { id "com.android.application" id "kotlin-android" // The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins. id "dev.flutter.flutter-gradle-plugin" } android { namespace = "vision.flux.muzzlevelocity" compileSdk = flutter.compileSdkVersion // The devbox-managed SDK ships this NDK and is read-only, so Gradle // cannot install the Flutter default beside it. ndkVersion = "27.0.12077973" compileOptions { sourceCompatibility = JavaVersion.VERSION_17 targetCompatibility = JavaVersion.VERSION_17 } kotlinOptions { jvmTarget = JavaVersion.VERSION_17 } defaultConfig { // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). applicationId = "vision.flux.muzzlevelocity" // You can update the following values to match your application needs. // For more information, see: https://flutter.dev/to/review-gradle-config. minSdk = flutter.minSdkVersion targetSdk = flutter.targetSdkVersion versionCode = flutter.versionCode versionName = flutter.versionName targetSdkVersion 34 } signingConfigs { release { storeFile = System.getenv("KEYSTORE_PATH") ? file(System.getenv("KEYSTORE_PATH")) : null storePassword = System.getenv("STORE_PASSWORD") keyAlias = System.getenv("KEY_ALIAS") keyPassword = System.getenv("KEY_PASSWORD") } } buildTypes { release { // Falls back to the debug keys locally, so `flutter run --release` keeps working. signingConfig = System.getenv("KEYSTORE_PATH") ? signingConfigs.release : signingConfigs.debug } } } flutter { source = "../.." }