Setup a toplevel downloadAll task (#33852)

Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/33852

Similarly to buildAll and cleanAll, I'm creating a downloadlAll task
which is aligning the behavior of the download task we're doing on CIs.

I've also updated the Offline Cache as we're now storing a bigger set of dependencies.

Changelog:
[Internal] [Changed] - Setup a toplevel downloadAll task

allow-large-files

Reviewed By: cipolleschi

Differential Revision: D36441728

fbshipit-source-id: f847b5e665c64e0b4b93d984bbc1b64c00a3b4f7
This commit is contained in:
Nicola Corti 2022-05-17 15:31:48 -07:00 коммит произвёл Facebook GitHub Bot
Родитель 7c82cc3095
Коммит afb0307036
3 изменённых файлов: 11 добавлений и 10 удалений

Просмотреть файл

@ -210,7 +210,7 @@ commands:
- *gradle_cache_key
- run:
name: Download Dependencies Using Gradle
command: ./scripts/circleci/gradle_download_deps.sh
command: ./gradlew downloadAll
- save_cache:
paths:
- ~/.gradle

Просмотреть файл

@ -66,3 +66,13 @@ tasks.register("buildAll") {
// This builds RN Tester for Hermes/JSC for debug only
dependsOn(":packages:rn-tester:android:app:assembleDebug")
}
tasks.register("downloadAll") {
description = "Download all the depedencies needed locally so they can be cached on CI."
dependsOn(gradle.includedBuild("react-native-gradle-plugin").task(":dependencies"))
dependsOn(":ReactAndroid:downloadNdkBuildDependencies")
dependsOn(":ReactAndroid:dependencies")
dependsOn(":ReactAndroid:androidDependencies")
dependsOn(":ReactAndroid:hermes-engine:dependencies")
dependsOn(":ReactAndroid:hermes-engine:androidDependencies")
}

Просмотреть файл

@ -1,9 +0,0 @@
#!/bin/bash
# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
set -e
./gradlew :ReactAndroid:downloadNdkBuildDependencies