feat: 添加 CocoaPods 支持,更新集成文档
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
17
DuooomiBleSDK.podspec
Normal file
17
DuooomiBleSDK.podspec
Normal 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
|
||||||
12
README.md
12
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
|
```swift
|
||||||
// Package.swift
|
// Package.swift
|
||||||
dependencies: [
|
dependencies: [
|
||||||
.package(path: "../duooomi-ios-sdk")
|
.package(url: "https://gitea.bowong.cc/comi-logic/duooomi-ios-sdk.git", branch: "main")
|
||||||
]
|
]
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user