mirror of
https://github.com/home-assistant/android
synced 2024-10-15 12:32:54 +00:00
3219504a12
* extract dependencies * Update test command and add lint * Move Retrofit into data module and test authentication service * Implement authorization repository * Implementation authentication usecase * Implementation presenter layer * Remove old session stuff * Java time backport * Dependency with dagger
97 lines
3.1 KiB
Groovy
97 lines
3.1 KiB
Groovy
apply plugin: 'com.android.application'
|
|
apply plugin: 'kotlin-android'
|
|
apply plugin: 'kotlin-kapt'
|
|
apply plugin: 'com.google.firebase.appdistribution'
|
|
apply plugin: 'com.github.triplet.play'
|
|
apply plugin: 'de.mannodermaus.android-junit5'
|
|
|
|
buildscript {
|
|
repositories {
|
|
google()
|
|
maven { url "https://plugins.gradle.org/m2/" }
|
|
}
|
|
dependencies {
|
|
classpath 'com.google.firebase:firebase-appdistribution-gradle:1.1.0'
|
|
classpath 'com.github.triplet.gradle:play-publisher:2.5.0'
|
|
classpath 'de.mannodermaus.gradle.plugins:android-junit5:1.5.2.0'
|
|
}
|
|
}
|
|
|
|
android {
|
|
compileSdkVersion projectSdkVersion.toInteger()
|
|
|
|
defaultConfig {
|
|
applicationId "io.homeassistant.companion.android"
|
|
minSdkVersion projectMinSdkVersion
|
|
targetSdkVersion 29
|
|
versionCode "${System.env.VERSION_CODE ?: 1}".toInteger()
|
|
versionName "1.0.0"
|
|
}
|
|
|
|
firebaseAppDistribution {
|
|
serviceCredentialsFile = "firebaseAppDistributionServiceCredentialsFile.json"
|
|
releaseNotesFile = "CHANGES.md"
|
|
}
|
|
|
|
signingConfigs {
|
|
release {
|
|
storeFile file('release_keystore.keystore')
|
|
storePassword "${System.env.KEYSTORE_PASSWORD ?: ""}"
|
|
keyAlias "$System.env.KEYSTORE_ALIAS" ?: ""
|
|
keyPassword "${System.env.KEYSTORE_ALIAS_PASSWORD ?: ""}"
|
|
v1SigningEnabled true
|
|
v2SigningEnabled true
|
|
}
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
debuggable false
|
|
jniDebuggable false
|
|
zipAlignEnabled true
|
|
signingConfig signingConfigs.release
|
|
}
|
|
}
|
|
|
|
testOptions {
|
|
unitTests.returnDefaultValues = true
|
|
junitPlatform {
|
|
filters {
|
|
engines {
|
|
include 'spek2'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
play {
|
|
serviceAccountCredentials = file("playStorePublishServiceCredentialsFile.json")
|
|
}
|
|
|
|
dependencies {
|
|
implementation project(':common')
|
|
implementation project(':domain')
|
|
|
|
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
|
|
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutinesVersion"
|
|
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:$coroutinesVersion"
|
|
|
|
implementation "com.google.dagger:dagger:${daggerVersion}"
|
|
kapt "com.google.dagger:dagger-compiler:${daggerVersion}"
|
|
|
|
implementation "androidx.appcompat:appcompat:$appCompatVersion"
|
|
implementation "androidx.constraintlayout:constraintlayout:$constraintLayoutversion"
|
|
|
|
implementation("com.jakewharton.threetenabp:threetenabp:$threeTenAbpVersion") {
|
|
exclude group: 'org.threeten'
|
|
}
|
|
|
|
testImplementation "org.spekframework.spek2:spek-dsl-jvm:$spek2Version"
|
|
testImplementation "org.spekframework.spek2:spek-runner-junit5:$spek2Version"
|
|
testImplementation "org.assertj:assertj-core:$assertJVersion"
|
|
testImplementation "io.mockk:mockk:$mockkVersion"
|
|
testImplementation "org.jetbrains.kotlinx:kotlinx-coroutines-test:$coroutinesVersion"
|
|
}
|
|
|
|
apply plugin: 'com.google.gms.google-services' |