Skip to content
Permalink
Browse files

[Android] Fix release build

  • Loading branch information...
brunolemos committed Dec 19, 2018
1 parent 6395201 commit c51ec020ce6858010513c294148d9fd5d8b0373e
Showing with 5 additions and 3 deletions.
  1. +1 −0 packages/mobile/.gitignore
  2. +4 −3 packages/mobile/android/app/build.gradle
@@ -29,6 +29,7 @@ build/
.gradle
local.properties
*.iml
android/app/release/

# node.js
#
@@ -73,8 +73,9 @@ import com.android.build.OutputFile
*/

project.ext.react = [
bundleAssetName: "index.android.bundle",
entryFile: "index.js"
bundleAssetName: "index.android.bundle",
cliPath : "../../node_modules/react-native/local-cli/cli.js",
entryFile : "packages/mobile/index.js"
]

apply from: "../../../../node_modules/react-native/react.gradle"
@@ -127,7 +128,7 @@ android {
variant.outputs.each { output ->
// For each separate APK per architecture, set a unique version code as described here:
// http://tools.android.com/tech-docs/new-build-system/user-guide/apk-splits
def versionCodes = ["armeabi-v7a":1, "x86":2]
def versionCodes = ["armeabi-v7a": 1, "x86": 2]
def abi = output.getFilter(OutputFile.ABI)
if (abi != null) { // null for the universal-debug, universal-release variants
output.versionCodeOverride =

0 comments on commit c51ec02

Please sign in to comment.
You can’t perform that action at this time.