Skip to content

Commit

Permalink
android: build native modules for every arch
Browse files Browse the repository at this point in the history
Builds native modules for every architecture if abiFilter
is not defined for the project.
  • Loading branch information
jaimecbernardo committed Feb 19, 2019
1 parent fbab03e commit 9357f13
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,13 @@ if ("1".equals(shouldRebuildNativeModules)) {
}
GenerateNodeProjectAssetsLists.dependsOn "ApplyPatchScriptToModules"

android.defaultConfig.ndk.abiFilters.each { abi_name ->
def nativeModulesABIs = android.defaultConfig.ndk.abiFilters;
if (nativeModulesABIs == null) {
// No abiFilter is defined for the build. Build native modules for eevery architecture.
nativeModulesABIs = ["armeabi-v7a", "x86", "arm64-v8a", "x86_64"] as Set<String>;
}

nativeModulesABIs.each { abi_name ->
String temp_arch = {
switch (abi_name) {
case 'armeabi-v7a':
Expand Down

0 comments on commit 9357f13

Please sign in to comment.