holepunchto / bare-kit

Bare for native application development
Apache License 2.0
12 stars 2 forks source link

Question on Framework #5

Closed warmachinesocial closed 1 month ago

warmachinesocial commented 1 month ago

To be honest, I don't know much on Cmake or framework in ios however I recently played with static library and how to integrate in swift. Was wondering if this dynamic or static lib or how does framework wrap this? Just wanna learn on that side.

How easily would it be to use the barekit framework?

kasperisager commented 1 month ago

The resulting BareKit.framework wraps a dynamic library. You can then compile several of these for the various SDKs and architectures, all of which are produced by the prebuild workflow (https://github.com/holepunchto/bare-kit/actions/workflows/prebuild.yml), into a universal BareKit.xcframework. That's precisely what we ship in react-native-bare-kit: https://unpkg.com/browse/react-native-bare-kit@latest/ios/BareKit.xcframework/