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:
Andrei Shikov
2021-06-17 15:08:47 -07:00
committed by Lorenzo Sciandra
parent ba4424fcca
commit 121a6a49c6
+1 -5
View File
@@ -416,11 +416,7 @@ android {
}
}
tasks.withType(JavaCompile) {
compileTask ->
compileTask.dependsOn(packageReactNdkLibs)
}
preBuild.dependsOn(packageReactNdkLibs)
clean.dependsOn(cleanReactNdkLib)
lintOptions {