Skip to content
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

refactor: migrate to federated architecture #971

Closed
wants to merge 90 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
90 commits
Select commit Hold shift + click to select a range
4870ffe
refactor: create platform interface package
tnc1997 Aug 17, 2024
9b94209
chore: add analysis options
tnc1997 Aug 17, 2024
8990aa5
refactor: add common models
tnc1997 Aug 17, 2024
31ee2a3
test: add common models
tnc1997 Aug 17, 2024
67fcfd1
refactor: add adapter enums and models
tnc1997 Aug 17, 2024
514449b
refactor: add service models
tnc1997 Aug 17, 2024
6e8b9a9
refactor: add scan models
tnc1997 Aug 17, 2024
d7f41b4
refactor: add device enums and models
tnc1997 Aug 17, 2024
f998706
refactor: add descriptor models
tnc1997 Aug 17, 2024
7c1d7fc
refactor: add characteristic enums nd models
tnc1997 Aug 17, 2024
f11da61
test: add adapter models
tnc1997 Aug 17, 2024
52ada10
test: add characteristic models
tnc1997 Aug 17, 2024
2c4f92a
test: add descriptor models
tnc1997 Aug 17, 2024
2085e10
test: add scan models
tnc1997 Aug 17, 2024
d8b40d2
test: add service models
tnc1997 Aug 17, 2024
1f2dd10
test: add device models
tnc1997 Aug 17, 2024
8fddb26
refactor: add method channel methods
tnc1997 Aug 17, 2024
ee9585a
refactor: update method channel implementation
tnc1997 Aug 17, 2024
2e684c5
test: add method channel implementation
tnc1997 Aug 17, 2024
7af78ab
chore: add changelog to platform interface
tnc1997 Aug 18, 2024
09022fb
build: update platform interface pubspec
tnc1997 Aug 18, 2024
9d14ed0
refactor: migrate android implementation
tnc1997 Aug 18, 2024
022a1a8
refactor: migrate ios and macos implementation
tnc1997 Aug 18, 2024
0fff3fc
refactor: add bm user canceled error code
tnc1997 Aug 18, 2024
7913c48
refactor: rename device parameter to remote id
tnc1997 Aug 18, 2024
38c5453
refactor: add events to platform interface
tnc1997 Aug 18, 2024
22e8b12
chore: remove pubspec from root
tnc1997 Aug 18, 2024
044fa0f
test: update method channel implementation
tnc1997 Aug 18, 2024
a585953
refactor: migrate core package
tnc1997 Aug 18, 2024
3b034b5
fix: remove erroneous android package directives
tnc1997 Aug 18, 2024
b067cd9
fix: method channel on detached from engine stream
tnc1997 Aug 18, 2024
23ee3ee
refactor: align example gradle files with flutter changes
tnc1997 Aug 18, 2024
7dc7355
test: update adapter models
tnc1997 Aug 19, 2024
0766369
test: update characteristic models
tnc1997 Aug 19, 2024
f2fd3c3
test: update service models
tnc1997 Aug 19, 2024
c22887c
test: update scan models
tnc1997 Aug 19, 2024
8b3b369
test: update descriptor models
tnc1997 Aug 19, 2024
f23aaaa
test: update common models
tnc1997 Aug 19, 2024
cf1667d
refactor: reorganize based on conventions
tnc1997 Aug 20, 2024
202356b
refactor: copy implementations from dependencies
tnc1997 Aug 20, 2024
c3c9863
build: remove plugin platform interface
tnc1997 Aug 20, 2024
b87e800
build: remove flutter lints and analysis options
tnc1997 Aug 20, 2024
11c781f
refactor: add single bluetooth_msgs file
tnc1997 Aug 20, 2024
28f2e96
test: remove tests from platform interface
tnc1997 Aug 20, 2024
d8c6e6d
Revert "test: remove tests from platform interface"
tnc1997 Aug 21, 2024
4a46ec6
Revert "refactor: add single bluetooth_msgs file"
tnc1997 Aug 21, 2024
6dee3c0
Revert "build: remove flutter lints and analysis options"
tnc1997 Aug 21, 2024
692c440
Revert "build: remove plugin platform interface"
tnc1997 Aug 21, 2024
2429feb
Revert "refactor: copy implementations from dependencies"
tnc1997 Aug 21, 2024
44780db
Revert "refactor: reorganize based on conventions"
tnc1997 Aug 21, 2024
d4d0ec0
Revert "test: update common models"
tnc1997 Aug 21, 2024
e2beeff
Revert "test: update descriptor models"
tnc1997 Aug 21, 2024
d7a9e56
Revert "test: update scan models"
tnc1997 Aug 21, 2024
602c552
Revert "test: update service models"
tnc1997 Aug 21, 2024
b0568a0
Revert "test: update characteristic models"
tnc1997 Aug 21, 2024
db7aeb0
Revert "test: update adapter models"
tnc1997 Aug 21, 2024
d8ea6d2
Revert "refactor: align example gradle files with flutter changes"
tnc1997 Aug 21, 2024
15c19fb
Revert "fix: method channel on detached from engine stream"
tnc1997 Aug 21, 2024
7b26720
Revert "fix: remove erroneous android package directives"
tnc1997 Aug 21, 2024
fe9f717
Revert "refactor: migrate core package"
tnc1997 Aug 21, 2024
961325c
Revert "test: update method channel implementation"
tnc1997 Aug 21, 2024
6b103b0
Revert "chore: remove pubspec from root"
tnc1997 Aug 21, 2024
57c5e67
Revert "refactor: add events to platform interface"
tnc1997 Aug 21, 2024
ba4519c
Revert "refactor: rename device parameter to remote id"
tnc1997 Aug 21, 2024
69b7da9
Revert "refactor: add bm user canceled error code"
tnc1997 Aug 21, 2024
b41cf10
Revert "refactor: migrate ios and macos implementation"
tnc1997 Aug 21, 2024
8ac562c
Revert "refactor: migrate android implementation"
tnc1997 Aug 21, 2024
0c3e196
Revert "build: update platform interface pubspec"
tnc1997 Aug 21, 2024
0ac7c32
Revert "chore: add changelog to platform interface"
tnc1997 Aug 21, 2024
06a8a1d
Revert "test: add method channel implementation"
tnc1997 Aug 21, 2024
cc2f03e
Revert "refactor: update method channel implementation"
tnc1997 Aug 21, 2024
3e58080
Revert "refactor: add method channel methods"
tnc1997 Aug 21, 2024
357a10e
Revert "test: add device models"
tnc1997 Aug 21, 2024
9bc94d0
Revert "test: add service models"
tnc1997 Aug 21, 2024
6b1416e
Revert "test: add scan models"
tnc1997 Aug 21, 2024
b5eca40
Revert "test: add descriptor models"
tnc1997 Aug 21, 2024
8c6987f
Revert "test: add characteristic models"
tnc1997 Aug 21, 2024
7819c94
Revert "test: add adapter models"
tnc1997 Aug 21, 2024
16d3a80
Revert "refactor: add characteristic enums nd models"
tnc1997 Aug 21, 2024
a6ebdf5
Revert "refactor: add descriptor models"
tnc1997 Aug 21, 2024
829538b
Revert "refactor: add device enums and models"
tnc1997 Aug 21, 2024
ca7080c
Revert "refactor: add scan models"
tnc1997 Aug 21, 2024
6c7310e
Revert "refactor: add service models"
tnc1997 Aug 21, 2024
f40c7f3
Revert "refactor: add adapter enums and models"
tnc1997 Aug 21, 2024
d2cf501
Revert "test: add common models"
tnc1997 Aug 21, 2024
2e2c4b8
Revert "refactor: add common models"
tnc1997 Aug 21, 2024
89c3db3
Revert "chore: add analysis options"
tnc1997 Aug 21, 2024
04ebb62
Revert "refactor: create platform interface package"
tnc1997 Aug 21, 2024
37d9686
refactor: create platform interface package
tnc1997 Aug 21, 2024
fd9f1ef
refactor: apply suggestions from code review
tnc1997 Aug 22, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions packages/flutter_blue_plus_platform_interface/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Miscellaneous
*.class
*.log
*.pyc
*.swp
.DS_Store
.atom/
.buildlog/
.history
.svn/
migrate_working_dir/

