apache / cordova-ios

Apache Cordova iOS
https://cordova.apache.org/
Apache License 2.0
2.15k stars 987 forks source link

Release including Swift Package Manager support #1267

Open zettlunic opened 1 year ago

zettlunic commented 1 year ago

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!

apps4everyone commented 1 year ago

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

dpogue commented 1 year ago

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.

apps4everyone commented 1 year ago

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

andrerds commented 1 year ago

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?