Skip to content

Commit

Permalink
Added options to set exported to true, in order to adhere with the Go…
Browse files Browse the repository at this point in the history
…ogle guidelines for targetSdk for API level 31
  • Loading branch information
PavlosIsaris committed Aug 31, 2023
1 parent 0510848 commit 45e35b1
Show file tree
Hide file tree
Showing 4 changed files with 916 additions and 159 deletions.
15 changes: 9 additions & 6 deletions config.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version='1.0' encoding='utf-8'?>
<widget android-versionCode="102160" id="org.scify.dianoia.app" version="2.4.2" xmlns="http://www.w3.org/ns/widgets" xmlns:android="http://schemas.android.com/apk/res/android" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<widget android-versionCode="102162" id="org.scify.dianoia.app" version="2.4.3" xmlns="http://www.w3.org/ns/widgets" xmlns:android="http://schemas.android.com/apk/res/android" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<name>diAnoia</name>
<description>Non-pharmaceutical activities for people with dementia.</description>
<author email="info@scify.org" href="https://www.scify.gr/site/en/">SciFY Team</author>
Expand Down Expand Up @@ -28,15 +28,16 @@
<preference name="SplashScreenDelay" value="10000" />
<preference name="loadUrlTimeoutValue" value="700000" />
<platform name="android">
<custom-preference name="android-manifest/application/receiver[@android:name='nl.xservices.plugins.ShareChooserPendingIntent']/@android:exported" value="false" />
<resource-file src="google-services.json" target="app/google-services.json" />
<edit-config file="app/src/main/AndroidManifest.xml" mode="merge" target="/manifest/application">
<application android:usesCleartextTraffic="true" />
<edit-config file="app/src/main/AndroidManifest.xml" mode="merge" target="/manifest/application/activity" xmlns:android="http://schemas.android.com/apk/res/android">
<activity android:exported="true" />
</edit-config>
<allow-intent href="market:*" />
<preference name="loadUrlTimeoutValue" value="700000" />
<preference name="android-minSdkVersion" value="19" />
<preference name="android-targetSdkVersion" value="30" />
<preference name="android-compileSdkVersion" value="30" />
<preference name="android-targetSdkVersion" value="31" />
<preference name="android-compileSdkVersion" value="31" />
<icon density="ldpi" src="resources/android/icon/drawable-ldpi-icon.png" />
<icon density="mdpi" src="resources/android/icon/drawable-mdpi-icon.png" />
<icon density="hdpi" src="resources/android/icon/drawable-hdpi-icon.png" />
Expand Down Expand Up @@ -119,6 +120,7 @@
<plugin name="cordova-plugin-inappbrowser" spec="^1.7.1" />
<plugin name="cordova-plugin-x-toast" spec="^2.6.0" />
<plugin name="cordova-plugin-x-socialsharing" spec="^5.4.0">
<custom-preference name="android-manifest/@android:exported" value="false" />
<variable name="ANDROID_SUPPORT_V4_VERSION" value="27.1.1+" />
<variable name="PHOTO_LIBRARY_ADD_USAGE_DESCRIPTION" value="This app requires photo library access to function properly." />
<variable name="PHOTO_LIBRARY_USAGE_DESCRIPTION" value="This app requires photo library access to function properly." />
Expand All @@ -137,6 +139,7 @@
<plugin name="cordova-sqlite-storage" spec="^6.0.0" />
<plugin name="cordova-plugin-globalization" spec="^1.11.0" />
<plugin name="cordova-plugin-device" spec="^1.1.7" />
<engine name="android" spec="^8.1.0" />
<plugin name="cordova-custom-config" spec="^5.1.1" />
<engine name="browser" spec="^5.0.4" />
<engine name="android" spec="^8.1.0" />
</widget>
Loading

0 comments on commit 45e35b1

Please sign in to comment.