-
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.
Merge pull request #27 from tekartik/dart3a
Dart3a
- Loading branch information
Showing
66 changed files
with
1,076 additions
and
576 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
# Dependabot configuration file. | ||
# See https://docs.github.com/en/code-security/dependabot/dependabot-version-updates | ||
version: 2 | ||
|
||
enable-beta-ecosystems: true | ||
updates: | ||
- package-ecosystem: "pub" | ||
directory: "bluetooth" | ||
schedule: | ||
interval: "monthly" | ||
|
||
- package-ecosystem: "pub" | ||
directory: "bluetooth_bluez" | ||
schedule: | ||
interval: "monthly" | ||
|
||
- package-ecosystem: "pub" | ||
directory: "bluetooth_flutter" | ||
schedule: | ||
interval: "monthly" | ||
|
||
- package-ecosystem: "pub" | ||
directory: "bluetooth_flutter/example" | ||
schedule: | ||
interval: "monthly" | ||
|
||
- package-ecosystem: "pub" | ||
directory: "bluetooth_flutter_blue" | ||
schedule: | ||
interval: "monthly" | ||
|
||
- package-ecosystem: "pub" | ||
directory: "bluetooth_flutter_blue/example" | ||
schedule: | ||
interval: "monthly" | ||
|
||
- package-ecosystem: "pub" | ||
directory: "bluetooth_server" | ||
schedule: | ||
interval: "monthly" | ||
|
||
- package-ecosystem: "pub" | ||
directory: "bluetooth_server_app" | ||
schedule: | ||
interval: "monthly" | ||
|
||
- package-ecosystem: "pub" | ||
directory: "bluetooth_server_flutter" | ||
schedule: | ||
interval: "monthly" | ||
|
||
- package-ecosystem: "pub" | ||
directory: "bluetooth_test" | ||
schedule: | ||
interval: "monthly" | ||
|
||
- package-ecosystem: "pub" | ||
directory: "bluetooth_test_app" | ||
schedule: | ||
interval: "monthly" | ||
|
||
- package-ecosystem: "pub" | ||
directory: "bluetooth_web" | ||
schedule: | ||
interval: "monthly" | ||
|
||
- package-ecosystem: "pub" | ||
directory: "example/java_objc_app" | ||
schedule: | ||
interval: "monthly" | ||
|
||
- package-ecosystem: "pub" | ||
directory: "repo_support" | ||
schedule: | ||
interval: "monthly" | ||
|
||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "monthly" |
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 was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
export 'package:tekartik_bluetooth/src/mock/admin_manager_mock.dart' | ||
show BluetoothAdminManagerMock; | ||
export 'package:tekartik_bluetooth/src/mock/manager_mock.dart' | ||
show BluetoothManagerMock; | ||
|
||
export 'src/mock/peripheral_mock.dart' show BluetoothPeripheralMock; |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import 'dart:io'; | ||
|
||
import 'package:tekartik_bluetooth/src/import.dart'; | ||
|
||
mixin BluetoothManagerPlatformCompatMixin { | ||
/// Need for all implementation for now | ||
bool? get isAndroid => isRunningAsJavascript ? false : Platform.isAndroid; | ||
|
||
bool? get isIOS => isRunningAsJavascript ? false : Platform.isIOS; | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
import 'package:tekartik_bluetooth/bluetooth.dart'; | ||
import 'package:tekartik_bluetooth/src/common/platform_mixin.dart'; | ||
import 'package:tekartik_bluetooth/src/import.dart'; | ||
import 'package:tekartik_bluetooth/src/mixin.dart'; | ||
|
||
class BluetoothAdminManagerMock | ||
with BluetoothAdminManagerMixin, BluetoothManagerPlatformCompatMixin | ||
implements BluetoothAdminManager { | ||
@override | ||
Future<bool> checkCoarseLocationPermission({int? androidRequestCode}) async { | ||
return true; | ||
} | ||
|
||
@override | ||
Future<bool> checkBluetoothPermissions( | ||
{int? androidRequestCode, BluetoothPermissionsOptions? options}) async { | ||
return true; | ||
} | ||
|
||
@override | ||
Future disable() async {} | ||
|
||
@override | ||
Future enable({int? requestCode, int? androidRequestCode}) async {} | ||
|
||
@override | ||
Future<T> invokeMethod<T>(String method, [Object? arguments]) { | ||
// TODO: implement invokeMethod | ||
throw UnimplementedError(); | ||
} | ||
|
||
@override | ||
bool? get supportsEnable => false; | ||
|
||
@override | ||
Future<BluetoothAdminInfo> getAdminInfo() async { | ||
return BluetoothAdminInfoImpl( | ||
hasBluetooth: true, hasBluetoothBle: true, isBluetoothEnabled: true); | ||
} | ||
} |
Oops, something went wrong.