add icon and splash
BIN
resources/android/icon/drawable-hdpi-icon.png
Normal file
|
After Width: | Height: | Size: 4.1 KiB |
BIN
resources/android/icon/drawable-ldpi-icon.png
Normal file
|
After Width: | Height: | Size: 1.8 KiB |
BIN
resources/android/icon/drawable-mdpi-icon.png
Normal file
|
After Width: | Height: | Size: 2.6 KiB |
BIN
resources/android/icon/drawable-xhdpi-icon.png
Normal file
|
After Width: | Height: | Size: 5.8 KiB |
BIN
resources/android/icon/drawable-xxhdpi-icon.png
Normal file
|
After Width: | Height: | Size: 8.9 KiB |
BIN
resources/android/icon/drawable-xxxhdpi-icon.png
Normal file
|
After Width: | Height: | Size: 12 KiB |
BIN
resources/android/splash/drawable-land-hdpi-screen.png
Normal file
|
After Width: | Height: | Size: 16 KiB |
BIN
resources/android/splash/drawable-land-ldpi-screen.png
Normal file
|
After Width: | Height: | Size: 5.8 KiB |
BIN
resources/android/splash/drawable-land-mdpi-screen.png
Normal file
|
After Width: | Height: | Size: 9.0 KiB |
BIN
resources/android/splash/drawable-land-xhdpi-screen.png
Normal file
|
After Width: | Height: | Size: 28 KiB |
BIN
resources/android/splash/drawable-land-xxhdpi-screen.png
Normal file
|
After Width: | Height: | Size: 37 KiB |
BIN
resources/android/splash/drawable-land-xxxhdpi-screen.png
Normal file
|
After Width: | Height: | Size: 47 KiB |
BIN
resources/android/splash/drawable-port-hdpi-screen.png
Normal file
|
After Width: | Height: | Size: 16 KiB |
BIN
resources/android/splash/drawable-port-ldpi-screen.png
Normal file
|
After Width: | Height: | Size: 5.8 KiB |
BIN
resources/android/splash/drawable-port-mdpi-screen.png
Normal file
|
After Width: | Height: | Size: 9.1 KiB |
BIN
resources/android/splash/drawable-port-xhdpi-screen.png
Normal file
|
After Width: | Height: | Size: 28 KiB |
BIN
resources/android/splash/drawable-port-xxhdpi-screen.png
Normal file
|
After Width: | Height: | Size: 36 KiB |
BIN
resources/android/splash/drawable-port-xxxhdpi-screen.png
Normal file
|
After Width: | Height: | Size: 46 KiB |
BIN
resources/icon.png
Normal file
|
After Width: | Height: | Size: 61 KiB |
BIN
resources/ios/icon/icon-1024.png
Normal file
|
After Width: | Height: | Size: 33 KiB |
BIN
resources/ios/icon/icon-108@2x.png
Normal file
|
After Width: | Height: | Size: 12 KiB |
BIN
resources/ios/icon/icon-20.png
Normal file
|
After Width: | Height: | Size: 785 B |
BIN
resources/ios/icon/icon-20@2x.png
Normal file
|
After Width: | Height: | Size: 1.9 KiB |
BIN
resources/ios/icon/icon-20@3x.png
Normal file
|
After Width: | Height: | Size: 3.0 KiB |
BIN
resources/ios/icon/icon-24@2x.png
Normal file
|
After Width: | Height: | Size: 2.3 KiB |
BIN
resources/ios/icon/icon-27.5@2x.png
Normal file
|
After Width: | Height: | Size: 2.7 KiB |
BIN
resources/ios/icon/icon-29.png
Normal file
|
After Width: | Height: | Size: 1.3 KiB |
BIN
resources/ios/icon/icon-29@2x.png
Normal file
|
After Width: | Height: | Size: 2.9 KiB |
BIN
resources/ios/icon/icon-29@3x.png
Normal file
|
After Width: | Height: | Size: 4.7 KiB |
BIN
resources/ios/icon/icon-40.png
Normal file
|
After Width: | Height: | Size: 1.9 KiB |
BIN
resources/ios/icon/icon-40@2x.png
Normal file
|
After Width: | Height: | Size: 4.2 KiB |
BIN
resources/ios/icon/icon-40@3x.png
Normal file
|
After Width: | Height: | Size: 6.7 KiB |
BIN
resources/ios/icon/icon-44@2x.png
Normal file
|
After Width: | Height: | Size: 4.8 KiB |
BIN
resources/ios/icon/icon-50.png
Normal file
|
After Width: | Height: | Size: 2.4 KiB |
BIN
resources/ios/icon/icon-50@2x.png
Normal file
|
After Width: | Height: | Size: 5.5 KiB |
BIN
resources/ios/icon/icon-60.png
Normal file
|
After Width: | Height: | Size: 3.0 KiB |
BIN
resources/ios/icon/icon-60@2x.png
Normal file
|
After Width: | Height: | Size: 6.7 KiB |
BIN
resources/ios/icon/icon-60@3x.png
Normal file
|
After Width: | Height: | Size: 10 KiB |
BIN
resources/ios/icon/icon-72.png
Normal file
|
After Width: | Height: | Size: 3.7 KiB |
BIN
resources/ios/icon/icon-72@2x.png
Normal file
|
After Width: | Height: | Size: 8.0 KiB |
BIN
resources/ios/icon/icon-76.png
Normal file
|
After Width: | Height: | Size: 4.0 KiB |
BIN
resources/ios/icon/icon-76@2x.png
Normal file
|
After Width: | Height: | Size: 8.6 KiB |
BIN
resources/ios/icon/icon-83.5@2x.png
Normal file
|
After Width: | Height: | Size: 9.3 KiB |
BIN
resources/ios/icon/icon-86@2x.png
Normal file
|
After Width: | Height: | Size: 9.6 KiB |
BIN
resources/ios/icon/icon-98@2x.png
Normal file
|
After Width: | Height: | Size: 11 KiB |
BIN
resources/ios/icon/icon.png
Normal file
|
After Width: | Height: | Size: 2.9 KiB |
BIN
resources/ios/icon/icon@2x.png
Normal file
|
After Width: | Height: | Size: 6.3 KiB |
BIN
resources/ios/splash/Default-1792h~iphone.png
Normal file
|
After Width: | Height: | Size: 39 KiB |
BIN
resources/ios/splash/Default-2436h.png
Normal file
|
After Width: | Height: | Size: 59 KiB |
BIN
resources/ios/splash/Default-2688h~iphone.png
Normal file
|
After Width: | Height: | Size: 66 KiB |
BIN
resources/ios/splash/Default-568h@2x~iphone.png
Normal file
|
After Width: | Height: | Size: 24 KiB |
BIN
resources/ios/splash/Default-667h.png
Normal file
|
After Width: | Height: | Size: 29 KiB |
BIN
resources/ios/splash/Default-736h.png
Normal file
|
After Width: | Height: | Size: 54 KiB |
BIN
resources/ios/splash/Default-Landscape-1792h~iphone.png
Normal file
|
After Width: | Height: | Size: 40 KiB |
BIN
resources/ios/splash/Default-Landscape-2436h.png
Normal file
|
After Width: | Height: | Size: 60 KiB |
BIN
resources/ios/splash/Default-Landscape-2688h~iphone.png
Normal file
|
After Width: | Height: | Size: 66 KiB |
BIN
resources/ios/splash/Default-Landscape-736h.png
Normal file
|
After Width: | Height: | Size: 55 KiB |
BIN
resources/ios/splash/Default-Landscape@2x~ipad.png
Normal file
|
After Width: | Height: | Size: 54 KiB |
BIN
resources/ios/splash/Default-Landscape@~ipadpro.png
Normal file
|
After Width: | Height: | Size: 47 KiB |
BIN
resources/ios/splash/Default-Landscape~ipad.png
Normal file
|
After Width: | Height: | Size: 23 KiB |
BIN
resources/ios/splash/Default-Portrait@2x~ipad.png
Normal file
|
After Width: | Height: | Size: 54 KiB |
BIN
resources/ios/splash/Default-Portrait@~ipadpro.png
Normal file
|
After Width: | Height: | Size: 48 KiB |
BIN
resources/ios/splash/Default-Portrait~ipad.png
Normal file
|
After Width: | Height: | Size: 22 KiB |
BIN
resources/ios/splash/Default@2x~iphone.png
Normal file
|
After Width: | Height: | Size: 20 KiB |
BIN
resources/ios/splash/Default@2x~universal~anyany.png
Normal file
|
After Width: | Height: | Size: 55 KiB |
BIN
resources/ios/splash/Default~iphone.png
Normal file
|
After Width: | Height: | Size: 9.1 KiB |
BIN
resources/splash.png
Normal file
|
After Width: | Height: | Size: 165 KiB |
169
resources/sync.js
Normal file
@@ -0,0 +1,169 @@
|
||||
const fs = require('fs')
|
||||
|
||||
const SOURCE_IOS_ICON = 'resources/ios/icon/'
|
||||
const SOURCE_IOS_SPLASH = 'resources/ios/splash/'
|
||||
|
||||
const TARGET_IOS_ICON = 'ios/App/App/Assets.xcassets/AppIcon.appiconset/'
|
||||
const TARGET_IOS_SPLASH = 'ios/App/App/Assets.xcassets/Splash.imageset/'
|
||||
|
||||
const SOURCE_ANDROID_ICON = 'resources/android/icon/'
|
||||
const SOURCE_ANDROID_SPLASH = 'resources/android/splash/'
|
||||
|
||||
const TARGET_ANDROID_ICON = 'android/app/src/main/res/'
|
||||
const TARGET_ANDROID_SPLASH = 'android/app/src/main/res/'
|
||||
|
||||
const IOS_ICONS = [
|
||||
{ source: 'icon-20.png', target: 'AppIcon-20x20@1x.png' },
|
||||
{ source: 'icon-20@2x.png', target: 'AppIcon-20x20@2x.png' },
|
||||
{ source: 'icon-20@2x.png', target: 'AppIcon-20x20@2x-1.png' },
|
||||
{ source: 'icon-20@3x.png', target: 'AppIcon-20x20@3x.png' },
|
||||
{ source: 'icon-29.png', target: 'AppIcon-29x29@1x.png' },
|
||||
{ source: 'icon-29@2x.png', target: 'AppIcon-29x29@2x.png' },
|
||||
{ source: 'icon-29@2x.png', target: 'AppIcon-29x29@2x-1.png' },
|
||||
{ source: 'icon-29@3x.png', target: 'AppIcon-29x29@3x.png' },
|
||||
{ source: 'icon-40.png', target: 'AppIcon-40x40@1x.png' },
|
||||
{ source: 'icon-40@2x.png', target: 'AppIcon-40x40@2x.png' },
|
||||
{ source: 'icon-40@2x.png', target: 'AppIcon-40x40@2x-1.png' },
|
||||
{ source: 'icon-40@3x.png', target: 'AppIcon-40x40@3x.png' },
|
||||
{ source: 'icon-60@2x.png', target: 'AppIcon-60x60@2x.png' },
|
||||
{ source: 'icon-60@3x.png', target: 'AppIcon-60x60@3x.png' },
|
||||
{ source: 'icon-76.png', target: 'AppIcon-76x76@1x.png' },
|
||||
{ source: 'icon-76@2x.png', target: 'AppIcon-76x76@2x.png' },
|
||||
{ source: 'icon-83.5@2x.png', target: 'AppIcon-83.5x83.5@2x.png' },
|
||||
{ source: 'icon-1024.png', target: 'AppIcon-512@2x.png' }
|
||||
]
|
||||
const IOS_SPLASHES = [
|
||||
{ source: 'Default-Portrait@~ipadpro.png', target: 'splash-2732x2732.png' },
|
||||
{
|
||||
source: 'Default-Portrait@~ipadpro.png',
|
||||
target: 'splash-2732x2732-1.png'
|
||||
},
|
||||
{
|
||||
source: 'Default-Portrait@~ipadpro.png',
|
||||
target: 'splash-2732x2732-2.png'
|
||||
}
|
||||
]
|
||||
|
||||
const ANDROID_ICONS = [
|
||||
{ source: 'drawable-ldpi-icon.png', target: 'drawable-hdpi-icon.png' },
|
||||
{ source: 'drawable-mdpi-icon.png', target: 'mipmap-mdpi/ic_launcher.png' },
|
||||
{
|
||||
source: 'drawable-mdpi-icon.png',
|
||||
target: 'mipmap-mdpi/ic_launcher_round.png'
|
||||
},
|
||||
{
|
||||
source: 'drawable-mdpi-icon.png',
|
||||
target: 'mipmap-mdpi/ic_launcher_foreground.png'
|
||||
},
|
||||
{ source: 'drawable-hdpi-icon.png', target: 'mipmap-hdpi/ic_launcher.png' },
|
||||
{
|
||||
source: 'drawable-hdpi-icon.png',
|
||||
target: 'mipmap-hdpi/ic_launcher_round.png'
|
||||
},
|
||||
{
|
||||
source: 'drawable-hdpi-icon.png',
|
||||
target: 'mipmap-hdpi/ic_launcher_foreground.png'
|
||||
},
|
||||
{
|
||||
source: 'drawable-xhdpi-icon.png',
|
||||
target: 'mipmap-xhdpi/ic_launcher.png'
|
||||
},
|
||||
{
|
||||
source: 'drawable-xhdpi-icon.png',
|
||||
target: 'mipmap-xhdpi/ic_launcher_round.png'
|
||||
},
|
||||
{
|
||||
source: 'drawable-xhdpi-icon.png',
|
||||
target: 'mipmap-xhdpi/ic_launcher_foreground.png'
|
||||
},
|
||||
{
|
||||
source: 'drawable-xxhdpi-icon.png',
|
||||
target: 'mipmap-xxhdpi/ic_launcher.png'
|
||||
},
|
||||
{
|
||||
source: 'drawable-xxhdpi-icon.png',
|
||||
target: 'mipmap-xxhdpi/ic_launcher_round.png'
|
||||
},
|
||||
{
|
||||
source: 'drawable-xxhdpi-icon.png',
|
||||
target: 'mipmap-xxhdpi/ic_launcher_foreground.png'
|
||||
},
|
||||
{
|
||||
source: 'drawable-xxxhdpi-icon.png',
|
||||
target: 'mipmap-xxxhdpi/ic_launcher.png'
|
||||
},
|
||||
{
|
||||
source: 'drawable-xxxhdpi-icon.png',
|
||||
target: 'mipmap-xxxhdpi/ic_launcher_round.png'
|
||||
},
|
||||
{
|
||||
source: 'drawable-xxxhdpi-icon.png',
|
||||
target: 'mipmap-xxxhdpi/ic_launcher_foreground.png'
|
||||
}
|
||||
]
|
||||
const ANDROID_SPLASHES = [
|
||||
{ source: 'drawable-land-mdpi-screen.png', target: 'drawable/splash.png' },
|
||||
{
|
||||
source: 'drawable-land-mdpi-screen.png',
|
||||
target: 'drawable-land-mdpi/splash.png'
|
||||
},
|
||||
{
|
||||
source: 'drawable-land-hdpi-screen.png',
|
||||
target: 'drawable-land-hdpi/splash.png'
|
||||
},
|
||||
{
|
||||
source: 'drawable-land-xhdpi-screen.png',
|
||||
target: 'drawable-land-xhdpi/splash.png'
|
||||
},
|
||||
{
|
||||
source: 'drawable-land-xxhdpi-screen.png',
|
||||
target: 'drawable-land-xxhdpi/splash.png'
|
||||
},
|
||||
{
|
||||
source: 'drawable-land-xxxhdpi-screen.png',
|
||||
target: 'drawable-land-xxxhdpi/splash.png'
|
||||
},
|
||||
{
|
||||
source: 'drawable-port-mdpi-screen.png',
|
||||
target: 'drawable-port-mdpi/splash.png'
|
||||
},
|
||||
{
|
||||
source: 'drawable-port-hdpi-screen.png',
|
||||
target: 'drawable-port-hdpi/splash.png'
|
||||
},
|
||||
{
|
||||
source: 'drawable-port-xhdpi-screen.png',
|
||||
target: 'drawable-port-xhdpi/splash.png'
|
||||
},
|
||||
{
|
||||
source: 'drawable-port-xxhdpi-screen.png',
|
||||
target: 'drawable-port-xxhdpi/splash.png'
|
||||
},
|
||||
{
|
||||
source: 'drawable-port-xxxhdpi-screen.png',
|
||||
target: 'drawable-port-xxxhdpi/splash.png'
|
||||
}
|
||||
]
|
||||
|
||||
function copyImages(sourcePath, targetPath, images) {
|
||||
for (const icon of images) {
|
||||
const source = sourcePath + icon.source
|
||||
const target = targetPath + icon.target
|
||||
fs.copyFile(source, target, (err) => {
|
||||
console.log("coping to: " + target)
|
||||
if (err) {
|
||||
throw err
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
if (process.argv.includes('android')) {
|
||||
copyImages(SOURCE_ANDROID_ICON, TARGET_ANDROID_ICON, ANDROID_ICONS)
|
||||
copyImages(SOURCE_ANDROID_SPLASH, TARGET_ANDROID_SPLASH, ANDROID_SPLASHES)
|
||||
}
|
||||
|
||||
if (process.argv.includes('ios')) {
|
||||
copyImages(SOURCE_IOS_ICON, TARGET_IOS_ICON, IOS_ICONS)
|
||||
copyImages(SOURCE_IOS_SPLASH, TARGET_IOS_SPLASH, IOS_SPLASHES)
|
||||
}
|
||||