mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
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
This commit is contained in:
committed by
Lorenzo Sciandra
parent
ba4424fcca
commit
121a6a49c6
@@ -416,11 +416,7 @@ android {
|
||||
}
|
||||
}
|
||||
|
||||
tasks.withType(JavaCompile) {
|
||||
compileTask ->
|
||||
compileTask.dependsOn(packageReactNdkLibs)
|
||||
}
|
||||
|
||||
preBuild.dependsOn(packageReactNdkLibs)
|
||||
clean.dependsOn(cleanReactNdkLib)
|
||||
|
||||
lintOptions {
|
||||
|
||||
Reference in New Issue
Block a user