Add full offline Android Gradle Plugin dependency cache

This commit is contained in:
lendry
2026-06-26 20:55:41 +03:00
parent 8805ec327f
commit 07df6eacf1
266 changed files with 14499 additions and 26 deletions

View File

@@ -11,6 +11,10 @@ copy_bundled() {
if [ ! -f "${BUNDLED_ARTIFACT}" ]; then
return 1
fi
if [ ! -f "${BUNDLED_REPO}/com/android/tools/build/builder/${AGP_VERSION}/builder-${AGP_VERSION}.pom" ]; then
echo "Bundled AGP cache is incomplete (missing builder:${AGP_VERSION}). Run populate-offline-agp.sh on a machine with internet." >&2
return 1
fi
mkdir -p "${LOCAL_REPO}"
cp -a "${BUNDLED_REPO}/." "${LOCAL_REPO}/"
echo "==> AGP ${AGP_VERSION} copied from bundled offline cache (${BUNDLED_REPO})"