WIP: bump targetSdkVersion to 31

This commit is contained in:
Peter Cai 2021-10-14 18:16:13 -04:00
parent 0ae375e6a3
commit 35fc9ba1bd
2 changed files with 11 additions and 6 deletions

View file

@ -6,7 +6,7 @@ android {
defaultConfig { defaultConfig {
applicationId "net.typeblog.shelter" applicationId "net.typeblog.shelter"
minSdkVersion 24 minSdkVersion 24
targetSdkVersion 30 targetSdkVersion 31
versionCode 18 versionCode 18
versionName "1.7-dev1" versionName "1.7-dev1"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"

View file

@ -36,7 +36,8 @@
<!-- The main activity for UI --> <!-- The main activity for UI -->
<activity android:name=".ui.MainActivity" <activity android:name=".ui.MainActivity"
android:launchMode="singleTask"> android:launchMode="singleTask"
android:exported="true">
<intent-filter> <intent-filter>
<action android:name="android.intent.action.MAIN" /> <action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" /> <category android:name="android.intent.category.LAUNCHER" />
@ -46,7 +47,8 @@
<!-- Setup Wizard --> <!-- Setup Wizard -->
<activity android:name=".ui.SetupWizardActivity" <activity android:name=".ui.SetupWizardActivity"
android:theme="@style/SuwThemeMaterial.Light" android:theme="@style/SuwThemeMaterial.Light"
android:launchMode="singleTask" /> android:launchMode="singleTask"
android:exported="false"/>
<!-- The Settings activity --> <!-- The Settings activity -->
<activity android:name=".ui.SettingsActivity" <activity android:name=".ui.SettingsActivity"
@ -57,7 +59,8 @@
<activity android:name=".ui.DummyActivity" <activity android:name=".ui.DummyActivity"
android:excludeFromRecents="true" android:excludeFromRecents="true"
android:launchMode="singleTask" android:launchMode="singleTask"
android:theme="@style/Theme.AppCompat.Translucent.NoTitleBar"> android:theme="@style/Theme.AppCompat.Translucent.NoTitleBar"
android:exported="true">
<intent-filter> <intent-filter>
<action android:name="net.typeblog.shelter.action.FINALIZE_PROVISION" /> <action android:name="net.typeblog.shelter.action.FINALIZE_PROVISION" />
<action android:name="net.typeblog.shelter.action.START_SERVICE" /> <action android:name="net.typeblog.shelter.action.START_SERVICE" />
@ -82,7 +85,8 @@
<activity android:name=".ui.CameraProxyActivity" <activity android:name=".ui.CameraProxyActivity"
android:excludeFromRecents="true" android:excludeFromRecents="true"
android:theme="@android:style/Theme.Translucent.NoTitleBar" android:theme="@android:style/Theme.Translucent.NoTitleBar"
android:label="@string/camera_proxy_activity"> android:label="@string/camera_proxy_activity"
android:exported="true">
<intent-filter> <intent-filter>
<action android:name="android.media.action.IMAGE_CAPTURE" /> <action android:name="android.media.action.IMAGE_CAPTURE" />
<category android:name="android.intent.category.DEFAULT" /> <category android:name="android.intent.category.DEFAULT" />
@ -93,7 +97,8 @@
<receiver android:name=".receivers.ShelterDeviceAdminReceiver" <receiver android:name=".receivers.ShelterDeviceAdminReceiver"
android:label="@string/device_admin_label" android:label="@string/device_admin_label"
android:description="@string/device_admin_desc" android:description="@string/device_admin_desc"
android:permission="android.permission.BIND_DEVICE_ADMIN"> android:permission="android.permission.BIND_DEVICE_ADMIN"
android:exported="true">
<meta-data android:name="android.app.device_admin" <meta-data android:name="android.app.device_admin"
android:resource="@xml/device_admin" /> android:resource="@xml/device_admin" />
<intent-filter> <intent-filter>