Skip to content
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

ci: fix github actions #108

Merged
merged 29 commits into from
Sep 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
c081c90
ci: fix github actions
fc-santos Aug 30, 2024
f3d7007
ci: fix typo github actions
fc-santos Aug 30, 2024
73a6b91
ci: fix APS env
fc-santos Aug 30, 2024
6d301bd
ci: use prov uuid
fc-santos Aug 30, 2024
10af48e
fix: dependencies of ios (podfile)
fc-santos Aug 30, 2024
8701634
fix: dependencies of ios (podfile) 2
fc-santos Aug 30, 2024
93e4658
maj cert
jcdrouin21 Aug 30, 2024
99c3e0d
update release config
jcdrouin21 Aug 30, 2024
403607d
proj settings
jcdrouin21 Aug 30, 2024
256e33f
Automatic signing
jcdrouin21 Aug 30, 2024
25bf465
info.plist
jcdrouin21 Aug 30, 2024
4897c5a
fix: pbxproj
fc-santos Aug 30, 2024
c665231
fix: mise à jour de release.xconfig
fc-santos Sep 3, 2024
046091d
fix: mise à jour de release.xconfig
jcdrouin21 Sep 3, 2024
df82936
Fix release.scconfig
jcdrouin21 Sep 3, 2024
96b37b3
Fix release.xcconfig
jcdrouin21 Sep 3, 2024
dfd0570
Fix release.xcconfig
jcdrouin21 Sep 3, 2024
6f522cb
Fix project.pbxproj
jcdrouin21 Sep 3, 2024
fd8dd93
Try release.xcconfig
jcdrouin21 Sep 3, 2024
29c9c79
Try release.xcconfig
jcdrouin21 Sep 3, 2024
14a4a00
Try fix in project.pbxproj
jcdrouin21 Sep 4, 2024
9deb64c
try fix ios pipeline
jcdrouin21 Sep 4, 2024
f1a308b
remove GoogleService-Info
jcdrouin21 Sep 4, 2024
15fa91d
fix project.pbxproj
jcdrouin21 Sep 4, 2024
c9881df
fix project.pbxproj
jcdrouin21 Sep 4, 2024
79247f8
fix pipeline
jcdrouin21 Sep 4, 2024
36065d5
fix pipeline
jcdrouin21 Sep 4, 2024
dfed3e8
fix pipeline
jcdrouin21 Sep 4, 2024
b3d79ed
Refactor naming qcwllet -> portefeuilleQc
jcdrouin21 Sep 4, 2024
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
2 changes: 1 addition & 1 deletion .github/workflows/actions/export-ios-archive/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ runs:
uses: actions/upload-artifact@v4
with:
name: ${{ inputs.ouput_artifact_ref }}
path: export/BCWallet.ipa
path: export/PortefeuilleQc.ipa
if-no-files-found: error
retention-days: 1
2 changes: 1 addition & 1 deletion .github/workflows/actions/run-test-harness/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ inputs:
required: true
default: "-w bc_wallet"
BUILD_NAME:
description: "Build Name eg. -b BCWallet.ipa"
description: "Build Name eg. -b QCWallet.ipa"
required: false
default: ""
ISSUER_AGENT:
Expand Down
13 changes: 7 additions & 6 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
"KEYCHIAN_PASSWD"
"PROVISIONING_PROFILE"
"PLAY_STORE_JKS_BASE64"
"PLAY_STORE_JSK_ALIAS"
"PLAY_STORE_JKS_ALIAS"
"PLAY_STORE_JKS_PASSWD"
)
for var in "${required_env_vars[@]}"; do
Expand Down Expand Up @@ -165,9 +165,10 @@ jobs:
echo "OCA_URL=${OCA_URL}" >>.env

- name: Update APS environment
working-directory: app/ios/AriesBifold
run: |
sed -i '' 's/development/production/g' app/ios/AriesBifold/AriesBifold.entitlements
cat app/ios/AriesBifold/AriesBifold.entitlements
sed -i '' 's/development/production/g' AriesBifold.entitlements
cat AriesBifold.entitlements

- name: Create prod signing credentials
uses: ./.github/workflows/actions/create-ios-sig-creds
Expand Down Expand Up @@ -215,7 +216,7 @@ jobs:
version_name: ${{ env.appBuildVersion }}

