Skip to content

Commit c751423

Browse files
committed
fix: change APP_ID
1 parent 36153b1 commit c751423

File tree

1 file changed

+16
-5
lines changed

1 file changed

+16
-5
lines changed

.github/workflows/run_build_example.yml

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ on:
7575
# Caused by: org.gradle.api.GradleException: You are applying Flutter's app_plugin_loader Gradle plugin imperatively using the apply script method, which is not possible anymore. Migrate to applying Gradle plugins with the declarative plugins block: https://flutter.dev/to/flutter-gradle-plugin-apply
7676
default: '3.24.5'
7777
secrets:
78-
APP_ID:
78+
APP_ID_RTM:
7979
required: true
8080
BUILD_PROVISION_PROFILE_UUID:
8181
required: true
@@ -133,7 +133,7 @@ jobs:
133133
strategy:
134134
fail-fast: false
135135
matrix:
136-
os: [ubuntu-latest, macos-latest, windows-latest]
136+
os: [ubuntu-latest, macos-14, windows-latest]
137137
platform: ${{ fromJson(needs.split-platforms.outputs.platforms) }}
138138
exclude:
139139
- os: ubuntu-latest
@@ -238,7 +238,7 @@ jobs:
238238

239239
- name: Build
240240
env:
241-
DEFAULT_BUILD_APP_ID: ${{ secrets.APP_ID }}
241+
DEFAULT_BUILD_APP_ID: ${{ secrets.APP_ID_RTM }}
242242
shell: bash
243243
working-directory: example
244244
run: |
@@ -276,7 +276,7 @@ jobs:
276276
fi
277277
278278
build_arguments="--dart-define=TEST_APP_ID=$DEFAULT_BUILD_APP_ID --dart-define=TEST_TOKEN="" --dart-define=TEST_CHANNEL_ID="testapi" --dart-define=INTERNAL_TESTING=true"
279-
279+
echo "build arguments: $build_arguments"
280280
# append extra build arguments
281281
if [ -n "$extra_build_arguments" ]; then
282282
build_arguments="$build_arguments $extra_build_arguments"
@@ -288,8 +288,19 @@ jobs:
288288
fi
289289
290290
# run build command
291+
echo "==========================="
292+
echo "build command: $build_command $build_options $build_arguments"
291293
$build_command $build_options $build_arguments
292-
294+
295+
if [ -n "$DEFAULT_BUILD_APP_ID" ] && [ ${#DEFAULT_BUILD_APP_ID} -gt 8 ]; then
296+
first_4_chars="${DEFAULT_BUILD_APP_ID:0:4}"
297+
last_4_chars="${DEFAULT_BUILD_APP_ID: -4}"
298+
echo "DEFAULT_BUILD_APP_ID: ${first_4_chars}****${last_4_chars}"
299+
else
300+
echo "DEFAULT_BUILD_APP_ID: $DEFAULT_BUILD_APP_ID"
301+
fi
302+
echo "DEFAULT_BUILD_APP_ID: $DEFAULT_BUILD_APP_ID"
303+
echo "==========================="
293304
# create output directory if it doesn't exist
294305
if [ ! -d "../output" ]; then
295306
mkdir -p ../output

0 commit comments

Comments
 (0)