Commit Graph

9 Commits

Author SHA1 Message Date
An An 88c11f9eca Change supported iOS version be iOS 10.0 🚀 2022-05-31 17:21:13 +08:00
An An 4dea2f5220 Update Package.swift 2022-05-30 14:34:36 +08:00
An An 30960d3f18 Update Package.swift 2022-05-24 11:19:05 +08:00
An An 16dceb1b86 Update Package.swift 2022-05-24 11:15:07 +08:00
An An 6a528ffd71 Update Package.swift 2022-05-23 18:25:19 +08:00
Aleksandar Vacić 260e59f61e When bundle resources are accessed inside a package, trickery is required.
SPM creates static instance Bundle.module, which points to proper package/framework bundle in the executable.

But .module does not exists when code is used as part of regular app. So we need trickery.

- ProjectBundlePathLoader.swift is file which works when code is used inside regular project app and it is marked as member of the app (and tests) targets. It must be excluded from the SPM package.
- PackageBundlePathLoader.swift is file which implements the same resource loading but this time using Bundle.module and as such it is not a member of the app/test targets.
2020-12-14 20:18:47 +01:00
Aleksandar Vacić 4c0367b79b Added resources bundle, for Swift 5.3 2020-12-14 19:13:12 +01:00
Matovsky 488a12e249
Update Package.swift 2020-03-30 22:55:53 +08:00
Matovsky 42d3a81dc6
Support Swift Package Manager in Xcode 11 2020-03-30 22:49:05 +08:00