plugins { id "com.android.application" id 'com.google.gms.google-services' id "kotlin-android" id "dev.flutter.flutter-gradle-plugin" } def keystoreProperties = new Properties() def keystorePropertiesFile = rootProject.file('key.properties') if (keystorePropertiesFile.exists()) { keystoreProperties.load(new FileInputStream(keystorePropertiesFile)) } android { namespace = "com.krow.app.business" compileSdk = flutter.compileSdkVersion ndkVersion = flutter.ndkVersion compileOptions { sourceCompatibility = JavaVersion.VERSION_1_8 targetCompatibility = JavaVersion.VERSION_1_8 } kotlinOptions { jvmTarget = JavaVersion.VERSION_1_8 } defaultConfig { applicationId = "com.krow.app.business" minSdk = 24 targetSdk = flutter.targetSdkVersion versionCode = flutter.versionCode versionName = flutter.versionName } flavorDimensions "release-type" productFlavors { dev { dimension "release-type" applicationIdSuffix ".dev" versionNameSuffix "-dev" manifestPlaceholders = [ appLabel: "Krow Business dev", appIcon: "@mipmap/ic_launcher_dev" ] } staging { dimension "release-type" applicationIdSuffix ".staging" versionNameSuffix "-staging" manifestPlaceholders = [ appLabel: "Krow Business staging", appIcon: "@mipmap/ic_launcher_dev" ] } prod { dimension "release-type" manifestPlaceholders = [ appLabel: "Krow Business", appIcon: "@mipmap/ic_launcher" ] } } signingConfigs { release { keyAlias = keystoreProperties['keyAliasClient'] keyPassword = keystoreProperties['keyPassword'] storeFile = keystoreProperties['storeFile'] ? file(keystoreProperties['storeFile']) : null storePassword = keystoreProperties['storePassword'] } } buildTypes { release { signingConfig = signingConfigs.release } } } flutter { source = "../.." }