Skip to content

Commit

Permalink
Merge pull request #12 from monaca-templates/dev_cordova12
Browse files Browse the repository at this point in the history
feat: support Cordova12
  • Loading branch information
takuyaW authored Aug 2, 2023
2 parents bfecb00 + 092b577 commit 63b1dd8
Show file tree
Hide file tree
Showing 11 changed files with 13 additions and 22 deletions.
10 changes: 6 additions & 4 deletions .monaca/project_info.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{
"cordova_version": "11.0",
"framework_version": "3.5",
"xcode_version": "13"
}
"cordova_version": "12.0",
"framework_version": "3.5",
"xcode_version": "14.2.0",
"cordova_android_platform": "12.0.0",
"cordova_ios_platform": "6.2.0"
}
16 changes: 2 additions & 14 deletions config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,18 @@
<author/>
<content src="index.html"/>
<allow-navigation href="*"/>

<preference name="DisallowOverscroll" value="true"/>
<preference name="Orientation" value="default"/>

<preference name="loglevel" value="DEBUG"/>
<preference name="AndroidLaunchMode" value="singleTop"/>
<preference name="ErrorUrl" value=""/>
<preference name="Fullscreen" value="false"/>
<preference name="KeepRunning" value="true"/>
<preference name="SplashScreen" value="screen"/>
<preference name="SplashScreenDelay" value="1000"/>

<preference name="AllowInlineMediaPlayback" value="false"/>
<preference name="AutoHideSplashScreen" value="true"/>
<preference name="BackupWebStorage" value="cloud"/>
<preference name="EnableViewportScale" value="false"/>
<preference name="FadeSplashScreen" value="true"/>
<preference name="FadeSplashScreenDuration" value="250"/>
<preference name="KeyboardDisplayRequiresUserAction" value="true"/>
Expand All @@ -36,11 +32,8 @@
<param name="ios-package" value="CDVLocalStorage"/>
</feature>
<preference name="UIWebViewDecelerationSpeed" value="normal"/>

<preference name="monaca:AndroidIsPackageNameSeparate" value="false"/>

<preference name="target-device" value="universal"/>

<platform name="ios">
<preference name="orientation" value="all"/>
<icon src="/res/ios/icon/icon.png" width="57" height="57"/>
Expand Down Expand Up @@ -89,13 +82,8 @@
<icon src="/res/android/icon/xhdpi.png" density="xhdpi"/>
<icon src="/res/android/icon/xxhdpi.png" density="xxhdpi"/>
<icon src="/res/android/icon/xxxhdpi.png" density="xxxhdpi"/>
<splash src="/res/android/screen/splash-port-ldpi.9.png" density="port-ldpi"/>
<splash src="/res/android/screen/splash-port-mdpi.9.png" density="port-mdpi"/>
<splash src="/res/android/screen/splash-port-hdpi.9.png" density="port-hdpi"/>
<splash src="/res/android/screen/splash-port-xhdpi.9.png" density="port-xhdpi"/>
<splash src="/res/android/screen/splash-port-xxhdpi.9.png" density="port-xxhdpi"/>
<splash src="/res/android/screen/splash-port-xxxhdpi.9.png" density="port-xxxhdpi"/>
<splash src="/res/android/screen/splash-mdpi.png" density="mdpi"/>
<preference name="AndroidWindowSplashScreenBackground" value="#ffffff"/>
<preference name="AndroidWindowSplashScreenAnimatedIcon" value="res/android/screen/window_splashscreen_icon.png"/>
</platform>
<platform name="electron">
<icon src="/res/electron/icon/icon_electron_512.png" width="512" height="512"/>
Expand Down
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
{
"name": "monaca-template-minimum",
"version": "3.0.1",
"version": "4.0.0",
"displayName": "Monaca Template Minimum",
"engines": {
"node": ">=18.16"
},
"dependencies": {
"cordova-plugin-splashscreen": "6.0.0",
"monaca-plugin-monaca-core": "3.3.1"
},
"scripts": {
Expand All @@ -12,12 +14,11 @@
},
"cordova": {
"plugins": {
"cordova-plugin-splashscreen": {},
"monaca-plugin-monaca-core": {}
}
},
"devDependencies": {
"browser-sync": "~2.27.7",
"cordova": "^11.0.0"
"cordova": "^12.0.0"
}
}
Binary file removed res/android/screen/splash-mdpi.png
Binary file not shown.
Binary file removed res/android/screen/splash-port-hdpi.9.png
Binary file not shown.
Binary file removed res/android/screen/splash-port-ldpi.9.png
Binary file not shown.
Binary file removed res/android/screen/splash-port-mdpi.9.png
Binary file not shown.
Binary file removed res/android/screen/splash-port-xhdpi.9.png
Binary file not shown.
Binary file removed res/android/screen/splash-port-xxhdpi.9.png
Binary file not shown.
Binary file removed res/android/screen/splash-port-xxxhdpi.9.png
Binary file not shown.
Binary file added res/android/screen/window_splashscreen_icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 63b1dd8

Please sign in to comment.