Commit 66f93335 authored by Jonas L.'s avatar Jonas L.

Add gradle publisher

parent 7d96b799
/build
keystore.properties
play-key.json
......@@ -2,6 +2,7 @@ apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'kotlin-kapt'
apply plugin: 'com.github.triplet.play'
android {
compileSdkVersion 28
......@@ -61,3 +62,21 @@ dependencies {
implementation 'android.arch.work:work-runtime-ktx:1.0.0-beta01'
implementation "com.mikepenz:materialdrawer:6.1.2"
}
play {
jsonFile = file("play-key.json")
track = "production"
}
// based on https://stackoverflow.com/a/20573171
def propsFile = project.file('keystore.properties')
def configName = 'release'
if (propsFile.exists() && android.signingConfigs.hasProperty(configName)) {
def props = new Properties()
props.load(new FileInputStream(propsFile))
android.signingConfigs[configName].storeFile = file(props['storeFile'])
android.signingConfigs[configName].storePassword = props['storePassword']
android.signingConfigs[configName].keyAlias = props['keyAlias']
android.signingConfigs[configName].keyPassword = props['keyPassword']
}
......@@ -11,6 +11,7 @@ buildscript {
dependencies {
classpath 'com.android.tools.build:gradle:3.2.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'com.github.triplet.gradle:play-publisher:1.2.2'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment