Skip to content

Commit

Permalink
Merge branch 'release'
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelsetragni committed Jan 18, 2024
2 parents 5064f80 + 5f81535 commit 39fe982
Show file tree
Hide file tree
Showing 17 changed files with 209 additions and 179 deletions.
Binary file modified .DS_Store
Binary file not shown.
4 changes: 2 additions & 2 deletions .dart_tool/package_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@
},
{
"name": "plugin_platform_interface",
"rootUri": "file:///Users/rafaelsetragni/.pub-cache/hosted/pub.dev/plugin_platform_interface-2.1.7",
"rootUri": "file:///Users/rafaelsetragni/.pub-cache/hosted/pub.dev/plugin_platform_interface-2.1.8",
"packageUri": "lib/",
"languageVersion": "3.0"
},
Expand Down Expand Up @@ -296,7 +296,7 @@
"languageVersion": "2.19"
}
],
"generated": "2024-01-03T16:47:25.412066Z",
"generated": "2024-01-12T00:53:30.676697Z",
"generator": "pub",
"generatorVersion": "3.2.3"
}
4 changes: 2 additions & 2 deletions .dart_tool/package_config_subset
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,8 @@ file:///Users/rafaelsetragni/.pub-cache/hosted/pub.dev/path-1.8.3/
file:///Users/rafaelsetragni/.pub-cache/hosted/pub.dev/path-1.8.3/lib/
plugin_platform_interface
3.0
file:///Users/rafaelsetragni/.pub-cache/hosted/pub.dev/plugin_platform_interface-2.1.7/
file:///Users/rafaelsetragni/.pub-cache/hosted/pub.dev/plugin_platform_interface-2.1.7/lib/
file:///Users/rafaelsetragni/.pub-cache/hosted/pub.dev/plugin_platform_interface-2.1.8/
file:///Users/rafaelsetragni/.pub-cache/hosted/pub.dev/plugin_platform_interface-2.1.8/lib/
pub_semver
2.17
file:///Users/rafaelsetragni/.pub-cache/hosted/pub.dev/pub_semver-2.1.3/
Expand Down
34 changes: 15 additions & 19 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
## [0.9.1] - 2024-11-01
### Breaking Changes
- **Progress Property Now Double:** The `progress` property in `NotificationContent` has been changed from `int` to `double`. This modification enhances the precision of progress values in notifications.

### Improvements
- **Enhanced Documentation:** Updated the README documentation to include details on the new media player properties and the updated `progress` property type.
- **Refined Test Cases:** Revised test cases to cover the new `double` type for `progress` and related numerical conversions, ensuring robustness and accuracy.

### Bug Fixes
- **Default Values for MediaPlayer Properties:** Introduced default values for new media player properties like `duration`, `playState`, and `playSpeed`. This change aims to eliminate null exceptions and improve reliability.


