[Android] Generate app bundles in the script and add them to the CI artifacts

Nicolas Pomepuy git at videolan.org
Mon Dec 11 10:01:17 UTC 2023


vlc-android | branch: refs/tags/3.6.0-beta1-snap | Nicolas Pomepuy <nicolas at videolabs.io> | Mon Dec 11 10:43:27 2023 +0100| [50c6fca453c72ec6b93e215917ff1f6a63b9370c] | committer: Nicolas Pomepuy

Generate app bundles in the script and add them to the CI artifacts

> https://code.videolan.org/videolan/vlc-android/commit/50c6fca453c72ec6b93e215917ff1f6a63b9370c
---

 buildsystem/compile.sh            | 4 ++++
 buildsystem/gitlab/.gitlab-ci.yml | 1 +
 2 files changed, 5 insertions(+)

diff --git a/buildsystem/compile.sh b/buildsystem/compile.sh
index 4a1cca38e3..4a8443fd4a 100755
--- a/buildsystem/compile.sh
+++ b/buildsystem/compile.sh
@@ -364,6 +364,10 @@ else
     fi
     TARGET="${ACTION}${BUILDTYPE}"
     GRADLE_VLC_SRC_DIRS="$GRADLE_VLC_SRC_DIRS" CLI="" GRADLE_ABI=$GRADLE_ABI ./gradlew  ${gradle_prop} -Dmaven.repo.local=$M2_REPO $TARGET
+    if [ "$BUILDTYPE" = "Release" -a "$ACTION" = "assemble" ]; then
+        TARGET="bundle${BUILDTYPE}"
+        GRADLE_VLC_SRC_DIRS="$GRADLE_VLC_SRC_DIRS" CLI="" GRADLE_ABI=$GRADLE_ABI ./gradlew  ${gradle_prop} -Dmaven.repo.local=$M2_REPO $TARGET
+    fi
     if [ "$TEST" = 1 ]; then
         TARGET="application:vlc-android:install${BUILDTYPE}AndroidTest"
         GRADLE_VLC_SRC_DIRS="$GRADLE_VLC_SRC_DIRS" CLI="" GRADLE_ABI=$GRADLE_ABI ./gradlew  ${gradle_prop} -Dmaven.repo.local=$M2_REPO $TARGET
diff --git a/buildsystem/gitlab/.gitlab-ci.yml b/buildsystem/gitlab/.gitlab-ci.yml
index 6039227ed3..b53cf0e3f8 100644
--- a/buildsystem/gitlab/.gitlab-ci.yml
+++ b/buildsystem/gitlab/.gitlab-ci.yml
@@ -489,6 +489,7 @@ release:
         name: "${CI_COMMIT_TAG}"
         paths:
             - application/app/build/outputs/apk/release/VLC-Android-*.apk
+            - application/app/build/outputs/bundle/release/*.aab
 #            - application/app/build/outputs/mapping/release/mapping.txt
         expire_in: 2 weeks
 



More information about the Android mailing list