This repository has been archived on 2023-11-18. You can view files and clone it, but cannot push or open issues or pull requests.
ha_client/android/app/build.gradle

92 lines
2.8 KiB
Groovy
Raw Normal View History

2018-09-10 00:34:52 +03:00
def localProperties = new Properties()
def localPropertiesFile = rootProject.file('local.properties')
if (localPropertiesFile.exists()) {
localPropertiesFile.withReader('UTF-8') { reader ->
localProperties.load(reader)
}
}
def flutterRoot = localProperties.getProperty('flutter.sdk')
if (flutterRoot == null) {
throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
}
def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
if (flutterVersionCode == null) {
flutterVersionCode = '1'
}
def flutterVersionName = localProperties.getProperty('flutter.versionName')
if (flutterVersionName == null) {
flutterVersionName = '1.0'
}
apply plugin: 'com.android.application'
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
def keystorePropertiesFile = rootProject.file("key.properties")
def keystoreProperties = new Properties()
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
2018-09-10 00:34:52 +03:00
android {
2019-03-13 17:05:15 +02:00
compileSdkVersion 28
2018-09-10 00:34:52 +03:00
2019-01-29 21:59:05 +02:00
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
2018-09-10 00:34:52 +03:00
lintOptions {
disable 'InvalidPackage'
}
defaultConfig {
applicationId "com.keyboardcrumbs.haclient"
minSdkVersion 21
2019-03-13 17:05:15 +02:00
targetSdkVersion 28
2018-09-25 21:19:11 +03:00
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
2018-09-10 00:34:52 +03:00
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
signingConfigs {
2019-10-22 21:48:28 +03:00
if (!System.getenv()["CI"]) {
debug {
keyAlias keystoreProperties['debugKeyAlias']
keyPassword keystoreProperties['debugKeyPassword']
storeFile file(keystoreProperties['debugStoreFile'])
storePassword keystoreProperties['debugStorePassword']
}
2019-10-20 23:04:53 +03:00
}
release {
keyAlias keystoreProperties['keyAlias']
keyPassword keystoreProperties['keyPassword']
storeFile file(keystoreProperties['storeFile'])
storePassword keystoreProperties['storePassword']
}
}
2018-09-10 00:34:52 +03:00
buildTypes {
release {
2018-09-18 23:32:12 +03:00
signingConfig signingConfigs.release
2018-09-10 00:34:52 +03:00
}
}
}
flutter {
source '../..'
}
dependencies {
implementation 'com.google.firebase:firebase-analytics:17.2.2'
2020-05-24 15:42:31 +03:00
implementation 'com.google.firebase:firebase-messaging:20.2.0'
implementation 'androidx.work:work-runtime:2.3.4'
2020-07-07 18:37:44 +03:00
implementation "androidx.concurrent:concurrent-futures:1.0.0"
2018-09-10 00:34:52 +03:00
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
}
2019-03-18 23:37:45 +02:00
2020-02-11 14:06:19 +02:00
apply plugin: 'io.fabric'
2019-03-18 23:37:45 +02:00
apply plugin: 'com.google.gms.google-services'