build.gradle.kts 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. plugins {
  2. id("com.android.application")
  3. id("kotlin-android")
  4. // The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins.
  5. id("dev.flutter.flutter-gradle-plugin")
  6. }
  7. android {
  8. namespace = "com.example.japp_flutter"
  9. compileSdk = flutter.compileSdkVersion
  10. // ndkVersion = flutter.ndkVersion
  11. ndkVersion = project.properties["org.gradle.ndk.version"] as String
  12. compileOptions {
  13. sourceCompatibility = JavaVersion.VERSION_11
  14. targetCompatibility = JavaVersion.VERSION_11
  15. }
  16. kotlinOptions {
  17. jvmTarget = JavaVersion.VERSION_11.toString()
  18. }
  19. defaultConfig {
  20. // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
  21. applicationId = "com.example.japp_flutter"
  22. // You can update the following values to match your application needs.
  23. // For more information, see: https://flutter.dev/to/review-gradle-config.
  24. minSdk = flutter.minSdkVersion
  25. targetSdk = flutter.targetSdkVersion
  26. versionCode = flutter.versionCode
  27. versionName = flutter.versionName
  28. }
  29. buildTypes {
  30. release {
  31. // TODO: Add your own signing config for the release build.
  32. // Signing with the debug keys for now, so `flutter run --release` works.
  33. signingConfig = signingConfigs.getByName("debug")
  34. }
  35. }
  36. }
  37. flutter {
  38. source = "../.."
  39. }