Skip to content

Commit 7bfccf9

Browse files
Revert "add x86_64 arm64-v8a support. Fixes facebook#2814 (facebook#18754)"
This reverts commit 0a2825f.
1 parent 831b8cd commit 7bfccf9

File tree

8 files changed

+28
-19
lines changed

8 files changed

+28
-19
lines changed

RNTester/android/app/build.gradle

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ apply from: "../../../react.gradle"
8383
* Upload all the APKs to the Play Store and people will download
8484
* the correct one based on the CPU architecture of their device.
8585
*/
86-
def enableSeparateBuildPerCPUArchitecture = true
86+
def enableSeparateBuildPerCPUArchitecture = false
8787

8888
/**
8989
* Run Proguard to shrink the Java bytecode in release builds.
@@ -100,6 +100,9 @@ android {
100100
targetSdkVersion 27
101101
versionCode 1
102102
versionName "1.0"
103+
ndk {
104+
abiFilters "armeabi-v7a", "x86"
105+
}
103106
}
104107
signingConfigs {
105108
release {
@@ -114,7 +117,7 @@ android {
114117
enable enableSeparateBuildPerCPUArchitecture
115118
universalApk false
116119
reset()
117-
include "armeabi-v7a", "x86", "x86_64", "arm64-v8a"
120+
include "armeabi-v7a", "x86"
118121
}
119122
}
120123
buildTypes {
@@ -127,6 +130,20 @@ android {
127130
signingConfig signingConfigs.release
128131
}
129132
}
133+
134+
// applicationVariants are e.g. debug, release
135+
applicationVariants.all { variant ->
136+
variant.outputs.each { output ->
137+
// For each separate APK per architecture, set a unique version code as described here:
138+
// http://tools.android.com/tech-docs/new-build-system/user-guide/apk-splits
139+
def versionCodes = ["armeabi-v7a":1, "x86":2]
140+
def abi = output.getFilter(OutputFile.ABI)
141+
if (abi != null) { // null for the universal-debug, universal-release variants
142+
output.versionCodeOverride =
143+
versionCodes.get(abi) * 1048576 + defaultConfig.versionCode
144+
}
145+
}
146+
}
130147
}
131148

132149
dependencies {

ReactAndroid/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ dependencies {
324324
api "com.squareup.okhttp3:okhttp:${OKHTTP_VERSION}"
325325
api "com.squareup.okhttp3:okhttp-urlconnection:${OKHTTP_VERSION}"
326326
api 'com.squareup.okio:okio:1.14.0'
327-
compile project(':android-jsc')
327+
compile 'org.webkit:android-jsc:r174650'
328328

329329
testImplementation "junit:junit:${JUNIT_VERSION}"
330330
testImplementation "org.powermock:powermock-api-mockito:${POWERMOCK_VERSION}"

ReactAndroid/src/main/jni/Application.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
APP_BUILD_SCRIPT := Android.mk
77

8-
APP_ABI := armeabi-v7a x86 arm64-v8a x86_64
8+
APP_ABI := armeabi-v7a x86
99
APP_PLATFORM := android-16
1010

1111
APP_MK_DIR := $(dir $(lastword $(MAKEFILE_LIST)))

ReactAndroid/src/main/jni/third-party/double-conversion/Android.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)
1919
CXX11_FLAGS := -Wno-unused-variable -Wno-unused-local-typedefs
2020
LOCAL_CFLAGS += $(CXX11_FLAGS)
2121

22-
include $(BUILD_STATIC_LIBRARY)
22+
include $(BUILD_STATIC_LIBRARY)

android-jsc/android-jsc.aar

-7.97 MB
Binary file not shown.

android-jsc/build.gradle

Lines changed: 0 additions & 9 deletions
This file was deleted.

local-cli/templates/HelloWorld/android/app/build.gradle

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,13 +103,16 @@ android {
103103
targetSdkVersion rootProject.ext.targetSdkVersion
104104
versionCode 1
105105
versionName "1.0"
106+
ndk {
107+
abiFilters "armeabi-v7a", "x86"
108+
}
106109
}
107110
splits {
108111
abi {
109112
reset()
110113
enable enableSeparateBuildPerCPUArchitecture
111114
universalApk false // If true, also generate a universal APK
112-
include "armeabi-v7a", "x86", "arm64-v8a"
115+
include "armeabi-v7a", "x86"
113116
}
114117
}
115118
buildTypes {
@@ -123,7 +126,7 @@ android {
123126
variant.outputs.each { output ->
124127
// For each separate APK per architecture, set a unique version code as described here:
125128
// http://tools.android.com/tech-docs/new-build-system/user-guide/apk-splits
126-
def versionCodes = ["armeabi-v7a":1, "x86":2, "arm64-v8a": 3]
129+
def versionCodes = ["armeabi-v7a":1, "x86":2]
127130
def abi = output.getFilter(OutputFile.ABI)
128131
if (abi != null) { // null for the universal-debug, universal-release variants
129132
output.versionCodeOverride =

settings.gradle

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,4 @@
33
// This source code is licensed under the MIT license found in the
44
// LICENSE file in the root directory of this source tree.
55

6-
include ':ReactAndroid'
7-
include ':RNTester:android:app'
8-
include ':android-jsc'
6+
include ':ReactAndroid', ':RNTester:android:app'

0 commit comments

Comments
 (0)