- Created google-services.json for staging environment. - Updated firebase.json to include build configurations for dev and staging. - Added flutterfire-config.sh script to generate Firebase configuration files. - Modified Xcode project to include GoogleService-Info.plist for staging. - Created staging.xcscheme for Xcode build configuration. - Added GoogleService-Info.plist for dev and staging flavors. - Generated firebase_options_dev.dart and firebase_options_staging.dart for Firebase initialization.
86 lines
2.2 KiB
Groovy
86 lines
2.2 KiB
Groovy
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 = "../.."
|
|
} |