make build working with target sdk 31

This commit is contained in:
Holger Müller 2022-04-09 08:21:35 +02:00
parent 7a8f20ade7
commit aebafceb6a
4 changed files with 31 additions and 0 deletions

View File

@ -1,4 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="DesignSurface">
<option name="filePathToZoomLevelMap">
<map>
<entry key="ultrasonic/src/main/res/xml/backup_rules.xml" value="0.31567028985507245" />
</map>
</option>
</component>
<component name="ProjectRootManager" version="2" languageLevel="JDK_11" default="true" project-jdk-name="11" project-jdk-type="JavaSDK" />
</project>

View File

@ -21,6 +21,8 @@
<application
android:allowBackup="false"
android:fullBackupContent="@xml/backup_descriptor"
android:dataExtractionRules="@xml/backup_rules"
android:icon="@mipmap/ic_launcher"
android:roundIcon="@mipmap/ic_launcher_round"
android:theme="@style/NoActionBar"

View File

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Targeting Android 11 or lower -->
<full-backup-content>
<!-- The following "exclude" elements are not part of the auto backup -->
<!--exclude domain="database" path="name.db" /-->
<!-- Exclude specific shared preferences that contain GCM registration Id -->
<!-- The following "include" elements are part of the auto backup -->
<!-- include domain="sharedpref" path="."/-->
</full-backup-content>

View File

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Targeting Android 12 or higher -->
<data-extraction-rules>
<cloud-backup disableIfNoEncryptionCapabilities="true">
<!--include domain=["file" | "database" | "sharedpref" | "external" | "root"] path="string"/-->
<!--exclude domain=["file" | "database" | "sharedpref" | "external" | "root"] path="string"/-->
</cloud-backup>
<device-transfer>
<!--include domain=["file" | "database" | "sharedpref" | "external" | "root"] path="string"/-->
<!--exclude domain=["file" | "database" | "sharedpref" | "external" | "root"] path="string"/-->
</device-transfer>
</data-extraction-rules>