Skip to content

Commit 121a6a4

Browse files
Andrei Shikovkelset
authored andcommitted
Fix Android build sequencing
Summary: The native libraries are compiled outside of the usual Android build flow using separate CLI task. Because of that, shared native libraries may not exist when AAR is bundled, resulting in weird sequencing issues. This change updates gradle dependency graph, executing RN native build before Android part (as it is done in RNTester already). Changelog: [Internal] Reviewed By: mdvacca Differential Revision: D29209249 fbshipit-source-id: 36386c78996b1cd9b1731735e36e571199e9e81b
1 parent ba4424f commit 121a6a4

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

ReactAndroid/build.gradle

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -416,11 +416,7 @@ android {
416416
}
417417
}
418418

419-
tasks.withType(JavaCompile) {
420-
compileTask ->
421-
compileTask.dependsOn(packageReactNdkLibs)
422-
}
423-
419+
preBuild.dependsOn(packageReactNdkLibs)
424420
clean.dependsOn(cleanReactNdkLib)
425421

426422
lintOptions {

0 commit comments

Comments
 (0)