Skip to content

Commit

Permalink
Setup for release-apk
Browse files Browse the repository at this point in the history
  • Loading branch information
aryaminus committed Mar 4, 2018
1 parent a6c918c commit 167af54
Show file tree
Hide file tree
Showing 8 changed files with 25 additions and 197 deletions.
4 changes: 2 additions & 2 deletions android/app/BUCK
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,12 @@ android_library(

android_build_config(
name = "build_config",
package = "com.nazar",
package = "com.speks.nazar",
)

android_resource(
name = "res",
package = "com.nazar",
package = "com.speks.nazar",
res = "src/main/res",
)

Expand Down
15 changes: 14 additions & 1 deletion android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ android {
buildToolsVersion "25.0.1"

defaultConfig {
applicationId "com.nazar"
applicationId "com.speks.nazar"
minSdkVersion 16
targetSdkVersion 22
versionCode 1
Expand All @@ -107,6 +107,18 @@ android {
abiFilters "armeabi-v7a", "x86"
}
}

signingConfigs {
release {
if (project.hasProperty('MYAPP_RELEASE_STORE_FILE')) {
storeFile file(MYAPP_RELEASE_STORE_FILE)
storePassword MYAPP_RELEASE_STORE_PASSWORD
keyAlias MYAPP_RELEASE_KEY_ALIAS
keyPassword MYAPP_RELEASE_KEY_PASSWORD
}
}
}

splits {
abi {
reset()
Expand All @@ -119,6 +131,7 @@ android {
release {
minifyEnabled enableProguardInReleaseBuilds
proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
signingConfig signingConfigs.release
}
}
// applicationVariants are e.g. debug, release
Expand Down
4 changes: 2 additions & 2 deletions android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.nazar"
package="com.speks.nazar"
android:versionCode="1"
android:versionName="1.0">

Expand All @@ -21,7 +21,7 @@
android:theme="@style/AppTheme">
<provider
android:name="android.support.v4.content.FileProvider"
android:authorities="com.nazar.provider"
android:authorities="com.speks.nazar.provider"
android:grantUriPermissions="true"
android:exported="false">
</provider>
Expand Down
2 changes: 1 addition & 1 deletion android/app/src/main/java/com/nazar/MainActivity.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.nazar;
package com.speks.nazar;
import android.os.Bundle;
import com.facebook.react.ReactActivity;
import org.devio.rn.splashscreen.SplashScreen;
Expand Down
2 changes: 1 addition & 1 deletion android/app/src/main/java/com/nazar/MainApplication.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.nazar;
package com.speks.nazar;

import android.app.Application;

Expand Down
5 changes: 5 additions & 0 deletions android/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,8 @@
# org.gradle.parallel=true

android.useDeprecatedNdk=true

MYAPP_RELEASE_STORE_FILE=my-release-key.keystore
MYAPP_RELEASE_KEY_ALIAS=my-key-alias
MYAPP_RELEASE_STORE_PASSWORD=N@Z@r SPeKs Ia
MYAPP_RELEASE_KEY_PASSWORD=N@Z@r SPeKs Ia
Empty file removed src/screens/Home/index.js.save
Empty file.
190 changes: 0 additions & 190 deletions src/screens/Home/index.js.save.1

This file was deleted.

0 comments on commit 167af54

Please sign in to comment.