build.gradle.kts 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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.image_puzzle"
  9. // compileSdk = flutter.compileSdkVersion
  10. // ndkVersion = flutter.ndkVersion
  11. compileSdk = 36
  12. ndkVersion = "27.0.12077973"
  13. compileOptions {
  14. sourceCompatibility = JavaVersion.VERSION_11
  15. targetCompatibility = JavaVersion.VERSION_11
  16. }
  17. kotlinOptions {
  18. jvmTarget = JavaVersion.VERSION_11.toString()
  19. }
  20. defaultConfig {
  21. // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
  22. applicationId = "com.example.image_puzzle"
  23. // You can update the following values to match your application needs.
  24. // For more information, see: https://flutter.dev/to/review-gradle-config.
  25. minSdk = flutter.minSdkVersion
  26. targetSdk = flutter.targetSdkVersion
  27. versionCode = flutter.versionCode
  28. versionName = flutter.versionName
  29. }
  30. buildTypes {
  31. release {
  32. // TODO: Add your own signing config for the release build.
  33. // Signing with the debug keys for now, so `flutter run --release` works.
  34. signingConfig = signingConfigs.getByName("debug")
  35. }
  36. }
  37. }
  38. flutter {
  39. source = "../.."
  40. }