gowalk-cicd 1.0.35 → 1.0.36

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
@@ -1 +1 @@
1
- 1.0.35
1
+ 1.0.36
@@ -1 +1 @@
1
- 1.0.35
1
+ 1.0.36
@@ -1 +1 @@
1
- 1.0.35
1
+ 1.0.36
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gowalk-cicd",
3
- "version": "1.0.35",
3
+ "version": "1.0.36",
4
4
  "description": "Zero-config GitHub Actions delivery for iOS TestFlight and Android Google Play.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -57,6 +57,14 @@ 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' && secrets.GOOGLE_MAPS_IOS_KEY != '' }}
62
+ shell: bash
63
+ env:
64
+ GOOGLE_MAPS_IOS_KEY: ${{ secrets.GOOGLE_MAPS_IOS_KEY }}
65
+ run: |
66
+ umask 077
67
+ printf 'GOOGLE_MAPS_IOS_KEY=%s\n' "$GOOGLE_MAPS_IOS_KEY" > ios/Flutter/MapsKeys.xcconfig
60
68
  - name: Set up Flutter
61
69
  if: ${{ steps.flutter.outputs.enabled == 'true' }}
62
70
  uses: subosito/flutter-action@1a449444c387b1966244ae4d4f8c696479add0b2 # v2.23.0
@@ -306,6 +314,21 @@ jobs:
306
314
  flutter pub get
307
315
  flutter gen-l10n
308
316
  fi
317
+ - name: Materialize restricted Android Maps key
318
+ if: >-
319
+ ${{ steps.mode.outputs.mode == 'local'
320
+ && steps.flutter.outputs.enabled == 'true'
321
+ && secrets.GOOGLE_MAPS_ANDROID_KEY != '' }}
322
+ shell: bash
323
+ env:
324
+ GOOGLE_MAPS_ANDROID_KEY: ${{ secrets.GOOGLE_MAPS_ANDROID_KEY }}
325
+ run: |
326
+ umask 077
327
+ mkdir -p android/app/src/main/res/values
328
+ printf '%s\n' '<?xml version="1.0" encoding="utf-8"?>' \
329
+ '<resources>' \
330
+ " <string name=\"google_maps_key\" translatable=\"false\">$GOOGLE_MAPS_ANDROID_KEY</string>" \
331
+ '</resources>' > android/app/src/main/res/values/google_maps_api.xml
309
332
  - name: Build and sign Android release
310
333
  id: android
311
334
  if: ${{ steps.mode.outputs.mode == 'local' }}