Browse Source

Update README and how release builds are created.

chat
Mark Meister 5 years ago
parent
commit
83ce2cb69a
  1. 1
      .gitignore
  2. 17
      README.md
  3. 19
      app/build.gradle
  4. 2
      build.gradle

1
.gitignore

@ -56,3 +56,4 @@ freeline.py
freeline/
freeline_project_description.json
secrets.properties

17
README.md

@ -27,3 +27,20 @@ If you're installing the APK directly, you'll need to allow `Install from untrus
You can file issues in the [issues tab](https://github.com/MyHush/SilentDragonAndroid/issues).
## Release Build Process
In order to build you'll need to obtain the following files and place them in the main directory.
* silent_dragon_keystore.jks
* secrets.properties
These files contain sensitive information and should not be committed to git.
Before creating each build you should increment the version code & version name in the build.gradle file. These must be incremented for each release otherwise the Play Store will reject the build.
To create a release build navigate to the project directory in terminal and run
./gradlew clean assembleRelease
This will produce an apk file in the following directory.
SilentDragonAndroid/app/build/output/apk/release/app-release.apk
This build can be directly uploaded to Google Play.

19
app/build.gradle

@ -2,8 +2,16 @@ apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
def secretsPropertiesFile = rootProject.file("secrets.properties")
def secretProperties = new Properties()
if (secretsPropertiesFile.exists()) {
secretProperties.load(new FileInputStream((secretsPropertiesFile)))
}
android {
compileSdkVersion 28
defaultConfig {
applicationId "org.myhush.silentdragon"
minSdkVersion 19
@ -13,8 +21,19 @@ android {
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
vectorDrawables.useSupportLibrary = true
}
signingConfigs {
release {
storeFile file(secretProperties["store_file_location"])
keyAlias secretProperties["key_alias"]
keyPassword secretProperties["key_password"]
storePassword secretProperties["store_password"]
}
}
buildTypes {
release {
signingConfig signingConfigs.release
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}

2
build.gradle

@ -1,7 +1,7 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext.kotlin_version = '1.3.10'
ext.kotlin_version = '1.3.50'
repositories {
google()
jcenter()

Loading…
Cancel
Save