UPcload / FitAnalytics-WebWidget-iOS

FitAnalytics WebWidget SDK for iOS
MIT License
4 stars 5 forks source link

Please provide integration with Swift Package Manager #14

Open lukas1 opened 3 years ago

lukas1 commented 3 years ago

Currently projects using Swift Package Manager cannot directly use this repository as a source for the package. Please integrate support for Swift Package Manager, so apps using Swift Package Manager can use this library: https://developer.apple.com/documentation/xcode/creating_a_standalone_swift_package_with_xcode

mattiacantalu commented 3 years ago

Any news about that?

tjelen commented 3 years ago

I've tried to add the Package.swift file to the project and to add stuff like bridging-headers and the modulemap to support using Objective-C in Swift projects. The result is only limited success, probably related to all headers not being exported properly (in external testing Swift project I can see only FITAWebWidget class but not the FITAWidgetHandler or FITAPurchaseReporter).

mattiacantalu commented 3 years ago

Hi @tjelen i've already migrated the Widget to SwiftPackageManager, but i can't open a PR so that share my code. In our project it seems working. On our side we just provided the basic support.