android: Release fixes

- Icon
- bundle/applicationid is now no.neuf.chateau
- Removes unnecessary permissions
- Prepare for bitrise.io building
This commit is contained in:
nikolark committed 2017-07-18 00:57:40 +02:00
1 parent 7206099851
commit 2466356c0a
10 files changed
+55 -5

No files matched your search

+18
View File
@@ -3,3 +3,21 @@
yarn
react-native start
react-native run-android
## Development
# Improve compile times
touch ~/.gradle/gradle.properties && echo -e "org.gradle.daemon=true\norg.gradle.jvmargs=-Xmx2048M" >> ~/.gradle/gradle.properties
## Create release build (Android)
# Aquire the keystore and put it in android/app/dusken-client.keystore
# Put these properties in ~/.gradle/gradle.properties along with the correct passwords
DUSKEN_RELEASE_STORE_FILE=dusken-client.keystore
DUSKEN_RELEASE_KEY_ALIAS=dusken-client
DUSKEN_RELEASE_STORE_PASSWORD=
DUSKEN_RELEASE_KEY_PASSWORD=
# Build
cd android && ./gradlew assembleRelease
# Output is in android/app/build/outputs/apk
+23 -3
View File
@@ -94,11 +94,11 @@ android {
buildToolsVersion "23.0.2"
defaultConfig {
applicationId "com.dusken"
applicationId "no.neuf.chateau"
minSdkVersion 16
targetSdkVersion 22
versionCode 1
versionName "1.0"
versionCode 5
versionName "0.1"
ndk {
abiFilters "armeabi-v7a", "x86"
}
@@ -111,10 +111,30 @@ android {
include "armeabi-v7a", "x86"
}
}
signingConfigs {
release {
// locally
if (project.hasProperty('DUSKEN_RELEASE_STORE_FILE')) {
storeFile file(DUSKEN_RELEASE_STORE_FILE)
storePassword DUSKEN_RELEASE_STORE_PASSWORD
keyAlias DUSKEN_RELEASE_KEY_ALIAS
keyPassword DUSKEN_RELEASE_KEY_PASSWORD
}
// bitrise.io
else if (System.getenv('BITRISEIO_ANDROID_KEYSTORE_URL')) {
storeFile file(System.getenv("HOME") + "/keystores/my_keystore.jks")
storePassword System.getenv("BITRISEIO_ANDROID_KEYSTORE_PASSWORD")
keyAlias System.getenv("BITRISEIO_ANDROID_KEYSTORE_ALIAS")
keyPassword System.getenv("BITRISEIO_ANDROID_KEYSTORE_PRIVATE_KEY_PASSWORD")
}
}
}
buildTypes {
release {
minifyEnabled enableProguardInReleaseBuilds
proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
signingConfig signingConfigs.release
}
}
// applicationVariants are e.g. debug, release
+8 -1
View File
@@ -1,10 +1,17 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.dusken"
android:versionCode="1"
android:versionName="1.0">
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" />
<!-- These permissions are added implicitly by android-jsc, see https://github.com/facebook/android-jsc/pull/12 -->
<!-- The following lines can be removed after android-jsc is updated in react-native -->
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" tools:node="remove" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" tools:node="remove" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" tools:node="remove" />
<uses-sdk
android:minSdkVersion="16"
Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.3 KiB

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.7 KiB

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.5 KiB

After

Width:  |  Height:  |  Size: 6.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.0 KiB

+1 -1
View File
@@ -1,3 +1,3 @@
<resources>
<string name="app_name">Dusken</string>
<string name="app_name">Chateau Neuf</string>
</resources>
@@ -0,0 +1,5 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools">
<!-- These are added by React Native for debug mode, but actually aren't needed in release mode -->
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" tools:node="remove" />
</manifest>