Skip to content
Merged
Show file tree
Hide file tree
Changes from 5 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
6 changes: 4 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ jobs:

- 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 @@ -41,10 +43,10 @@ jobs:
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: Format check
run: dart format --output=none --set-exit-if-changed .
run: dart format --output=none --set-exit-if-changed lib test examples

- name: Analyze
run: dart analyze --fatal-infos --fatal-warnings
run: dart analyze --fatal-infos --fatal-warnings lib test examples
Comment on lines 43 to 58

Choose a reason for hiding this comment

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

currently the workflow formats/analyzes only lib, test & examples, if we want ci to guard the demo we should add bdk_demo/lib and maybe bdk_demo/tests


- 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> {
),
);
}
}
}