Browse Source

Add Cordova splashscreen (close #18)

master
Skylar Ittner 2 years ago
parent
commit
7dbf55e60f
  1. 1
      .gitignore
  2. 17
      config.xml
  3. 10
      package.json
  4. BIN
      res/android/drawable-land-hdpi/screen.png
  5. BIN
      res/android/drawable-land-ldpi/screen.png
  6. BIN
      res/android/drawable-land-mdpi/screen.png
  7. BIN
      res/android/drawable-land-xhdpi/screen.png
  8. BIN
      res/android/drawable-land-xxhdpi/screen.png
  9. BIN
      res/android/drawable-land-xxxhdpi/screen.png
  10. BIN
      res/android/drawable-port-hdpi/screen.png
  11. BIN
      res/android/drawable-port-ldpi/screen.png
  12. BIN
      res/android/drawable-port-mdpi/screen.png
  13. BIN
      res/android/drawable-port-xhdpi/screen.png
  14. BIN
      res/android/drawable-port-xxhdpi/screen.png
  15. BIN
      res/android/drawable-port-xxxhdpi/screen.png
  16. BIN
      res/android/mipmap-ldpi/ic_launcher.png
  17. BIN
      splash.png

1
.gitignore

@ -5,3 +5,4 @@
/node_modules
/www/node_modules
nbproject/private
.directory

17
config.xml

@ -15,6 +15,9 @@
<allow-intent href="sms:*"/>
<allow-intent href="mailto:*"/>
<allow-intent href="geo:*"/>
<preference name="ShowSplashScreenSpinner" value="false"/>
<platform name="android">
<preference name="HeaderColor" value="#324150"/>
<preference name="StatusBarBackgroundColor" value=""/>
@ -26,6 +29,20 @@
<icon background="res/android/mipmap-xxhdpi/ic_launcher_background.png" density="xxhdpi" foreground="res/android/mipmap-xxhdpi/ic_launcher_foreground.png" src="res/android/mipmap-xxhdpi/ic_launcher.png" />
<icon background="res/android/mipmap-xxxhdpi/ic_launcher_background.png" density="xxxhdpi" foreground="res/android/mipmap-xxxhdpi/ic_launcher_foreground.png" src="res/android/mipmap-xxxhdpi/ic_launcher.png" />
<splash src="res/android/drawable-land-hdpi/screen.png" density="land-hdpi"/>
<splash src="res/android/drawable-land-ldpi/screen.png" density="land-ldpi"/>
<splash src="res/android/drawable-land-mdpi/screen.png" density="land-mdpi"/>
<splash src="res/android/drawable-land-xhdpi/screen.png" density="land-xhdpi"/>
<splash src="res/android/drawable-land-xxhdpi/screen.png" density="land-xxhdpi"/>
<splash src="res/android/drawable-land-xxxhdpi/screen.png" density="land-xxxhdpi"/>
<splash src="res/android/drawable-port-hdpi/screen.png" density="port-hdpi"/>
<splash src="res/android/drawable-port-ldpi/screen.png" density="port-ldpi"/>
<splash src="res/android/drawable-port-mdpi/screen.png" density="port-mdpi"/>
<splash src="res/android/drawable-port-xhdpi/screen.png" density="port-xhdpi"/>
<splash src="res/android/drawable-port-xxhdpi/screen.png" density="port-xxhdpi"/>
<splash src="res/android/drawable-port-xxxhdpi/screen.png" density="port-xxxhdpi"/>
<hook type="after_prepare" src="scripts/clean_node_modules.sh" />
</platform>

10
package.json

@ -18,12 +18,13 @@
"cordova-plugin-geolocation": "^4.0.1",
"cordova-plugin-headercolor": "^1.0.0",
"cordova-plugin-inappbrowser": "^3.0.0",
"cordova-plugin-splashscreen": "^5.0.2",
"cordova-plugin-statusbar": "^2.4.2",
"cordova-plugin-transparent-status-bar": "git+https://github.com/manugando/cordova-plugin-transparent-status-bar.git",
"cordova-plugin-whitelist": "^1.3.3",
"phonegap-plugin-barcodescanner": "^8.0.1",
"mls": "^0.1.1",
"node-wifiscanner": "^0.2.1"
"node-wifiscanner": "^0.2.1",
"phonegap-plugin-barcodescanner": "^8.0.1"
},
"cordova": {
"plugins": {
@ -36,10 +37,11 @@
"cordova-plugin-app-version": {},
"cordova-plugin-inappbrowser": {},
"cordova-plugin-transparent-status-bar": {},
"cordova-plugin-geolocation": {}
"cordova-plugin-geolocation": {},
"cordova-plugin-splashscreen": {}
},
"platforms": [
"android"
]
}
}
}

BIN
res/android/drawable-land-hdpi/screen.png

After

Width: 800  |  Height: 480  |  Size: 173 KiB

BIN
res/android/drawable-land-ldpi/screen.png

After

Width: 320  |  Height: 200  |  Size: 40 KiB

BIN
res/android/drawable-land-mdpi/screen.png

After

Width: 480  |  Height: 320  |  Size: 80 KiB

BIN
res/android/drawable-land-xhdpi/screen.png

After

Width: 1280  |  Height: 720  |  Size: 353 KiB

BIN
res/android/drawable-land-xxhdpi/screen.png

After

Width: 1600  |  Height: 960  |  Size: 513 KiB

BIN
res/android/drawable-land-xxxhdpi/screen.png

After

Width: 1920  |  Height: 1280  |  Size: 701 KiB

BIN
res/android/drawable-port-hdpi/screen.png

After

Width: 480  |  Height: 800  |  Size: 147 KiB

BIN
res/android/drawable-port-ldpi/screen.png

After

Width: 200  |  Height: 320  |  Size: 36 KiB

BIN
res/android/drawable-port-mdpi/screen.png

After

Width: 320  |  Height: 480  |  Size: 72 KiB

BIN
res/android/drawable-port-xhdpi/screen.png

After

Width: 720  |  Height: 1280  |  Size: 288 KiB

BIN
res/android/drawable-port-xxhdpi/screen.png

After

Width: 960  |  Height: 1600  |  Size: 422 KiB

BIN
res/android/drawable-port-xxxhdpi/screen.png

After

Width: 1280  |  Height: 1920  |  Size: 602 KiB

BIN
res/android/mipmap-ldpi/ic_launcher.png

Before

Width: 36  |  Height: 36  |  Size: 1.8 KiB

BIN
splash.png

After

Width: 2208  |  Height: 2208  |  Size: 1001 KiB

Loading…
Cancel
Save