Skip to content

Commit 2437e2e

Browse files
committed
fixed some of the paths for ios, and flutter flow
1 parent acf392a commit 2437e2e

File tree

1 file changed

+9
-6
lines changed
  • src/orbs/getting-started-smoke-test

1 file changed

+9
-6
lines changed

src/orbs/getting-started-smoke-test/orb.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,18 +55,21 @@ commands:
5555
git clone --branch ${FLUTTER_BRANCH} https://github.com/flutter/flutter.git ${FLUTTER_HOME}
5656
(yes || true) | flutter doctor --android-licenses && flutter doctor
5757
flutter precache
58-
setup-amplify-project:
58+
setup-amplify-flutter-project:
5959
description: Setup Amplify project
6060
steps:
6161
- run:
6262
name: Setting up dependences
63-
command: cd amplified_todo && flutter pub add amplify_flutter && flutter pub add amplify_datastore && flutter pub add -d integration_test
63+
command: cd amplified_todo && flutter pub add amplify_flutter && flutter pub add amplify_datastore
64+
- run:
65+
name: Adding integration_test package
66+
command: 'cd amplified_todo && sed -i -e "s/dev_dependencies:/dev_dependencies:\n integration_test:\n sdk: flutter/" ./pubspec.yaml && cat ./pubspec.yaml'
6467
- run:
6568
name: Update outdated dependences
6669
command: cd amplified_todo && flutter pub upgrade --major-versions
6770
- run:
6871
name: Adding Amplify code
69-
command: cp canaries/amplifyconfiguration.dart amplified_todo/lib && cp canaries/main.dart amplified_todo/lib && cp -r canaries/integration_test amplified_todo/integration_test
72+
command: mv canaries/dummy_amplifyconfiguration.dart canaries/amplifyconfiguration.dart && cp canaries/amplifyconfiguration.dart amplified_todo/lib && cp canaries/main.dart amplified_todo/lib && cp -r canaries/integration_test amplified_todo/integration_test
7073

7174

7275
jobs:
@@ -243,7 +246,7 @@ jobs:
243246
- run:
244247
name: Update Android version
245248
command: cd amplified_todo && sed -i -e "s/minSdkVersion .*/minSdkVersion 21/" ./android/app/build.gradle && cat ./android/app/build.gradle
246-
- setup-amplify-project
249+
- setup-amplify-flutter-project
247250
- flutter-orb/install_android_gradle:
248251
app-dir: ./amplified_todo
249252
- android/create-avd:
@@ -270,7 +273,7 @@ jobs:
270273
- run:
271274
name: Setting up project
272275
command: flutter create amplified_todo
273-
- setup-amplify-project
276+
- setup-amplify-flutter-project
274277
- run:
275278
name: Update ios version
276279
command: cd amplified_todo && sed -i -e "s/# platform :ios, '9.0'/platform :ios, '13.0'/" ./ios/Podfile
@@ -289,7 +292,7 @@ jobs:
289292
simulator-os-version:
290293
type: string
291294
default: "15.4"
292-
working_directory: ~/ios-canaries/example
295+
working_directory: ~/ios-canaries/canaries/example
293296
macos:
294297
xcode: <<parameters.xcode-version>>
295298
environment:

0 commit comments

Comments
 (0)