diff options
author | Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> | 2022-10-23 12:51:46 +0200 |
---|---|---|
committer | Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> | 2022-10-30 13:21:02 +0100 |
commit | ecbbad623a66b1ac1775d734200469d19512b12e (patch) | |
tree | 4b77a2a46c070791a5ddecfb0ecdd73fd37846ba /android | |
parent | cc86fa2b0f6c2dd3266725d823ef29287930a5ab (diff) |
update targetSDK version accordig to google playstore requirements
https://support.google.com/googleplay/android-developer/answer/11926878
(this is different from the minSdkVersion, so minimum version supported
is not affected)
also when targeting Android 12 or later activities with intents need an
explicit property android:exported
https://developer.android.com/guide/topics/manifest/activity-element#exported
Change-Id: Ic0d3f1c0893051d819375a290825ce682da93ad9
Diffstat (limited to 'android')
-rw-r--r-- | android/sdremote/.idea/runConfigurations.xml | 12 | ||||
-rw-r--r-- | android/sdremote/build.gradle | 4 | ||||
-rw-r--r-- | android/sdremote/mobile/src/full/AndroidManifest.xml | 3 | ||||
-rw-r--r-- | android/sdremote/mobile/src/main/AndroidManifest.xml | 6 | ||||
-rw-r--r-- | android/sdremote/wear/src/main/AndroidManifest.xml | 6 |
5 files changed, 12 insertions, 19 deletions
diff --git a/android/sdremote/.idea/runConfigurations.xml b/android/sdremote/.idea/runConfigurations.xml deleted file mode 100644 index 7f68460..0000000 --- a/android/sdremote/.idea/runConfigurations.xml +++ /dev/null @@ -1,12 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<project version="4"> - <component name="RunConfigurationProducerService"> - <option name="ignoredProducers"> - <set> - <option value="org.jetbrains.plugins.gradle.execution.test.runner.AllInPackageGradleConfigurationProducer" /> - <option value="org.jetbrains.plugins.gradle.execution.test.runner.TestClassGradleConfigurationProducer" /> - <option value="org.jetbrains.plugins.gradle.execution.test.runner.TestMethodGradleConfigurationProducer" /> - </set> - </option> - </component> -</project>
\ No newline at end of file diff --git a/android/sdremote/build.gradle b/android/sdremote/build.gradle index f72a8e7..7d76435 100644 --- a/android/sdremote/build.gradle +++ b/android/sdremote/build.gradle @@ -17,10 +17,10 @@ subprojects { afterEvaluate {project -> if (project.hasProperty("android")) { android { - compileSdkVersion 29 + compileSdkVersion 31 buildToolsVersion '29.0.3' defaultConfig { - targetSdkVersion 29 + targetSdkVersion 31 applicationId 'org.libreoffice.impressremote' versionName '2.5.2' // prevent having android studio create PNGs from the vectors diff --git a/android/sdremote/mobile/src/full/AndroidManifest.xml b/android/sdremote/mobile/src/full/AndroidManifest.xml index 964234c..f7261f4 100644 --- a/android/sdremote/mobile/src/full/AndroidManifest.xml +++ b/android/sdremote/mobile/src/full/AndroidManifest.xml @@ -25,7 +25,8 @@ <meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version" /> - <service android:name=".communication.CommunicationServiceWear"> + <service android:name=".communication.CommunicationServiceWear" + android:exported="false"> <intent-filter> <action android:name="com.google.android.gms.wearable.BIND_LISTENER" /> </intent-filter> diff --git a/android/sdremote/mobile/src/main/AndroidManifest.xml b/android/sdremote/mobile/src/main/AndroidManifest.xml index be04362..03b6588 100644 --- a/android/sdremote/mobile/src/main/AndroidManifest.xml +++ b/android/sdremote/mobile/src/main/AndroidManifest.xml @@ -41,7 +41,8 @@ <activity android:name=".activity.ComputersActivity" - android:theme="@style/Theme.ImpressRemote.NoActionBar"> + android:theme="@style/Theme.ImpressRemote.NoActionBar" + android:exported="true"> <intent-filter> <action android:name="android.intent.action.MAIN"/> @@ -72,7 +73,8 @@ <activity android:name=".activity.RequirementsActivity" - android:label="@string/title_requirements"> + android:label="@string/title_requirements" + android:exported="true"> <intent-filter> <action android:name="android.intent.action.VIEW"/> diff --git a/android/sdremote/wear/src/main/AndroidManifest.xml b/android/sdremote/wear/src/main/AndroidManifest.xml index 9c125a6..8b042c2 100644 --- a/android/sdremote/wear/src/main/AndroidManifest.xml +++ b/android/sdremote/wear/src/main/AndroidManifest.xml @@ -15,7 +15,8 @@ <activity android:name=".activity.FullscreenActivity" - android:label="@string/application_name" > + android:label="@string/application_name" + android:exported="true"> <intent-filter> <action android:name="android.intent.action.MAIN" /> @@ -28,7 +29,8 @@ android:taskAffinity="" android:theme="@android:style/Theme.DeviceDefault.Light" /> - <service android:name=".communication.DataLayerListenerService"> + <service android:name=".communication.DataLayerListenerService" + android:exported="false"> <intent-filter> <action android:name="com.google.android.gms.wearable.BIND_LISTENER" /> </intent-filter> |