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

Nicolas Pomepuy git at videolan.org
Tue Dec 12 06:48:55 UTC 2023


vlc-android | branch: transifex | Nicolas Pomepuy <nicolas at videolabs.io> | Mon Dec 11 10:43:27 2023 +0100| [67dcea539b20a7863706a82e45804f3c650365b1] | committer: Nicolas Pomepuy

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

> https://code.videolan.org/videolan/vlc-android/commit/67dcea539b20a7863706a82e45804f3c650365b1
---

 buildsystem/compile.sh            | 4 ++++
 buildsystem/gitlab/.gitlab-ci.yml | 2 ++
 2 files changed, 6 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..ad42576ce1 100644
--- a/buildsystem/gitlab/.gitlab-ci.yml
+++ b/buildsystem/gitlab/.gitlab-ci.yml
@@ -485,10 +485,12 @@ release:
     script:
         - ./buildsystem/compile.sh --init
         - ./gradlew assembleRelease
+        - ./gradlew bundleRelease
     artifacts:
         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