Skip to content
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

Closed
Vortec4800 opened this issue Jun 14, 2020 · 4 comments
Closed

Support for Cocoapods? #9

Vortec4800 opened this issue Jun 14, 2020 · 4 comments
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed question Further information is requested wontfix This will not be worked on

Comments

@Vortec4800
Copy link

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?

@welcome
Copy link

welcome bot commented Jun 14, 2020

❤️ Thanks for opening your first issue here! We will follow up as soon as we can.

@alexruperez
Copy link
Owner

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

@alexruperez alexruperez added enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed question Further information is requested labels Jun 16, 2020
@alexruperez alexruperez pinned this issue Jun 16, 2020
@rizwan95
Copy link

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.

@stale
Copy link

stale bot commented Sep 13, 2020

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.

@stale stale bot added the wontfix This will not be worked on label Sep 13, 2020
@stale stale bot closed this as completed Sep 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed question Further information is requested wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

3 participants