File tree Expand file tree Collapse file tree 6 files changed +14023
-0
lines changed Expand file tree Collapse file tree 6 files changed +14023
-0
lines changed Original file line number Diff line number Diff line change 1+ [package ]
2+ name = " rnfc-android"
3+ version = " 0.1.0"
4+ edition = " 2024"
5+
6+ [dependencies ]
7+ async-channel = " 2.3.1"
8+ java-spaghetti = { git = " https://github.com/Dirbaio/java-spaghetti" , rev = " fc18c6b4d4c3fe6d1719066bef350c69bff72f3d" }
9+ log = " 0.4.27"
10+ rnfc-traits = { path = " ../rnfc-traits" }
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ set -euxo pipefail
4+
5+ if [[ -z " $ANDROID_HOME " ]] then
6+ echo ANDROID_HOME is not set!
7+ exit 1
8+ fi
9+
10+ java-spaghetti-gen generate --verbose
11+ rustfmt src/bindings.rs --edition 2024
Original file line number Diff line number Diff line change 1+
2+ include = [
3+ " android/nfc/*" ,
4+ " android/app/Activity" ,
5+ " android/os/Bundle" ,
6+ " android/content/Context" ,
7+ " android/content/ContextWrapper" ,
8+ " android/view/ContextThemeWrapper" ,
9+
10+ " java/lang/Object" ,
11+ " java/lang/Throwable" ,
12+ " java/lang/StackTraceElement" ,
13+ " java/lang/String" ,
14+
15+ " java/util/Iterator" ,
16+ ]
17+
18+ include_proxy = [
19+ " android/nfc/NfcAdapter$ReaderCallback" ,
20+ ]
21+
22+ [[documentation .pattern ]]
23+ class_url_pattern = " https://developer.android.com/reference/{CLASS}.html"
24+ method_url_pattern = " https://developer.android.com/reference/{CLASS}.html#{METHOD}({ARGUMENTS})"
25+ constructor_url_pattern = " https://developer.android.com/reference/{CLASS}.html#{CLASS.INNER}({ARGUMENTS})"
26+ field_url_pattern = " https://developer.android.com/reference/{CLASS}.html#{FIELD}"
27+ argument_seperator = " ,%20"
28+
29+
30+ [logging ]
31+ verbose = true
32+
33+ [input ]
34+ files = [
35+ " /home/dirbaio/Android/Sdk/platforms/android-33/android.jar" ,
36+ ]
37+
38+ [output ]
39+ path = " src/bindings.rs"
40+
41+ [codegen ]
42+ method_naming_style = " java"
43+ method_naming_style_collision = " java_short_signature"
44+ keep_rejected_emits = false
45+ proxy_path_prefix = " com/github/embassy_rs/rnfc/proxy"
46+
47+ [codegen .field_naming_style ]
48+ const_finals = true
49+ rustify_names = false
50+ getter_pattern = " {NAME}"
51+ setter_pattern = " set_{NAME}"
You can’t perform that action at this time.
0 commit comments