Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 17 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,15 @@ jobs:
- name: Setup Rust
uses: dtolnay/rust-toolchain@stable

- name: Setup Flutter
uses: subosito/flutter-action@v2
with:
channel: stable

- name: Setup Dart
uses: dart-lang/setup-dart@v1
with:
sdk: "3.9.2"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

since our bdk_demo is a flutter app we'd have to install flutter in the job

      - name: Setup Flutter
        uses: subosito/flutter-action@v2
        with:
          channel: stable

- name: Install lipo (macOS)
if: matrix.os == 'macos-latest'
Expand All @@ -40,11 +47,19 @@ jobs:
- name: Pub get
run: dart pub get

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so then we add this before formating/analzing bdk_demo/

      - name: Pub get (bdk_demo)
        working-directory: bdk_demo
        run: flutter pub get

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

after the flutter pub get stepp, we can also do flutter analyze for bdk_demo/

      - name: Analyze (bdk_demo)
        working-directory: bdk_demo
        run: flutter analyze

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe in the future when we add widget/integration test to demo we can follow up with

      - name: Test (bdk_demo)
        working-directory: bdk_demo
        run: flutter test

- name: Pub get (bdk_demo)
working-directory: bdk_demo
run: flutter pub get

- name: Format check
run: dart format --output=none --set-exit-if-changed .
run: dart format --output=none --set-exit-if-changed lib test examples bdk_demo/lib bdk_demo/test

- name: Analyze
run: dart analyze --fatal-infos --fatal-warnings
run: dart analyze --fatal-infos --fatal-warnings lib test examples

- name: Analyze (bdk_demo)
working-directory: bdk_demo
run: flutter analyze

- name: Run tests
run: |
Expand Down
2 changes: 1 addition & 1 deletion bdk-ffi

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had to regenerate our bindings on this update, it was successful, I can see some new types were added

7 changes: 2 additions & 5 deletions bdk_demo/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,7 @@ class _MyHomePageState extends State<MyHomePage> {
color: _success ? Colors.green : Colors.grey,
),
const SizedBox(height: 20),
const Text(
'BDK Network Type:',
style: TextStyle(fontSize: 20),
),
const Text('BDK Network Type:', style: TextStyle(fontSize: 20)),
Text(
_networkName,
style: Theme.of(context).textTheme.headlineMedium?.copyWith(
Expand Down Expand Up @@ -105,4 +102,4 @@ class _MyHomePageState extends State<MyHomePage> {
),
);
}
}
}