Skip to content

Commit dfc5ddf

Browse files
committed
add latest binary which supports start:None attr
1 parent 760ac02 commit dfc5ddf

7 files changed

Lines changed: 29 additions & 13 deletions

File tree

Binary file not shown.
Binary file not shown.
1.25 MB
Binary file not shown.
Binary file not shown.
20.1 MB
Binary file not shown.
-8.84 MB
Binary file not shown.

rust/README.md

Lines changed: 29 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,34 @@
1-
`For dart file generation`
2-
`flutter_rust_bridge_codegen generate \`
3-
`--rust-input crate::api \`
4-
`--rust-root rust \`
5-
`--dart-output lib/bridge/bridge_generated.dart`
1+
## Rust ⇄ Flutter: Commands
62

7-
`For Compiling RustLib to android`
8-
`cargo ndk -t arm64-v8a -t armeabi-v7a -t x86 -t x86_64 -o ../android/main/app/src/main/jniLibs build`
3+
### Generate Dart bindings
94

10-
- [ ] `these targets are not added yet`
5+
```bash
6+
flutter_rust_bridge_codegen generate \
7+
--rust-input crate::api \
8+
--rust-root rust \
9+
--dart-output lib/bridge/bridge_generated.dart
10+
```
1111

12-
`For running application`
13-
`[fvm] flutter run –flavor {production/nightly}`
12+
### Compile Rust library for Android
1413

15-
`For Compiling/Building apk`
16-
`[fvm] flutter build apk –-flavor production`
14+
```bash
15+
cargo ndk -t arm64-v8a -t armeabi-v7a -o ../android/main/app/src/main/jniLibs build --release
16+
```
1717

18-
* `Nightly is only for CI`
18+
- [ ] these targets are not added yet
19+
20+
### Run the app
21+
22+
```bash
23+
# using fvm
24+
fvm flutter run --flavor {production|nightly}
25+
```
26+
27+
### Build APK
28+
29+
```bash
30+
# using fvm
31+
fvm flutter build apk --flavor production
32+
```
33+
34+
Note: Nightly is only for CI.

0 commit comments

Comments
 (0)