cordova-splashはcordovaのスプラッシュを一括で作成するnpmパッケージ

cordovaのスプラッシュを一括で作成するnpmパッケージ

https://www.npmjs.com/package/ 

[code language=”bash”]
sudo npm install cordova-splash -g
[/code]

[code language=”bash”]
cordova-splash –config=config.xml –splash=images/002.splash-screen.png

Checking Project & Splash

✓ platforms found: android
✓ images/002.splash-screen.png exists
✓ config.xml exists

Generating splash screen for android

resize arg
arg 320×200
resize arg
arg 480×320
resize arg
arg 800×480
resize arg
arg 1280×720
resize arg
arg 1920×1280
resize arg
arg 1600×960
resize arg
arg 320×480
resize arg
arg 200×320
resize arg
arg 480×800
resize arg
arg 720×1280
resize arg
arg 960×1600
resize arg
arg 1280×1920
✓ drawable-land-ldpi/screen.png created
✓ drawable-land-mdpi/screen.png created
✓ drawable-port-ldpi/screen.png created
✓ drawable-port-mdpi/screen.png created
✓ drawable-port-hdpi/screen.png created
✓ drawable-land-hdpi/screen.png created
✓ drawable-port-xhdpi/screen.png created
✓ drawable-land-xhdpi/screen.png created
✓ drawable-port-xxhdpi/screen.png created
✓ drawable-port-xxxhdpi/screen.png created
✓ drawable-land-xxhdpi/screen.png created
✓ drawable-land-xxxhdpi/screen.png created

[/code]

‘cordova-plugin-livereload’ has been deprecated!!!

cordovaのplatform addはdeprecatedで停止しても、runできてしまった。

deprecatedだけ除外したのかとおもったら

cordovaのアプリがネットワークに繋がらなかったり、プラグインが動かなくなったので

AndroidManifest.xmlをみるとuses-permissionもactivityも全然足りていない。。

deprecatedの対象cordova-plugin-livereloadを除外して、platform rm addを再度行ってみたら治った。

 

Installing “cordova-plugin-headercolor” for android

Installing “cordova-plugin-inappbrowser” for android

Installing “cordova-plugin-livereload” for android
##################################################################

‘cordova-plugin-livereload’ has been deprecated!!!

Please use ‘taco run –livereload’ instead.

For more information please visit http://taco.tools/docs/run.html.

##################################################################
Failed to install ‘cordova-plugin-livereload’: Error: Deprecated Plugin ‘cordova-plugin-livereload’

Error: Deprecated Plugin ‘cordova-plugin-livereload’

CordovaアプリのGooglePlay向けリリース準備

cordova-splash –config=config.xml –splash=splash-screen.png

cordova-icon –icon=ic_launcher-web.png

cordova build android —release

jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore {KeyStoeFilePath} platforms/android/build/outputs/apk/{ApkFileName}  {KeyStoreAliasName} 

zipalign -f -v 4 platforms/android/build/outputs/apk/{ApkFileName} platforms/android/build/outputs/apk/{outputApkFileName}