-
-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for Cocoapods? #9
Comments
❤️ Thanks for opening your first issue here! We will follow up as soon as we can. |
Hi @Vortec4800, it's the first project in which I discard CocoaPods because I consider that SPM is mature enough, although I have also supported Carthage and Accio to give more versatility. The podspec should look something like this, but since modules cannot be defined in the same way as with SPM, imports are complicated to fix. Pod::Spec.new do |s|
s.name = 'SecurePropertyStorage'
s.version = '0.3.1'
s.license = 'MIT'
s.summary = 'Helps you define secure storages for your properties using Swift property wrappers.'
s.homepage = 'https://github.com/alexruperez/SecurePropertyStorage'
s.social_media_url = 'http://twitter.com/alexruperez'
s.authors = { 'Alex Rupérez' => '[email protected]' }
s.source = { :git => 'https://github.com/alexruperez/SecurePropertyStorage.git', :tag => s.version }
s.swift_version = '5.1'
s.ios.deployment_target = '13.0'
s.osx.deployment_target = '10.15'
s.tvos.deployment_target = '13.0'
s.watchos.deployment_target = '6.0'
s.default_subspecs = 'Storage', 'UserDefault', 'Singleton', 'Keychain', 'Inject'
s.subspec 'Storage' do |st|
st.framework = 'Foundation'
st.source_files = 'Sources/Storage/*.swift'
end
s.subspec 'UserDefault' do |us|
us.framework = 'Foundation', 'CryptoKit'
us.source_files = 'Sources/UserDefault/*.swift'
us.dependency 'SecurePropertyStorage/Storage'
us.dependency 'SecurePropertyStorage/Keychain'
end
s.subspec 'Singleton' do |si|
si.framework = 'Foundation', 'CryptoKit'
si.source_files = 'Sources/Singleton/*.swift'
si.dependency 'SecurePropertyStorage/Storage'
si.dependency 'SecurePropertyStorage/Keychain'
end
s.subspec 'Keychain' do |ke|
ke.framework = 'Foundation', 'CryptoKit'
ke.source_files = 'Sources/Keychain/*.swift'
ke.dependency 'SecurePropertyStorage/Storage'
end
s.subspec 'Inject' do |ij|
ij.framework = 'Foundation'
ij.source_files = 'Sources/Inject/*.swift'
ij.dependency 'SecurePropertyStorage/Storage'
end
end |
SPM doesn't support app extensions itseems. So until Apple gives direct support for multiple targets, it is a good idea to give Cocoapods support. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
I'd love to use SPM but we have other dependencies that aren't available there yet, and using multiple managers in the same project isn't a road I'd like to go down. Can you release there as well?
The text was updated successfully, but these errors were encountered: