Skip to content

Commit

Permalink
v2.1 Flutter - Fix README
Browse files Browse the repository at this point in the history
  • Loading branch information
ErisMik committed Dec 6, 2024
1 parent f8323c0 commit df8a7ff
Show file tree
Hide file tree
Showing 3 changed files with 104 additions and 132 deletions.
32 changes: 19 additions & 13 deletions .github/workflows/flutter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,25 +39,31 @@ jobs:
- name: Install dependencies
run: flutter pub get

- name: Prepare demo
run: dart scripts/prepare_demo.dart en

- name: Run integration tests
run: flutter test integration_test

test-ios:
name: Test iOS
runs-on: pv-ios
name: Test iOS
runs-on: pv-ios

steps:
- uses: actions/checkout@v3

steps:
- uses: actions/checkout@v3
- name: Copy test_resources
run: ./copy_test_resources.sh

- name: Copy test_resources
run: ./copy_test_resources.sh
- name: Inject AppID
run: sed -i '.bak' 's:{TESTING_ACCESS_KEY_HERE}:${{secrets.PV_VALID_ACCESS_KEY}}:'
integration_test/app_test.dart

- name: Inject AppID
run: sed -i '.bak' 's:{TESTING_ACCESS_KEY_HERE}:${{secrets.PV_VALID_ACCESS_KEY}}:'
integration_test/app_test.dart
- name: Install dependencies
run: flutter pub get

- name: Install dependencies
run: flutter pub get
- name: Prepare demo
run: dart scripts/prepare_demo.dart en

- name: Run integration tests
run: flutter test integration_test
- name: Run integration tests
run: flutter test integration_test
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,11 @@ Replace `"${YOUR_ACCESS_KEY_HERE}"` in the file [MainActivity.java](./demo/andro

To run the Cheetah demo on Android or iOS with Flutter, you must have the [Flutter SDK](https://flutter.dev/docs/get-started/install) installed on your system. Once installed, you can run `flutter doctor` to determine any other missing requirements for your relevant platform. Once your environment has been set up, launch a simulator or connect an Android/iOS device.

Before launching the app, use the [copy_assets.sh](./demo/flutter/copy_assets.sh) script to copy the cheetah demo model file into the demo project. (**NOTE**: on Windows, Git Bash or another bash shell is required, or you will have to manually copy the context into the project.).
Run the `prepare_demo` script from [demo/flutter](.) with a language code to set up the demo in the language of your choice (e.g. `de` -> German, `ko` -> Korean). To see a list of available languages, run `prepare_demo` without a language code.

```console
dart scripts/prepare_demo.dart ${LANGUAGE}
```

Replace `"${YOUR_ACCESS_KEY_HERE}"` in the file [main.dart](./demo/flutter/lib/main.dart) with your `AccessKey`.

Expand Down
Loading

0 comments on commit df8a7ff

Please sign in to comment.