forked from pauldemarco/flutter_blue
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate plugin to null safety. (pauldemarco#791)
* Update dependencies. Generate new protobuf files. * Allow Timeout parameter for scans to be null. Fix private constructor. * Remove const constructor with named parameters for ScanResult and AdvertisementData. These classes should only ever be created using the .fromProto method, since they link directly to objects that exist platform-side. If the end-user needs to create their own ScanResult/AdvertisementData, they should use their own models within their app. * Secondary GUID can be null. lastValue for BluetoothCharacteristic and Descriptor will return an empty data list by default. Can never return null. * Revert to Protobuf 3.11.4. * Quick and dirty conversion of example app to Null safety. Needs cleanup. * Generate protobuf files with new null safe protoc_plugin. * Remove unused E2E from Android embedder. * Allow TxPowerLevel to be null. * Null check not necessary in toString functions. * Force non-null for writeType when receiving from platform. Consider performing a more explicit check of the proto value, and make sure it maps correctly to the Dart CharacteristicWriteType value. * Remove unused E2E test file. E2E has moved to a new package, integration_test, and will need to be re-implemented. * Add 0.8.0 notes to CHANGELOG
- Loading branch information
1 parent
c19bb9a
commit 8d8d954
Showing
15 changed files
with
1,419 additions
and
1,472 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.