Skip to content

Commit

Permalink
Fixes LocalNotification issue that was trying to initialise an `int…
Browse files Browse the repository at this point in the history
…` with a `double`
  • Loading branch information
yusuftor committed Apr 12, 2024
1 parent 844fffd commit 01622ee
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 4 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
# CHANGELOG

The changelog for `Superwall`. Also see the [releases](https://github.com/superwall/Superwall-Flutter/releases) on GitHub.

## 1.1.1

### Fixes

- Fixes `LocalNotification` issue that was trying to initialise an `int` with a `double`.

## 1.1.0

### Enhancements
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,6 @@ fun LocalNotification.toJson(): Map<String, Any?> {
fun LocalNotificationType.toJson(): String {
return when (this) {
LocalNotificationType.TrialStarted -> "trialStarted"
else -> ""
}
}
2 changes: 1 addition & 1 deletion lib/src/public/LocalNotification.dart
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class LocalNotification {
final String body;

/// The delay to the notification in milliseconds.
final int delay;
final double delay;

LocalNotification({
required this.type,
Expand Down
6 changes: 3 additions & 3 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
name: superwallkit_flutter
description: "Remotely configure every aspect of your paywall and double your revenue."
version: 1.1.0
version: 1.1.1
homepage: "https://superwall.com"

environment:
sdk: '>=3.2.0 <4.0.0'
flutter: '>=3.3.0'
sdk: ">=3.2.0 <4.0.0"
flutter: ">=3.3.0"

dependencies:
flutter:
Expand Down

0 comments on commit 01622ee

Please sign in to comment.