|
@@ -4,14 +4,32 @@ apply plugin: 'kotlin-android'
|
|
|
|
|
|
apply plugin: 'kotlin-android-extensions'
|
|
|
|
|
|
+// Create a variable called keystorePropertiesFile, and initialize it to your
|
|
|
+// keystore.properties file, in the rootProject folder.
|
|
|
+def keystorePropertiesFile = rootProject.file("../../keys/keystore.properties")
|
|
|
+
|
|
|
+// Initialize a new Properties() object called keystoreProperties.
|
|
|
+def keystoreProperties = new Properties()
|
|
|
+
|
|
|
+// Load your keystore.properties file into the keystoreProperties object.
|
|
|
+keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
|
|
|
+
|
|
|
android {
|
|
|
+ signingConfigs {
|
|
|
+ config {
|
|
|
+ keyAlias keystoreProperties['keyAlias']
|
|
|
+ keyPassword keystoreProperties['keyPassword']
|
|
|
+ storeFile file(keystoreProperties['storeFile'])
|
|
|
+ storePassword keystoreProperties['storePassword']
|
|
|
+ }
|
|
|
+ }
|
|
|
compileSdkVersion 27
|
|
|
defaultConfig {
|
|
|
applicationId "io.github.zadam.triliumsender"
|
|
|
minSdkVersion 21
|
|
|
targetSdkVersion 27
|
|
|
versionCode 1
|
|
|
- versionName "1.0"
|
|
|
+ versionName "0.1"
|
|
|
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
|
|
|
}
|
|
|
buildTypes {
|
|
@@ -23,7 +41,7 @@ android {
|
|
|
}
|
|
|
|
|
|
dependencies {
|
|
|
- implementation fileTree(dir: 'libs', include: ['*.jar'])
|
|
|
+ implementation fileTree(include: ['*.jar'], dir: 'libs')
|
|
|
implementation "org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version"
|
|
|
implementation 'com.android.support:appcompat-v7:27.0.2'
|
|
|
implementation 'com.android.support:design:27.0.2'
|