diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 1bf10d33771eabfaf7f3c5ea34fe1d2385c4b12c..9d2ff9b9fe7ba10a56ff2e4a667ef7fee9173891 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -5,6 +5,7 @@ variables: UNSIGNED_APK: "etar-release-unsigned.apk" COMMUNITY_APK: "Etar-community.apk" OFFICIAL_APK: "Etar-official.apk" + TEST_APK: "Etar-test.apk" stages: - auto-merge-main @@ -63,7 +64,7 @@ init_submodules: generate-apks: stage: gitlab_release rules: - - if: '$CI_COMMIT_TAG && $CI_COMMIT_REF_PROTECTED == "true"' + - if: '$CI_COMMIT_REF_PROTECTED == "true"' when: on_success needs: - init_submodules @@ -76,12 +77,13 @@ generate-apks: script: - | ./systemAppsUpdateInfo/scripts/generate-apks.sh \ - "$APK_PATH" "$UNSIGNED_APK" "$COMMUNITY_APK" "$OFFICIAL_APK" + "$APK_PATH" "$UNSIGNED_APK" "$COMMUNITY_APK" "$OFFICIAL_APK" "$TEST_APK" artifacts: paths: - $APK_PATH/$UNSIGNED_APK - $APK_PATH/$COMMUNITY_APK - $APK_PATH/$OFFICIAL_APK + - $APK_PATH/$TEST_APK create-json-files: stage: gitlab_release @@ -93,17 +95,37 @@ create-json-files: - generate-apks rules: - if: '$CI_COMMIT_TAG && $CI_COMMIT_REF_PROTECTED == "true"' - when: manual + when: on_success before_script: - apt update && apt install jq aapt -y script: - | ./systemAppsUpdateInfo/scripts/create-json-files.sh \ - "$APK_PATH" "$UNSIGNED_APK" "$COMMUNITY_APK" "$OFFICIAL_APK" + "$APK_PATH" "$UNSIGNED_APK" "$COMMUNITY_APK" "$OFFICIAL_APK" "$TEST_APK" artifacts: paths: - community.json - official.json + - test.json + +create-test-release: + stage: gitlab_release + dependencies: + - init_submodules + needs: + - init_submodules + - create-json-files + - generate-apks + rules: + - if: '$CI_COMMIT_TAG && $CI_COMMIT_REF_PROTECTED == "true"' + when: manual + before_script: + - apt update && apt install jq -y + script: + - | + ./systemAppsUpdateInfo/scripts/create-test-release.sh \ + "$APK_PATH" "$TEST_APK" + allow_failure: true create-release: stage: gitlab_release @@ -115,13 +137,14 @@ create-release: - generate-apks rules: - if: '$CI_COMMIT_TAG && $CI_COMMIT_REF_PROTECTED == "true"' - when: on_success + when: manual before_script: - apt update && apt install jq -y script: - | ./systemAppsUpdateInfo/scripts/create-release.sh \ "$APK_PATH" "$UNSIGNED_APK" "$COMMUNITY_APK" "$OFFICIAL_APK" + allow_failure: true .update-from-upstream: image: registry.gitlab.e.foundation/e/tools/docker-tools:latest diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 51c82a778d9b3f125e6bba92f43f7c1b68f99a49..29f01b629c870dcad0fe596112ba5a22adb9e962 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -142,7 +142,7 @@ dependencies { val lifecycle_version = "2.8.4" implementation("androidx.lifecycle:lifecycle-livedata-ktx:$lifecycle_version") - // elib + // elib implementation("foundation.e:elib:0.0.1-alpha11") }