build.gradle.kts 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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. // Local-only signing key. It is gitignored and shared by debug and release
  7. // builds so in-place updates keep the same package signature.
  8. val projectDebugKeystore = rootProject.file("keystore/debug.keystore")
  9. android {
  10. namespace = "com.wasp.cardash_launcher"
  11. compileSdk = 36
  12. ndkVersion = flutter.ndkVersion
  13. compileOptions {
  14. sourceCompatibility = JavaVersion.VERSION_17
  15. targetCompatibility = JavaVersion.VERSION_17
  16. }
  17. defaultConfig {
  18. applicationId = "com.wasp.cardash_launcher"
  19. minSdk = 29
  20. targetSdk = 36
  21. versionCode = flutter.versionCode
  22. versionName = flutter.versionName
  23. }
  24. signingConfigs {
  25. getByName("debug") {
  26. if (projectDebugKeystore.exists()) {
  27. storeFile = projectDebugKeystore
  28. storePassword = "android"
  29. keyAlias = "androiddebugkey"
  30. keyPassword = "android"
  31. }
  32. }
  33. }
  34. buildTypes {
  35. release {
  36. // Local-only build for now. Replace with a real signing config before distribution.
  37. signingConfig = signingConfigs.getByName("debug")
  38. }
  39. }
  40. }
  41. kotlin {
  42. compilerOptions {
  43. jvmTarget = org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_17
  44. }
  45. }
  46. flutter {
  47. source = "../.."
  48. }