-
-
Notifications
You must be signed in to change notification settings - Fork 4
Build FWLite for iOS #1617
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
base: develop
Are you sure you want to change the base?
Build FWLite for iOS #1617
Conversation
I resolved a build issue where the iOS MAUI build was looking for appicon but couldn't find it. It appears that MAUI iOS has hard-coded this because I cannot find it referenced anywhere.
iOS expects app icons to be perfectly square at 1024x1024 so I decided to tweak the SVGs to be perfectly square. Also produced some PNGs
This tells the content area to add iOS safe area margin so that there are not UI collisions with the iOS status bar. See https://learn.microsoft.com/en-us/dotnet/maui/ios/platform-specifics/page-safe-area-layout?view=net-maui-9.0
We need to specify the name of the Apple Distribution certificate for SIL
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
fc5e871
to
3499af6
Compare
.github/workflows/fw-lite-ios.yaml
Outdated
name: Publish FW Lite app for iOS | ||
#needs: build-and-test | ||
timeout-minutes: 30 | ||
runs-on: macos-latest | ||
env: | ||
APPLE_CERTIFICATE: ${{ secrets.SIL_APPLE_DISTRIBUTION_CERTIFICATE_BASE64 }} | ||
APP_STORE_CONNECT_KEY_ID: ${{ secrets.APPLE_APPSTORECONNECT_KEY_ID }} | ||
APP_STORE_CONNECT_ISSUER_ID: ${{ secrets.APPLE_APPSTORECONNECT_ISSUER_ID }} | ||
APP_STORE_CONNECT_PRIVATE_KEY: ${{ secrets.APPLE_APPSTORECONNECT_PRIVATE_KEY }} | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: true | ||
#- uses: actions/download-artifact@v4 | ||
#with: | ||
#name: fw-lite-viewer-js | ||
#path: ${{ env.VIEWER_BUILD_OUTPUT_DIR }} | ||
- uses: actions/setup-dotnet@v4 | ||
with: | ||
dotnet-version: '9.x' | ||
- uses: maui-actions/apple-provisioning@v4 | ||
with: | ||
certificate: APPLE_CERTIFICATE | ||
certificate-passphrase: ${{ secrets.SIL_APPLE_DISTRIBUTION_CERTIFICATE_PASSPHRASE }} | ||
bundle-identifiers: 'org.sil.FwLiteMaui' | ||
profile-types: 'IOS_APP_STORE' | ||
|
||
#- name: Setup Maui | ||
#run: dotnet workload install maui | ||
|
||
#- name: Publish iOS | ||
#working-directory: backend/FwLite/FwLiteMaui | ||
#run: dotnet publish -f net9.0-ios --artifacts-path ../artifacts | ||
|
||
#- name: Upload FWLite App artifacts | ||
#uses: actions/upload-artifact@v4 | ||
#with: | ||
#name: fw-lite-ios | ||
#if-no-files-found: error | ||
## path looks like this: backend/FwLite/artifacts/publish/FwLiteMaui/release_net9.0-android/org.sil.fwlitemaui-signed.apk | ||
#path: backend/FwLite/artifacts/publish/* |
Check warning
Code scanning / CodeQL
Workflow does not contain permissions Medium
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.
so I think the reference to this file is in backend/FwLite/FwLiteMaui/Platforms/iOS/Info.plist
could we change the XSAppIconAssets
key there to point at the existing icon? Right now it's Assets.xcassets/appicon.appiconset
so maybe it just needs to be changed to Assets.xcassets/logo_light.appiconset
?
This is a draft PR to get a iOS publishing workflow in place