diff --git a/.github/workflows/android_build.yml b/.github/workflows/android_build.yml index fc54ac0..91a0b4e 100644 --- a/.github/workflows/android_build.yml +++ b/.github/workflows/android_build.yml @@ -212,3 +212,20 @@ jobs: with: name: ${{ inputs.upload-name }} path: app/build/outputs/apk/ + if-no-files-found: ignore + + - name: ➡️ Upload bundle artifacts + if: ${{ !startsWith(inputs.gradlew-command, 'false') }} + uses: actions/upload-artifact@v4 + with: + name: ${{ inputs.upload-name }}-bundle + path: app/build/outputs/bundle/ + if-no-files-found: ignore + + - name: ➡️ Upload mapping file + if: ${{ !startsWith(inputs.gradlew-command, 'false') }} + uses: actions/upload-artifact@v4 + with: + name: ${{ inputs.upload-name }}-mapping + path: app/build/outputs/mapping/ + if-no-files-found: ignore diff --git a/.github/workflows/distribute_app_to_play_store.yml b/.github/workflows/distribute_app_to_play_store.yml index 1958ec0..3033c9d 100644 --- a/.github/workflows/distribute_app_to_play_store.yml +++ b/.github/workflows/distribute_app_to_play_store.yml @@ -4,9 +4,9 @@ on: workflow_dispatch: inputs: app_version: - description: 'Version of application' + description: 'Version of application (e.g. v1.0.0)' required: true - default: v*.*.* + default: v1.0.0 branch: description: 'From which branch the application will be built' required: true @@ -17,7 +17,7 @@ jobs: uses: pezkuwichain/pezkuwi-wallet-android/.github/workflows/android_build.yml@main with: branch: ${{ github.event.inputs.branch }} - gradlew-command: assembleReleaseMarket + gradlew-command: bundleReleaseMarket keystore-file-name: market_key.jks secrets: inherit @@ -32,25 +32,30 @@ jobs: with: envFilePath: .github/workflows/variables/android.env - - name: Download built artifact + - name: Download bundle artifact uses: actions/download-artifact@v4 with: - name: apk - path: app + name: apk-bundle + path: app/bundle + + - name: Download mapping artifact + uses: actions/download-artifact@v4 + with: + name: apk-mapping + path: app/mapping + continue-on-error: true - name: Rename artifacts - run: mv app/releaseMarket/app-releaseMarket.apk app/releaseMarket/pezkuwi-wallet-android-${{ github.event.inputs.app_version }}.apk + run: mv app/bundle/releaseMarket/app-releaseMarket.aab app/bundle/releaseMarket/pezkuwi-wallet-android-${{ github.event.inputs.app_version }}.aab - name: Market publication uses: r0adkll/upload-google-play@v1 with: serviceAccountJsonPlainText: ${{ secrets.CREDENTIAL_FILE_CONTENT }} packageName: io.pezkuwichain.wallet - releaseFiles: app/releaseMarket/pezkuwi-wallet-android-${{ github.event.inputs.app_version }}.apk - track: production # One of production, beta, alpha, internalsharing, internal, or a custom track name (case sensitive) - status: draft # One of "completed", "inProgress", "halted", "draft" + releaseFiles: app/bundle/releaseMarket/pezkuwi-wallet-android-${{ github.event.inputs.app_version }}.aab + track: production + status: draft inAppUpdatePriority: 2 - userFraction: 1.0 # Percentage of users who should get the staged version of the app. Defaults to 1.0 - whatsNewDirectory: distribution/whatsnew # The directory of localized "whats new" files to upload as the release notes. The files contained in the whatsNewDirectory MUST use the pattern whatsnew- where LOCALE is using the BCP 47 format - mappingFile: app/build/outputs/mapping/release/mapping.txt # The mapping.txt file used to de-obfuscate your stack traces from crash reports - debugSymbols: app/intermediates/merged_native_libs/release/out/lib + whatsNewDirectory: distribution/whatsnew + mappingFile: app/mapping/releaseMarket/mapping.txt diff --git a/distribution/whatsnew/whatsnew-ku b/distribution/whatsnew/whatsnew-ku deleted file mode 100644 index 4cdebb8..0000000 --- a/distribution/whatsnew/whatsnew-ku +++ /dev/null @@ -1,7 +0,0 @@ -Pezkuwi Wallet - Deriyê we yê ekosîstema blockchain a Pezkuwi. - -- Şandin û wergirtina tokenên HEZ -- Staking bi riya nomination pool li ser Asset Hub -- Panela Pezkuwi ya ku rol û pûana pêbaweriyê nîşan dide -- Piştgiriya pir-zincîran ji bo ekosîstema Polkadot -- Birêvebirina hesabê ewledar bi erêkirina biyometrîk