android/source/AndroidManifest.xml | 6 +++--- android/source/build.gradle | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-)
New commits: commit 258fd217a35444ed245528ccbabdef62869c0419 Author: Michael Weghorn <m.wegh...@posteo.de> AuthorDate: Tue Apr 19 12:04:11 2022 +0200 Commit: Michael Weghorn <m.wegh...@posteo.de> CommitDate: Wed Apr 20 05:18:49 2022 +0200 android: Remove redundant label attribute from activities Android Studio was showing an info/warning in the "Problems" pane that this label is redundant, so remove it. (The app name is used by default if nothing else is specified anyway.) Change-Id: I799c681488b95e2fffe89b59e7de18febe654dcb Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133174 Tested-by: Jenkins Reviewed-by: Michael Weghorn <m.wegh...@posteo.de> diff --git a/android/source/AndroidManifest.xml b/android/source/AndroidManifest.xml index 409a56cb84ef..0af368c8460b 100644 --- a/android/source/AndroidManifest.xml +++ b/android/source/AndroidManifest.xml @@ -25,7 +25,6 @@ <!-- When changing android:windowSoftInputMode, please don't specify multiple "adjust..." or "state...". --> <activity android:name=".LibreOfficeMainActivity" - android:label="@string/app_name" android:configChanges="orientation|keyboard|keyboardHidden|screenLayout|uiMode|screenSize|smallestScreenSize" android:windowSoftInputMode="adjustResize" android:exported="true"> @@ -102,7 +101,6 @@ <!-- Document Browser Activity --> <activity android:name="org.libreoffice.ui.LibreOfficeUIActivity" - android:label="@string/app_name" android:exported="true"> <intent-filter> <action android:name="android.intent.action.MAIN" /> commit 2ab389b251744fa7f3f6b060c09746e59d87f3b1 Author: Michael Weghorn <m.wegh...@posteo.de> AuthorDate: Tue Apr 19 10:33:27 2022 +0200 Commit: Michael Weghorn <m.wegh...@posteo.de> CommitDate: Wed Apr 20 05:18:36 2022 +0200 android: Update compileSdkVersion/targetSdkVersion to 31 Google Play now requires that apps target API level 30 or higher, and compileSdkVersion/targetSdkVersion 31 is also needed to update the com.google.android.material dependency to >= 1.5.0 [1]. Explicitly set the `android:exported="true"` attribute for activities which is required when targeting Android 12 or newer; quoting from the list of behavior changes for apps targeting Android 12 [1]: > Safer component exporting > > If your app targets Android 12 or higher and contains activities, > services, or broadcast receivers that use intent filters, you must > explicitly declare the android:exported attribute for these app > components. Warning: If an activity, service, or broadcast receiver > uses intent filters and doesn't have an explicitly-declared value for > android:exported, your app can't be installed on a device that runs > Android 12 or higher. > > If the app component includes the LAUNCHER category, set > android:exported to true. In most other cases, set android:exported > to false. > > The following code snippet shows an example of a service that > contains an intent filter whose android:exported attribute is set to > false: > > <service android:name="com.example.app.backgroundService" > android:exported="false"> > <intent-filter> > <action android:name="com.example.app.START_BACKGROUND" /> > </intent-filter> > </service> The app worked fine in a quick test on an x86_64 AVD with API level 31. [1] https://github.com/material-components/material-components-android/releases/tag/1.5.0-alpha03 Change-Id: Ibb919e4edb995740e48ebc3338ffab6ca35c1373 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133167 Tested-by: Jenkins Reviewed-by: Michael Weghorn <m.wegh...@posteo.de> diff --git a/android/source/AndroidManifest.xml b/android/source/AndroidManifest.xml index 43f790fca985..409a56cb84ef 100644 --- a/android/source/AndroidManifest.xml +++ b/android/source/AndroidManifest.xml @@ -27,7 +27,8 @@ android:name=".LibreOfficeMainActivity" android:label="@string/app_name" android:configChanges="orientation|keyboard|keyboardHidden|screenLayout|uiMode|screenSize|smallestScreenSize" - android:windowSoftInputMode="adjustResize" > + android:windowSoftInputMode="adjustResize" + android:exported="true"> <intent-filter> <action android:name="android.intent.action.VIEW" /> @@ -101,7 +102,8 @@ <!-- Document Browser Activity --> <activity android:name="org.libreoffice.ui.LibreOfficeUIActivity" - android:label="@string/app_name" > + android:label="@string/app_name" + android:exported="true"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> diff --git a/android/source/build.gradle b/android/source/build.gradle index 7dc93e778a7c..6b7391d5e389 100644 --- a/android/source/build.gradle +++ b/android/source/build.gradle @@ -32,7 +32,7 @@ dependencies { } android { - compileSdkVersion 28 + compileSdkVersion 31 compileOptions { // silence some java-language features hints sourceCompatibility 6 @@ -53,7 +53,7 @@ android { } defaultConfig { minSdkVersion 16 - targetSdkVersion 28 + targetSdkVersion 31 vectorDrawables.useSupportLibrary = true } buildTypes {