Skip to content

Commit

Permalink
feat: add new support dark and tinted icons for ios 18
Browse files Browse the repository at this point in the history
  • Loading branch information
mrrhak committed Aug 23, 2024
1 parent 6f57f4b commit 590e1a0
Show file tree
Hide file tree
Showing 35 changed files with 487 additions and 259 deletions.
5 changes: 3 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# Changelog

## Unreleased
- Improvement package CI/CD
## 3.0.0-beta.4
- Add new support `Dark` and `Tinted` icons for iOS 18
- Add new command for generating all flavors at once: `--flavors`
- Improvement package CI/CD

## 3.0.0-beta.3
- Fixed iOS Icon generator
Expand Down
17 changes: 12 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,8 @@ Shown below is the full list of attributes which you can specify within your Ico
| -------------- | ------- | ------- | ------------------------------- |
| `enable` | Boolean | `false` | Use for enable iOS platform |
| `image_path` | String | `null` | The image file path |
| `dark_path` | String | `null` | The dark image file path |
| `tinted_path` | String | `null` | The tinted image file path |

| Web Option | Type | Default | Description |
| -------------- | ------- | ------- | ------------------------------- |
Expand Down Expand Up @@ -182,7 +184,7 @@ Shown below is the full list of attributes which you can specify within your Ico

Create a Icons Launcher configuration file for your flavor. The config file is called `icons_launcher-<flavor>.yaml` by replacing `<flavor>` by the name of your desired flavor.

Example: `icons_launcher-dev.yaml`, `icons_launcher-uat.yaml`, `icons_launcher-prod.yaml`
Example: `icons_launcher-dev.yaml` and `icons_launcher-prod.yaml`

Run with flavor:

Expand All @@ -191,17 +193,14 @@ flutter pub get
# create for dev flavor
dart run icons_launcher:create --flavor dev

# create for uat flavor
dart run icons_launcher:create --flavor uat

# create for prod flavor
dart run icons_launcher:create --flavor prod
```

Alternatively, you can run multiple flavors at the same time with the following command:

```bash
dart run icons_launcher:create --flavors dev,uat,prod
dart run icons_launcher:create --flavors dev,prod
```

The configuration file format is the same.
Expand All @@ -226,6 +225,9 @@ icons_launcher:
ios:
enable: true
image_path: "assets/ic_logo_rectangle.png"
# For iOS 18+ (support dark and tinted)
# dark_path: "assets/ic_logo_rectangle_dark.png"
# tinted_path: "assets/ic_logo_rectangle_tinted.png"
web:
enable: true
image_path: "assets/ic_logo_radius.png"
Expand All @@ -240,3 +242,8 @@ icons_launcher:
enable: false
image_path: "assets/ic_logo_radius.png"
```
---
## Activities
![Alt](https://repobeats.axiom.co/api/embed/5309e2f5c1da2066439a06cc4ef66881a13947c5.svg "analytics")
Binary file added example/.DS_Store
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions example/flavor_app/icons_launcher-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ icons_launcher:
ios:
enable: true
image_path: "assets/ic_logo_rectangle.png"
# For iOS 18+ (support dark and tinted)
# dark_path: "assets/ic_logo_rectangle_dark.png"
# tinted_path: "assets/ic_logo_rectangle_tinted.png"
web:
enable: true
image_path: "assets/ic_logo_radius.png"
Expand Down
3 changes: 3 additions & 0 deletions example/flavor_app/icons_launcher-prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ icons_launcher:
ios:
enable: true
image_path: "assets/ic_logo_rectangle.png"
# For iOS 18+ (support dark and tinted)
# dark_path: "assets/ic_logo_rectangle_dark.png"
# tinted_path: "assets/ic_logo_rectangle_tinted.png"
web:
enable: true
image_path: "assets/ic_logo_radius.png"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,142 +1,117 @@
{
"images": [
{
"filename": "[email protected]",
"platform": "ios",
"idiom": "universal",
"scale": "1x",
"size": "20x20"
},
{
"filename": "[email protected]",
"platform": "ios",
"idiom": "universal",
"idiom": "iphone",
"scale": "2x",
"size": "20x20"
},
{
"filename": "[email protected]",
"platform": "ios",
"idiom": "universal",
"idiom": "iphone",
"scale": "3x",
"size": "20x20"
},
{
"filename": "[email protected]",
"idiom": "ipad",
"scale": "1x",
"size": "20x20"
},
{
"filename": "[email protected]",
"idiom": "ipad",
"scale": "2x",
"size": "20x20"
},
{
"filename": "[email protected]",
"platform": "ios",
"idiom": "universal",
"idiom": "iphone",
"scale": "1x",
"size": "29x29"
},
{
"filename": "[email protected]",
"platform": "ios",
"idiom": "universal",
"idiom": "iphone",
"scale": "2x",
"size": "29x29"
},
{
"filename": "[email protected]",
"platform": "ios",
"idiom": "universal",
"idiom": "iphone",
"scale": "3x",
"size": "29x29"
},
{
"filename": "[email protected]",
"platform": "ios",
"idiom": "universal",
"filename": "[email protected]",
"idiom": "ipad",
"scale": "1x",
"size": "29x29"
},
{
"filename": "[email protected]",
"idiom": "ipad",
"scale": "2x",
"size": "29x29"
},
{
"filename": "[email protected]",
"idiom": "iphone",
"scale": "2x",
"size": "38x38"
"size": "40x40"
},
{
"filename": "[email protected]",
"platform": "ios",
"idiom": "universal",
"filename": "[email protected]",
"idiom": "iphone",
"scale": "3x",
"size": "38x38"
"size": "40x40"
},
{
"filename": "[email protected]",
"platform": "ios",
"idiom": "universal",
"idiom": "ipad",
"scale": "1x",
"size": "40x40"
},
{
"filename": "[email protected]",
"platform": "ios",
"idiom": "universal",
"idiom": "ipad",
"scale": "2x",
"size": "40x40"
},
{
"filename": "[email protected]",
"platform": "ios",
"idiom": "universal",
"scale": "3x",
"size": "40x40"
},
{
"filename": "[email protected]",
"platform": "ios",
"idiom": "universal",
"idiom": "iphone",
"scale": "2x",
"size": "60x60"
},
{
"filename": "[email protected]",
"platform": "ios",
"idiom": "universal",
"idiom": "iphone",
"scale": "3x",
"size": "60x60"
},
{
"filename": "[email protected]",
"platform": "ios",
"idiom": "universal",
"scale": "2x",
"size": "64x64"
},
{
"filename": "[email protected]",
"platform": "ios",
"idiom": "universal",
"scale": "3x",
"size": "64x64"
},
{
"filename": "[email protected]",
"platform": "ios",
"idiom": "universal",
"scale": "2x",
"size": "68x68"
},
{
"filename": "[email protected]",
"platform": "ios",
"idiom": "universal",
"idiom": "ipad",
"scale": "1x",
"size": "76x76"
},
{
"filename": "[email protected]",
"platform": "ios",
"idiom": "universal",
"idiom": "ipad",
"scale": "2x",
"size": "76x76"
},
{
"filename": "[email protected]",
"platform": "ios",
"idiom": "universal",
"idiom": "ipad",
"scale": "2x",
"size": "83.5x83.5"
},
{
"filename": "Icon-App-1024x1024.png",
"platform": "ios",
"idiom": "universal",
"filename": "Icon-App-1024x1024@1x.png",
"idiom": "ios-marketing",
"scale": "1x",
"size": "1024x1024"
}
],
Expand Down
File renamed without changes
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading

0 comments on commit 590e1a0

Please sign in to comment.