build.gradle.kts 1.4 KB

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