58 lines
1.7 KiB
Kotlin
58 lines
1.7 KiB
Kotlin
plugins {
|
|
id("com.android.application")
|
|
id("kotlin-android")
|
|
// The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins.
|
|
id("dev.flutter.flutter-gradle-plugin")
|
|
}
|
|
|
|
android {
|
|
namespace = "com.krowwithus.krow_staff"
|
|
compileSdk = flutter.compileSdkVersion
|
|
ndkVersion = flutter.ndkVersion
|
|
|
|
compileOptions {
|
|
sourceCompatibility = JavaVersion.VERSION_17
|
|
targetCompatibility = JavaVersion.VERSION_17
|
|
}
|
|
|
|
kotlinOptions { jvmTarget = JavaVersion.VERSION_17.toString() }
|
|
|
|
defaultConfig {
|
|
// TODO: Specify your own unique Application ID
|
|
// (https://developer.android.com/studio/build/application-id.html).
|
|
applicationId = "com.krowwithus.krow_staff"
|
|
// You can update the following values to match your application needs.
|
|
// For more information, see: https://flutter.dev/to/review-gradle-config.
|
|
minSdk = flutter.minSdkVersion
|
|
targetSdk = flutter.targetSdkVersion
|
|
versionCode = flutter.versionCode
|
|
versionName = flutter.versionName
|
|
}
|
|
|
|
flavorDimensions += "env"
|
|
|
|
productFlavors {
|
|
create("dev") {
|
|
dimension = "env"
|
|
applicationIdSuffix = ".dev"
|
|
versionNameSuffix = "-dev"
|
|
}
|
|
create("stage") {
|
|
dimension = "env"
|
|
applicationIdSuffix = ".stage"
|
|
versionNameSuffix = "-stage"
|
|
}
|
|
create("prod") { dimension = "env" }
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
// TODO: Add your own signing config for the release build.
|
|
// Signing with the debug keys for now, so `flutter run --release` works.
|
|
signingConfig = signingConfigs.getByName("debug")
|
|
}
|
|
}
|
|
}
|
|
|
|
flutter { source = "../.." }
|