don't incorrectly ask for CAMERA permission

1.2-legacy
Kevin Hester 2020-03-02 10:30:32 -08:00
rodzic a9c9dac3ab
commit b753d52b93
2 zmienionych plików z 4 dodań i 1 usunięć

Wyświetl plik

@ -33,6 +33,9 @@
<!-- Needed to open our bluetooth connection to our paired device (after reboot) -->
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<!-- the xing library will try to bring this permission in but we don't want it -->
<uses-permission android:name="android.permission.CAMERA" tools:node="remove" />
<uses-feature
android:name="android.hardware.bluetooth_le"
android:required="true" />

Wyświetl plik

@ -57,7 +57,7 @@ data class BTScanEntry(val name: String, val macAddress: String, val bonded: Boo
@Composable
fun BTScanScreen() {
val context = ambient(ContextAmbient)
val context = ContextAmbient.current
/// Note: may be null on platforms without a bluetooth driver (ie. the emulator)
val bluetoothAdapter =