build.gradle.kts 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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 = "io.github.jianboy.flutter_clock"
  9. compileSdk = 36
  10. ndkVersion = "27.0.12077973"
  11. compileOptions {
  12. sourceCompatibility = JavaVersion.VERSION_11
  13. targetCompatibility = JavaVersion.VERSION_11
  14. }
  15. kotlinOptions {
  16. jvmTarget = JavaVersion.VERSION_11.toString()
  17. }
  18. signingConfigs {
  19. create("release") {
  20. storeFile = file("sign/flutter_clock.jks")
  21. keyAlias = "key0"
  22. keyPassword = "xf-ro9KM8NWP"
  23. storePassword = "xf-ro9KM8NWP"
  24. }
  25. }
  26. defaultConfig {
  27. // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
  28. applicationId = "io.github.jianboy.flutter_clock"
  29. // You can update the following values to match your application needs.
  30. // For more information, see: https://flutter.dev/to/review-gradle-config.
  31. minSdk = 21
  32. targetSdk = 34
  33. versionCode = flutter.versionCode
  34. versionName = flutter.versionName
  35. }
  36. buildTypes {
  37. getByName("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. signingConfig = signingConfigs.getByName("release")
  42. }
  43. }
  44. }
  45. flutter {
  46. source = "../.."
  47. }