Closed Raonshi closed 9 months ago
Hi @Raonshi
Thank you so much for your PR !
Sounds good, let me know when you're done and I'll review it and merge it.
@gdelataillade actually, i'm already done that. in this PR, you can see two assertions in AlarmSettings model.
this PR supports developer to prevent using big number in id of AlarmSettings at debug mode.
@Raonshi
Awesome, I merge it and it will be available in the next release ! Thanks for your contribution !
Why this PullRequest is needs
When i make
AlarmSettings
model, I setid
to timestamp of DateTime.now(). It works on iOS, but doesn't work on Android. So, to prevent this case, I added some assertions inAlarmSettings
model.Changes
AlarmSettings
model.assert(id != 0 && id != -1, "id cannot be set to 0 or -1")
assert(id <= 2147483647, "id cannot be set larger then Android Int.MAX_VALUE")