-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated Android Target SDK version and improved instructions
- Loading branch information
1 parent
18c5d7d
commit c7049c6
Showing
6 changed files
with
166 additions
and
351 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,3 +36,8 @@ google-services.json | |
resources/android | ||
resources/ios | ||
.sourcemaps | ||
|
||
*.apk | ||
*.aab | ||
SciFY | ||
*.idsig |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
``` | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> | ||
|
@@ -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" /> | ||
|
@@ -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:*" /> | ||
|
@@ -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> |
Oops, something went wrong.