diff --git a/DuooomiBleSDK.podspec b/DuooomiBleSDK.podspec new file mode 100644 index 0000000..d5c51d7 --- /dev/null +++ b/DuooomiBleSDK.podspec @@ -0,0 +1,17 @@ +Pod::Spec.new do |s| + s.name = 'DuooomiBleSDK' + s.version = '0.1.0' + s.summary = 'Duooomi BLE communication SDK for iOS.' + s.description = 'DuooomiBleSDK provides BLE device discovery, connection, ANI transfer, and firmware OTA update capabilities.' + s.homepage = 'https://gitea.bowong.cc/comi-logic/duooomi-ios-sdk' + s.license = { :type => 'MIT', :file => 'LICENSE' } + s.author = { 'comi-logic' => 'dev@bowong.cc' } + s.source = { :git => 'https://gitea.bowong.cc/comi-logic/duooomi-ios-sdk.git', :tag => s.version.to_s } + + s.ios.deployment_target = '16.0' + s.swift_version = '5.0' + + s.source_files = 'Sources/DuooomiBleSDK/**/*.swift' + + s.frameworks = 'CoreBluetooth', 'Foundation', 'Combine' +end diff --git a/README.md b/README.md index 27f5442..193ecc9 100644 --- a/README.md +++ b/README.md @@ -4,10 +4,20 @@ ## 集成 +### CocoaPods + +```ruby +pod 'DuooomiBleSDK', :git => 'https://gitea.bowong.cc/comi-logic/duooomi-ios-sdk.git', :branch => 'main' +``` + +然后执行 `pod install`。 + +### Swift Package Manager + ```swift // Package.swift dependencies: [ - .package(path: "../duooomi-ios-sdk") + .package(url: "https://gitea.bowong.cc/comi-logic/duooomi-ios-sdk.git", branch: "main") ] ```