mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Allow for Android offline mirrors to be executed on developer's laptops
Summary: Before this change, the only way to update the offline mirror was to run it on a devmachine (OD won't work either due to network restriction). Developer's laptop also won't work as they would download AAPT2 for MacOS. In the offline mirror instead we need AAPT2 for Linux as that's Sandcastle runner type. This relaxes this requirement so the next time a developer has to update the offline mirror they will see the message on the diff with the command to execute, and they should be able to run the command locally (or on their devbox). Changelog: [Internal] [Changed] - Allow for Android offline mirrors to be executed on developer's laptops allow-large-files Reviewed By: cipolleschi Differential Revision: D43344651 fbshipit-source-id: 3e91adb2db45cf94d3f947aaab501d98580dc43d
This commit is contained in:
committed by
Facebook GitHub Bot
parent
70fb2dce45
commit
40c687c132
@@ -670,6 +670,12 @@ dependencies {
|
||||
androidTestImplementation("androidx.test:runner:${ANDROIDX_TEST_VERSION}")
|
||||
androidTestImplementation("androidx.test:rules:${ANDROIDX_TEST_VERSION}")
|
||||
androidTestImplementation("org.mockito:mockito-core:${MOCKITO_CORE_VERSION}")
|
||||
|
||||
// This compileOnly dependency is needed to be able to update the offline
|
||||
// mirror from a non-linux machine, while still executing inside a Linux CI
|
||||
// as we declare a dependency on aap2 @linux so we're sure the linux artifact
|
||||
// gets downloaded at some point.
|
||||
compileOnly("com.android.tools.build:aapt2:7.4.1-8841542:linux")
|
||||
}
|
||||
|
||||
react {
|
||||
|
||||
@@ -91,6 +91,8 @@ tasks.register("downloadAll") {
|
||||
dependsOn(":ReactAndroid:androidDependencies")
|
||||
dependsOn(":ReactAndroid:hermes-engine:dependencies")
|
||||
dependsOn(":ReactAndroid:hermes-engine:androidDependencies")
|
||||
dependsOn(":packages:rn-tester:android:app:dependencies")
|
||||
dependsOn(":packages:rn-tester:android:app:androidDependencies")
|
||||
}
|
||||
|
||||
tasks.register("publishAllInsideNpmPackage") {
|
||||
|
||||
Reference in New Issue
Block a user