feat: 添加 CocoaPods 支持,更新集成文档

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
km2023
2026-04-16 13:31:21 +08:00
parent 920c24456a
commit 63dc4b7902
2 changed files with 28 additions and 1 deletions

17
DuooomiBleSDK.podspec Normal file
View File

@@ -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

View File

@@ -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")
]
```