* feat(MM-65147): upgrade to react-native 0.77.3 * basic iOS & Android changes * patch packages * react-native-network-client temporary until fix upstream * local updates * delete patch for react-native-network-client * update react-native-network-client@1.9.0 * update RNN patch package to fix kotlin bug * revert unneeded changes * changes based on PR review * ensure insert not happening if any of the values are null * update watermelondb to 2.81.0 * update watermelon patch file name * update secure-pdf-viewer to use latest lib * fix typescript errors * update podfile.lock * update podfile.lock * update podfile.lock again? * podfile.lock update again * temporarily update hermes engine * temp * fix alamo issue. * revert changes to pod update * pod update vs pod install * remove cache for a bit * revert the pod caching * oops * update podfile.lock again * fix(MM-66825): dynamic patching of 16kb pagesize (#9361) * fix(MM-66825): dynamic patching of 16kb pagesize * fix lint and tsc errors * add npx patch-package * run patcing somewhere else instead, but this will break iOS * move reinstall around * simplify script * expo-image wasn't updating * update caching restore key * using git apply * fix lint issues * readme changes * remove some wrong instructions * remove redundant npx patch-package * update build script
53 lines
1.8 KiB
YAML
53 lines
1.8 KiB
YAML
name: prepare-android-build
|
|
description: Action to prepare environment for android build
|
|
|
|
inputs:
|
|
sign:
|
|
description: Flag to enable android package signing
|
|
default: "true"
|
|
|
|
runs:
|
|
using: composite
|
|
steps:
|
|
- name: ci/prepare-mobile-build
|
|
uses: ./.github/actions/prepare-mobile-build
|
|
|
|
- name: ci/apply-16kb-pagesize-patch
|
|
shell: bash
|
|
run: |
|
|
echo "::group::Apply 16KB page size compatibility patch"
|
|
npm run apply-16kb-pagesize-patch
|
|
echo "::endgroup::"
|
|
|
|
- name: ci/setup-java
|
|
uses: actions/setup-java@v4
|
|
with:
|
|
distribution: temurin
|
|
java-version: "17"
|
|
|
|
- name: ci/jetify-android-libraries
|
|
shell: bash
|
|
run: |
|
|
echo "::group::jetify-android-libraries"
|
|
./node_modules/.bin/jetify
|
|
echo "::endgroup::"
|
|
|
|
- name: ci/checkout-private-repo
|
|
if: ${{ inputs.sign == 'true' }}
|
|
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
|
with:
|
|
repository: mattermost/mattermost-mobile-private
|
|
token: ${{ env.MATTERMOST_BUILD_GH_TOKEN }}
|
|
path: ${{ github.workspace }}/mattermost-mobile-private
|
|
|
|
- name: ci/append-keystore-to-android-build-for-signing
|
|
if: ${{ inputs.sign == 'true' }}
|
|
shell: bash
|
|
run: |
|
|
echo "::group::append-keystore-to-android-build-for-signing"
|
|
cp ${{ github.workspace }}/mattermost-mobile-private/android/${STORE_FILE} android/app/${STORE_FILE}
|
|
echo "" | tee -a android/gradle.properties > /dev/null
|
|
echo MATTERMOST_RELEASE_STORE_FILE=${STORE_FILE} | tee -a android/gradle.properties > /dev/null
|
|
echo ${STORE_ALIAS} | tee -a android/gradle.properties > /dev/null
|
|
echo ${STORE_PASSWORD} | tee -a android/gradle.properties > /dev/null
|
|
echo "::endgroup::"
|