build-android:
needs: [check-android-secrets]
needs: [check-secrets, check-vars]
runs-on: ubuntu-22.04
permissions:
contents: read
Expand Down Expand Up @@ -338,7 +339,7 @@ jobs:
node ./deploy-to-playstore.js

release:
if: github.ref_name == 'main' && needs.check-android-secrets.outputs.isReleaseBuild == 'true' && needs.check-ios-secrets.outputs.isReleaseBuild == 'true'
if: github.ref_name == 'main'
needs: [build-ios, build-android]
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -399,7 +400,7 @@ jobs:
echo "ANDROID_APP_URL=lt://$(jq -r '.app_id' $HOME/lt_android_resp.json)" >> "$GITHUB_OUTPUT"

run-on-device-tests:
if: github.ref_name == 'main' && needs.check-android-secrets.outputs.isReleaseBuild == 'true' && needs.check-ios-secrets.outputs.isReleaseBuild == 'true'
if: github.ref_name == 'main'
needs: [ship-to-lambdatest]
runs-on: ubuntu-22.04
strategy:
Expand Down
2 changes: 1 addition & 1 deletion app/app.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"name": "QCWallet",
"name": "PortefeuilleQc",
"displayName": "Portefeuille QC"
}
221 changes: 94 additions & 127 deletions app/ios/AriesBifold.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion app/ios/AriesBifold/AppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ @implementation AppDelegate
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {

RCTBridge *bridge = [[RCTBridge alloc] initWithDelegate:self launchOptions:launchOptions];
RCTRootView *rootView = [[RCTRootView alloc] initWithBridge:bridge moduleName:@"QCWallet" initialProperties:nil];
RCTRootView *rootView = [[RCTRootView alloc] initWithBridge:bridge moduleName:@"PortefeuilleQc" initialProperties:nil];

if (@available(iOS 13.0, *)) {
rootView.backgroundColor = [UIColor systemBackgroundColor];
Expand Down
176 changes: 88 additions & 88 deletions app/ios/AriesBifold/Info.plist
Original file line number Diff line number Diff line change
@@ -1,98 +1,98 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>fr</string>
<key>CFBundleDisplayName</key>
<string>Portefeuille QC</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>$(PRODUCT_NAME)</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>$(MARKETING_VERSION)</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleURLSchemes</key>
<array>
<string>qcwallet</string>
</array>
</dict>
<dict>
<key>CFBundleURLSchemes</key>
<array>
<string>didcomm</string>
</array>
</dict>
</array>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
<key>ITSAppUsesNonExemptEncryption</key>
<false/>
<key>LSApplicationQueriesSchemes</key>
<array>
<string>ca.qc.gouv.portefeuillemobileqc</string>
</array>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>NSAppTransportSecurity</key>
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>fr</string>
<key>CFBundleDisplayName</key>
<string>Portefeuille QC</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>$(PRODUCT_NAME)</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>$(MARKETING_VERSION)</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleURLSchemes</key>
<array>
<string>qcwallet</string>
</array>
</dict>
<dict>
<key>CFBundleURLSchemes</key>
<array>
<string>didcomm</string>
</array>
</dict>
</array>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
<key>ITSAppUsesNonExemptEncryption</key>
<false/>
<key>LSRequiresIPhoneOS</key>
<key>NSAllowsArbitraryLoads</key>
<true/>
<key>LSApplicationQueriesSchemes</key>
<array>
<string>ca.qc.gouv.id.servicescard</string>
</array>
<key>NSAppTransportSecurity</key>
<key>NSExceptionDomains</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
<key>NSExceptionDomains</key>
<key>localhost</key>
<dict>
<key>localhost</key>
<dict>
<key>NSExceptionAllowsInsecureHTTPLoads</key>
<true/>
</dict>
<key>NSExceptionAllowsInsecureHTTPLoads</key>
<true/>
</dict>
</dict>
<key>NSCameraUsageDescription</key>
<string>Camera used for in-app QR Code scanning</string>
<key>NSFaceIDUsageDescription</key>
<string>$(PRODUCT_NAME) wants to use your FaceID/TouchID to authenticate your identity</string>
<key>NSLocationWhenInUseUsageDescription</key>
<string>We include this permission because a library our app uses references it, even though we don't use it directly.</string>
<key>UIAppFonts</key>
<array>
<string>MaterialIcons.ttf</string>
<string>MaterialCommunityIcons.ttf</string>
<string>BCSans-Bold.ttf</string>
<string>BCSans-BoldItalic.ttf</string>
<string>BCSans-Italic.ttf</string>
<string>BCSans-Regular.ttf</string>
</array>
<key>UILaunchStoryboardName</key>
<string>LaunchScreen</string>
<key>UIRequiredDeviceCapabilities</key>
<array>
<string>armv7</string>
</array>
<key>UIRequiresFullScreen</key>
<true/>
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
</array>
<key>UISupportedInterfaceOrientations~ipad</key>
<array>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationPortraitUpsideDown</string>
</array>
<key>UIViewControllerBasedStatusBarAppearance</key>
<false/>
</dict>
</plist>
<key>NSCameraUsageDescription</key>
<string>Camera used for in-app QR Code scanning</string>
<key>NSFaceIDUsageDescription</key>
<string>$(PRODUCT_NAME) wants to use your FaceID/TouchID to authenticate your identity</string>
<key>NSLocationWhenInUseUsageDescription</key>
<string>We include this permission because a library our app uses references it, even though we don't use it directly.</string>
<key>UIAppFonts</key>
<array>
<string>MaterialIcons.ttf</string>
<string>MaterialCommunityIcons.ttf</string>
<string>BCSans-Bold.ttf</string>
<string>BCSans-BoldItalic.ttf</string>
<string>BCSans-Italic.ttf</string>
<string>BCSans-Regular.ttf</string>
</array>
<key>UILaunchStoryboardName</key>
<string>LaunchScreen</string>
<key>UIRequiredDeviceCapabilities</key>
<array>
<string>armv7</string>
</array>
<key>UIRequiresFullScreen</key>
<true/>
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
</array>
<key>UISupportedInterfaceOrientations~ipad</key>
<array>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationPortraitUpsideDown</string>
</array>
<key>UIViewControllerBasedStatusBarAppearance</key>
<false/>
</dict>
</plist>
8 changes: 4 additions & 4 deletions options-dev.plist
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,17 @@
<string>development</string>
<key>provisioningProfiles</key>
<dict>
<key>ca.bc.gov.BCWallet</key>
<string>BC Wallet - Development Jason</string>
<key>ca.qc.gouv.portefeuillemobileqc</key>
<string>Portefeuille Qc</string>
</dict>
<key>signingCertificate</key>
<string>67D6BA0FEC3E43792AABC24ED686303A9E3BB23F</string>
<string>Signing certificate</string>
<key>signingStyle</key>
<string>manual</string>
<key>stripSwiftSymbols</key>
<true/>
<key>teamID</key>
<string>L796QSLV3E</string>
<string>2RST8749NS</string>
<key>thinning</key>
<string>&lt;none&gt;</string>
</dict>
Expand Down
2 changes: 1 addition & 1 deletion options.plist
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<key>provisioningProfiles</key>
<dict>
<key>ca.qc.gouv.portefeuillemobileqc</key>
<string>06adc3cb-97cd-4161-a070-af422c16a441</string>
<string>d17832aa-855e-476a-8741-4cf396a65204</string>
</dict>
</dict>
</plist>
2 changes: 1 addition & 1 deletion patch/Qc/00-setup.patch
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ index 4cfa156..30dc17d 100644
- DEVELOPMENT_TEAM = "";
+ DEVELOPMENT_TEAM = "2RST8749NS";
INFOPLIST_FILE = AriesBifoldTests/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
LD_RUNPATH_SEARCH_PATHS = (
@@ -537,9 +537,10 @@
buildSettings = {
Expand Down
4 changes: 2 additions & 2 deletions release.xcconfig
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
CODE_SIGN_STYLE=Manual
DEVELOPMENT_TEAM=2RST8749NS
PRODUCT_BUNDLE_IDENTIFIER=ca.qc.gouv.portefeuillemobileqc
PROVISIONING_PROFILE_SPECIFIER[sdk=iphoneos*]=Portefeuille Numerique Qc (Ne pas supprimer)
CODE_SIGN_IDENTITY=iPhone Distribution: Ministere de la Cybersecurite et du Numerique (2RST8749NS)
PROVISIONING_PROFILE_SPECIFIER=d17832aa-855e-476a-8741-4cf396a65204
CODE_SIGN_IDENTITY=Apple Distribution: Ministere de la Cybersecurite et du Numerique (2RST8749NS)
Loading