ReviewOS

also looking at this

craft-native/craft

feat(android): the recording store's two reads in Zig — ratchet 67 → 65

#177
Merged glennmichael123 wants to merge feat/android-location-store into main
8 files +538 -5
packages/android/templates/CraftBridge.kt.templatemodified+12-2
Changes to packages/android/templates/CraftBridge.kt.template
@@ -1817,10 +1817,20 @@ class CraftBridge(
18171817 }
18181818
18191819 @JavascriptInterface
1820 fun getLocationRecordingState(): String = CraftLocationRecordingStore.state(activity).toString()
1820 fun getLocationRecordingState(): String {
1821 // Null is "Zig declined", not "no recording" — an absent recording is
1822 // a state object saying so, and returning it here is the answer.
1823 CraftNative.getLocationRecordingState(activity)?.let { return it }
1824
1825 return CraftLocationRecordingStore.state(activity).toString()
1826 }
18211827
18221828 @JavascriptInterface
1823 fun readLocationRecording(): String = CraftLocationRecordingStore.locations(activity).toString()
1829 fun readLocationRecording(): String {
1830 CraftNative.readLocationRecording(activity)?.let { return it }
1831
1832 return CraftLocationRecordingStore.locations(activity).toString()
1833 }
18241834
18251835 // ==================== Clipboard ====================
18261836