2020-01-01 20:21:33 +00:00
|
|
|
apply plugin: 'com.android.application'
|
|
|
|
apply plugin: 'kotlin-android'
|
|
|
|
apply plugin: 'kotlin-android-extensions'
|
|
|
|
|
2020-02-05 14:37:21 +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-01-01 20:21:33 +00:00
|
|
|
android {
|
|
|
|
compileSdkVersion 29
|
|
|
|
defaultConfig {
|
|
|
|
applicationId "com.wbrawner.pihelper"
|
|
|
|
minSdkVersion 23
|
|
|
|
targetSdkVersion 29
|
|
|
|
versionCode 1
|
|
|
|
versionName "1.0"
|
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
|
|
signingConfig signingConfigs.debug
|
|
|
|
}
|
2020-02-05 14:37:21 +00:00
|
|
|
signingConfigs {
|
|
|
|
release {
|
|
|
|
keyAlias keystoreProperties['keyAlias']
|
|
|
|
keyPassword keystoreProperties['keyPassword']
|
|
|
|
storeFile file(keystoreProperties['storeFile'])
|
|
|
|
storePassword keystoreProperties['storePassword']
|
|
|
|
}
|
|
|
|
}
|
2020-01-01 20:21:33 +00:00
|
|
|
buildTypes {
|
|
|
|
release {
|
|
|
|
minifyEnabled true
|
|
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
2020-02-05 14:37:21 +00:00
|
|
|
signingConfig signingConfigs.release
|
2020-01-01 20:21:33 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
compileOptions {
|
|
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
implementation project(':piholeclient')
|
|
|
|
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
|
|
|
|
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:$coroutines_version"
|
|
|
|
implementation "org.koin:koin-androidx-viewmodel:$koin_version"
|
|
|
|
implementation 'androidx.appcompat:appcompat:1.1.0'
|
|
|
|
implementation 'androidx.core:core-ktx:1.1.0'
|
|
|
|
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
|
2020-02-05 13:55:29 +00:00
|
|
|
implementation 'com.google.android.material:material:1.2.0-alpha04'
|
2020-01-01 20:21:33 +00:00
|
|
|
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
|
|
|
|
implementation 'androidx.security:security-crypto:1.0.0-alpha02'
|
|
|
|
implementation 'androidx.preference:preference:1.1.0'
|
|
|
|
testImplementation 'junit:junit:4.12'
|
|
|
|
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
|
|
|
|
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
|
2020-02-05 13:55:29 +00:00
|
|
|
def navigation_version = '2.2.0'
|
2020-01-01 20:21:33 +00:00
|
|
|
implementation "androidx.navigation:navigation-fragment-ktx:$navigation_version"
|
|
|
|
implementation "androidx.navigation:navigation-ui-ktx:$navigation_version"
|
2020-02-05 13:55:29 +00:00
|
|
|
def lifecycle_version = '2.2.0'
|
2020-01-01 20:21:33 +00:00
|
|
|
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:$lifecycle_version"
|
|
|
|
implementation "androidx.lifecycle:lifecycle-livedata-ktx:$lifecycle_version"
|
|
|
|
def acraVersion = '5.1.3'
|
|
|
|
implementation "ch.acra:acra-mail:$acraVersion"
|
|
|
|
implementation "ch.acra:acra-notification:$acraVersion"
|
|
|
|
implementation "ch.acra:acra-limiter:$acraVersion"
|
|
|
|
}
|