Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .github/workflows/buildAdHoc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ on:
description: GitHub username who triggered the build
type: string
required: true
FORCE_NATIVE_BUILD:
description: Force a full native build, bypassing Rock remote cache
type: string
default: 'false'

jobs:
postGitHubCommentBuildStarted:
Expand Down Expand Up @@ -153,6 +157,10 @@ jobs:
with:
IS_HYBRID_BUILD: 'true'

- name: Setup Gradle
# v4
uses: gradle/actions/setup-gradle@06832c7b30a0129d7fb559bcc6e43d26f6374244

- name: Run grunt build
run: |
cd Mobile-Expensify
Expand Down Expand Up @@ -209,6 +217,7 @@ jobs:
GITHUB_TOKEN: ${{ github.token }}
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
IS_HYBRID_APP: true
FORCE_NATIVE_BUILD: ${{ inputs.FORCE_NATIVE_BUILD == 'true' && github.run_id || '' }}
with:
variant: 'Adhoc'
sign: true
Expand Down Expand Up @@ -341,6 +350,7 @@ jobs:
GITHUB_TOKEN: ${{ github.token }}
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
IS_HYBRID_APP: true
FORCE_NATIVE_BUILD: ${{ inputs.FORCE_NATIVE_BUILD == 'true' && github.run_id || '' }}
with:
destination: device
re-sign: true
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/testBuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ on:
description: Should build android app?
type: boolean
default: true
FORCE_NATIVE_BUILD:
description: Force a full native build, bypassing Rock remote cache
type: boolean
default: false

jobs:
prep:
Expand Down Expand Up @@ -158,4 +162,5 @@ jobs:
BUILD_IOS: ${{ inputs.IOS && 'true' || 'false' }}
BUILD_ANDROID: ${{ inputs.ANDROID && 'true' || 'false' }}
TRIGGER_ACTOR: ${{ github.actor }}
FORCE_NATIVE_BUILD: ${{ inputs.FORCE_NATIVE_BUILD && 'true' || 'false' }}
secrets: inherit
2 changes: 1 addition & 1 deletion rock.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export default {
android: platformAndroid({sourceDir: isHybrid ? './Mobile-Expensify/Android' : './android'}),
},
fingerprint: {
env: ['USE_WEB_PROXY', 'PUSHER_DEV_SUFFIX', 'SECURE_NGROK_URL', 'NGROK_URL', 'USE_NGROK'],
env: ['USE_WEB_PROXY', 'PUSHER_DEV_SUFFIX', 'SECURE_NGROK_URL', 'NGROK_URL', 'USE_NGROK', 'FORCE_NATIVE_BUILD'],
ignorePaths: ['Mobile-Expensify/Android/assets/app/shared/bundle.js'],
},
// Forces React Native to build from source to include our custom patches
Expand Down
Loading