forked from eatvio/eatvio_app
81 lines
2.5 KiB
Groovy
81 lines
2.5 KiB
Groovy
plugins {
|
|
id "com.android.application"
|
|
// START: FlutterFire Configuration
|
|
id 'com.google.gms.google-services'
|
|
// END: FlutterFire Configuration
|
|
id "kotlin-android"
|
|
id "dev.flutter.flutter-gradle-plugin"
|
|
id 'com.huawei.agconnect'
|
|
}
|
|
|
|
def keystoreProperties = new Properties()
|
|
def keystorePropertiesFile = rootProject.file('key.properties')
|
|
if (keystorePropertiesFile.exists()) {
|
|
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
|
|
}
|
|
|
|
def yandexClientId = project.hasProperty('YANDEX_CLIENT_ID') ? project.property('YANDEX_CLIENT_ID') : (System.getenv('YANDEX_CLIENT_ID') ?: "")
|
|
|
|
android {
|
|
namespace = "com.eatvioapp.app"
|
|
compileSdk = flutter.compileSdkVersion
|
|
ndkVersion = "27.0.12077973"
|
|
|
|
compileOptions {
|
|
sourceCompatibility = JavaVersion.VERSION_11
|
|
targetCompatibility = JavaVersion.VERSION_11
|
|
}
|
|
|
|
kotlinOptions {
|
|
jvmTarget = JavaVersion.VERSION_11.toString()
|
|
}
|
|
|
|
defaultConfig {
|
|
applicationId = "com.eatvioapp.app"
|
|
minSdkVersion flutter.minSdkVersion
|
|
targetSdk = flutter.targetSdkVersion
|
|
versionCode = flutter.versionCode
|
|
versionName = flutter.versionName
|
|
manifestPlaceholders = [
|
|
YANDEX_CLIENT_ID: yandexClientId,
|
|
applicationName: "io.flutter.app.FlutterApplication"
|
|
]
|
|
}
|
|
|
|
signingConfigs {
|
|
release {
|
|
keyAlias = keystoreProperties['keyAlias']
|
|
keyPassword = keystoreProperties['keyPassword']
|
|
storeFile = keystoreProperties['storeFile'] ? file(keystoreProperties['storeFile']) : null
|
|
storePassword = keystoreProperties['storePassword']
|
|
}
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
signingConfig signingConfigs.release
|
|
minifyEnabled true
|
|
shrinkResources true
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
}
|
|
debug {
|
|
signingConfig signingConfigs.debug
|
|
}
|
|
profile {
|
|
signingConfig signingConfigs.debug
|
|
}
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation 'com.huawei.hms:push:6.13.0.300'
|
|
// Huawei Analytics dependency to satisfy com.huawei.hianalytics.* references during R8
|
|
implementation 'com.huawei.hms:hianalytics:6.13.0.300'
|
|
// BouncyCastle provider required by Huawei secure utils used transitively by HMS
|
|
implementation 'org.bouncycastle:bcprov-jdk15to18:1.78.1'
|
|
}
|
|
|
|
flutter {
|
|
source = "../.."
|
|
}
|