Commit 286aaa0
authored
Expose core JNI helpers to Kotlin and demo via Android example (#33)
* Expose core JNI helpers to Kotlin and demo via Android example
- add JNI wrappers for wallet ops + extra methods (maintenanceRefresh,
tryClaimLightningReceive, offboardAll, peakKeyPair, verifyMessage,
bolt11Invoice) and log config use - add Kotlin facade (NitroArkNative)
and example RN module to surface these native calls - wire Android demo
buttons in example app to exercise the JNI path with config passthrough
and logging
* Refactor NativeTypes and update JNI method signatures
* Add null pointer checks in JNI helper functions
* Add maintenance method to NitroArkNative
* Refactor optional number retrieval in JNI wrapper
* Add ARMv7 support to Android build script
* Add Android JNI methods for signing and syncing
* Improve memory management in NitroArkJni with local ref deletion
* Refactor log formatting for birthday height in NitroArkJni
* Add robust error handling for JNI string conversions
* chore: bump version1 parent 1980fb9 commit 286aaa0
File tree
13 files changed
+1246
-75
lines changed- .zed
- bark-cpp
- react-native-nitro-ark
- android
- src/main
- cpp
- java/com/margelo/nitro/nitroark
- jniLibs/armeabi-v7a
- example
- android/app/src/main/java/nitroark/example
- ios
- src
13 files changed
+1246
-75
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
27 | 36 | | |
28 | 37 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
| 81 | + | |
81 | 82 | | |
82 | 83 | | |
83 | 84 | | |
| |||
127 | 128 | | |
128 | 129 | | |
129 | 130 | | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
130 | 155 | | |
131 | 156 | | |
132 | 157 | | |
| |||
153 | 178 | | |
154 | 179 | | |
155 | 180 | | |
| 181 | + | |
156 | 182 | | |
157 | 183 | | |
158 | 184 | | |
| 185 | + | |
159 | 186 | | |
160 | 187 | | |
161 | 188 | | |
162 | 189 | | |
163 | 190 | | |
164 | 191 | | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
165 | 196 | | |
166 | 197 | | |
167 | 198 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
| |||
0 commit comments