-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[NO QA] Update build.gradle for hybrid app adhoc builds #53214
[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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we use the same signing key for HybridApp builds on App
? I thought they might be different
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# 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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we leave this out of the initial PR please
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Won't this change will affect our existing builds?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah okay. So We are reusing action logic, but need to account for platforms not being provided. It sounds reasonable.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.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