apply plugin: 'com.android.application' apply plugin: 'kotlin-android' apply plugin: 'kotlin-android-extensions' apply plugin: 'kotlin-kapt' 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" } 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"] } } 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'] } } 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 { implementation project(':shared') wearApp project(':wear') 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' implementation 'androidx.transition:transition-ktx:1.4.0-beta01' implementation 'com.google.android.material:material:1.3.0-alpha02' 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" implementation 'com.robinhood.ticker:ticker:2.0.2' testImplementation 'junit:junit:4.12' androidTestImplementation 'androidx.test.ext:junit:1.1.1' androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0' }