-
for Android Application add to AndroidManifest.xml
<uses-permission android:name="android.permission.CAMERA"/>
<uses-feature
android:name="android.hardware.camera"
android:required="false"/>
-
for iOS Application add Privacy - Camera Usage Description entry to Info.plist
<key>NSCameraUsageDescription</key>
<string></string>
-
for Desktop Application add to build.gradle.kts
runtimeEntitlementsFile.set(project.file("runtime-entitlements.plist"))
infoPlist {
extraKeysRawXml = """
<key>NSCameraUsageDescription</key>
<string></string>
""".trimIndent()
}
to your macOS { ... } block and include
runtime-entitlements.plist in your project source files