2020-07-23 01:35:26 +00:00
|
|
|
apply plugin: 'com.android.application'
|
|
|
|
apply plugin: 'kotlin-android'
|
|
|
|
apply plugin: 'kotlin-android-extensions'
|
|
|
|
|
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-07-23 01:35:26 +00:00
|
|
|
android {
|
|
|
|
compileSdkVersion 30
|
|
|
|
buildToolsVersion "30.0.1"
|
|
|
|
|
|
|
|
defaultConfig {
|
2020-07-24 03:15:00 +00:00
|
|
|
applicationId "com.wbrawner.trainterval"
|
2020-07-23 01:35:26 +00:00
|
|
|
minSdkVersion 28
|
|
|
|
targetSdkVersion 30
|
|
|
|
versionCode 1
|
|
|
|
versionName "1.0"
|
|
|
|
|
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
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-07-23 01:35:26 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
buildTypes {
|
|
|
|
release {
|
|
|
|
minifyEnabled false
|
|
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2020-07-23 02:04:11 +00:00
|
|
|
implementation project(':shared')
|
2020-07-23 01:35:26 +00:00
|
|
|
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
|
|
|
|
implementation 'androidx.wear:wear:1.0.0'
|
|
|
|
implementation 'com.google.android.support:wearable:2.7.0'
|
2020-09-23 00:57:04 +00:00
|
|
|
implementation 'androidx.appcompat:appcompat:1.2.0'
|
2020-07-23 01:35:26 +00:00
|
|
|
compileOnly 'com.google.android.wearable:wearable:2.7.0'
|
|
|
|
testImplementation 'junit:junit:4.12'
|
|
|
|
}
|