gowalk-cicd 1.0.35 → 1.0.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -21,6 +21,12 @@ Writes three things into your repo:
|
|
|
21
21
|
|
|
22
22
|
Re-run the same command anytime to pull the latest version.
|
|
23
23
|
|
|
24
|
+
Flutter map apps may also provide `GOOGLE_MAPS_IOS_KEY` and
|
|
25
|
+
`GOOGLE_MAPS_ANDROID_KEY` as Actions secrets. When present, the workflow writes
|
|
26
|
+
the iOS key to `ios/Flutter/MapsKeys.xcconfig` and the Android key to
|
|
27
|
+
`android/app/src/main/res/values/google_maps_api.xml` as mode-restricted runner
|
|
28
|
+
files. Apps without either secret are unchanged.
|
|
29
|
+
|
|
24
30
|
## iOS credentials
|
|
25
31
|
|
|
26
32
|
1. Create an **App Store Connect API key** with the **App Manager** role
|
package/action/.daemux-version
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.0.
|
|
1
|
+
1.0.37
|
|
@@ -1 +1 @@
|
|
|
1
|
-
1.0.
|
|
1
|
+
1.0.37
|
|
@@ -1 +1 @@
|
|
|
1
|
-
1.0.
|
|
1
|
+
1.0.37
|
package/package.json
CHANGED
package/templates/deploy.yml
CHANGED
|
@@ -57,6 +57,15 @@ jobs:
|
|
|
57
57
|
else
|
|
58
58
|
echo "enabled=false" >> "$GITHUB_OUTPUT"
|
|
59
59
|
fi
|
|
60
|
+
- name: Materialize restricted iOS Maps key
|
|
61
|
+
if: ${{ steps.flutter.outputs.enabled == 'true' }}
|
|
62
|
+
shell: bash
|
|
63
|
+
env:
|
|
64
|
+
GOOGLE_MAPS_IOS_KEY: ${{ secrets.GOOGLE_MAPS_IOS_KEY }}
|
|
65
|
+
run: |
|
|
66
|
+
[ -n "${GOOGLE_MAPS_IOS_KEY:-}" ] || exit 0
|
|
67
|
+
umask 077
|
|
68
|
+
printf 'GOOGLE_MAPS_IOS_KEY=%s\n' "$GOOGLE_MAPS_IOS_KEY" > ios/Flutter/MapsKeys.xcconfig
|
|
60
69
|
- name: Set up Flutter
|
|
61
70
|
if: ${{ steps.flutter.outputs.enabled == 'true' }}
|
|
62
71
|
uses: subosito/flutter-action@1a449444c387b1966244ae4d4f8c696479add0b2 # v2.23.0
|
|
@@ -306,6 +315,21 @@ jobs:
|
|
|
306
315
|
flutter pub get
|
|
307
316
|
flutter gen-l10n
|
|
308
317
|
fi
|
|
318
|
+
- name: Materialize restricted Android Maps key
|
|
319
|
+
if: >-
|
|
320
|
+
${{ steps.mode.outputs.mode == 'local'
|
|
321
|
+
&& steps.flutter.outputs.enabled == 'true' }}
|
|
322
|
+
shell: bash
|
|
323
|
+
env:
|
|
324
|
+
GOOGLE_MAPS_ANDROID_KEY: ${{ secrets.GOOGLE_MAPS_ANDROID_KEY }}
|
|
325
|
+
run: |
|
|
326
|
+
[ -n "${GOOGLE_MAPS_ANDROID_KEY:-}" ] || exit 0
|
|
327
|
+
umask 077
|
|
328
|
+
mkdir -p android/app/src/main/res/values
|
|
329
|
+
printf '%s\n' '<?xml version="1.0" encoding="utf-8"?>' \
|
|
330
|
+
'<resources>' \
|
|
331
|
+
" <string name=\"google_maps_key\" translatable=\"false\">$GOOGLE_MAPS_ANDROID_KEY</string>" \
|
|
332
|
+
'</resources>' > android/app/src/main/res/values/google_maps_api.xml
|
|
309
333
|
- name: Build and sign Android release
|
|
310
334
|
id: android
|
|
311
335
|
if: ${{ steps.mode.outputs.mode == 'local' }}
|