mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Projucer: Strongly assert that bluetooth will not be used for fine location access
This commit is contained in:
parent
a9a95fe69f
commit
73bd3f865d
1 changed files with 6 additions and 1 deletions
|
|
@ -1740,9 +1740,14 @@ private:
|
||||||
if (permission == "android.permission.READ_EXTERNAL_STORAGE")
|
if (permission == "android.permission.READ_EXTERNAL_STORAGE")
|
||||||
usesPermission->setAttribute ("android:maxSdkVersion", "32");
|
usesPermission->setAttribute ("android:maxSdkVersion", "32");
|
||||||
|
|
||||||
|
if (permission == "android.permission.BLUETOOTH_SCAN")
|
||||||
|
usesPermission->setAttribute ("android:usesPermissionFlags", "neverForLocation");
|
||||||
|
|
||||||
// These permissions are obsoleted by new more fine-grained permissions in API level 31
|
// These permissions are obsoleted by new more fine-grained permissions in API level 31
|
||||||
if (permission == "android.permission.BLUETOOTH"
|
if (permission == "android.permission.BLUETOOTH"
|
||||||
|| permission == "android.permission.BLUETOOTH_ADMIN")
|
|| permission == "android.permission.BLUETOOTH_ADMIN"
|
||||||
|
|| permission == "android.permission.ACCESS_FINE_LOCATION"
|
||||||
|
|| permission == "android.permission.ACCESS_COARSE_LOCATION")
|
||||||
{
|
{
|
||||||
usesPermission->setAttribute ("android:maxSdkVersion", "30");
|
usesPermission->setAttribute ("android:maxSdkVersion", "30");
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue