-
Notifications
You must be signed in to change notification settings - Fork 275
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Forced null safety #287
Forced null safety #287
Conversation
Main difference from my PR #286 as far as I see is that example uses old flutter SDK. Tested both PR for my currently required project and both are working as expected. I had problems for this PR for adding new calendar in example. |
I have manually merged #286 to this pull request, and fixed up the example a bit. Some logic may need to be refined but overall this is sound null safety, example app compiled successfully in iOS and android, and passed auto checks. TODO:
|
Took me way too long to find this line.
Should I merge this PR @thomassth? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey, I assume this will be a breaking change for devs using this package? If so, we'll need to increment the major version number.
Also, can you make sure the readme is updated to reflect changes in usage and the Changelog has details of what's changed.
Sure. No problem. I will take a look. An yes, this is breaking change. |
Make sure you update pubspec with new version number (as breaking change, make sure you increment major version number). The changelog should include the version number. |
Ok. Thanks for help. I will make sure that everything is correct and will add required things. |
One thing to add. I see that @thomassth changed to use LTS NDK version. Shouldn't we use latest stable? |
I will keep now NDK version as it is currently in this PR, cause pipelines works. |
Should we publish this as a prerelease? (4.0.0-dev.1) |
Improve Proguard rule clarity
I was using my PR in my production app and today tested a bit this PR. In my opinion it is safe to publish 4.0.0 version. In any case, we can publish later some bugfix version if it is needed. But haven't seen any bug related to this PR. |
With the versioning - update version in pubspec without any prerelease flag. This is done automatically by the CI/CD pipeline. When you PR to develop I think we push a pre release. |
In that case I think we are ready to merge to dev branch |
@nickrandolph should we implement "nickr/timezones" branch changes into development branch or there logic wasn't fully functioning? |
That branch should be the next section of work - it was a while ago but I think I got most of the way through the changes to Android in order to work with the new dart entities. I'd suggest taking that branch for a run and seeing what's left to do. |
After updating dependencies and running
dart migrate
, and with a few manual patches, this is the kind-of functional null safety enabled device_calendar.Tested and working functions (because I use them):
retrieveCalendars()
retrieves calendar on AndroidEvent event(calendarId_String)
can be set correctly (although I still find it confusing to use a number as a string)createOrUpdateEvent()
added calendar event to the selected calendarIf anyone is interested please test it with other functions and see if they run, and better yet, help fixing other bugs.
To use this instead of the published package:
Parent Folder
├
YourApp
└
device_calendar_null
pubspec.yaml
flutter pub get