-
Notifications
You must be signed in to change notification settings - Fork 106
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feat!: Only generate 1024 size iOS icons for xcode 14 compat (#500)
* Only 1024 for iOS icons for xcode 14 compat * chore: update tests
- Loading branch information
Showing
5 changed files
with
12 additions
and
232 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@capacitor/assets': major | ||
--- | ||
|
||
Only generate 1024x1024 for iOS icons for xcode 14 compatibility |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,237 +3,12 @@ import { | |
Format, | ||
IosIdiom, | ||
IosOutputAssetTemplate, | ||
IosOutputAssetTemplateIcon, | ||
IosOutputAssetTemplateSplash, | ||
Orientation, | ||
Platform, | ||
Theme, | ||
} from '../../definitions'; | ||
|
||
/** | ||
* 20pt Icon | ||
* | ||
* - iPhone Notification (iOS 7-15) | ||
* - iPad Notification (iOS 7-15) | ||
*/ | ||
export const IOS_20_PT_ICON: IosOutputAssetTemplateIcon = { | ||
platform: Platform.Ios, | ||
idiom: IosIdiom.iPad, | ||
kind: AssetKind.NotificationIcon, | ||
name: '[email protected]', | ||
format: Format.Png, | ||
width: 20, | ||
height: 20, | ||
scale: 1, | ||
}; | ||
|
||
export const IOS_20_PT_2X_ICON: IosOutputAssetTemplate = { | ||
platform: Platform.Ios, | ||
idiom: IosIdiom.iPhone, | ||
kind: AssetKind.NotificationIcon, | ||
name: '[email protected]', | ||
format: Format.Png, | ||
width: 40, | ||
height: 40, | ||
scale: 2, | ||
}; | ||
|
||
export const IOS_20_PT_2X_1_ICON: IosOutputAssetTemplate = { | ||
platform: Platform.Ios, | ||
idiom: IosIdiom.iPad, | ||
kind: AssetKind.NotificationIcon, | ||
name: '[email protected]', | ||
format: Format.Png, | ||
width: 40, | ||
height: 40, | ||
scale: 2, | ||
}; | ||
|
||
export const IOS_20_PT_3X_ICON: IosOutputAssetTemplate = { | ||
platform: Platform.Ios, | ||
idiom: IosIdiom.iPhone, | ||
kind: AssetKind.NotificationIcon, | ||
name: '[email protected]', | ||
format: Format.Png, | ||
width: 60, | ||
height: 60, | ||
scale: 3, | ||
}; | ||
|
||
/** | ||
* 29pt Icon | ||
* | ||
* - iPhone Settings (iOS 7-15) | ||
* - iPad Settings (iOS 7-15) | ||
* - Apple Watch Companion Settings | ||
* - Apple Watch Notification Center | ||
*/ | ||
export const IOS_29_PT_ICON: IosOutputAssetTemplate = { | ||
platform: Platform.Ios, | ||
idiom: IosIdiom.iPad, | ||
kind: AssetKind.SettingsIcon, | ||
name: '[email protected]', | ||
format: Format.Png, | ||
width: 29, | ||
height: 29, | ||
scale: 1, | ||
}; | ||
|
||
export const IOS_29_PT_2X_ICON: IosOutputAssetTemplate = { | ||
platform: Platform.Ios, | ||
idiom: IosIdiom.iPhone, | ||
kind: AssetKind.SettingsIcon, | ||
name: '[email protected]', | ||
format: Format.Png, | ||
width: 58, | ||
height: 58, | ||
scale: 2, | ||
}; | ||
|
||
export const IOS_29_PT_2X_1_ICON: IosOutputAssetTemplate = { | ||
platform: Platform.Ios, | ||
idiom: IosIdiom.iPad, | ||
kind: AssetKind.SettingsIcon, | ||
name: '[email protected]', | ||
format: Format.Png, | ||
width: 58, | ||
height: 58, | ||
scale: 2, | ||
}; | ||
|
||
export const IOS_29_PT_3X_ICON: IosOutputAssetTemplate = { | ||
platform: Platform.Ios, | ||
idiom: IosIdiom.iPhone, | ||
kind: AssetKind.SettingsIcon, | ||
name: '[email protected]', | ||
format: Format.Png, | ||
width: 87, | ||
height: 87, | ||
scale: 3, | ||
}; | ||
|
||
/** | ||
* 40pt Icon | ||
* | ||
* - iPhone Spotlight (iOS 7-15) | ||
* - iPad Spotlight (iOS 7-15) | ||
* - Apple Watch Home Screen | ||
*/ | ||
export const IOS_40_PT_ICON: IosOutputAssetTemplate = { | ||
platform: Platform.Ios, | ||
idiom: IosIdiom.iPad, | ||
kind: AssetKind.SpotlightIcon, | ||
name: '[email protected]', | ||
format: Format.Png, | ||
width: 40, | ||
height: 40, | ||
scale: 1, | ||
}; | ||
|
||
export const IOS_40_PT_2X_ICON: IosOutputAssetTemplate = { | ||
platform: Platform.Ios, | ||
idiom: IosIdiom.iPhone, | ||
kind: AssetKind.SpotlightIcon, | ||
name: '[email protected]', | ||
format: Format.Png, | ||
width: 80, | ||
height: 80, | ||
scale: 2, | ||
}; | ||
|
||
export const IOS_40_PT_2X_1_ICON: IosOutputAssetTemplate = { | ||
platform: Platform.Ios, | ||
idiom: IosIdiom.iPad, | ||
kind: AssetKind.SpotlightIcon, | ||
name: '[email protected]', | ||
format: Format.Png, | ||
width: 80, | ||
height: 80, | ||
scale: 2, | ||
}; | ||
|
||
export const IOS_40_PT_3X_ICON: IosOutputAssetTemplate = { | ||
platform: Platform.Ios, | ||
idiom: IosIdiom.iPhone, | ||
kind: AssetKind.SpotlightIcon, | ||
name: '[email protected]', | ||
format: Format.Png, | ||
width: 120, | ||
height: 120, | ||
scale: 3, | ||
}; | ||
|
||
/** | ||
* 60pt Icon | ||
* | ||
* - iPhone App (iOS 7-15) | ||
*/ | ||
|
||
export const IOS_60_PT_2X_ICON: IosOutputAssetTemplate = { | ||
platform: Platform.Ios, | ||
idiom: IosIdiom.iPhone, | ||
kind: AssetKind.Icon, | ||
name: '[email protected]', | ||
format: Format.Png, | ||
width: 120, | ||
height: 120, | ||
scale: 2, | ||
}; | ||
|
||
export const IOS_60_PT_3X_ICON: IosOutputAssetTemplate = { | ||
platform: Platform.Ios, | ||
idiom: IosIdiom.iPhone, | ||
kind: AssetKind.Icon, | ||
name: '[email protected]', | ||
format: Format.Png, | ||
width: 180, | ||
height: 180, | ||
scale: 3, | ||
}; | ||
|
||
/** | ||
* 76pt Icon | ||
* | ||
* - iPad App (iOS 7+) | ||
*/ | ||
export const IOS_76_PT_1X_ICON: IosOutputAssetTemplate = { | ||
platform: Platform.Ios, | ||
idiom: IosIdiom.iPad, | ||
kind: AssetKind.Icon, | ||
name: '[email protected]', | ||
format: Format.Png, | ||
width: 76, | ||
height: 76, | ||
scale: 1, | ||
}; | ||
|
||
export const IOS_76_PT_2X_ICON: IosOutputAssetTemplate = { | ||
platform: Platform.Ios, | ||
idiom: IosIdiom.iPad, | ||
kind: AssetKind.Icon, | ||
name: '[email protected]', | ||
format: Format.Png, | ||
width: 152, | ||
height: 152, | ||
scale: 2, | ||
}; | ||
|
||
/** | ||
* 83.5pt Icon | ||
* | ||
* iPad Pro (12.9-inch) | ||
*/ | ||
export const IOS_83_5_PT_2X_ICON: IosOutputAssetTemplate = { | ||
platform: Platform.Ios, | ||
idiom: IosIdiom.iPad, | ||
kind: AssetKind.Icon, | ||
name: '[email protected]', | ||
format: Format.Png, | ||
width: 167, | ||
height: 167, | ||
scale: 2, | ||
}; | ||
|
||
/** | ||
* 1024px Icon | ||
* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters