diff --git a/CHANGELOG.md b/CHANGELOG.md index 0f24d28..5cfba16 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,14 +7,24 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [0.1.2] + +### Fixed + +- Restructured package so HeapSwiftCore can be used as a dependency. + ## [0.1.1] ### Fixed -- [HEAP-41356] Fixed error when sending nil to certain sendEvent arguments +- Fixed error when sending nil to certain sendEvent arguments. ## [0.1.0] ### Added -- Autocapture SDK targeting iOS 13.0+ and Xcode 14.0+ +- Autocapture SDK targeting iOS 13.0+ and Xcode 14.0+. + +[0.1.2]: https://github.com/heap/heap-ios-autocapture-sdk/releases/tag/0.1.2 +[0.1.1]: https://github.com/heap/heap-ios-autocapture-sdk/releases/tag/0.1.1 +[0.1.0]: https://github.com/heap/heap-ios-autocapture-sdk/releases/tag/0.1.0 diff --git a/Package.swift b/Package.swift index 2f54f5d..cef0c71 100644 --- a/Package.swift +++ b/Package.swift @@ -14,11 +14,20 @@ let package = Package( name: "HeapIOSAutocapture", targets: ["HeapIOSAutocapture"]) ], + dependencies: [ + .package(url: "https://github.com/heap/heap-swift-core-sdk.git", from: "0.1.2"), + ], targets: [ - .binaryTarget( + .target( name: "HeapIOSAutocapture", - url: "https://cdn.heapanalytics.com/ios/heap-ios-autocapture-0.1.1.zip", - checksum: "a43b0dc9caabcb3d980e33efce1695f87001b8f41d33c60beefc3d6e3d65fb42" + dependencies: [ + .product(name: "HeapSwiftCore", package: "heap-swift-core-sdk"), + "HeapIOSAutocaptureImplementation", + ]), + .binaryTarget( + name: "HeapIOSAutocaptureImplementation", + url: "https://cdn.heapanalytics.com/ios/heap-ios-autocapture-0.1.2.zip", + checksum: "aab304a33872ef265f4c25fe50d670caa737458a809b683e93c21910ffb65b07" ), ] ) diff --git a/Sources/HeapIOSAutocapture/HeapIOSAutocapture.swift b/Sources/HeapIOSAutocapture/HeapIOSAutocapture.swift new file mode 100644 index 0000000..6a81dec --- /dev/null +++ b/Sources/HeapIOSAutocapture/HeapIOSAutocapture.swift @@ -0,0 +1,12 @@ +@_exported import HeapIOSAutocaptureImplementation +import HeapSwiftCore + +extension Heap { + + public class iOSAutocaptureSource { + + public static func register(isDefault: Bool = false) { + __HeapIOSAutocaptureSource.register(coreSdk: Heap.shared, isDefault: isDefault) + } + } +} diff --git a/Sources/HeapIOSAutocaptureWrapper/Exports.swift b/Sources/HeapIOSAutocaptureWrapper/Exports.swift deleted file mode 100644 index 309371a..0000000 --- a/Sources/HeapIOSAutocaptureWrapper/Exports.swift +++ /dev/null @@ -1 +0,0 @@ -@_exported import HeapIOSAutocapture