commit
6d829452c6
16
config.xml
16
config.xml
|
@ -59,6 +59,22 @@
|
||||||
<icon density="xhdpi" src="resources/android/icon/drawable-xhdpi-icon.png" />
|
<icon density="xhdpi" src="resources/android/icon/drawable-xhdpi-icon.png" />
|
||||||
<icon density="xxhdpi" src="resources/android/icon/drawable-xxhdpi-icon.png" />
|
<icon density="xxhdpi" src="resources/android/icon/drawable-xxhdpi-icon.png" />
|
||||||
<icon density="xxxhdpi" src="resources/android/icon/drawable-xxxhdpi-icon.png" />
|
<icon density="xxxhdpi" src="resources/android/icon/drawable-xxxhdpi-icon.png" />
|
||||||
|
<resource-file src="resources/android/icon/drawable-ldpi-smallicon.png" target="app/src/main/res/mipmap-ldpi/smallicon.png" />
|
||||||
|
<resource-file src="resources/android/icon/drawable-mdpi-smallicon.png" target="app/src/main/res/mipmap-mdpi/smallicon.png" />
|
||||||
|
<resource-file src="resources/android/icon/drawable-hdpi-smallicon.png" target="app/src/main/res/mipmap-hdpi/smallicon.png" />
|
||||||
|
<resource-file src="resources/android/icon/drawable-xhdpi-smallicon.png" target="app/src/main/res/mipmap-xhdpi/smallicon.png" />
|
||||||
|
<resource-file src="resources/android/splash/drawable-land-hdpi-screen.png" target="app/src/main/res/drawable-land-hdpi/screen.png" />
|
||||||
|
<resource-file src="resources/android/splash/drawable-land-ldpi-screen.png" target="app/src/main/res/drawable-land-ldpi/screen.png" />
|
||||||
|
<resource-file src="resources/android/splash/drawable-land-mdpi-screen.png" target="app/src/main/res/drawable-land-mdpi/screen.png" />
|
||||||
|
<resource-file src="resources/android/splash/drawable-land-xhdpi-screen.png" target="app/src/main/res/drawable-land-xhdpi/screen.png" />
|
||||||
|
<resource-file src="resources/android/splash/drawable-land-xxhdpi-screen.png" target="app/src/main/res/drawable-land-xxhdpi/screen.png" />
|
||||||
|
<resource-file src="resources/android/splash/drawable-land-xxxhdpi-screen.png" target="app/src/main/res/drawable-land-xxxhdpi/screen.png" />
|
||||||
|
<resource-file src="resources/android/splash/drawable-port-hdpi-screen.png" target="app/src/main/res/drawable-port-hdpi/screen.png" />
|
||||||
|
<resource-file src="resources/android/splash/drawable-port-ldpi-screen.png" target="app/src/main/res/drawable-port-ldpi/screen.png" />
|
||||||
|
<resource-file src="resources/android/splash/drawable-port-mdpi-screen.png" target="app/src/main/res/drawable-port-mdpi/screen.png" />
|
||||||
|
<resource-file src="resources/android/splash/drawable-port-xhdpi-screen.png" target="app/src/main/res/drawable-port-xhdpi/screen.png" />
|
||||||
|
<resource-file src="resources/android/splash/drawable-port-xxhdpi-screen.png" target="app/src/main/res/drawable-port-xxhdpi/screen.png" />
|
||||||
|
<resource-file src="resources/android/splash/drawable-port-xxxhdpi-screen.png" target="app/src/main/res/drawable-port-xxxhdpi/screen.png" />
|
||||||
</platform>
|
</platform>
|
||||||
<platform name="ios">
|
<platform name="ios">
|
||||||
<icon height="57" src="resources/ios/icon/icon.png" width="57" />
|
<icon height="57" src="resources/ios/icon/icon.png" width="57" />
|
||||||
|
|
|
@ -1,49 +0,0 @@
|
||||||
#!/usr/bin/env node
|
|
||||||
|
|
||||||
// This hook copies Android splash screen files from dev directories into the appropriate platform specific location.
|
|
||||||
// The code was extracted from here: http://devgirl.org/2013/11/12/three-hooks-your-cordovaphonegap-project-needs/
|
|
||||||
|
|
||||||
var filesToCopy = [{
|
|
||||||
'resources/android/splash/drawable-land-hdpi-screen.png': 'platforms/android/app/src/main/res/drawable-land-hdpi/screen.png'
|
|
||||||
}, {
|
|
||||||
'resources/android/splash/drawable-land-ldpi-screen.png': 'platforms/android/app/src/main/res/drawable-land-ldpi/screen.png'
|
|
||||||
}, {
|
|
||||||
'resources/android/splash/drawable-land-mdpi-screen.png': 'platforms/android/app/src/main/res/drawable-land-mdpi/screen.png'
|
|
||||||
}, {
|
|
||||||
'resources/android/splash/drawable-land-xhdpi-screen.png': 'platforms/android/app/src/main/res/drawable-land-xhdpi/screen.png'
|
|
||||||
}, {
|
|
||||||
'resources/android/splash/drawable-land-xxhdpi-screen.png': 'platforms/android/app/src/main/res/drawable-land-xxhdpi/screen.png'
|
|
||||||
}, {
|
|
||||||
'resources/android/splash/drawable-land-xxxhdpi-screen.png': 'platforms/android/app/src/main/res/drawable-land-xxxhdpi/screen.png'
|
|
||||||
}, {
|
|
||||||
'resources/android/splash/drawable-port-hdpi-screen.png': 'platforms/android/app/src/main/res/drawable-port-hdpi/screen.png'
|
|
||||||
}, {
|
|
||||||
'resources/android/splash/drawable-port-ldpi-screen.png': 'platforms/android/app/src/main/res/drawable-port-ldpi/screen.png'
|
|
||||||
}, {
|
|
||||||
'resources/android/splash/drawable-port-mdpi-screen.png': 'platforms/android/app/src/main/res/drawable-port-mdpi/screen.png'
|
|
||||||
}, {
|
|
||||||
'resources/android/splash/drawable-port-xhdpi-screen.png': 'platforms/android/app/src/main/res/drawable-port-xhdpi/screen.png'
|
|
||||||
}, {
|
|
||||||
'resources/android/splash/drawable-port-xxhdpi-screen.png': 'platforms/android/app/src/main/res/drawable-port-xxhdpi/screen.png'
|
|
||||||
}, {
|
|
||||||
'resources/android/splash/drawable-port-xxxhdpi-screen.png': 'platforms/android/app/src/main/res/drawable-port-xxxhdpi/screen.png'
|
|
||||||
}
|
|
||||||
];
|
|
||||||
|
|
||||||
var fs = require('fs');
|
|
||||||
var path = require('path');
|
|
||||||
|
|
||||||
// no need to configure below
|
|
||||||
var rootDir = process.argv[2];
|
|
||||||
|
|
||||||
filesToCopy.forEach(function(obj) {
|
|
||||||
Object.keys(obj).forEach(function(key) {
|
|
||||||
var val = obj[key];
|
|
||||||
var srcFile = path.join(rootDir, key);
|
|
||||||
var destFile = path.join(rootDir, val);
|
|
||||||
var destDir = path.dirname(destFile);
|
|
||||||
if (fs.existsSync(srcFile) && fs.existsSync(destDir)) {
|
|
||||||
fs.createReadStream(srcFile).pipe(fs.createWriteStream(destFile));
|
|
||||||
}
|
|
||||||
});
|
|
||||||
});
|
|
Binary file not shown.
After Width: | Height: | Size: 15 KiB |
Binary file not shown.
After Width: | Height: | Size: 14 KiB |
Binary file not shown.
After Width: | Height: | Size: 15 KiB |
Binary file not shown.
After Width: | Height: | Size: 15 KiB |
|
@ -95,7 +95,8 @@ export class AddonPushNotificationsProvider {
|
||||||
return {
|
return {
|
||||||
android: {
|
android: {
|
||||||
senderID: CoreConfigConstants.gcmpn,
|
senderID: CoreConfigConstants.gcmpn,
|
||||||
sound: !!soundEnabled
|
sound: !!soundEnabled,
|
||||||
|
icon: 'smallicon'
|
||||||
},
|
},
|
||||||
ios: {
|
ios: {
|
||||||
alert: 'true',
|
alert: 'true',
|
||||||
|
|
|
@ -448,7 +448,7 @@ export class CoreLocalNotificationsProvider {
|
||||||
|
|
||||||
if (this.platform.is('android')) {
|
if (this.platform.is('android')) {
|
||||||
notification.icon = notification.icon || 'res://icon';
|
notification.icon = notification.icon || 'res://icon';
|
||||||
notification.smallIcon = notification.smallIcon || 'res://icon';
|
notification.smallIcon = notification.smallIcon || 'res://smallicon';
|
||||||
|
|
||||||
const led: any = notification.led || {};
|
const led: any = notification.led || {};
|
||||||
notification.led = {
|
notification.led = {
|
||||||
|
|
Loading…
Reference in New Issue