# IntelliJ related
*.iml
*.ipr
*.iws
.idea/

# The .vscode folder contains launch configuration and tasks you configure in
# VS Code which you may wish to be included in version control, so this line
# is commented out by default.
#.vscode/

# Flutter/Dart/Pub related
# Libraries should not include pubspec.lock, per https://dart.dev/guides/libraries/private-files#pubspeclock.
/pubspec.lock
**/doc/api/
.dart_tool/
build/
10 changes: 10 additions & 0 deletions packages/flutter_blue_plus_platform_interface/.metadata
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# This file tracks properties of this Flutter project.
# Used by Flutter tool to assess capabilities and perform upgrades etc.
#
# This file should be version controlled and should not be manually edited.

version:
revision: "b864805a681ae6bb7d7f6cafb7a5a21489819bcf"
channel: "beta"

project_type: package
3 changes: 3 additions & 0 deletions packages/flutter_blue_plus_platform_interface/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## 1.0.0

* Initial release.
28 changes: 28 additions & 0 deletions packages/flutter_blue_plus_platform_interface/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
Copyright 2017-2024, Charles Weinberger & Thomas Clark.
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:

* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above
copyright notice, this list of conditions and the following disclaimer
in the documentation and/or other materials provided with the
distribution.
* Neither the name of Buffalo PC Inc. nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
18 changes: 18 additions & 0 deletions packages/flutter_blue_plus_platform_interface/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# flutter_blue_plus_platform_interface

A common platform interface for the [`flutter_blue_plus`][1] plugin.

This interface allows platform-specific implementations of the `flutter_blue_plus`
plugin, as well as the plugin itself, to ensure they are supporting the
same interface.

# Usage

To implement a new platform-specific implementation of `flutter_blue_plus`, extend
[`FlutterBluePlusPlatform`][2] with an implementation that performs the
platform-specific behavior, and when you register your plugin, set the default
`FlutterBluePlusPlatform` by calling
`FlutterBluePlusPlatform.instance = MyPlatformFlutterBluePlus()`.

[1]: ../flutter_blue_plus
[2]: lib/flutter_blue_plus_platform_interface.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export 'src/platform_interface/flutter_blue_plus_platform.dart';
Loading