diff --git a/ReactAndroid/build.gradle b/ReactAndroid/build.gradle index 56bacf0b9b7..bcc8cda5aff 100644 --- a/ReactAndroid/build.gradle +++ b/ReactAndroid/build.gradle @@ -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 { diff --git a/build.gradle.kts b/build.gradle.kts index 9c6fad7ae4f..e9b1924d538 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -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") {