| Build the APK, out of ClojureDart and Flutter e2b0e6b nandi 7d ago | 1 | plugins { |
| 2 | id("com.android.application") |
| 3 | // The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins. |
| 4 | id("dev.flutter.flutter-gradle-plugin") |
| 5 | } |
| 6 | |
| 7 | android { |
| 8 | namespace = "uk.nandi.frq" |
| 9 | compileSdk = flutter.compileSdkVersion |
| 10 | // No ndkVersion. The Flutter template sets it, and setting it makes Gradle |
| 11 | // ask sdkmanager to install that exact NDK — which fails against a Nix |
| 12 | // store it cannot write to. Nothing here has native code to build: the |
| 13 | // app is Dart compiled from ClojureDart, and path_provider is platform |
| 14 | // channels rather than JNI. See flutter/README.md. |
| 15 | |
| 16 | compileOptions { |
| 17 | sourceCompatibility = JavaVersion.VERSION_17 |
| 18 | targetCompatibility = JavaVersion.VERSION_17 |
| 19 | } |
| 20 | |
| 21 | defaultConfig { |
| 22 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). |
| 23 | applicationId = "uk.nandi.frq" |
| 24 | // You can update the following values to match your application needs. |
| 25 | // For more information, see: https://flutter.dev/to/review-gradle-config. |
| 26 | minSdk = flutter.minSdkVersion |
| 27 | targetSdk = flutter.targetSdkVersion |
| 28 | // Uses the version code from pubspec.yaml. When using split APKs, 1000 * ABI_VERSION |
| 29 | // is added automatically by Flutter. (https://developer.android.com/studio/build/configure-apk-splits#configure-APK-versions) |
| 30 | // You can force using the value of versionCode by specifying the `-P force-version-code-ignoring-abi=true` |
| 31 | // flag during build. |
| 32 | versionCode = flutter.versionCode |
| 33 | versionName = flutter.versionName |
| 34 | } |
| 35 | |
| 36 | buildTypes { |
| 37 | release { |
| 38 | // TODO: Add your own signing config for the release build. |
| 39 | // Signing with the debug keys for now, so `flutter run --release` works. |
| 40 | signingConfig = signingConfigs.getByName("debug") |
| 41 | } |
| 42 | } |
| 43 | } |
| 44 | |
| 45 | kotlin { |
| 46 | compilerOptions { |
| 47 | jvmTarget = org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_17 |
| 48 | } |
| 49 | } |
| 50 | |
| 51 | flutter { |
| 52 | source = "../.." |
| 53 | } |