expo-app-icon 1.1.0 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -3
- package/package.json +1 -1
- package/plugin/build/apple.js +0 -1
- package/plugin/build/types.d.ts +0 -4
package/README.md
CHANGED
|
@@ -31,15 +31,14 @@ Add the plugin to your `app.json` config and declare your icons. Each icon is ju
|
|
|
31
31
|
}
|
|
32
32
|
```
|
|
33
33
|
|
|
34
|
-
The same image is used for both platforms. To use a different image per platform
|
|
34
|
+
The same image is used for both platforms. To use a different image per platform, pass an object instead:
|
|
35
35
|
|
|
36
36
|
```json
|
|
37
37
|
{
|
|
38
38
|
"red": "./assets/icons/red.png",
|
|
39
39
|
"blue": {
|
|
40
40
|
"ios": "./assets/icons/blue-ios.png",
|
|
41
|
-
"android": "./assets/icons/blue-android.png"
|
|
42
|
-
"prerendered": true
|
|
41
|
+
"android": "./assets/icons/blue-android.png"
|
|
43
42
|
}
|
|
44
43
|
}
|
|
45
44
|
```
|
package/package.json
CHANGED
package/plugin/build/apple.js
CHANGED
|
@@ -74,7 +74,6 @@ const withAppleAlternateIcons = (config, props) => {
|
|
|
74
74
|
return;
|
|
75
75
|
const entry = {
|
|
76
76
|
CFBundleIconFiles: [(0, icons_1.appleIconBaseName)(iconKey, variant)],
|
|
77
|
-
UIPrerenderedIcon: !!icon.prerendered,
|
|
78
77
|
};
|
|
79
78
|
if (variant.target) {
|
|
80
79
|
(iconsByTarget[variant.target] ??= {})[iconKey] = entry;
|
package/plugin/build/types.d.ts
CHANGED
|
@@ -10,10 +10,6 @@ export type IconConfig = {
|
|
|
10
10
|
* Path to the Android source image.
|
|
11
11
|
*/
|
|
12
12
|
android?: string;
|
|
13
|
-
/**
|
|
14
|
-
* Whether iOS should treat the icon as already rendered (no gloss).
|
|
15
|
-
*/
|
|
16
|
-
prerendered?: boolean;
|
|
17
13
|
};
|
|
18
14
|
/**
|
|
19
15
|
* Map of icon key → icon config, as used everywhere internally (always the
|