Skip to content

Commit

Permalink
changes for building apk
Browse files Browse the repository at this point in the history
  • Loading branch information
SangeethSujith committed May 21, 2022
1 parent 5eedd14 commit 3c9e394
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 5 deletions.
16 changes: 12 additions & 4 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,12 @@ apply from: "../../node_modules/react-native/react.gradle"
* Upload all the APKs to the Play Store and people will download
* the correct one based on the CPU architecture of their device.
*/
def enableSeparateBuildPerCPUArchitecture = false
def enableSeparateBuildPerCPUArchitecture = true

/**
* Run Proguard to shrink the Java bytecode in release builds.
*/
def enableProguardInReleaseBuilds = false
def enableProguardInReleaseBuilds = true

/**
* The preferred build flavor of JavaScriptCore.
Expand Down Expand Up @@ -217,7 +217,7 @@ android {
abi {
reset()
enable enableSeparateBuildPerCPUArchitecture
universalApk false // If true, also generate a universal APK
universalApk true // If true, also generate a universal APK
include (*reactNativeArchitectures())
}
}
Expand All @@ -228,6 +228,14 @@ android {
keyAlias 'androiddebugkey'
keyPassword 'android'
}
release {
if (project.hasProperty('MYAPP_UPLOAD_STORE_FILE')) {
storeFile file(MYAPP_UPLOAD_STORE_FILE)
storePassword MYAPP_UPLOAD_STORE_PASSWORD
keyAlias MYAPP_UPLOAD_KEY_ALIAS
keyPassword MYAPP_UPLOAD_KEY_PASSWORD
}
}
}
buildTypes {
debug {
Expand All @@ -236,7 +244,7 @@ android {
release {
// Caution! In production, you need to generate your own keystore file.
// see https://reactnative.dev/docs/signed-apk-android.
signingConfig signingConfigs.debug
signingConfig signingConfigs.release
minifyEnabled enableProguardInReleaseBuilds
proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
}
Expand Down
4 changes: 4 additions & 0 deletions android/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ android.enableJetifier=true

# Version of flipper SDK to use with React Native
FLIPPER_VERSION=0.125.0
MYAPP_UPLOAD_STORE_FILE=brush.keystore
MYAPP_UPLOAD_KEY_ALIAS=brush
MYAPP_UPLOAD_STORE_PASSWORD=mynois2255
MYAPP_UPLOAD_KEY_PASSWORD=mynois2255

# Use this property to specify which architecture you want to build.
# You can also override it from the CLI using
Expand Down
1 change: 0 additions & 1 deletion src/screens/Login.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ const Login = ({ navigation }) => {
</TouchableOpacity>
</View>
<View style={Design.b2}>

<Image style={{ height: 14, width: 319 }} source={require('../images/ldot.png')} />
</View>
</View>
Expand Down

0 comments on commit 3c9e394

Please sign in to comment.