Commit c79412fd authored by Mygod's avatar Mygod

Remove signing configs in local.properties

On how to sign apks from cmdline: https://stackoverflow.com/a/25252900/2245107
parent 5f4e1a71
...@@ -4,6 +4,7 @@ local.properties ...@@ -4,6 +4,7 @@ local.properties
.externalNativeBuild/ .externalNativeBuild/
build/ build/
captures/ captures/
release/
.idea/ .idea/
.d .d
......
...@@ -20,16 +20,8 @@ A [shadowsocks](http://shadowsocks.org) client for Android, written in Kotlin. ...@@ -20,16 +20,8 @@ A [shadowsocks](http://shadowsocks.org) client for Android, written in Kotlin.
* Set environment variable `ANDROID_HOME` to `/path/to/android-sdk` * Set environment variable `ANDROID_HOME` to `/path/to/android-sdk`
* (optional) Set environment variable `ANDROID_NDK_HOME` to `/path/to/android-ndk` (default: `$ANDROID_HOME/ndk-bundle`) * (optional) Set environment variable `ANDROID_NDK_HOME` to `/path/to/android-ndk` (default: `$ANDROID_HOME/ndk-bundle`)
* Set environment variable `GOROOT_BOOTSTRAP` to `/path/to/go` * Set environment variable `GOROOT_BOOTSTRAP` to `/path/to/go`
* Create your key following the instructions at https://developer.android.com/studio/publish/app-signing.html * Fetch submodules using `$ git submodule update --init --recursive`
* Create `mobile/local.properties` from `mobile/local.properties.example` with your own key information * Build it using Android Studio or gradle script
* Invoke the building like this
```bash
git submodule update --init --recursive
# Build the App
sbt clean go-build android:package-release
```
### TRANSLATE ### TRANSLATE
......
storeFile=/path/to/your/keystore
storePassword=passwd
keyPassword=passwd
keyAlias=alias
...@@ -57,18 +57,6 @@ android { ...@@ -57,18 +57,6 @@ android {
sourceSets.main.jniLibs.srcDirs += new File(project(':core').projectDir, "src/main/jni/overture") sourceSets.main.jniLibs.srcDirs += new File(project(':core').projectDir, "src/main/jni/overture")
} }
def propsFile = rootProject.file('local.properties')
if (propsFile.exists()) {
def props = new Properties()
props.load(new FileInputStream(propsFile))
android.signingConfigs.release.storeFile = file(props['storeFile'])
android.signingConfigs.release.storePassword = props['storePassword']
android.signingConfigs.release.keyAlias = props['keyAlias']
android.signingConfigs.release.keyPassword = props['keyPassword']
} else {
android.buildTypes.release.signingConfig = null
}
dependencies { dependencies {
implementation project(':core') implementation project(':core')
implementation "com.android.support:customtabs:$supportLibraryVersion" implementation "com.android.support:customtabs:$supportLibraryVersion"
......
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