diff --git a/.dart_tool/extension_discovery/devtools.json b/.dart_tool/extension_discovery/devtools.json new file mode 100644 index 0000000..4653d3f --- /dev/null +++ b/.dart_tool/extension_discovery/devtools.json @@ -0,0 +1 @@ +{"version":2,"entries":[{"package":"ble_relay_host","rootUri":"../","packageUri":"lib/"}]} \ No newline at end of file diff --git a/ios/ble_relay_host.podspec b/ios/ble_relay_host.podspec new file mode 100644 index 0000000..e1c4a93 --- /dev/null +++ b/ios/ble_relay_host.podspec @@ -0,0 +1,19 @@ +Pod::Spec.new do |s| + s.name = 'ble_relay_host' + s.version = '0.1.0' + s.summary = 'BLE GATT-server peripheral host for the DALI relay feature.' + s.description = <<-DESC +Flutter plugin that exposes a BLE relay host API for DALI Toolkit. +On iOS the current implementation is a stub that reports unsupported. + DESC + s.homepage = 'https://github.com/tonylu00/DALI-Toolkit' + s.license = { :type => 'Proprietary' } + s.author = { 'DALI Toolkit' => 'noreply@example.com' } + s.source = { :path => '.' } + s.source_files = 'Classes/**/*' + s.dependency 'Flutter' + + s.platform = :ios, '12.0' + s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES' } + s.swift_version = '5.0' +end \ No newline at end of file diff --git a/lib/ble_relay_host.dart b/lib/ble_relay_host.dart index 8a4878b..4aac058 100644 --- a/lib/ble_relay_host.dart +++ b/lib/ble_relay_host.dart @@ -1,18 +1,17 @@ -/// BLE GATT-server peripheral host adapter for the DALI Toolkit relay feature. -/// -/// Usage: -/// ```dart -/// final host = BleRelayHost(); -/// if (host.isSupported) { -/// await host.start( -/// advertisedName: 'DALI-Bridge', -/// onClientWrite: (data) async { /* forward to DALI upstream */ }, -/// ); -/// // Push DALI responses back to connected BLE clients: -/// await host.push(responseBytes); -/// await host.stop(); -/// } -/// ``` -library ble_relay_host; +// BLE GATT-server peripheral host adapter for the DALI Toolkit relay feature. +// +// Usage: +// ```dart +// final host = BleRelayHost(); +// if (host.isSupported) { +// await host.start( +// advertisedName: 'DALI-Bridge', +// onClientWrite: (data) async { /* forward to DALI upstream */ }, +// ); +// // Push DALI responses back to connected BLE clients: +// await host.push(responseBytes); +// await host.stop(); +// } +// ``` export 'src/ble_relay_host.dart'; diff --git a/lib/src/ble_relay_host.dart b/lib/src/ble_relay_host.dart index 42464e8..22cfe90 100644 --- a/lib/src/ble_relay_host.dart +++ b/lib/src/ble_relay_host.dart @@ -1,5 +1,4 @@ import 'dart:async'; -import 'dart:typed_data'; import 'package:flutter/foundation.dart'; import 'package:flutter/services.dart'; diff --git a/macos/ble_relay_host.podspec b/macos/ble_relay_host.podspec new file mode 100644 index 0000000..edc87a2 --- /dev/null +++ b/macos/ble_relay_host.podspec @@ -0,0 +1,19 @@ +Pod::Spec.new do |s| + s.name = 'ble_relay_host' + s.version = '0.1.0' + s.summary = 'BLE GATT-server peripheral host for the DALI relay feature.' + s.description = <<-DESC +Flutter plugin that exposes a BLE relay host API for DALI Toolkit. +On macOS the current implementation is a stub that reports unsupported. + DESC + s.homepage = 'https://github.com/tonylu00/DALI-Toolkit' + s.license = { :type => 'Proprietary' } + s.author = { 'DALI Toolkit' => 'noreply@example.com' } + s.source = { :path => '.' } + s.source_files = 'Classes/**/*' + s.dependency 'FlutterMacOS' + + s.platform = :osx, '10.11' + s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES' } + s.swift_version = '5.0' +end \ No newline at end of file