cordova-res
Advanced tools
Comparing version 0.14.1 to 0.15.0
@@ -5,3 +5,3 @@ /// <reference types="node" /> | ||
import { Format, ResolvedImageSource, ResourceType } from './resources'; | ||
export declare type SharpTransformation = (pipeline: Sharp) => Sharp; | ||
export declare type SharpTransformation = (pipeline: Sharp) => Promise<Sharp> | Sharp; | ||
/** | ||
@@ -37,4 +37,4 @@ * Check an array of source files, returning the first viable image. | ||
export declare function generateImage(image: ImageSchema, src: Sharp, metadata: Metadata, errstream: NodeJS.WritableStream | null): Promise<void>; | ||
export declare function applyTransformations(src: Sharp, transformations: readonly SharpTransformation[]): Sharp; | ||
export declare function applyTransformations(src: Sharp, transformations: readonly SharpTransformation[]): Promise<Sharp>; | ||
export declare function createImageResizer(image: ImageSchema): SharpTransformation; | ||
export declare function createImageConverter(format: Format): SharpTransformation; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const tslib_1 = require("tslib"); | ||
const utils_array_1 = require("@ionic/utils-array"); | ||
const utils_fs_1 = require("@ionic/utils-fs"); | ||
@@ -96,3 +97,3 @@ const debug_1 = tslib_1.__importDefault(require("debug")); | ||
} | ||
const pipeline = applyTransformations(src, [ | ||
const pipeline = await applyTransformations(src, [ | ||
createImageResizer(image), | ||
@@ -104,4 +105,4 @@ createImageConverter(image.format), | ||
exports.generateImage = generateImage; | ||
function applyTransformations(src, transformations) { | ||
return transformations.reduce((pipeline, transformation) => transformation(pipeline), src); | ||
async function applyTransformations(src, transformations) { | ||
return utils_array_1.reduce(transformations, async (pipeline, transformation) => transformation(pipeline), src); | ||
} | ||
@@ -108,0 +109,0 @@ exports.applyTransformations = applyTransformations; |
/// <reference types="node" /> | ||
import { Sharp } from 'sharp'; | ||
import { ResizeOptions, ImageSchema } from './image'; | ||
import { ResizeOptions } from './image'; | ||
import { NativeProjectConfig } from './native'; | ||
import { Platform, RunPlatformOptions } from './platform'; | ||
import { Platform, RunPlatformOptions, TransformFunction } from './platform'; | ||
import { Density, Orientation, SourceType } from './resources'; | ||
@@ -29,6 +28,6 @@ interface Result { | ||
type PlatformOptions = { | ||
[P in Platform]?: Readonly<RunPlatformOptions>; | ||
[P in Platform]?: RunPlatformOptions; | ||
}; | ||
type NativeProjectConfigByPlatform = { | ||
[P in Platform]?: Readonly<NativeProjectConfig>; | ||
[P in Platform]?: NativeProjectConfig; | ||
}; | ||
@@ -49,3 +48,3 @@ type Operations = ResizeOptions & { | ||
*/ | ||
readonly transform?: (image: ImageSchema, pipeline: Sharp) => Sharp; | ||
readonly transform?: TransformFunction; | ||
}; | ||
@@ -52,0 +51,0 @@ /** |
/// <reference types="node" /> | ||
import { Platform } from './platform'; | ||
export interface NativeProjectConfig { | ||
directory: string; | ||
readonly directory: string; | ||
} | ||
export declare const enum NativeResourceType { | ||
IOS_ICON = "ios-icon", | ||
IOS_SPLASH = "ios-splash", | ||
ANDROID_ADAPTIVE_FOREGROUND = "android-adaptive-foreground", | ||
ANDROID_ADAPTIVE_BACKGROUND = "android-adaptive-background", | ||
ANDROID_ROUND = "android-round", | ||
ANDROID_LEGACY = "android-legacy", | ||
ANDROID_SPLASH = "android-splash" | ||
} | ||
export interface NativeResource { | ||
readonly type: NativeResourceType; | ||
readonly source: string; | ||
readonly target: string; | ||
} | ||
export declare function copyToNativeProject(platform: Platform, nativeProject: NativeProjectConfig, shouldCopyIcons: boolean, shouldCopySplash: boolean, logstream: NodeJS.WritableStream | null, errstream: NodeJS.WritableStream | null): Promise<void>; |
@@ -9,101 +9,196 @@ "use strict"; | ||
const platform_1 = require("./platform"); | ||
const resources_1 = require("./resources"); | ||
const debug = debug_1.default('cordova-res:native'); | ||
const SOURCE_IOS_ICON = 'resources/ios/icon/'; | ||
const SOURCE_IOS_SPLASH = 'resources/ios/splash/'; | ||
const TARGET_IOS_ICON = '/App/App/Assets.xcassets/AppIcon.appiconset/'; | ||
const TARGET_IOS_SPLASH = '/App/App/Assets.xcassets/Splash.imageset/'; | ||
const SOURCE_ANDROID_ICON = 'resources/android/icon/'; | ||
const SOURCE_ANDROID_SPLASH = 'resources/android/splash/'; | ||
const TARGET_ANDROID_ICON = '/app/src/main/res/'; | ||
const TARGET_ANDROID_SPLASH = '/app/src/main/res/'; | ||
// TODO: IOS_ICONS, IOS_SPLASHES, ANDROID_ICONS, and ANDROID_SPLASHES should | ||
// probably be part of RESOURCES config. | ||
const SOURCE_IOS_ICON = 'resources/ios/icon'; | ||
const SOURCE_IOS_SPLASH = 'resources/ios/splash'; | ||
const SOURCE_ANDROID_ICON = 'resources/android/icon'; | ||
const SOURCE_ANDROID_SPLASH = 'resources/android/splash'; | ||
const IOS_APP_ICON_SET_NAME = 'AppIcon'; | ||
const IOS_APP_ICON_SET_PATH = `App/App/Assets.xcassets/${IOS_APP_ICON_SET_NAME}.appiconset`; | ||
const IOS_SPLASH_IMAGE_SET_NAME = 'Splash'; | ||
const IOS_SPLASH_IMAGE_SET_PATH = `App/App/Assets.xcassets/${IOS_SPLASH_IMAGE_SET_NAME}.imageset`; | ||
const ANDROID_RES_PATH = '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' }, | ||
{ | ||
type: "ios-icon" /* IOS_ICON */, | ||
source: resources_1.IOS_20_PT_ICON.src, | ||
target: 'AppIcon-20x20@1x.png', | ||
}, | ||
{ | ||
type: "ios-icon" /* IOS_ICON */, | ||
source: resources_1.IOS_20_PT_2X_ICON.src, | ||
target: 'AppIcon-20x20@2x.png', | ||
}, | ||
{ | ||
type: "ios-icon" /* IOS_ICON */, | ||
source: resources_1.IOS_20_PT_2X_ICON.src, | ||
target: 'AppIcon-20x20@2x-1.png', | ||
}, | ||
{ | ||
type: "ios-icon" /* IOS_ICON */, | ||
source: resources_1.IOS_20_PT_3X_ICON.src, | ||
target: 'AppIcon-20x20@3x.png', | ||
}, | ||
{ | ||
type: "ios-icon" /* IOS_ICON */, | ||
source: resources_1.IOS_29_PT_ICON.src, | ||
target: 'AppIcon-29x29@1x.png', | ||
}, | ||
{ | ||
type: "ios-icon" /* IOS_ICON */, | ||
source: resources_1.IOS_29_PT_2X_ICON.src, | ||
target: 'AppIcon-29x29@2x.png', | ||
}, | ||
{ | ||
type: "ios-icon" /* IOS_ICON */, | ||
source: resources_1.IOS_29_PT_2X_ICON.src, | ||
target: 'AppIcon-29x29@2x-1.png', | ||
}, | ||
{ | ||
type: "ios-icon" /* IOS_ICON */, | ||
source: resources_1.IOS_29_PT_3X_ICON.src, | ||
target: 'AppIcon-29x29@3x.png', | ||
}, | ||
{ | ||
type: "ios-icon" /* IOS_ICON */, | ||
source: resources_1.IOS_40_PT_ICON.src, | ||
target: 'AppIcon-40x40@1x.png', | ||
}, | ||
{ | ||
type: "ios-icon" /* IOS_ICON */, | ||
source: resources_1.IOS_40_PT_2X_ICON.src, | ||
target: 'AppIcon-40x40@2x.png', | ||
}, | ||
{ | ||
type: "ios-icon" /* IOS_ICON */, | ||
source: resources_1.IOS_40_PT_2X_ICON.src, | ||
target: 'AppIcon-40x40@2x-1.png', | ||
}, | ||
{ | ||
type: "ios-icon" /* IOS_ICON */, | ||
source: resources_1.IOS_40_PT_3X_ICON.src, | ||
target: 'AppIcon-40x40@3x.png', | ||
}, | ||
{ | ||
type: "ios-icon" /* IOS_ICON */, | ||
source: resources_1.IOS_60_PT_2X_ICON.src, | ||
target: 'AppIcon-60x60@2x.png', | ||
}, | ||
{ | ||
type: "ios-icon" /* IOS_ICON */, | ||
source: resources_1.IOS_60_PT_3X_ICON.src, | ||
target: 'AppIcon-60x60@3x.png', | ||
}, | ||
{ | ||
type: "ios-icon" /* IOS_ICON */, | ||
source: resources_1.IOS_76_PT_ICON.src, | ||
target: 'AppIcon-76x76@1x.png', | ||
}, | ||
{ | ||
type: "ios-icon" /* IOS_ICON */, | ||
source: resources_1.IOS_76_PT_2X_ICON.src, | ||
target: 'AppIcon-76x76@2x.png', | ||
}, | ||
{ | ||
type: "ios-icon" /* IOS_ICON */, | ||
source: resources_1.IOS_83_5_PT_2X_ICON.src, | ||
target: 'AppIcon-83.5x83.5@2x.png', | ||
}, | ||
{ | ||
type: "ios-icon" /* IOS_ICON */, | ||
source: resources_1.IOS_1024_ICON.src, | ||
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' }, | ||
{ | ||
type: "ios-splash" /* IOS_SPLASH */, | ||
source: resources_1.IOS_2X_UNIVERSAL_ANYANY_SPLASH.src, | ||
target: 'splash-2732x2732.png', | ||
}, | ||
{ | ||
type: "ios-splash" /* IOS_SPLASH */, | ||
source: resources_1.IOS_2X_UNIVERSAL_ANYANY_SPLASH.src, | ||
target: 'splash-2732x2732-1.png', | ||
}, | ||
{ | ||
type: "ios-splash" /* IOS_SPLASH */, | ||
source: resources_1.IOS_2X_UNIVERSAL_ANYANY_SPLASH.src, | ||
target: 'splash-2732x2732-2.png', | ||
}, | ||
]; | ||
const ANDROID_ICONS = [ | ||
{ | ||
source: 'drawable-ldpi-icon.png', | ||
target: 'drawable-hdpi-icon.png', | ||
}, | ||
{ | ||
source: 'drawable-mdpi-icon.png', | ||
type: "android-legacy" /* ANDROID_LEGACY */, | ||
source: resources_1.ANDROID_MDPI_ICON.src, | ||
target: 'mipmap-mdpi/ic_launcher.png', | ||
}, | ||
{ | ||
source: 'drawable-mdpi-icon.png', | ||
type: "android-round" /* ANDROID_ROUND */, | ||
source: resources_1.ANDROID_MDPI_ICON.src, | ||
target: 'mipmap-mdpi/ic_launcher_round.png', | ||
}, | ||
{ | ||
source: 'mdpi-foreground.png', | ||
type: "android-adaptive-foreground" /* ANDROID_ADAPTIVE_FOREGROUND */, | ||
source: resources_1.ANDROID_MDPI_ADAPTIVE_ICON.foreground, | ||
target: 'mipmap-mdpi/ic_launcher_foreground.png', | ||
}, | ||
{ | ||
source: 'drawable-hdpi-icon.png', | ||
type: "android-legacy" /* ANDROID_LEGACY */, | ||
source: resources_1.ANDROID_HDPI_ICON.src, | ||
target: 'mipmap-hdpi/ic_launcher.png', | ||
}, | ||
{ | ||
source: 'drawable-hdpi-icon.png', | ||
type: "android-round" /* ANDROID_ROUND */, | ||
source: resources_1.ANDROID_HDPI_ICON.src, | ||
target: 'mipmap-hdpi/ic_launcher_round.png', | ||
}, | ||
{ | ||
source: 'hdpi-foreground.png', | ||
type: "android-adaptive-foreground" /* ANDROID_ADAPTIVE_FOREGROUND */, | ||
source: resources_1.ANDROID_HDPI_ADAPTIVE_ICON.foreground, | ||
target: 'mipmap-hdpi/ic_launcher_foreground.png', | ||
}, | ||
{ | ||
source: 'drawable-xhdpi-icon.png', | ||
type: "android-legacy" /* ANDROID_LEGACY */, | ||
source: resources_1.ANDROID_XHDPI_ICON.src, | ||
target: 'mipmap-xhdpi/ic_launcher.png', | ||
}, | ||
{ | ||
source: 'drawable-xhdpi-icon.png', | ||
type: "android-round" /* ANDROID_ROUND */, | ||
source: resources_1.ANDROID_XHDPI_ICON.src, | ||
target: 'mipmap-xhdpi/ic_launcher_round.png', | ||
}, | ||
{ | ||
source: 'xhdpi-foreground.png', | ||
type: "android-adaptive-foreground" /* ANDROID_ADAPTIVE_FOREGROUND */, | ||
source: resources_1.ANDROID_XHDPI_ADAPTIVE_ICON.foreground, | ||
target: 'mipmap-xhdpi/ic_launcher_foreground.png', | ||
}, | ||
{ | ||
source: 'drawable-xxhdpi-icon.png', | ||
type: "android-legacy" /* ANDROID_LEGACY */, | ||
source: resources_1.ANDROID_XXHDPI_ICON.src, | ||
target: 'mipmap-xxhdpi/ic_launcher.png', | ||
}, | ||
{ | ||
source: 'drawable-xxhdpi-icon.png', | ||
type: "android-round" /* ANDROID_ROUND */, | ||
source: resources_1.ANDROID_XXHDPI_ICON.src, | ||
target: 'mipmap-xxhdpi/ic_launcher_round.png', | ||
}, | ||
{ | ||
source: 'xxhdpi-foreground.png', | ||
type: "android-adaptive-foreground" /* ANDROID_ADAPTIVE_FOREGROUND */, | ||
source: resources_1.ANDROID_XXHDPI_ADAPTIVE_ICON.foreground, | ||
target: 'mipmap-xxhdpi/ic_launcher_foreground.png', | ||
}, | ||
{ | ||
source: 'drawable-xxxhdpi-icon.png', | ||
type: "android-legacy" /* ANDROID_LEGACY */, | ||
source: resources_1.ANDROID_XXXHDPI_ICON.src, | ||
target: 'mipmap-xxxhdpi/ic_launcher.png', | ||
}, | ||
{ | ||
source: 'drawable-xxxhdpi-icon.png', | ||
type: "android-round" /* ANDROID_ROUND */, | ||
source: resources_1.ANDROID_XXXHDPI_ICON.src, | ||
target: 'mipmap-xxxhdpi/ic_launcher_round.png', | ||
}, | ||
{ | ||
source: 'xxxhdpi-foreground.png', | ||
type: "android-adaptive-foreground" /* ANDROID_ADAPTIVE_FOREGROUND */, | ||
source: resources_1.ANDROID_XXXHDPI_ADAPTIVE_ICON.foreground, | ||
target: 'mipmap-xxxhdpi/ic_launcher_foreground.png', | ||
@@ -113,41 +208,55 @@ }, | ||
const ANDROID_SPLASHES = [ | ||
{ source: 'drawable-land-mdpi-screen.png', target: 'drawable/splash.png' }, | ||
{ | ||
source: 'drawable-land-mdpi-screen.png', | ||
type: "android-splash" /* ANDROID_SPLASH */, | ||
source: resources_1.ANDROID_LAND_MDPI_SCREEN.src, | ||
target: 'drawable/splash.png', | ||
}, | ||
{ | ||
type: "android-splash" /* ANDROID_SPLASH */, | ||
source: resources_1.ANDROID_LAND_MDPI_SCREEN.src, | ||
target: 'drawable-land-mdpi/splash.png', | ||
}, | ||
{ | ||
source: 'drawable-land-hdpi-screen.png', | ||
type: "android-splash" /* ANDROID_SPLASH */, | ||
source: resources_1.ANDROID_LAND_HDPI_SCREEN.src, | ||
target: 'drawable-land-hdpi/splash.png', | ||
}, | ||
{ | ||
source: 'drawable-land-xhdpi-screen.png', | ||
type: "android-splash" /* ANDROID_SPLASH */, | ||
source: resources_1.ANDROID_LAND_XHDPI_SCREEN.src, | ||
target: 'drawable-land-xhdpi/splash.png', | ||
}, | ||
{ | ||
source: 'drawable-land-xxhdpi-screen.png', | ||
type: "android-splash" /* ANDROID_SPLASH */, | ||
source: resources_1.ANDROID_LAND_XXHDPI_SCREEN.src, | ||
target: 'drawable-land-xxhdpi/splash.png', | ||
}, | ||
{ | ||
source: 'drawable-land-xxxhdpi-screen.png', | ||
type: "android-splash" /* ANDROID_SPLASH */, | ||
source: resources_1.ANDROID_LAND_XXXHDPI_SCREEN.src, | ||
target: 'drawable-land-xxxhdpi/splash.png', | ||
}, | ||
{ | ||
source: 'drawable-port-mdpi-screen.png', | ||
type: "android-splash" /* ANDROID_SPLASH */, | ||
source: resources_1.ANDROID_PORT_MDPI_SCREEN.src, | ||
target: 'drawable-port-mdpi/splash.png', | ||
}, | ||
{ | ||
source: 'drawable-port-hdpi-screen.png', | ||
type: "android-splash" /* ANDROID_SPLASH */, | ||
source: resources_1.ANDROID_PORT_HDPI_SCREEN.src, | ||
target: 'drawable-port-hdpi/splash.png', | ||
}, | ||
{ | ||
source: 'drawable-port-xhdpi-screen.png', | ||
type: "android-splash" /* ANDROID_SPLASH */, | ||
source: resources_1.ANDROID_PORT_XHDPI_SCREEN.src, | ||
target: 'drawable-port-xhdpi/splash.png', | ||
}, | ||
{ | ||
source: 'drawable-port-xxhdpi-screen.png', | ||
type: "android-splash" /* ANDROID_SPLASH */, | ||
source: resources_1.ANDROID_PORT_XXHDPI_SCREEN.src, | ||
target: 'drawable-port-xxhdpi/splash.png', | ||
}, | ||
{ | ||
source: 'drawable-port-xxxhdpi-screen.png', | ||
type: "android-splash" /* ANDROID_SPLASH */, | ||
source: resources_1.ANDROID_PORT_XXXHDPI_SCREEN.src, | ||
target: 'drawable-port-xxxhdpi/splash.png', | ||
@@ -170,6 +279,6 @@ }, | ||
if (shouldCopyIcons) { | ||
count += await copyImages(SOURCE_IOS_ICON, path_1.default.join(iosProjectDirectory, TARGET_IOS_ICON), IOS_ICONS); | ||
count += await copyImages(SOURCE_IOS_ICON, path_1.default.join(iosProjectDirectory, IOS_APP_ICON_SET_PATH), IOS_ICONS); | ||
} | ||
if (shouldCopySplash) { | ||
count += await copyImages(SOURCE_IOS_SPLASH, path_1.default.join(iosProjectDirectory, TARGET_IOS_SPLASH), IOS_SPLASHES); | ||
count += await copyImages(SOURCE_IOS_SPLASH, path_1.default.join(iosProjectDirectory, IOS_SPLASH_IMAGE_SET_PATH), IOS_SPLASHES); | ||
} | ||
@@ -180,6 +289,6 @@ } | ||
if (shouldCopyIcons) { | ||
count += await copyImages(SOURCE_ANDROID_ICON, path_1.default.join(androidProjectDirectory, TARGET_ANDROID_ICON), ANDROID_ICONS); | ||
count += await copyImages(SOURCE_ANDROID_ICON, path_1.default.join(androidProjectDirectory, ANDROID_RES_PATH), ANDROID_ICONS); | ||
} | ||
if (shouldCopySplash) { | ||
count += await copyImages(SOURCE_ANDROID_SPLASH, path_1.default.join(androidProjectDirectory, TARGET_ANDROID_SPLASH), ANDROID_SPLASHES); | ||
count += await copyImages(SOURCE_ANDROID_SPLASH, path_1.default.join(androidProjectDirectory, ANDROID_RES_PATH), ANDROID_SPLASHES); | ||
} | ||
@@ -186,0 +295,0 @@ } |
@@ -15,3 +15,3 @@ /// <reference types="node" /> | ||
} | ||
export declare type TransformFunction = (image: ImageSchema, pipeline: Sharp) => Sharp; | ||
export declare type TransformFunction = (image: ImageSchema, pipeline: Sharp) => Promise<Sharp> | Sharp; | ||
export interface ResourceOptions<S> { | ||
@@ -52,5 +52,5 @@ /** | ||
export interface RunPlatformOptions { | ||
[ResourceType.ADAPTIVE_ICON]?: AdaptiveIconResourceOptions; | ||
[ResourceType.ICON]?: SimpleResourceOptions; | ||
[ResourceType.SPLASH]?: SimpleResourceOptions; | ||
readonly [ResourceType.ADAPTIVE_ICON]?: AdaptiveIconResourceOptions; | ||
readonly [ResourceType.ICON]?: SimpleResourceOptions; | ||
readonly [ResourceType.SPLASH]?: SimpleResourceOptions; | ||
} | ||
@@ -57,0 +57,0 @@ export interface GeneratedImageResource { |
@@ -107,4 +107,4 @@ "use strict"; | ||
function combineTransformFunctions(transformations) { | ||
return transformations.reduce((acc, transformation) => (image, pipeline) => { | ||
const result = acc(image, pipeline); | ||
return transformations.reduce((acc, transformation) => async (image, pipeline) => { | ||
const result = await acc(image, pipeline); | ||
if (!result || typeof result !== 'object') { | ||
@@ -228,3 +228,3 @@ throw new error_1.BadInputError(`Invalid Sharp pipeline returned while performing transforms: ${result}`); | ||
await utils_fs_1.ensureDir(path_1.default.dirname(dest)); | ||
const img = transform(generatedImage, pipeline.clone()); | ||
const img = await transform(generatedImage, pipeline.clone()); | ||
await image_1.generateImage(generatedImage, img, metadata, errstream); | ||
@@ -231,0 +231,0 @@ return { |
@@ -14,16 +14,2 @@ /// <reference types="node" /> | ||
} | ||
/** | ||
* @see https://cordova.apache.org/docs/en/latest/config_ref/images.html#windows | ||
*/ | ||
export declare const enum Target { | ||
STORE_LOGO = "StoreLogo", | ||
SQUARE_30_X_30_LOGO = "Square30x30Logo", | ||
SQUARE_44_X_44_LOGO = "Square44x44Logo", | ||
SQUARE_70_X_70_LOGO = "Square70x70Logo", | ||
SQUARE_71_X_71_LOGO = "Square71x71Logo", | ||
SQUARE_150_X_150_LOGO = "Square150x150Logo", | ||
SQUARE_310_X_310_LOGO = "Square310x310Logo", | ||
WIDE_310_X_150_LOGO = "Wide310x150Logo", | ||
SPLASH_SCREEN = "SplashScreen" | ||
} | ||
export interface ImageSource { | ||
@@ -115,2 +101,16 @@ type: SourceType.RASTER; | ||
} | ||
/** | ||
* @see https://cordova.apache.org/docs/en/latest/config_ref/images.html#windows | ||
*/ | ||
export declare const enum Target { | ||
STORE_LOGO = "StoreLogo", | ||
SQUARE_30_X_30_LOGO = "Square30x30Logo", | ||
SQUARE_44_X_44_LOGO = "Square44x44Logo", | ||
SQUARE_70_X_70_LOGO = "Square70x70Logo", | ||
SQUARE_71_X_71_LOGO = "Square71x71Logo", | ||
SQUARE_150_X_150_LOGO = "Square150x150Logo", | ||
SQUARE_310_X_310_LOGO = "Square310x310Logo", | ||
WIDE_310_X_150_LOGO = "Wide310x150Logo", | ||
SPLASH_SCREEN = "SplashScreen" | ||
} | ||
export declare const enum ResourceKey { | ||
@@ -124,2 +124,3 @@ SRC = "src", | ||
DENSITY = "density", | ||
SCALE = "scale", | ||
ORIENTATION = "orientation", | ||
@@ -136,2 +137,3 @@ TARGET = "target" | ||
readonly [ResourceKey.DENSITY]: Density; | ||
readonly [ResourceKey.SCALE]: number; | ||
readonly [ResourceKey.ORIENTATION]: Orientation; | ||
@@ -153,6 +155,6 @@ readonly [ResourceKey.TARGET]: Target; | ||
export declare type AndroidSplashResourceConfig = BaseResourceConfig<Platform.ANDROID, ResourceType.SPLASH, ImageResourceKey | ResourceKey.SRC | ResourceKey.DENSITY | ResourceKey.ORIENTATION>; | ||
export declare type IOSIconResourceConfig = BaseResourceConfig<Platform.IOS, ResourceType.ICON, ImageResourceKey | ResourceKey.SRC>; | ||
export declare type IOSSplashResourceConfig = BaseResourceConfig<Platform.IOS, ResourceType.SPLASH, ImageResourceKey | ResourceKey.SRC | ResourceKey.ORIENTATION>; | ||
export declare type WindowsIconResourceConfig = BaseResourceConfig<Platform.WINDOWS, ResourceType.ICON, ImageResourceKey | ResourceKey.SRC | ResourceKey.TARGET>; | ||
export declare type WindowsSplashResourceConfig = BaseResourceConfig<Platform.WINDOWS, ResourceType.SPLASH, ImageResourceKey | ResourceKey.SRC | ResourceKey.ORIENTATION | ResourceKey.TARGET>; | ||
export declare type IOSIconResourceConfig = BaseResourceConfig<Platform.IOS, ResourceType.ICON, ImageResourceKey | ResourceKey.SRC | ResourceKey.SCALE>; | ||
export declare type IOSSplashResourceConfig = BaseResourceConfig<Platform.IOS, ResourceType.SPLASH, ImageResourceKey | ResourceKey.SRC | ResourceKey.ORIENTATION | ResourceKey.SCALE>; | ||
export declare type WindowsIconResourceConfig = BaseResourceConfig<Platform.WINDOWS, ResourceType.ICON, ImageResourceKey | ResourceKey.SRC | ResourceKey.TARGET | ResourceKey.SCALE>; | ||
export declare type WindowsSplashResourceConfig = BaseResourceConfig<Platform.WINDOWS, ResourceType.SPLASH, ImageResourceKey | ResourceKey.SRC | ResourceKey.ORIENTATION | ResourceKey.TARGET | ResourceKey.SCALE>; | ||
export declare type SimpleResourceConfig = AndroidIconResourceConfig | AndroidSplashResourceConfig | IOSIconResourceConfig | IOSSplashResourceConfig | WindowsIconResourceConfig | WindowsSplashResourceConfig; | ||
@@ -167,2 +169,26 @@ export declare type ResourceConfig = AndroidAdaptiveIconResourceConfig | SimpleResourceConfig; | ||
/** | ||
* App Icon: App list in start menu, task bar, task manager | ||
*/ | ||
export declare const WINDOWS_SQUARE_44_X_44_ICON: WindowsIconResourceConfig; | ||
/** | ||
* Small tile: Start menu | ||
*/ | ||
export declare const WINDOWS_SQUARE_71_X_71_ICON: WindowsIconResourceConfig; | ||
/** | ||
* Medium Tile: For Start menu, Microsoft Store listing | ||
*/ | ||
export declare const WINDOWS_SQUARE_150_X_150_ICON: WindowsIconResourceConfig; | ||
/** | ||
* Large Tile: Start Menu | ||
*/ | ||
export declare const WINDOWS_SQUARE_310_X_310_ICON: WindowsIconResourceConfig; | ||
/** | ||
* Wide Tile: Start Menu | ||
*/ | ||
export declare const WINDOWS_WIDE_310_X_150_LOGO: WindowsIconResourceConfig; | ||
/** | ||
* Store Logo: App installer, Partner Center, the "Report an app" option in the Store, the "Write a review" option in the Store | ||
*/ | ||
export declare const WINDOWS_STORE_LOGO: WindowsIconResourceConfig; | ||
/** | ||
* @see https://cordova.apache.org/docs/en/latest/config_ref/images.html#windows | ||
@@ -173,2 +199,3 @@ * @see https://docs.microsoft.com/en-us/windows/uwp/design/style/app-icons-and-logos | ||
export declare const WINDOWS_ICON_RESOURCES: readonly WindowsIconResourceConfig[]; | ||
export declare const WINDOWS_SPLASH_SCREEN: WindowsSplashResourceConfig; | ||
/** | ||
@@ -179,6 +206,164 @@ * @see https://msdn.microsoft.com/en-us/windows/desktop/hh465338 | ||
export declare const WINDOWS_SPLASH_RESOURCES: readonly WindowsSplashResourceConfig[]; | ||
export declare const ANDROID_LDPI_ADAPTIVE_ICON: AndroidAdaptiveIconResourceConfig; | ||
export declare const ANDROID_MDPI_ADAPTIVE_ICON: AndroidAdaptiveIconResourceConfig; | ||
export declare const ANDROID_HDPI_ADAPTIVE_ICON: AndroidAdaptiveIconResourceConfig; | ||
export declare const ANDROID_XHDPI_ADAPTIVE_ICON: AndroidAdaptiveIconResourceConfig; | ||
export declare const ANDROID_XXHDPI_ADAPTIVE_ICON: AndroidAdaptiveIconResourceConfig; | ||
export declare const ANDROID_XXXHDPI_ADAPTIVE_ICON: AndroidAdaptiveIconResourceConfig; | ||
export declare const ANDROID_ADAPTIVE_ICON_RESOURCES: readonly AndroidAdaptiveIconResourceConfig[]; | ||
export declare const ANDROID_LDPI_ICON: AndroidIconResourceConfig; | ||
export declare const ANDROID_MDPI_ICON: AndroidIconResourceConfig; | ||
export declare const ANDROID_HDPI_ICON: AndroidIconResourceConfig; | ||
export declare const ANDROID_XHDPI_ICON: AndroidIconResourceConfig; | ||
export declare const ANDROID_XXHDPI_ICON: AndroidIconResourceConfig; | ||
export declare const ANDROID_XXXHDPI_ICON: AndroidIconResourceConfig; | ||
export declare const ANDROID_ICON_RESOURCES: readonly AndroidIconResourceConfig[]; | ||
export declare const ANDROID_LAND_LDPI_SCREEN: AndroidSplashResourceConfig; | ||
export declare const ANDROID_LAND_MDPI_SCREEN: AndroidSplashResourceConfig; | ||
export declare const ANDROID_LAND_HDPI_SCREEN: AndroidSplashResourceConfig; | ||
export declare const ANDROID_LAND_XHDPI_SCREEN: AndroidSplashResourceConfig; | ||
export declare const ANDROID_LAND_XXHDPI_SCREEN: AndroidSplashResourceConfig; | ||
export declare const ANDROID_LAND_XXXHDPI_SCREEN: AndroidSplashResourceConfig; | ||
export declare const ANDROID_PORT_LDPI_SCREEN: AndroidSplashResourceConfig; | ||
export declare const ANDROID_PORT_MDPI_SCREEN: AndroidSplashResourceConfig; | ||
export declare const ANDROID_PORT_HDPI_SCREEN: AndroidSplashResourceConfig; | ||
export declare const ANDROID_PORT_XHDPI_SCREEN: AndroidSplashResourceConfig; | ||
export declare const ANDROID_PORT_XXHDPI_SCREEN: AndroidSplashResourceConfig; | ||
export declare const ANDROID_PORT_XXXHDPI_SCREEN: AndroidSplashResourceConfig; | ||
export declare const ANDROID_SPLASH_RESOURCES: readonly AndroidSplashResourceConfig[]; | ||
/** | ||
* 20pt Icon | ||
* | ||
* - iPhone Notification (iOS 7+) | ||
* - iPad Notification (iOS 7+) | ||
*/ | ||
export declare const IOS_20_PT_ICON: IOSIconResourceConfig; | ||
export declare const IOS_20_PT_2X_ICON: IOSIconResourceConfig; | ||
export declare const IOS_20_PT_3X_ICON: IOSIconResourceConfig; | ||
/** | ||
* 29pt Icon | ||
* | ||
* - iPhone Settings (iOS 7+) | ||
* - iPad Settings (iOS 7+) | ||
* - Apple Watch Companion Settings | ||
* - Apple Watch Notification Center | ||
*/ | ||
export declare const IOS_29_PT_ICON: IOSIconResourceConfig; | ||
export declare const IOS_29_PT_2X_ICON: IOSIconResourceConfig; | ||
export declare const IOS_29_PT_3X_ICON: IOSIconResourceConfig; | ||
/** | ||
* 40pt Icon | ||
* | ||
* - iPhone Spotlight (iOS 7+) | ||
* - iPad Spotlight (iOS 7+) | ||
* - Apple Watch Home Screen | ||
*/ | ||
export declare const IOS_40_PT_ICON: IOSIconResourceConfig; | ||
export declare const IOS_40_PT_2X_ICON: IOSIconResourceConfig; | ||
export declare const IOS_40_PT_3X_ICON: IOSIconResourceConfig; | ||
/** | ||
* 50pt Icon | ||
* | ||
* - iPad Spotlight (iOS 5,6) | ||
* - Apple Watch Home Screen | ||
*/ | ||
export declare const IOS_50_PT_ICON: IOSIconResourceConfig; | ||
export declare const IOS_50_PT_2X_ICON: IOSIconResourceConfig; | ||
/** | ||
* 57pt Icon | ||
* | ||
* - iPhone App (iOS 5,6) | ||
*/ | ||
export declare const IOS_57_PT_ICON: IOSIconResourceConfig; | ||
export declare const IOS_57_PT_2X_ICON: IOSIconResourceConfig; | ||
/** | ||
* 60pt Icon | ||
* | ||
* - iPhone App (iOS 7+) | ||
*/ | ||
export declare const IOS_60_PT_ICON: IOSIconResourceConfig; | ||
export declare const IOS_60_PT_2X_ICON: IOSIconResourceConfig; | ||
export declare const IOS_60_PT_3X_ICON: IOSIconResourceConfig; | ||
/** | ||
* 72pt Icon | ||
* | ||
* - iPad App (iOS 5,6) | ||
*/ | ||
export declare const IOS_72_PT_ICON: IOSIconResourceConfig; | ||
export declare const IOS_72_PT_2X_ICON: IOSIconResourceConfig; | ||
/** | ||
* 76pt Icon | ||
* | ||
* - iPad App (iOS 7+) | ||
*/ | ||
export declare const IOS_76_PT_ICON: IOSIconResourceConfig; | ||
export declare const IOS_76_PT_2X_ICON: IOSIconResourceConfig; | ||
/** | ||
* 83.5pt Icon | ||
* | ||
* iPad Pro (12.9-inch) | ||
*/ | ||
export declare const IOS_83_5_PT_2X_ICON: IOSIconResourceConfig; | ||
/** | ||
* 1024px Icon | ||
* | ||
* - App Store | ||
*/ | ||
export declare const IOS_1024_ICON: IOSIconResourceConfig; | ||
/** | ||
* 24pt Icon | ||
* | ||
* - Apple Watch Notification Center | ||
*/ | ||
export declare const IOS_24_PT_ICON: IOSIconResourceConfig; | ||
/** | ||
* 27.5pt Icon | ||
* | ||
* - Apple Watch Notification Center | ||
*/ | ||
export declare const IOS_27_5_PT_ICON: IOSIconResourceConfig; | ||
/** | ||
* 44pt Icon | ||
* | ||
* - Apple Watch Home Screen | ||
*/ | ||
export declare const IOS_44_PT_2X_ICON: IOSIconResourceConfig; | ||
/** | ||
* 86pt Icon | ||
* | ||
* - Apple Watch Short Look | ||
*/ | ||
export declare const IOS_86_PT_2X_ICON: IOSIconResourceConfig; | ||
/** | ||
* 98pt Icon | ||
* | ||
* - Apple Watch Short Look | ||
*/ | ||
export declare const IOS_98_PT_2X_ICON: IOSIconResourceConfig; | ||
/** | ||
* 108pt Icon | ||
* | ||
* - Apple Watch Short Look | ||
*/ | ||
export declare const IOS_108_PT_2X_ICON: IOSIconResourceConfig; | ||
export declare const IOS_ICON_RESOURCES: readonly IOSIconResourceConfig[]; | ||
export declare const IOS_568H_2X_IPHONE_SPLASH: IOSSplashResourceConfig; | ||
export declare const IOS_667H_SPLASH: IOSSplashResourceConfig; | ||
export declare const IOS_2688H_IPHONE_SPLASH: IOSSplashResourceConfig; | ||
export declare const IOS_2688H_LANDSCAPE_IPHONE_SPLASH: IOSSplashResourceConfig; | ||
export declare const IOS_1792H_IPHONE_SPLASH: IOSSplashResourceConfig; | ||
export declare const IOS_1792H_LANDSCAPE_IPHONE_SPLASH: IOSSplashResourceConfig; | ||
export declare const IOS_2436H_SPLASH: IOSSplashResourceConfig; | ||
export declare const IOS_2436H_LANDSCAPE_SPLASH: IOSSplashResourceConfig; | ||
export declare const IOS_736H_SPLASH: IOSSplashResourceConfig; | ||
export declare const IOS_736H_LANDSCAPE_SPLASH: IOSSplashResourceConfig; | ||
export declare const IOS_LANDSCAPE_2X_IPAD_SPLASH: IOSSplashResourceConfig; | ||
export declare const IOS_LANDSCAPE_IPADPRO_SPLASH: IOSSplashResourceConfig; | ||
export declare const IOS_LANDSCAPE_IPAD_SPLASH: IOSSplashResourceConfig; | ||
export declare const IOS_PORTRAIT_2X_IPAD_SPLASH: IOSSplashResourceConfig; | ||
export declare const IOS_PORTRAIT_IPADPRO_SPLASH: IOSSplashResourceConfig; | ||
export declare const IOS_PORTRAIT_IPAD_SPLASH: IOSSplashResourceConfig; | ||
export declare const IOS_2X_IPHONE_SPLASH: IOSSplashResourceConfig; | ||
export declare const IOS_IPHONE_SPLASH: IOSSplashResourceConfig; | ||
export declare const IOS_2X_UNIVERSAL_ANYANY_SPLASH: IOSSplashResourceConfig; | ||
export declare const IOS_SPLASH_RESOURCES: readonly IOSSplashResourceConfig[]; |
@@ -225,2 +225,5 @@ "use strict"; | ||
function generateScaledWindowsResource(resource, factor) { | ||
if (resource.scale !== 1) { | ||
throw new Error('Cannot generate scaled resource from scaled resource.'); | ||
} | ||
return { | ||
@@ -233,2 +236,3 @@ ...resource, | ||
height: Math.round(resource.height * factor), | ||
scale: factor, | ||
}; | ||
@@ -244,3 +248,3 @@ } | ||
*/ | ||
const WINDOWS_SQUARE_44_X_44_ICON = { | ||
exports.WINDOWS_SQUARE_44_X_44_ICON = { | ||
platform: "windows" /* WINDOWS */, | ||
@@ -253,2 +257,3 @@ type: "icon" /* ICON */, | ||
target: "Square44x44Logo" /* SQUARE_44_X_44_LOGO */, | ||
scale: 1, | ||
}; | ||
@@ -258,3 +263,3 @@ /** | ||
*/ | ||
const WINDOWS_SQUARE_71_X_71_ICON = { | ||
exports.WINDOWS_SQUARE_71_X_71_ICON = { | ||
platform: "windows" /* WINDOWS */, | ||
@@ -267,2 +272,3 @@ type: "icon" /* ICON */, | ||
target: "Square71x71Logo" /* SQUARE_71_X_71_LOGO */, | ||
scale: 1, | ||
}; | ||
@@ -272,3 +278,3 @@ /** | ||
*/ | ||
const WINDOWS_SQUARE_150_X_150_ICON = { | ||
exports.WINDOWS_SQUARE_150_X_150_ICON = { | ||
platform: "windows" /* WINDOWS */, | ||
@@ -281,2 +287,3 @@ type: "icon" /* ICON */, | ||
target: "Square150x150Logo" /* SQUARE_150_X_150_LOGO */, | ||
scale: 1, | ||
}; | ||
@@ -286,3 +293,3 @@ /** | ||
*/ | ||
const WINDOWS_SQUARE_310_X_310_ICON = { | ||
exports.WINDOWS_SQUARE_310_X_310_ICON = { | ||
platform: "windows" /* WINDOWS */, | ||
@@ -295,2 +302,3 @@ type: "icon" /* ICON */, | ||
target: "Square310x310Logo" /* SQUARE_310_X_310_LOGO */, | ||
scale: 1, | ||
}; | ||
@@ -300,3 +308,3 @@ /** | ||
*/ | ||
const WINDOWS_WIDE_310_X_150_LOGO = { | ||
exports.WINDOWS_WIDE_310_X_150_LOGO = { | ||
platform: "windows" /* WINDOWS */, | ||
@@ -309,2 +317,3 @@ type: "icon" /* ICON */, | ||
target: "Wide310x150Logo" /* WIDE_310_X_150_LOGO */, | ||
scale: 1, | ||
}; | ||
@@ -314,3 +323,3 @@ /** | ||
*/ | ||
const WINDOWS_STORE_LOGO = { | ||
exports.WINDOWS_STORE_LOGO = { | ||
platform: "windows" /* WINDOWS */, | ||
@@ -323,2 +332,3 @@ type: "icon" /* ICON */, | ||
target: "StoreLogo" /* STORE_LOGO */, | ||
scale: 1, | ||
}; | ||
@@ -331,4 +341,4 @@ /** | ||
exports.WINDOWS_ICON_RESOURCES = [ | ||
WINDOWS_SQUARE_44_X_44_ICON, | ||
...generateScaledWindowsResources(WINDOWS_SQUARE_44_X_44_ICON, [ | ||
exports.WINDOWS_SQUARE_44_X_44_ICON, | ||
...generateScaledWindowsResources(exports.WINDOWS_SQUARE_44_X_44_ICON, [ | ||
1, | ||
@@ -342,4 +352,4 @@ 1.25, | ||
]), | ||
WINDOWS_SQUARE_71_X_71_ICON, | ||
...generateScaledWindowsResources(WINDOWS_SQUARE_71_X_71_ICON, [ | ||
exports.WINDOWS_SQUARE_71_X_71_ICON, | ||
...generateScaledWindowsResources(exports.WINDOWS_SQUARE_71_X_71_ICON, [ | ||
1, | ||
@@ -353,4 +363,4 @@ 1.25, | ||
]), | ||
WINDOWS_SQUARE_150_X_150_ICON, | ||
...generateScaledWindowsResources(WINDOWS_SQUARE_150_X_150_ICON, [ | ||
exports.WINDOWS_SQUARE_150_X_150_ICON, | ||
...generateScaledWindowsResources(exports.WINDOWS_SQUARE_150_X_150_ICON, [ | ||
1, | ||
@@ -364,4 +374,4 @@ 1.25, | ||
]), | ||
WINDOWS_SQUARE_310_X_310_ICON, | ||
...generateScaledWindowsResources(WINDOWS_SQUARE_310_X_310_ICON, [ | ||
exports.WINDOWS_SQUARE_310_X_310_ICON, | ||
...generateScaledWindowsResources(exports.WINDOWS_SQUARE_310_X_310_ICON, [ | ||
1, | ||
@@ -375,4 +385,4 @@ 1.25, | ||
]), | ||
WINDOWS_WIDE_310_X_150_LOGO, | ||
...generateScaledWindowsResources(WINDOWS_WIDE_310_X_150_LOGO, [ | ||
exports.WINDOWS_WIDE_310_X_150_LOGO, | ||
...generateScaledWindowsResources(exports.WINDOWS_WIDE_310_X_150_LOGO, [ | ||
0.8, | ||
@@ -388,4 +398,4 @@ 1, | ||
]), | ||
WINDOWS_STORE_LOGO, | ||
...generateScaledWindowsResources(WINDOWS_STORE_LOGO, [ | ||
exports.WINDOWS_STORE_LOGO, | ||
...generateScaledWindowsResources(exports.WINDOWS_STORE_LOGO, [ | ||
1, | ||
@@ -401,3 +411,3 @@ 1.25, | ||
]; | ||
const WINDOWS_SPLASH_SCREEN = { | ||
exports.WINDOWS_SPLASH_SCREEN = { | ||
platform: "windows" /* WINDOWS */, | ||
@@ -411,2 +421,3 @@ type: "splash" /* SPLASH */, | ||
target: "SplashScreen" /* SPLASH_SCREEN */, | ||
scale: 1, | ||
}; | ||
@@ -418,4 +429,4 @@ /** | ||
exports.WINDOWS_SPLASH_RESOURCES = [ | ||
WINDOWS_SPLASH_SCREEN, | ||
...generateScaledWindowsResources(WINDOWS_SPLASH_SCREEN, [ | ||
exports.WINDOWS_SPLASH_SCREEN, | ||
...generateScaledWindowsResources(exports.WINDOWS_SPLASH_SCREEN, [ | ||
1, | ||
@@ -428,3 +439,3 @@ 1.25, | ||
]; | ||
const ANDROID_LDPI_ADAPTIVE_ICON = { | ||
exports.ANDROID_LDPI_ADAPTIVE_ICON = { | ||
platform: "android" /* ANDROID */, | ||
@@ -439,3 +450,3 @@ type: "adaptive-icon" /* ADAPTIVE_ICON */, | ||
}; | ||
const ANDROID_MDPI_ADAPTIVE_ICON = { | ||
exports.ANDROID_MDPI_ADAPTIVE_ICON = { | ||
platform: "android" /* ANDROID */, | ||
@@ -450,3 +461,3 @@ type: "adaptive-icon" /* ADAPTIVE_ICON */, | ||
}; | ||
const ANDROID_HDPI_ADAPTIVE_ICON = { | ||
exports.ANDROID_HDPI_ADAPTIVE_ICON = { | ||
foreground: 'hdpi-foreground.png', | ||
@@ -461,3 +472,3 @@ platform: "android" /* ANDROID */, | ||
}; | ||
const ANDROID_XHDPI_ADAPTIVE_ICON = { | ||
exports.ANDROID_XHDPI_ADAPTIVE_ICON = { | ||
platform: "android" /* ANDROID */, | ||
@@ -472,3 +483,3 @@ type: "adaptive-icon" /* ADAPTIVE_ICON */, | ||
}; | ||
const ANDROID_XXHDPI_ADAPTIVE_ICON = { | ||
exports.ANDROID_XXHDPI_ADAPTIVE_ICON = { | ||
platform: "android" /* ANDROID */, | ||
@@ -483,3 +494,3 @@ type: "adaptive-icon" /* ADAPTIVE_ICON */, | ||
}; | ||
const ANDROID_XXXHDPI_ADAPTIVE_ICON = { | ||
exports.ANDROID_XXXHDPI_ADAPTIVE_ICON = { | ||
platform: "android" /* ANDROID */, | ||
@@ -495,10 +506,10 @@ type: "adaptive-icon" /* ADAPTIVE_ICON */, | ||
exports.ANDROID_ADAPTIVE_ICON_RESOURCES = [ | ||
ANDROID_LDPI_ADAPTIVE_ICON, | ||
ANDROID_MDPI_ADAPTIVE_ICON, | ||
ANDROID_HDPI_ADAPTIVE_ICON, | ||
ANDROID_XHDPI_ADAPTIVE_ICON, | ||
ANDROID_XXHDPI_ADAPTIVE_ICON, | ||
ANDROID_XXXHDPI_ADAPTIVE_ICON, | ||
exports.ANDROID_LDPI_ADAPTIVE_ICON, | ||
exports.ANDROID_MDPI_ADAPTIVE_ICON, | ||
exports.ANDROID_HDPI_ADAPTIVE_ICON, | ||
exports.ANDROID_XHDPI_ADAPTIVE_ICON, | ||
exports.ANDROID_XXHDPI_ADAPTIVE_ICON, | ||
exports.ANDROID_XXXHDPI_ADAPTIVE_ICON, | ||
]; | ||
const ANDROID_LDPI_ICON = { | ||
exports.ANDROID_LDPI_ICON = { | ||
platform: "android" /* ANDROID */, | ||
@@ -512,3 +523,3 @@ type: "icon" /* ICON */, | ||
}; | ||
const ANDROID_MDPI_ICON = { | ||
exports.ANDROID_MDPI_ICON = { | ||
platform: "android" /* ANDROID */, | ||
@@ -522,3 +533,3 @@ type: "icon" /* ICON */, | ||
}; | ||
const ANDROID_HDPI_ICON = { | ||
exports.ANDROID_HDPI_ICON = { | ||
platform: "android" /* ANDROID */, | ||
@@ -532,3 +543,3 @@ type: "icon" /* ICON */, | ||
}; | ||
const ANDROID_XHDPI_ICON = { | ||
exports.ANDROID_XHDPI_ICON = { | ||
platform: "android" /* ANDROID */, | ||
@@ -542,3 +553,3 @@ type: "icon" /* ICON */, | ||
}; | ||
const ANDROID_XXHDPI_ICON = { | ||
exports.ANDROID_XXHDPI_ICON = { | ||
platform: "android" /* ANDROID */, | ||
@@ -552,3 +563,3 @@ type: "icon" /* ICON */, | ||
}; | ||
const ANDROID_XXXHDPI_ICON = { | ||
exports.ANDROID_XXXHDPI_ICON = { | ||
platform: "android" /* ANDROID */, | ||
@@ -563,10 +574,10 @@ type: "icon" /* ICON */, | ||
exports.ANDROID_ICON_RESOURCES = [ | ||
ANDROID_LDPI_ICON, | ||
ANDROID_MDPI_ICON, | ||
ANDROID_HDPI_ICON, | ||
ANDROID_XHDPI_ICON, | ||
ANDROID_XXHDPI_ICON, | ||
ANDROID_XXXHDPI_ICON, | ||
exports.ANDROID_LDPI_ICON, | ||
exports.ANDROID_MDPI_ICON, | ||
exports.ANDROID_HDPI_ICON, | ||
exports.ANDROID_XHDPI_ICON, | ||
exports.ANDROID_XXHDPI_ICON, | ||
exports.ANDROID_XXXHDPI_ICON, | ||
]; | ||
const ANDROID_LAND_LDPI_SCREEN = { | ||
exports.ANDROID_LAND_LDPI_SCREEN = { | ||
platform: "android" /* ANDROID */, | ||
@@ -581,3 +592,3 @@ type: "splash" /* SPLASH */, | ||
}; | ||
const ANDROID_LAND_MDPI_SCREEN = { | ||
exports.ANDROID_LAND_MDPI_SCREEN = { | ||
platform: "android" /* ANDROID */, | ||
@@ -592,3 +603,3 @@ type: "splash" /* SPLASH */, | ||
}; | ||
const ANDROID_LAND_HDPI_SCREEN = { | ||
exports.ANDROID_LAND_HDPI_SCREEN = { | ||
platform: "android" /* ANDROID */, | ||
@@ -603,3 +614,3 @@ type: "splash" /* SPLASH */, | ||
}; | ||
const ANDROID_LAND_XHDPI_SCREEN = { | ||
exports.ANDROID_LAND_XHDPI_SCREEN = { | ||
platform: "android" /* ANDROID */, | ||
@@ -614,3 +625,3 @@ type: "splash" /* SPLASH */, | ||
}; | ||
const ANDROID_LAND_XXHDPI_SCREEN = { | ||
exports.ANDROID_LAND_XXHDPI_SCREEN = { | ||
platform: "android" /* ANDROID */, | ||
@@ -625,3 +636,3 @@ type: "splash" /* SPLASH */, | ||
}; | ||
const ANDROID_LAND_XXXHDPI_SCREEN = { | ||
exports.ANDROID_LAND_XXXHDPI_SCREEN = { | ||
platform: "android" /* ANDROID */, | ||
@@ -636,3 +647,3 @@ type: "splash" /* SPLASH */, | ||
}; | ||
const ANDROID_PORT_LDPI_SCREEN = { | ||
exports.ANDROID_PORT_LDPI_SCREEN = { | ||
platform: "android" /* ANDROID */, | ||
@@ -647,3 +658,3 @@ type: "splash" /* SPLASH */, | ||
}; | ||
const ANDROID_PORT_MDPI_SCREEN = { | ||
exports.ANDROID_PORT_MDPI_SCREEN = { | ||
platform: "android" /* ANDROID */, | ||
@@ -658,3 +669,3 @@ type: "splash" /* SPLASH */, | ||
}; | ||
const ANDROID_PORT_HDPI_SCREEN = { | ||
exports.ANDROID_PORT_HDPI_SCREEN = { | ||
platform: "android" /* ANDROID */, | ||
@@ -669,3 +680,3 @@ type: "splash" /* SPLASH */, | ||
}; | ||
const ANDROID_PORT_XHDPI_SCREEN = { | ||
exports.ANDROID_PORT_XHDPI_SCREEN = { | ||
platform: "android" /* ANDROID */, | ||
@@ -680,3 +691,3 @@ type: "splash" /* SPLASH */, | ||
}; | ||
const ANDROID_PORT_XXHDPI_SCREEN = { | ||
exports.ANDROID_PORT_XXHDPI_SCREEN = { | ||
platform: "android" /* ANDROID */, | ||
@@ -691,3 +702,3 @@ type: "splash" /* SPLASH */, | ||
}; | ||
const ANDROID_PORT_XXXHDPI_SCREEN = { | ||
exports.ANDROID_PORT_XXXHDPI_SCREEN = { | ||
platform: "android" /* ANDROID */, | ||
@@ -703,14 +714,14 @@ type: "splash" /* SPLASH */, | ||
exports.ANDROID_SPLASH_RESOURCES = [ | ||
ANDROID_LAND_LDPI_SCREEN, | ||
ANDROID_LAND_MDPI_SCREEN, | ||
ANDROID_LAND_HDPI_SCREEN, | ||
ANDROID_LAND_XHDPI_SCREEN, | ||
ANDROID_LAND_XXHDPI_SCREEN, | ||
ANDROID_LAND_XXXHDPI_SCREEN, | ||
ANDROID_PORT_LDPI_SCREEN, | ||
ANDROID_PORT_MDPI_SCREEN, | ||
ANDROID_PORT_HDPI_SCREEN, | ||
ANDROID_PORT_XHDPI_SCREEN, | ||
ANDROID_PORT_XXHDPI_SCREEN, | ||
ANDROID_PORT_XXXHDPI_SCREEN, | ||
exports.ANDROID_LAND_LDPI_SCREEN, | ||
exports.ANDROID_LAND_MDPI_SCREEN, | ||
exports.ANDROID_LAND_HDPI_SCREEN, | ||
exports.ANDROID_LAND_XHDPI_SCREEN, | ||
exports.ANDROID_LAND_XXHDPI_SCREEN, | ||
exports.ANDROID_LAND_XXXHDPI_SCREEN, | ||
exports.ANDROID_PORT_LDPI_SCREEN, | ||
exports.ANDROID_PORT_MDPI_SCREEN, | ||
exports.ANDROID_PORT_HDPI_SCREEN, | ||
exports.ANDROID_PORT_XHDPI_SCREEN, | ||
exports.ANDROID_PORT_XXHDPI_SCREEN, | ||
exports.ANDROID_PORT_XXXHDPI_SCREEN, | ||
]; | ||
@@ -723,3 +734,3 @@ /** | ||
*/ | ||
const IOS_20_PT_ICON = { | ||
exports.IOS_20_PT_ICON = { | ||
platform: "ios" /* IOS */, | ||
@@ -731,4 +742,5 @@ type: "icon" /* ICON */, | ||
height: 20, | ||
scale: 1, | ||
}; | ||
const IOS_20_PT_2X_ICON = { | ||
exports.IOS_20_PT_2X_ICON = { | ||
platform: "ios" /* IOS */, | ||
@@ -740,4 +752,5 @@ type: "icon" /* ICON */, | ||
height: 40, | ||
scale: 2, | ||
}; | ||
const IOS_20_PT_3X_ICON = { | ||
exports.IOS_20_PT_3X_ICON = { | ||
platform: "ios" /* IOS */, | ||
@@ -749,2 +762,3 @@ type: "icon" /* ICON */, | ||
height: 60, | ||
scale: 3, | ||
}; | ||
@@ -759,3 +773,3 @@ /** | ||
*/ | ||
const IOS_29_PT_ICON = { | ||
exports.IOS_29_PT_ICON = { | ||
platform: "ios" /* IOS */, | ||
@@ -767,4 +781,5 @@ type: "icon" /* ICON */, | ||
height: 29, | ||
scale: 1, | ||
}; | ||
const IOS_29_PT_2X_ICON = { | ||
exports.IOS_29_PT_2X_ICON = { | ||
platform: "ios" /* IOS */, | ||
@@ -776,4 +791,5 @@ type: "icon" /* ICON */, | ||
height: 58, | ||
scale: 2, | ||
}; | ||
const IOS_29_PT_3X_ICON = { | ||
exports.IOS_29_PT_3X_ICON = { | ||
platform: "ios" /* IOS */, | ||
@@ -785,2 +801,3 @@ type: "icon" /* ICON */, | ||
height: 87, | ||
scale: 3, | ||
}; | ||
@@ -794,3 +811,3 @@ /** | ||
*/ | ||
const IOS_40_PT_ICON = { | ||
exports.IOS_40_PT_ICON = { | ||
platform: "ios" /* IOS */, | ||
@@ -802,4 +819,5 @@ type: "icon" /* ICON */, | ||
height: 40, | ||
scale: 1, | ||
}; | ||
const IOS_40_PT_2X_ICON = { | ||
exports.IOS_40_PT_2X_ICON = { | ||
platform: "ios" /* IOS */, | ||
@@ -811,4 +829,5 @@ type: "icon" /* ICON */, | ||
height: 80, | ||
scale: 2, | ||
}; | ||
const IOS_40_PT_3X_ICON = { | ||
exports.IOS_40_PT_3X_ICON = { | ||
platform: "ios" /* IOS */, | ||
@@ -820,2 +839,3 @@ type: "icon" /* ICON */, | ||
height: 120, | ||
scale: 3, | ||
}; | ||
@@ -828,3 +848,3 @@ /** | ||
*/ | ||
const IOS_50_PT_ICON = { | ||
exports.IOS_50_PT_ICON = { | ||
platform: "ios" /* IOS */, | ||
@@ -836,4 +856,5 @@ type: "icon" /* ICON */, | ||
height: 50, | ||
scale: 1, | ||
}; | ||
const IOS_50_PT_2X_ICON = { | ||
exports.IOS_50_PT_2X_ICON = { | ||
platform: "ios" /* IOS */, | ||
@@ -845,2 +866,3 @@ type: "icon" /* ICON */, | ||
height: 100, | ||
scale: 2, | ||
}; | ||
@@ -852,3 +874,3 @@ /** | ||
*/ | ||
const IOS_57_PT_ICON = { | ||
exports.IOS_57_PT_ICON = { | ||
platform: "ios" /* IOS */, | ||
@@ -860,4 +882,5 @@ type: "icon" /* ICON */, | ||
height: 57, | ||
scale: 1, | ||
}; | ||
const IOS_57_PT_2X_ICON = { | ||
exports.IOS_57_PT_2X_ICON = { | ||
platform: "ios" /* IOS */, | ||
@@ -869,2 +892,3 @@ type: "icon" /* ICON */, | ||
height: 114, | ||
scale: 2, | ||
}; | ||
@@ -876,3 +900,3 @@ /** | ||
*/ | ||
const IOS_60_PT_ICON = { | ||
exports.IOS_60_PT_ICON = { | ||
platform: "ios" /* IOS */, | ||
@@ -884,4 +908,5 @@ type: "icon" /* ICON */, | ||
height: 60, | ||
scale: 1, | ||
}; | ||
const IOS_60_PT_2X_ICON = { | ||
exports.IOS_60_PT_2X_ICON = { | ||
platform: "ios" /* IOS */, | ||
@@ -893,4 +918,5 @@ type: "icon" /* ICON */, | ||
height: 120, | ||
scale: 2, | ||
}; | ||
const IOS_60_PT_3X_ICON = { | ||
exports.IOS_60_PT_3X_ICON = { | ||
platform: "ios" /* IOS */, | ||
@@ -902,2 +928,3 @@ type: "icon" /* ICON */, | ||
height: 180, | ||
scale: 3, | ||
}; | ||
@@ -909,3 +936,3 @@ /** | ||
*/ | ||
const IOS_72_PT_ICON = { | ||
exports.IOS_72_PT_ICON = { | ||
platform: "ios" /* IOS */, | ||
@@ -917,4 +944,5 @@ type: "icon" /* ICON */, | ||
height: 72, | ||
scale: 1, | ||
}; | ||
const IOS_72_PT_2X_ICON = { | ||
exports.IOS_72_PT_2X_ICON = { | ||
platform: "ios" /* IOS */, | ||
@@ -926,2 +954,3 @@ type: "icon" /* ICON */, | ||
height: 144, | ||
scale: 2, | ||
}; | ||
@@ -933,3 +962,3 @@ /** | ||
*/ | ||
const IOS_76_PT_ICON = { | ||
exports.IOS_76_PT_ICON = { | ||
platform: "ios" /* IOS */, | ||
@@ -941,4 +970,5 @@ type: "icon" /* ICON */, | ||
height: 76, | ||
scale: 1, | ||
}; | ||
const IOS_76_PT_2X_ICON = { | ||
exports.IOS_76_PT_2X_ICON = { | ||
platform: "ios" /* IOS */, | ||
@@ -950,2 +980,3 @@ type: "icon" /* ICON */, | ||
height: 152, | ||
scale: 2, | ||
}; | ||
@@ -957,3 +988,3 @@ /** | ||
*/ | ||
const IOS_83_5_PT_2X_ICON = { | ||
exports.IOS_83_5_PT_2X_ICON = { | ||
platform: "ios" /* IOS */, | ||
@@ -965,2 +996,3 @@ type: "icon" /* ICON */, | ||
height: 167, | ||
scale: 2, | ||
}; | ||
@@ -972,3 +1004,3 @@ /** | ||
*/ | ||
const IOS_1024_ICON = { | ||
exports.IOS_1024_ICON = { | ||
platform: "ios" /* IOS */, | ||
@@ -980,2 +1012,3 @@ type: "icon" /* ICON */, | ||
height: 1024, | ||
scale: 1, | ||
}; | ||
@@ -987,3 +1020,3 @@ /** | ||
*/ | ||
const IOS_24_PT_ICON = { | ||
exports.IOS_24_PT_ICON = { | ||
platform: "ios" /* IOS */, | ||
@@ -995,2 +1028,3 @@ type: "icon" /* ICON */, | ||
height: 48, | ||
scale: 2, | ||
}; | ||
@@ -1002,3 +1036,3 @@ /** | ||
*/ | ||
const IOS_27_5_PT_ICON = { | ||
exports.IOS_27_5_PT_ICON = { | ||
platform: "ios" /* IOS */, | ||
@@ -1010,2 +1044,3 @@ type: "icon" /* ICON */, | ||
height: 55, | ||
scale: 2, | ||
}; | ||
@@ -1017,3 +1052,3 @@ /** | ||
*/ | ||
const IOS_44_PT_2X_ICON = { | ||
exports.IOS_44_PT_2X_ICON = { | ||
platform: "ios" /* IOS */, | ||
@@ -1025,2 +1060,3 @@ type: "icon" /* ICON */, | ||
height: 88, | ||
scale: 2, | ||
}; | ||
@@ -1032,3 +1068,3 @@ /** | ||
*/ | ||
const IOS_86_PT_2X_ICON = { | ||
exports.IOS_86_PT_2X_ICON = { | ||
platform: "ios" /* IOS */, | ||
@@ -1040,2 +1076,3 @@ type: "icon" /* ICON */, | ||
height: 172, | ||
scale: 2, | ||
}; | ||
@@ -1047,3 +1084,3 @@ /** | ||
*/ | ||
const IOS_98_PT_2X_ICON = { | ||
exports.IOS_98_PT_2X_ICON = { | ||
platform: "ios" /* IOS */, | ||
@@ -1055,2 +1092,3 @@ type: "icon" /* ICON */, | ||
height: 196, | ||
scale: 2, | ||
}; | ||
@@ -1062,3 +1100,3 @@ /** | ||
*/ | ||
const IOS_108_PT_2X_ICON = { | ||
exports.IOS_108_PT_2X_ICON = { | ||
platform: "ios" /* IOS */, | ||
@@ -1070,34 +1108,35 @@ type: "icon" /* ICON */, | ||
height: 216, | ||
scale: 2, | ||
}; | ||
exports.IOS_ICON_RESOURCES = [ | ||
IOS_57_PT_ICON, | ||
IOS_57_PT_2X_ICON, | ||
IOS_20_PT_ICON, | ||
IOS_20_PT_2X_ICON, | ||
IOS_20_PT_3X_ICON, | ||
IOS_29_PT_ICON, | ||
IOS_29_PT_2X_ICON, | ||
IOS_29_PT_3X_ICON, | ||
IOS_24_PT_ICON, | ||
IOS_27_5_PT_ICON, | ||
IOS_44_PT_2X_ICON, | ||
IOS_86_PT_2X_ICON, | ||
IOS_98_PT_2X_ICON, | ||
IOS_108_PT_2X_ICON, | ||
IOS_40_PT_ICON, | ||
IOS_40_PT_2X_ICON, | ||
IOS_40_PT_3X_ICON, | ||
IOS_50_PT_ICON, | ||
IOS_50_PT_2X_ICON, | ||
IOS_60_PT_ICON, | ||
IOS_60_PT_2X_ICON, | ||
IOS_60_PT_3X_ICON, | ||
IOS_72_PT_ICON, | ||
IOS_72_PT_2X_ICON, | ||
IOS_76_PT_ICON, | ||
IOS_76_PT_2X_ICON, | ||
IOS_83_5_PT_2X_ICON, | ||
IOS_1024_ICON, | ||
exports.IOS_57_PT_ICON, | ||
exports.IOS_57_PT_2X_ICON, | ||
exports.IOS_20_PT_ICON, | ||
exports.IOS_20_PT_2X_ICON, | ||
exports.IOS_20_PT_3X_ICON, | ||
exports.IOS_29_PT_ICON, | ||
exports.IOS_29_PT_2X_ICON, | ||
exports.IOS_29_PT_3X_ICON, | ||
exports.IOS_24_PT_ICON, | ||
exports.IOS_27_5_PT_ICON, | ||
exports.IOS_44_PT_2X_ICON, | ||
exports.IOS_86_PT_2X_ICON, | ||
exports.IOS_98_PT_2X_ICON, | ||
exports.IOS_108_PT_2X_ICON, | ||
exports.IOS_40_PT_ICON, | ||
exports.IOS_40_PT_2X_ICON, | ||
exports.IOS_40_PT_3X_ICON, | ||
exports.IOS_50_PT_ICON, | ||
exports.IOS_50_PT_2X_ICON, | ||
exports.IOS_60_PT_ICON, | ||
exports.IOS_60_PT_2X_ICON, | ||
exports.IOS_60_PT_3X_ICON, | ||
exports.IOS_72_PT_ICON, | ||
exports.IOS_72_PT_2X_ICON, | ||
exports.IOS_76_PT_ICON, | ||
exports.IOS_76_PT_2X_ICON, | ||
exports.IOS_83_5_PT_2X_ICON, | ||
exports.IOS_1024_ICON, | ||
]; | ||
const IOS_568H_2X_IPHONE_SPLASH = { | ||
exports.IOS_568H_2X_IPHONE_SPLASH = { | ||
platform: "ios" /* IOS */, | ||
@@ -1110,4 +1149,5 @@ type: "splash" /* SPLASH */, | ||
orientation: "portrait" /* PORTRAIT */, | ||
scale: 2, | ||
}; | ||
const IOS_667H_SPLASH = { | ||
exports.IOS_667H_SPLASH = { | ||
platform: "ios" /* IOS */, | ||
@@ -1120,4 +1160,5 @@ type: "splash" /* SPLASH */, | ||
orientation: "portrait" /* PORTRAIT */, | ||
scale: 1, | ||
}; | ||
const IOS_2688H_IPHONE_SPLASH = { | ||
exports.IOS_2688H_IPHONE_SPLASH = { | ||
platform: "ios" /* IOS */, | ||
@@ -1130,4 +1171,5 @@ type: "splash" /* SPLASH */, | ||
orientation: "portrait" /* PORTRAIT */, | ||
scale: 1, | ||
}; | ||
const IOS_2688H_LANDSCAPE_IPHONE_SPLASH = { | ||
exports.IOS_2688H_LANDSCAPE_IPHONE_SPLASH = { | ||
platform: "ios" /* IOS */, | ||
@@ -1140,4 +1182,5 @@ type: "splash" /* SPLASH */, | ||
orientation: "landscape" /* LANDSCAPE */, | ||
scale: 1, | ||
}; | ||
const IOS_1792H_IPHONE_SPLASH = { | ||
exports.IOS_1792H_IPHONE_SPLASH = { | ||
platform: "ios" /* IOS */, | ||
@@ -1150,4 +1193,5 @@ type: "splash" /* SPLASH */, | ||
orientation: "portrait" /* PORTRAIT */, | ||
scale: 1, | ||
}; | ||
const IOS_1792H_LANDSCAPE_IPHONE_SPLASH = { | ||
exports.IOS_1792H_LANDSCAPE_IPHONE_SPLASH = { | ||
platform: "ios" /* IOS */, | ||
@@ -1160,4 +1204,5 @@ type: "splash" /* SPLASH */, | ||
orientation: "landscape" /* LANDSCAPE */, | ||
scale: 1, | ||
}; | ||
const IOS_2436H_SPLASH = { | ||
exports.IOS_2436H_SPLASH = { | ||
platform: "ios" /* IOS */, | ||
@@ -1170,4 +1215,5 @@ type: "splash" /* SPLASH */, | ||
orientation: "portrait" /* PORTRAIT */, | ||
scale: 1, | ||
}; | ||
const IOS_2436H_LANDSCAPE_SPLASH = { | ||
exports.IOS_2436H_LANDSCAPE_SPLASH = { | ||
platform: "ios" /* IOS */, | ||
@@ -1180,4 +1226,5 @@ type: "splash" /* SPLASH */, | ||
orientation: "landscape" /* LANDSCAPE */, | ||
scale: 1, | ||
}; | ||
const IOS_736H_SPLASH = { | ||
exports.IOS_736H_SPLASH = { | ||
platform: "ios" /* IOS */, | ||
@@ -1190,4 +1237,5 @@ type: "splash" /* SPLASH */, | ||
orientation: "portrait" /* PORTRAIT */, | ||
scale: 1, | ||
}; | ||
const IOS_736H_LANDSCAPE_SPLASH = { | ||
exports.IOS_736H_LANDSCAPE_SPLASH = { | ||
platform: "ios" /* IOS */, | ||
@@ -1200,4 +1248,5 @@ type: "splash" /* SPLASH */, | ||
orientation: "landscape" /* LANDSCAPE */, | ||
scale: 1, | ||
}; | ||
const IOS_LANDSCAPE_2X_IPAD_SPLASH = { | ||
exports.IOS_LANDSCAPE_2X_IPAD_SPLASH = { | ||
platform: "ios" /* IOS */, | ||
@@ -1210,4 +1259,5 @@ type: "splash" /* SPLASH */, | ||
orientation: "landscape" /* LANDSCAPE */, | ||
scale: 2, | ||
}; | ||
const IOS_LANDSCAPE_IPADPRO_SPLASH = { | ||
exports.IOS_LANDSCAPE_IPADPRO_SPLASH = { | ||
platform: "ios" /* IOS */, | ||
@@ -1220,4 +1270,5 @@ type: "splash" /* SPLASH */, | ||
orientation: "landscape" /* LANDSCAPE */, | ||
scale: 1, | ||
}; | ||
const IOS_LANDSCAPE_IPAD_SPLASH = { | ||
exports.IOS_LANDSCAPE_IPAD_SPLASH = { | ||
platform: "ios" /* IOS */, | ||
@@ -1230,4 +1281,5 @@ type: "splash" /* SPLASH */, | ||
orientation: "landscape" /* LANDSCAPE */, | ||
scale: 1, | ||
}; | ||
const IOS_PORTRAIT_2X_IPAD_SPLASH = { | ||
exports.IOS_PORTRAIT_2X_IPAD_SPLASH = { | ||
platform: "ios" /* IOS */, | ||
@@ -1240,4 +1292,5 @@ type: "splash" /* SPLASH */, | ||
orientation: "portrait" /* PORTRAIT */, | ||
scale: 2, | ||
}; | ||
const IOS_PORTRAIT_IPADPRO_SPLASH = { | ||
exports.IOS_PORTRAIT_IPADPRO_SPLASH = { | ||
platform: "ios" /* IOS */, | ||
@@ -1250,4 +1303,5 @@ type: "splash" /* SPLASH */, | ||
orientation: "portrait" /* PORTRAIT */, | ||
scale: 1, | ||
}; | ||
const IOS_PORTRAIT_IPAD_SPLASH = { | ||
exports.IOS_PORTRAIT_IPAD_SPLASH = { | ||
platform: "ios" /* IOS */, | ||
@@ -1260,4 +1314,5 @@ type: "splash" /* SPLASH */, | ||
orientation: "portrait" /* PORTRAIT */, | ||
scale: 1, | ||
}; | ||
const IOS_2X_IPHONE_SPLASH = { | ||
exports.IOS_2X_IPHONE_SPLASH = { | ||
platform: "ios" /* IOS */, | ||
@@ -1270,4 +1325,5 @@ type: "splash" /* SPLASH */, | ||
orientation: "portrait" /* PORTRAIT */, | ||
scale: 2, | ||
}; | ||
const IOS_IPHONE_SPLASH = { | ||
exports.IOS_IPHONE_SPLASH = { | ||
platform: "ios" /* IOS */, | ||
@@ -1280,4 +1336,5 @@ type: "splash" /* SPLASH */, | ||
orientation: "portrait" /* PORTRAIT */, | ||
scale: 1, | ||
}; | ||
const IOS_2X_UNIVERSAL_ANYANY_SPLASH = { | ||
exports.IOS_2X_UNIVERSAL_ANYANY_SPLASH = { | ||
platform: "ios" /* IOS */, | ||
@@ -1290,23 +1347,24 @@ type: "splash" /* SPLASH */, | ||
orientation: "portrait" /* PORTRAIT */, | ||
scale: 2, | ||
}; | ||
exports.IOS_SPLASH_RESOURCES = [ | ||
IOS_568H_2X_IPHONE_SPLASH, | ||
IOS_667H_SPLASH, | ||
IOS_2688H_IPHONE_SPLASH, | ||
IOS_2688H_LANDSCAPE_IPHONE_SPLASH, | ||
IOS_1792H_IPHONE_SPLASH, | ||
IOS_1792H_LANDSCAPE_IPHONE_SPLASH, | ||
IOS_2436H_SPLASH, | ||
IOS_2436H_LANDSCAPE_SPLASH, | ||
IOS_736H_SPLASH, | ||
IOS_736H_LANDSCAPE_SPLASH, | ||
IOS_LANDSCAPE_2X_IPAD_SPLASH, | ||
IOS_LANDSCAPE_IPADPRO_SPLASH, | ||
IOS_LANDSCAPE_IPAD_SPLASH, | ||
IOS_PORTRAIT_2X_IPAD_SPLASH, | ||
IOS_PORTRAIT_IPADPRO_SPLASH, | ||
IOS_PORTRAIT_IPAD_SPLASH, | ||
IOS_2X_IPHONE_SPLASH, | ||
IOS_IPHONE_SPLASH, | ||
IOS_2X_UNIVERSAL_ANYANY_SPLASH, | ||
exports.IOS_568H_2X_IPHONE_SPLASH, | ||
exports.IOS_667H_SPLASH, | ||
exports.IOS_2688H_IPHONE_SPLASH, | ||
exports.IOS_2688H_LANDSCAPE_IPHONE_SPLASH, | ||
exports.IOS_1792H_IPHONE_SPLASH, | ||
exports.IOS_1792H_LANDSCAPE_IPHONE_SPLASH, | ||
exports.IOS_2436H_SPLASH, | ||
exports.IOS_2436H_LANDSCAPE_SPLASH, | ||
exports.IOS_736H_SPLASH, | ||
exports.IOS_736H_LANDSCAPE_SPLASH, | ||
exports.IOS_LANDSCAPE_2X_IPAD_SPLASH, | ||
exports.IOS_LANDSCAPE_IPADPRO_SPLASH, | ||
exports.IOS_LANDSCAPE_IPAD_SPLASH, | ||
exports.IOS_PORTRAIT_2X_IPAD_SPLASH, | ||
exports.IOS_PORTRAIT_IPADPRO_SPLASH, | ||
exports.IOS_PORTRAIT_IPAD_SPLASH, | ||
exports.IOS_2X_IPHONE_SPLASH, | ||
exports.IOS_IPHONE_SPLASH, | ||
exports.IOS_2X_UNIVERSAL_ANYANY_SPLASH, | ||
]; |
{ | ||
"name": "cordova-res", | ||
"version": "0.14.1", | ||
"version": "0.15.0", | ||
"description": "This tool will crop and resize PNG source images into appropriate sizes for modern iOS and Android devices.", | ||
@@ -51,2 +51,3 @@ "homepage": "https://ionicframework.com", | ||
"dependencies": { | ||
"@ionic/utils-array": "^2.1.1", | ||
"@ionic/utils-fs": "^3.0.0", | ||
@@ -53,0 +54,0 @@ "debug": "^4.1.1", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
147464
3692
6
+ Added@ionic/utils-array@^2.1.1
+ Added@ionic/utils-array@2.1.6(transitive)