Skip to content

Commit

Permalink
Updated Android Target SDK version and improved instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
PavlosIsaris committed Aug 29, 2024
1 parent 18c5d7d commit c7049c6
Show file tree
Hide file tree
Showing 6 changed files with 166 additions and 351 deletions.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,8 @@ google-services.json
resources/android
resources/ios
.sourcemaps

*.apk
*.aab
SciFY
*.idsig
23 changes: 22 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,29 @@ In order to build the android platform, you will need the correct version of the
```bash
$ ionic cordova platform rm android

$ ionic cordova platform add [email protected]
$ ionic cordova platform add [email protected]
```

### Building the Android project

You will need to open the `platforms/android/CordovaLib/build.gradle` file and change the `repositories` in `buildscript`, in order to have this:

```gradle
buildscript {
repositories {
mavenCentral()
google()
gradlePluginPortal()
jcenter()
maven { url "https://repo.grails.org/grails/core/" }
}
...
}
```

Then, you can build the Android project by running:

```bash
$ ionic cordova build android
```

Expand Down
18 changes: 9 additions & 9 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="102163" 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">
<widget android-versionCode="102164" id="org.scify.dianoia.app" version="2.4.4" 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="[email protected]" href="https://www.scify.gr/site/en/">SciFY Team</author>
Expand Down Expand Up @@ -36,8 +36,8 @@
<allow-intent href="market:*" />
<preference name="loadUrlTimeoutValue" value="700000" />
<preference name="android-minSdkVersion" value="19" />
<preference name="android-targetSdkVersion" value="31" />
<preference name="android-compileSdkVersion" value="31" />
<preference name="android-targetSdkVersion" value="34" />
<preference name="android-compileSdkVersion" value="34" />
<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 All @@ -57,8 +57,8 @@
<splash density="port-xxhdpi" src="resources/android/splash/drawable-port-xxhdpi-screen.png" />
<splash density="port-xxxhdpi" src="resources/android/splash/drawable-port-xxxhdpi-screen.png" />
<preference name="android-minSdkVersion" value="22" />
<preference name="android-targetSdkVersion" value="33" />
<preference name="android-compileSdkVersion " value="33" />
<preference name="android-targetSdkVersion" value="34" />
<preference name="android-compileSdkVersion " value="34" />
</platform>
<platform name="ios">
<allow-intent href="itms:*" />
Expand Down Expand Up @@ -128,15 +128,15 @@
<plugin name="cordova-plugin-analytics" spec="2.0.0" />
<plugin name="cordova-support-google-services" spec="https://github.com/LuisEGR/cordova-support-google-services.git" />
<plugin name="cordova-play-services-version-adapter" spec="^1.0.2" />
<plugin name="cordova-android-support-gradle-release" spec="^3.0.1">
<variable name="ANDROID_SUPPORT_VERSION" value="27.+" />
</plugin>
<plugin name="cordova-plugin-app-version" spec="^0.1.9" />
<plugin name="cordova-sqlite-storage" spec="^6.0.0" />
<plugin name="cordova-plugin-globalization" spec="^1.11.0" />
<plugin name="cordova-custom-config" spec="^5.1.1" />
<plugin name="cordova-plugin-androidx" spec="^3.0.0" />
<plugin name="cordova-plugin-androidx-adapter" spec="^1.1.3" />
<plugin name="cordova-plugin-x-socialsharing" spec="^6.0.4" />
<engine name="android" spec="^9.1.0" />
<plugin name="cordova-android-support-gradle-release" spec="^3.0.1">
<variable name="ANDROID_SUPPORT_VERSION" value="27.+" />
</plugin>
<engine name="android" spec="^8.1.0" />
</widget>
Loading

0 comments on commit c7049c6

Please sign in to comment.