## [0.9.0] - 01/02/2024
### Breaking Changes
- **Pod modifications:** Now it's necessary to also add Awesome Notifications pod modification inside `PodFile` at iOS folder.
Expand Down
27 changes: 14 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ We are constantly working to improve Awesome Notifications and provide support f
################ Awesome Notifications pod modification ###################
```

- **progress property changed to double:** The property `progress` from `NotificationContent` was changed to double type to increase precision.
- **Send port and Receive port with data restriction:** The methods `sendPort.send()` and `receivePort!.listen()` now only accept serialized data, not objects. Convert your data to a map format and reconstruct it later from this format.

**Before:**
Expand Down Expand Up @@ -1642,7 +1643,7 @@ NotificationContent (
notificationLayout: NotificationLayout?,
hideLargeIconOnExpand: bool?,
locked: bool?,
progress: int?,
progress: double?,
ticker: String?,
actionType: ActionType?
)
Expand Down Expand Up @@ -1677,11 +1678,11 @@ NotificationContent (
| notificationLayout | NO | The layout type for the notification | NotificationLayout | - | Default |
| hideLargeIconOnExpand | NO | Whether to hide the large icon when the notification is expanded (Android only) | bool | True or false | false |
| locked | NO | Whether to prevent the user from dismissing the notification (Android only) | bool | True or false | false |
| progress | NO | The current value for the notification's progress bar (Android only) | int | 0 - 100 | - |
| progress | NO | The current value for the notification's progress bar (Android only) | double | 0.0 - 100.0 | - |
| ticker | NO | The text to display in the ticker when the notification arrives | String | Unlimited | - |
| duration | NO | The media duration on media player notifications | Duration | Unlimited | - |
| playState | NO | The current playback state on media player notifications | NotificationPlaybackState | - | - |
| playbackSpeed | NO | The current playback speed on media player notifications | double | Unlimited | - |
| playbackSpeed | NO | The current playback speed on media player notifications. The rate is a multiple of normal playback and should be 0 when paused and negative when rewinding. Normal playback rate is 1.0. | double | Unlimited | - |
| actionType (Only for Android) | NO | Specifies the type of action that should be taken when the user taps on the body of the notification. | Enumerator | NotificationActionType | NotificationActionType.Default |

<br>
Expand All @@ -1699,17 +1700,17 @@ NotificationContent (

* At least one *required attribute is necessary

| Attribute | Required | Description | Type | Value Limits | Default value |
| ------------------------- | -------- | --------------------------------------------------------------------------------------- | --------------------- |------------------------------| ----------------------- |
| Attribute | Required | Description | Type | Value Limits | Default value |
|----------------------------| -------- | --------------------------------------------------------------------------------------- | --------------------- |------------------------------| ----------------------- |
| key | YES | A text key that identifies what action the user took when they tapped the notification | String | unlimited | |
| label | *YES | The text to be displayed on the action button | String | unlimited | |
| icon | *YES | The icon to be displayed inside the button (only available for few layouts) | String | Must be a resource image | |
| color | NO | The label text color (only for Android) | Color | 0x000000 to 0xFFFFFF | |
| enabled | NO | On Android, deactivates the button. On iOS, the button disappears | bool | true or false | true |
| autoDismissible | NO | Whether the notification should be auto-cancelled when the user taps the button | bool | true or false | true |
| showInCompactView | NO | For MediaPlayer notifications on Android, sets the button as visible in compact view | bool | true or false | true |
| isDangerousOption | NO | Whether the button is marked as a dangerous option, displaying the text in red | bool | true or false | false |
| isAuthenticationRequired | NO | The action performed by this button requires user authentication to proceed | bool | true or false | false |
| label | *YES | The text to be displayed on the action button | String | unlimited | |
| icon | *YES | The icon to be displayed inside the button (only available for few layouts) | String | Must be a resource image | |
| color | NO | The label text color (only for Android) | Color | 0x000000 to 0xFFFFFF | |
| enabled | NO | On Android, deactivates the button. On iOS, the button disappears | bool | true or false | true |
| autoDismissible | NO | Whether the notification should be auto-cancelled when the user taps the button | bool | true or false | true |
| showInCompactView | NO | For MediaPlayer notifications on Android, sets the button as visible in compact view | bool | true or false | true |
| isDangerousOption | NO | Whether the button is marked as a dangerous option, displaying the text in red | bool | true or false | false |
| isAuthenticationRequired | NO | The action performed by this button requires user authentication to proceed | bool | true or false | false |
| actionType | NO | The notification action response type | Enumerator | ActionType (Default) | |

<br>
Expand Down
4 changes: 2 additions & 2 deletions android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
group 'me.carda.awesome_notifications'
version '0.9.0'
version '0.9.1'

buildscript {
repositories {
Expand Down Expand Up @@ -43,7 +43,7 @@ android {

dependencies {
// implementation project(':awn_core')
implementation 'me.carda:AndroidAwnCore:[0.9.0, 0.10.0)'
implementation 'me.carda:AndroidAwnCore:[0.9.1, 0.10.0)'

implementation 'com.google.guava:guava:32.1.3-android'

Expand Down
Loading

0 comments on commit 39fe982

Please sign in to comment.