mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-12-26 10:35:50 +01:00
Bump main targetSdkVersion to 31
This commit is contained in:
parent
3516099dc9
commit
ef99674eea
@ -52,7 +52,7 @@ android {
|
||||
defaultConfig {
|
||||
applicationId "nodomain.freeyourgadget.gadgetbridge"
|
||||
minSdkVersion 21
|
||||
targetSdkVersion 29
|
||||
targetSdkVersion 31
|
||||
|
||||
// Note: always bump BOTH versionCode and versionName!
|
||||
versionName "0.75.0"
|
||||
|
@ -2,44 +2,4 @@
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<uses-permission android:name="android.permission.INTERNET" />
|
||||
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
|
||||
|
||||
<!--
|
||||
SDK 30 & Android 11 - Used for getting app name from notifications, and for starting
|
||||
services from other packages via intents, when targeting Android API level 30 or later
|
||||
(e.g. Bangle.js build variant) on devices running Android 11 or later.
|
||||
https://developer.android.com/training/package-visibility
|
||||
https://support.google.com/googleplay/android-developer/answer/10158779?hl=en#zippy=%2Cpermitted-uses-of-the-query-all-packages-permission%2Cexceptions
|
||||
-->
|
||||
<uses-permission android:name="android.permission.QUERY_ALL_PACKAGES" />
|
||||
|
||||
<!-- https://developer.android.com/guide/topics/connectivity/bluetooth/permissions -->
|
||||
<!-- Request legacy Bluetooth permissions on older devices. -->
|
||||
<!-- We do this in the main Android Manifest already, but without android:maxSdkVersion="30".
|
||||
<uses-permission android:name="android.permission.BLUETOOTH"
|
||||
android:maxSdkVersion="30" />
|
||||
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN"
|
||||
android:maxSdkVersion="30" />
|
||||
-->
|
||||
|
||||
|
||||
<!-- Needed only if your app looks for Bluetooth devices.
|
||||
If your app doesn't use Bluetooth scan results to derive physical
|
||||
location information, you can strongly assert that your app
|
||||
doesn't derive physical location.
|
||||
|
||||
We need to ask the user for this permission, if it's not granted the app crashes when
|
||||
clicking the plus-button. -->
|
||||
<uses-permission android:name="android.permission.BLUETOOTH_SCAN" />
|
||||
|
||||
<!-- Needed only if your app makes the device discoverable to Bluetooth
|
||||
devices. -->
|
||||
<!-- <uses-permission android:name="android.permission.BLUETOOTH_ADVERTISE" /> -->
|
||||
|
||||
<!-- Needed only if your app communicates with already-paired Bluetooth
|
||||
devices. -->
|
||||
<uses-permission android:name="android.permission.BLUETOOTH_CONNECT" />
|
||||
|
||||
<!-- Needed only if your app uses Bluetooth scan results to derive physical location. -->
|
||||
<!-- <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> -->
|
||||
|
||||
</manifest>
|
||||
|
@ -8,8 +8,15 @@
|
||||
<uses-permission android:name="android.permission.INTERNET" />
|
||||
-->
|
||||
<!-- Used for Bluetooth access -->
|
||||
<uses-permission android:name="android.permission.BLUETOOTH" />
|
||||
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
|
||||
<!-- Request legacy Bluetooth permissions on older devices. -->
|
||||
<uses-permission android:name="android.permission.BLUETOOTH"
|
||||
android:maxSdkVersion="30"/>
|
||||
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN"
|
||||
android:maxSdkVersion="30"/>
|
||||
<!-- Needed to looks for Bluetooth devices. -->
|
||||
<uses-permission android:name="android.permission.BLUETOOTH_SCAN" />
|
||||
<!-- Needed to communicate with already-paired Bluetooth devices. -->
|
||||
<uses-permission android:name="android.permission.BLUETOOTH_CONNECT" />
|
||||
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
|
||||
|
||||
<!-- Since Android 10 -->
|
||||
@ -53,6 +60,16 @@
|
||||
<!-- Used for starting activities from the background with intents -->
|
||||
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" />
|
||||
|
||||
<!--
|
||||
SDK 30 & Android 11 - Used for getting app name from notifications, and for starting
|
||||
services from other packages via intents, when targeting Android API level 30 or later
|
||||
(e.g. Bangle.js build variant) on devices running Android 11 or later.
|
||||
https://developer.android.com/training/package-visibility
|
||||
https://support.google.com/googleplay/android-developer/answer/10158779?hl=en#zippy=%2Cpermitted-uses-of-the-query-all-packages-permission%2Cexceptions
|
||||
-->
|
||||
<uses-permission android:name="android.permission.QUERY_ALL_PACKAGES"
|
||||
tools:ignore="QueryAllPackagesPermission" />
|
||||
|
||||
<uses-feature
|
||||
android:name="android.hardware.bluetooth"
|
||||
android:required="true" />
|
||||
|
Loading…
Reference in New Issue
Block a user