mobiler 0.20.0

Build mobile apps in Rust — one core, native UI on Android, iOS, and the web (CLI)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
name = "audio"
summary = "Record from the mic (→ file URI) and play audio (free)"

[android]
sources = ["android/AudioPlugin.kt"]
register = '"audio" to AudioPlugin(application)'
permissions = ["android.permission.RECORD_AUDIO"]

[ios]
sources = ["ios/AudioPlugin.swift"]
register = 'case "audio": return await AudioPlugin.handle(op: op, input: input)'

[ios.info_plist]
NSMicrophoneUsageDescription = "Record audio."