update podspec

This commit is contained in:
Tony
2026-05-06 22:44:20 +08:00
parent fbfc24c9e5
commit d670143817
5 changed files with 54 additions and 17 deletions
@@ -0,0 +1 @@
{"version":2,"entries":[{"package":"ble_relay_host","rootUri":"../","packageUri":"lib/"}]}
+19
View File
@@ -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
+15 -16
View File
@@ -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';
-1
View File
@@ -1,5 +1,4 @@
import 'dart:async';
import 'dart:typed_data';
import 'package:flutter/foundation.dart';
import 'package:flutter/services.dart';
+19
View File
@@ -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