2020-05-29 21:48:39 +00:00
|
|
|
apply plugin: 'com.android.application'
|
|
|
|
apply plugin: 'kotlin-android'
|
|
|
|
apply plugin: 'kotlin-android-extensions'
|
|
|
|
apply plugin: 'kotlin-kapt'
|
|
|
|
|
2020-07-24 03:15:00 +00:00
|
|
|
def keystoreProperties = new Properties()
|
|
|
|
try {
|
|
|
|
def keystorePropertiesFile = rootProject.file("keystore.properties")
|
|
|
|
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
|
|
|
|
} catch (FileNotFoundException ignored) {
|
|
|
|
logger.warn("Unable to load keystore properties. Using debug signing configuration instead")
|
|
|
|
keystoreProperties['keyAlias'] = "androiddebugkey"
|
|
|
|
keystoreProperties['keyPassword'] = "android"
|
|
|
|
keystoreProperties['storeFile'] = new File(System.getProperty("user.home"), ".android/debug.keystore").absolutePath
|
|
|
|
keystoreProperties['storePassword'] = "android"
|
|
|
|
}
|
|
|
|
|
2020-05-29 21:48:39 +00:00
|
|
|
android {
|
|
|
|
compileSdkVersion 29
|
|
|
|
buildToolsVersion "29.0.3"
|
|
|
|
|
|
|
|
defaultConfig {
|
|
|
|
applicationId "com.wbrawner.trainterval"
|
|
|
|
minSdkVersion 23
|
|
|
|
targetSdkVersion 29
|
|
|
|
versionCode 1
|
|
|
|
versionName "1.0"
|
|
|
|
|
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
|
|
|
|
|
|
javaCompileOptions {
|
|
|
|
annotationProcessorOptions {
|
|
|
|
arguments = [
|
|
|
|
"room.schemaLocation" : "$projectDir/schemas".toString(),
|
|
|
|
"room.incremental" : "true",
|
|
|
|
"room.expandProjection": "true"]
|
|
|
|
}
|
|
|
|
}
|
2020-07-24 03:15:00 +00:00
|
|
|
signingConfig signingConfigs.debug
|
|
|
|
}
|
|
|
|
signingConfigs {
|
|
|
|
debug {
|
|
|
|
keyAlias keystoreProperties['keyAlias']
|
|
|
|
keyPassword keystoreProperties['keyPassword']
|
|
|
|
storeFile file(keystoreProperties['storeFile'])
|
|
|
|
storePassword keystoreProperties['storePassword']
|
|
|
|
}
|
|
|
|
release {
|
|
|
|
keyAlias keystoreProperties['keyAlias']
|
|
|
|
keyPassword keystoreProperties['keyPassword']
|
|
|
|
storeFile file(keystoreProperties['storeFile'])
|
|
|
|
storePassword keystoreProperties['storePassword']
|
|
|
|
}
|
2020-05-29 21:48:39 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
buildTypes {
|
|
|
|
release {
|
|
|
|
minifyEnabled false
|
|
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
compileOptions {
|
|
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
|
|
}
|
|
|
|
|
|
|
|
kotlinOptions {
|
|
|
|
jvmTarget = "1.8"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2020-07-23 02:04:11 +00:00
|
|
|
implementation project(':shared')
|
2020-07-24 03:15:00 +00:00
|
|
|
wearApp project(':wear')
|
2020-05-29 21:48:39 +00:00
|
|
|
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
|
|
|
|
|
|
|
|
implementation 'androidx.appcompat:appcompat:1.1.0'
|
|
|
|
implementation 'androidx.core:core-ktx:1.2.0'
|
|
|
|
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
|
2020-10-10 16:12:09 +00:00
|
|
|
implementation 'androidx.transition:transition-ktx:1.4.0-beta01'
|
|
|
|
implementation 'com.google.android.material:material:1.3.0-alpha02'
|
2020-05-29 21:48:39 +00:00
|
|
|
implementation 'androidx.recyclerview:recyclerview:1.1.0'
|
|
|
|
|
|
|
|
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
|
|
|
|
|
|
|
|
def nav_version = "2.2.1"
|
|
|
|
implementation "androidx.navigation:navigation-fragment-ktx:$nav_version"
|
|
|
|
implementation "androidx.navigation:navigation-ui-ktx:$nav_version"
|
|
|
|
// Requires 2.3.0 which is still in alpha at the time of writing
|
|
|
|
// androidTestImplementation "androidx.navigation:navigation-testing:$nav_version"
|
|
|
|
|
|
|
|
def lifecycle_version = "2.2.0"
|
|
|
|
def arch_version = "2.1.0"
|
|
|
|
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:$lifecycle_version"
|
|
|
|
implementation "androidx.lifecycle:lifecycle-livedata-ktx:$lifecycle_version"
|
|
|
|
implementation "androidx.lifecycle:lifecycle-common-java8:$lifecycle_version"
|
|
|
|
testImplementation "androidx.arch.core:core-testing:$arch_version"
|
|
|
|
|
|
|
|
def koin_version = "2.1.5"
|
|
|
|
implementation "org.koin:koin-core:$koin_version"
|
|
|
|
implementation "org.koin:koin-android:$koin_version"
|
|
|
|
testImplementation "org.koin:koin-test:$koin_version"
|
|
|
|
|
2020-09-22 22:45:54 +00:00
|
|
|
implementation 'com.robinhood.ticker:ticker:2.0.2'
|
|
|
|
|
2020-05-29 21:48:39 +00:00
|
|
|
testImplementation 'junit:junit:4.12'
|
|
|
|
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
|
|
|
|
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
|
|
|
|
}
|