Skip to content

Commit

Permalink
🍱 Convert images to webp
Browse files Browse the repository at this point in the history
  • Loading branch information
istornz committed Sep 5, 2024
1 parent eaf6b2e commit 2b90209
Show file tree
Hide file tree
Showing 26 changed files with 43 additions and 47 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 1.9.4
* 🍱 Convert images to webp.
* ⬆️ Upgrade dependencies.

## 1.9.3
* 🐛 Force returning false for `areActivitiesEnabled()` when no iOS devices.

Expand Down
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div align="center">
<img alt="flutter ios 16 live activities" src="https://raw.githubusercontent.com/istornz/live_activities/main/images/logo.jpg" />
<img alt="flutter ios 16 live activities" src="https://raw.githubusercontent.com/istornz/live_activities/main/images/logo.webp" />
</div>
<br />

Expand All @@ -14,7 +14,7 @@

<div align="center">
<a href="https://radion-app.com" target="_blank" alt="Radion - Ultimate gaming app">
<img src="https://raw.githubusercontent.com/istornz/live_activities/main/images/radion.png" width="600px" alt="Radion banner - Ultimate gaming app" />
<img src="https://raw.githubusercontent.com/istornz/live_activities/main/images/radion.webp" width="600px" alt="Radion banner - Ultimate gaming app" />
</a>
</div>
<br />
Expand All @@ -33,11 +33,11 @@ This plugin uses the [iOS ActivityKit API](https://developer.apple.com/documenta
<br />
<div align="center" style="display: flex;align-items: center;justify-content: center;">
<div align="center" style="display: flex;flex-direction: column; align-items: center;justify-content: center;margin-right: 20px">
<img alt="flutter ios 16 live activities dynamic island" src="https://raw.githubusercontent.com/istornz/live_activities/main/images/showcase/static/dynamic_island.png" width="300px" style="margin-bottom: 20px" />
<img alt="flutter ios 16 live activities lockscreen" src="https://raw.githubusercontent.com/istornz/live_activities/main/images/showcase/static/lockscreen_live_activity.png" width="300px" />
<img alt="flutter ios 16 live activities dynamic island" src="https://raw.githubusercontent.com/istornz/live_activities/main/images/showcase/static/dynamic_island.webp" width="300px" style="margin-bottom: 20px" />
<img alt="flutter ios 16 live activities lockscreen" src="https://raw.githubusercontent.com/istornz/live_activities/main/images/showcase/static/lockscreen_live_activity.webp" width="300px" />
</div>
<img alt="flutter ios 16 live activities preview dynamic island" src="https://raw.githubusercontent.com/istornz/live_activities/main/images/showcase/animations/create_live_activity.gif" width="250px" style="margin-right: 20px" />
<img alt="flutter ios 16 live activities preview action" src="https://raw.githubusercontent.com/istornz/live_activities/main/images/showcase/animations/update_live_activity.gif" width="250px" style="margin-right: 20px" />
<img alt="flutter ios 16 live activities preview dynamic island" src="https://raw.githubusercontent.com/istornz/live_activities/main/images/showcase/animations/create_live_activity.webp" width="250px" style="margin-right: 20px" />
<img alt="flutter ios 16 live activities preview action" src="https://raw.githubusercontent.com/istornz/live_activities/main/images/showcase/animations/update_live_activity.webp" width="250px" style="margin-right: 20px" />
</div>
<br />

Expand All @@ -57,11 +57,11 @@ You need to **implement** in your Flutter iOS project a **Widget Extension** & d
- Click on **Finish**.
- When selecting Finish, an alert will appear, you will need to click on **Activate**.

<img alt="create widget extension xcode" src="https://raw.githubusercontent.com/istornz/live_activities/main/images/tutorial/create_widget_extension.gif" width="700px" />
<img alt="create widget extension xcode" src="https://raw.githubusercontent.com/istornz/live_activities/main/images/tutorial/create_widget_extension.webp" width="700px" />

- Add the "Push Notifications" capabilities for the main `Runner` app **only**!.

<img alt="enable push notification capabilities" src="https://raw.githubusercontent.com/istornz/live_activities/main/images/tutorial/push_capability.gif" width="700px" />
<img alt="enable push notification capabilities" src="https://raw.githubusercontent.com/istornz/live_activities/main/images/tutorial/push_capability.webp" width="700px" />

- Enable live activity by adding this line in `Info.plist` for both `Runner` and your `Widget Extension`.

Expand All @@ -70,13 +70,13 @@ You need to **implement** in your Flutter iOS project a **Widget Extension** & d
<true/>
```

<img alt="enable live activities xcode" src="https://raw.githubusercontent.com/istornz/live_activities/main/images/tutorial/enable_live_activities.gif" width="700px" />
<img alt="enable live activities xcode" src="https://raw.githubusercontent.com/istornz/live_activities/main/images/tutorial/enable_live_activities.webp" width="700px" />

- Add the "App Group" capability for both `Runner` and your widget extension.
After you add the capability, check the checkmark next to the text field that contains an identifier of the form `group.example.myapp`.
This identifier will be used later and refered to as `YOUR_GROUP_ID`.

<img alt="enable live activity" src="https://raw.githubusercontent.com/istornz/live_activities/main/images/tutorial/app_group.gif" width="700px" />
<img alt="enable live activity" src="https://raw.githubusercontent.com/istornz/live_activities/main/images/tutorial/app_group.webp" width="700px" />

<br />

Expand Down Expand Up @@ -219,7 +219,7 @@ In order to pass some useful **data** between your **native** live activity / dy
- Add a custom url scheme in Xcode by navigating to **Runner** > **Runner** > **URL Types** > **URL Schemes**

<img alt="add url scheme xcode" src="https://raw.githubusercontent.com/istornz/live_activities/main/images/tutorial/url_scheme.png" width="700px" />
<img alt="add url scheme xcode" src="https://raw.githubusercontent.com/istornz/live_activities/main/images/tutorial/url_scheme.webp" width="700px" />

- In your Swift code, just create a new **link** and open to your custom **URL Scheme**

Expand Down
50 changes: 21 additions & 29 deletions example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,10 @@ packages:
dependency: transitive
description:
name: ffi
sha256: "493f37e7df1804778ff3a53bd691d8692ddf69702cf4c1c1096a2e41b4779e21"
sha256: "16ed7b077ef01ad6170a3d0c57caa4a112a38d7a2ed5602e0aca9ca6f3d98da6"
url: "https://pub.dev"
source: hosted
version: "2.1.2"
version: "2.1.3"
flutter:
dependency: "direct main"
description: flutter
Expand Down Expand Up @@ -103,18 +103,18 @@ packages:
dependency: transitive
description:
name: leak_tracker
sha256: "7f0df31977cb2c0b88585095d168e689669a2cc9b97c309665e3386f3e9d341a"
sha256: "3f87a60e8c63aecc975dda1ceedbc8f24de75f09e4856ea27daf8958f2f0ce05"
url: "https://pub.dev"
source: hosted
version: "10.0.4"
version: "10.0.5"
leak_tracker_flutter_testing:
dependency: transitive
description:
name: leak_tracker_flutter_testing
sha256: "06e98f569d004c1315b991ded39924b21af84cf14cc94791b8aea337d25b57f8"
sha256: "932549fb305594d82d7183ecd9fa93463e9914e1b67cacc34bc40906594a1806"
url: "https://pub.dev"
source: hosted
version: "3.0.3"
version: "3.0.5"
leak_tracker_testing:
dependency: transitive
description:
Expand All @@ -137,7 +137,7 @@ packages:
path: ".."
relative: true
source: path
version: "1.9.2"
version: "1.9.4"
matcher:
dependency: transitive
description:
Expand All @@ -150,18 +150,18 @@ packages:
dependency: transitive
description:
name: material_color_utilities
sha256: "0e0a020085b65b6083975e499759762399b4475f766c21668c4ecca34ea74e5a"
sha256: f7142bb1154231d7ea5f96bc7bde4bda2a0945d2806bb11670e30b850d56bdec
url: "https://pub.dev"
source: hosted
version: "0.8.0"
version: "0.11.1"
meta:
dependency: transitive
description:
name: meta
sha256: "7687075e408b093f36e6bbf6c91878cc0d4cd10f409506f7bc996f68220b9136"
sha256: bdb68674043280c3428e9ec998512fb681678676b3c54e773629ffe74419f8c7
url: "https://pub.dev"
source: hosted
version: "1.12.0"
version: "1.15.0"
path:
dependency: transitive
description:
Expand All @@ -174,18 +174,18 @@ packages:
dependency: transitive
description:
name: path_provider
sha256: c9e7d3a4cd1410877472158bee69963a4579f78b68c65a2b7d40d1a7a88bb161
sha256: fec0d61223fba3154d87759e3cc27fe2c8dc498f6386c6d6fc80d1afdd1bf378
url: "https://pub.dev"
source: hosted
version: "2.1.3"
version: "2.1.4"
path_provider_android:
dependency: transitive
description:
name: path_provider_android
sha256: bca87b0165ffd7cdb9cad8edd22d18d2201e886d9a9f19b4fb3452ea7df3a72a
sha256: "6f01f8e37ec30b07bc424b4deabac37cacb1bc7e2e515ad74486039918a37eb7"
url: "https://pub.dev"
source: hosted
version: "2.2.6"
version: "2.2.10"
path_provider_foundation:
dependency: transitive
description:
Expand Down Expand Up @@ -214,10 +214,10 @@ packages:
dependency: transitive
description:
name: path_provider_windows
sha256: "8bc9f22eee8690981c22aa7fc602f5c85b497a6fb2ceb35ee5a5e5ed85ad8170"
sha256: bd6f00dbd873bfb70d0761682da2b3a2c2fccc2b9e84c495821639601d81afe7
url: "https://pub.dev"
source: hosted
version: "2.2.1"
version: "2.3.0"
platform:
dependency: transitive
description:
Expand Down Expand Up @@ -283,10 +283,10 @@ packages:
dependency: transitive
description:
name: test_api
sha256: "9955ae474176f7ac8ee4e989dadfb411a58c30415bcfb648fa04b2b8a03afa7f"
sha256: "5b8a98dafc4d5c4c9c72d8b31ab2b23fc13422348d2997120294d3bac86b4ddb"
url: "https://pub.dev"
source: hosted
version: "0.7.0"
version: "0.7.2"
vector_math:
dependency: transitive
description:
Expand All @@ -299,18 +299,10 @@ packages:
dependency: transitive
description:
name: vm_service
sha256: "3923c89304b715fb1eb6423f017651664a03bf5f4b29983627c4da791f74a4ec"
url: "https://pub.dev"
source: hosted
version: "14.2.1"
win32:
dependency: transitive
description:
name: win32
sha256: a79dbe579cb51ecd6d30b17e0cae4e0ea15e2c0e66f69ad4198f22a6789e94f4
sha256: "5c5f338a667b4c644744b661f309fb8080bb94b18a7e91ef1dbd343bed00ed6d"
url: "https://pub.dev"
source: hosted
version: "5.5.1"
version: "14.2.5"
xdg_directories:
dependency: transitive
description:
Expand Down
Binary file removed images/logo.jpg
Binary file not shown.
Binary file added images/logo.webp
Binary file not shown.
Binary file removed images/radion.png
Binary file not shown.
Binary file added images/radion.webp
Binary file not shown.
Binary file removed images/showcase/animations/create_live_activity.gif
Binary file not shown.
Binary file not shown.
Binary file removed images/showcase/animations/update_live_activity.gif
Binary file not shown.
Binary file not shown.
Binary file removed images/showcase/static/dynamic_island.png
Binary file not shown.
Binary file added images/showcase/static/dynamic_island.webp
Binary file not shown.
Binary file removed images/showcase/static/lockscreen_live_activity.png
Binary file not shown.
Binary file not shown.
Binary file removed images/tutorial/app_group.gif
Binary file not shown.
Binary file added images/tutorial/app_group.webp
Binary file not shown.
Binary file removed images/tutorial/create_widget_extension.gif
Binary file not shown.
Binary file added images/tutorial/create_widget_extension.webp
Binary file not shown.
Binary file removed images/tutorial/enable_live_activities.gif
Binary file not shown.
Binary file added images/tutorial/enable_live_activities.webp
Binary file not shown.
Binary file removed images/tutorial/push_capability.gif
Binary file not shown.
Binary file added images/tutorial/push_capability.webp
Binary file not shown.
Binary file removed images/tutorial/url_scheme.png
Binary file not shown.
Binary file added images/tutorial/url_scheme.webp
Binary file not shown.
14 changes: 7 additions & 7 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: live_activities
description: A Flutter plugin to use iOS 16.1+ Live Activities & iPhone 14 Pro Dynamic Island features
version: 1.9.3
version: 1.9.4
homepage: https://dimitridessus.fr/
repository: https://github.com/istornz/live_activities

Expand All @@ -10,22 +10,22 @@ environment:

screenshots:
- description: 'Display a live activity on the iPhone 14 Pro+ dynamic island.'
path: images/showcase/static/dynamic_island.png
path: images/showcase/static/dynamic_island.webp
- description: 'Display a live activity on the lockscreen.'
path: images/showcase/static/lockscreen_live_activity.png
path: images/showcase/static/lockscreen_live_activity.webp
- description: 'Create a new live activity with the live_activities plugin.'
path: images/showcase/animations/create_live_activity.gif
path: images/showcase/animations/create_live_activity.webp
- description: 'Update a live activity with the live_activities plugin.'
path: images/showcase/animations/update_live_activity.gif
path: images/showcase/animations/update_live_activity.webp
- description: 'live_activities plugin logo.'
path: images/logo.jpg
path: images/logo.webp

dependencies:
flutter:
sdk: flutter
plugin_platform_interface: ^2.1.8
app_group_directory: ^2.0.0
path_provider: ^2.1.3
path_provider: ^2.1.4
flutter_native_image: ^0.0.6+1

dev_dependencies:
Expand Down

0 comments on commit 2b90209

Please sign in to comment.