cordova-ios icon indicating copy to clipboard operation
cordova-ios copied to clipboard

Release including Swift Package Manager support

Open zettlunic opened this issue 3 years ago • 4 comments

Hey folks! Wanted to check if there's any plan to create a tag/release including the Package.swift file which is necessary for SPM support?

We currently pin against 480a3c26bdd02e1a97844467e79bfa5a49ae5800, which works just fine. An explicit tag would feel nicer though.

Is there anything we can do to help?

TIA!

zettlunic avatar Oct 17 '22 10:10 zettlunic

Any news here? Master has SPM Support but no tag / release so far 😢

apps4everyone avatar Nov 17 '22 17:11 apps4everyone

To be clear, the support on the master branch for SPM only supports installing CordovaLib as a Swift package. It does not (yet) support plugins adding dependencies using SPM (See https://github.com/apache/cordova-ios/issues/1089 for that).

There was some restructuring to the CordovaLib project as part of that work and removal of deprecated APIs, so that won't be released until the next major version (7.0.0) which has some other outstanding work to be done first.

dpogue avatar Nov 17 '22 17:11 dpogue

thx @dpogue for the clarification, and the work 👍🏼

apps4everyone avatar Nov 17 '22 18:11 apps4everyone

Oops! Wonderful work by you, congratulations.

Friends, what is the other way to add a swift package in custom plugins?

I'm trying to make a custom plugin that works to lock the printscreen screenshot. Because what exists at the moment does not block the screenshot. I found this package > https://github.com/Stampoo/SnapshotSafeView

seems to be very promising, in native it works beautifully.

Could you guide me how should I do it or if it is possible to use another way to import the package?

andrerds avatar Nov 24 '22 17:11 andrerds

Going to close this issue. Support for consuming CordovaLib as a Swift package was added in version 7.0.0.

Support for plugins using Swift packages is an open issue being tracked in #1089.

dpogue avatar Aug 24 '24 09:08 dpogue