[NO QA] Update build.gradle for hybrid app adhoc builds#53214
Conversation
|
@dominictb Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
|
@Julesssss @jnowakow This seems to be an Adhoc task. Is there anything I need to do? |
|
I assume you don't have to do anything but I'm not sure to be honest |
|
Yeah, I unassigned you. Thanks for commenting! |
| "android.injected.signing.store.file" => './upload-key.keystore', | ||
| "android.injected.signing.store.password" => ENV["ANDROID_UPLOAD_KEYSTORE_PASSWORD"], | ||
| "android.injected.signing.key.alias" => ENV["ANDROID_UPLOAD_KEYSTORE_ALIAS"], | ||
| "android.injected.signing.key.password" => ENV["ANDROID_UPLOAD_KEY_PASSWORD"], |
There was a problem hiding this comment.
Do we use the same signing key for HybridApp builds on App? I thought they might be different
| # iOS: | ||
| # name: Build and deploy iOS for testing | ||
| # needs: [validateActor, getBranchRef] | ||
| # if: ${{ fromJSON(needs.validateActor.outputs.READY_TO_BUILD) }} | ||
| # env: | ||
| # DEVELOPER_DIR: /Applications/Xcode_15.2.0.app/Contents/Developer | ||
| # runs-on: macos-13-xlarge | ||
| # steps: | ||
| # - name: Checkout | ||
| # uses: actions/checkout@v4 | ||
| # with: | ||
| # ref: ${{ github.event.pull_request.head.sha || needs.getBranchRef.outputs.REF }} |
There was a problem hiding this comment.
Can we leave this out of the initial PR please
Julesssss
left a comment
There was a problem hiding this comment.
Running an initial test build as the Android Mobile-Expensify PR has been merged
|
@Julesssss I'm afraid that you can't test this workflow without merging it to main :( You ran old workflow. I've created new one called |
|
@jnowakow ah, I must misunderstand. I ran the workflow that exists on the spefic branch |
|
Yeah, we have to trigger workflow defined in Please check if you can see |
|
Ah no I can't see that one. I suppose it makes sense we're only seeing the workflows that exist on So we would merge, then test the workflow manually for now? |
|
Yeah, I think that it's the easiest way to test this out. Not sure if there is option to run this from here :( |
|
Sounds good to me. Are these Action errors fixable before we do that?
|
|
Yeah, sorry, I missed one element. Should be fixed right now |
| required: true | ||
| required: false | ||
| GITHUB_TOKEN: | ||
| description: "Github token for authentication" | ||
| default: "${{ github.token }}" | ||
| ANDROID: | ||
| description: "Android job result ('success', 'failure', 'cancelled', or 'skipped')" | ||
| required: true | ||
| required: false | ||
| DESKTOP: | ||
| description: "Desktop job result ('success', 'failure', 'cancelled', or 'skipped')" | ||
| required: true | ||
| required: false | ||
| IOS: | ||
| description: "iOS job result ('success', 'failure', 'cancelled', or 'skipped')" | ||
| required: true | ||
| required: false | ||
| WEB: | ||
| description: "Web job result ('success', 'failure', 'cancelled', or 'skipped')" | ||
| required: true | ||
| required: false |
There was a problem hiding this comment.
Won't this change will affect our existing builds?
There was a problem hiding this comment.
I don't think so. This action is only used in testBuild.yml where all four platforms are passed. I modified the script so it checks if given platform is included so there shouldn't be any problems
There was a problem hiding this comment.
Okay thanks. Once last question: If we are now checking for the script elsewhere, why was this change necessary? It seems to me that requiring at the action level is a bit safer than a check deeper within a script.
There was a problem hiding this comment.
action.yml is file with metadata and specifies input. I modified the script so not all platforms are required. If input for given platform is not specified there will be N/A in table with statuses and links.
It's probably not ideal but I wanted to reuse already written action
There was a problem hiding this comment.
Ah okay. So We are reusing action logic, but need to account for platforms not being provided. It sounds reasonable.
Julesssss
left a comment
There was a problem hiding this comment.
Testing out this new HybridApp Android build flow after merge.
Reviewer Checklist
Screenshots/VideosAndroid: NativeAndroid: mWeb ChromeiOS: NativeiOS: mWeb SafariMacOS: Chrome / SafariMacOS: Desktop |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by https://github.com/Julesssss in version: 9.0.70-0 🚀
|
|
🚧 @Julesssss has triggered a test hybrid app build. You can view the workflow run here. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, Desktop, and Web. Happy testing! 🧪🧪
|
|
🚀 Deployed to production by https://github.com/AndrewGable in version: 9.0.70-9 🚀
|


Explanation of Change
This change ensures adhoc build doesn't crash.
Fixed Issues
$ #51636
PROPOSAL: N/A
Tests
Offline tests
QA Steps
N/A
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
N/A
Android: mWeb Chrome
N/A
iOS: Native
N/A
iOS: mWeb Safari
N/A
MacOS: Chrome / Safari
N/A
MacOS: Desktop
N/A