Skip to content

Commit a13be4e

Browse files
committed
fix windows build
1 parent 4b60590 commit a13be4e

File tree

4 files changed

+83
-20
lines changed

4 files changed

+83
-20
lines changed

.github/workflows/build.yaml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Build Windows App
2+
3+
on:
4+
push:
5+
branches: [ main, master ]
6+
pull_request:
7+
branches: [ main, master ]
8+
9+
jobs:
10+
build:
11+
runs-on: windows-latest
12+
13+
steps:
14+
- uses: actions/checkout@v3
15+
16+
- name: Set up Flutter
17+
uses: subosito/flutter-action@v2
18+
with:
19+
channel: 'stable'
20+
21+
- name: Install dependencies
22+
run: cd example && flutter pub get
23+
24+
# - name: Enable Windows Desktop
25+
# run: flutter config --enable-windows-desktop
26+
27+
- name: Build Windows App
28+
run: cd example && flutter build windows
29+
30+
# - name: Upload Build Artifacts
31+
# uses: actions/upload-artifact@v3
32+
# with:
33+
# name: windows-build
34+
# path: build/windows/runner/Release/

.idea/caches/deviceStreaming.xml

Lines changed: 25 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/workspace.xml

Lines changed: 23 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

windows/argon2_ffi_plugin.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,7 @@ void Argon2FfiPlugin::HandleMethodCall(
7272
} else if (IsWindows7OrGreater()) {
7373
version_stream << "7";
7474
}
75-
flutter::EncodableValue response(version_stream.str());
76-
result->Success(&response);
75+
result->Success(flutter::EncodableValue(version_stream.str()));
7776
} else {
7877
result->NotImplemented();
7978
}

0 commit comments

Comments
 (0)