RealmSwift.podspec 1.7 KB

1234567891011121314151617181920212223242526272829303132
  1. Pod::Spec.new do |s|
  2. s.name = 'RealmSwift'
  3. version = `sh build.sh get-version`
  4. s.version = version
  5. s.summary = 'Realm is a modern data framework & database for iOS, macOS, tvOS & watchOS.'
  6. s.description = <<-DESC
  7. The Realm Mobile Database, for Swift. (If you want to use Realm from Objective-C, see the “Realm” pod.)
  8. The Realm Mobile Database is a fast, easy-to-use replacement for Core Data & SQLite. Use it with the Realm Mobile Platform for realtime, automatic data sync. Works on iOS, macOS, tvOS & watchOS. Learn more and get help at https://realm.io.
  9. DESC
  10. s.homepage = "https://realm.io"
  11. s.source = { :git => 'https://github.com/realm/realm-cocoa.git', :tag => "v#{s.version}", :submodules => true }
  12. s.author = { 'Realm' => 'help@realm.io' }
  13. s.requires_arc = true
  14. s.social_media_url = 'https://twitter.com/realm'
  15. has_versioned_docs = !(version =~ /alpha|beta|rc/)
  16. s.documentation_url = "https://realm.io/docs/swift/#{has_versioned_docs ? s.version : 'latest'}"
  17. s.license = { :type => 'Apache 2.0', :file => 'LICENSE' }
  18. s.dependency 'Realm', "= #{s.version}"
  19. s.source_files = 'RealmSwift/*.swift'
  20. s.prepare_command = 'sh build.sh cocoapods-setup swift'
  21. s.preserve_paths = %w(build.sh)
  22. s.pod_target_xcconfig = { 'APPLICATION_EXTENSION_API_ONLY' => 'YES' }
  23. s.ios.deployment_target = '8.0'
  24. s.osx.deployment_target = '10.9'
  25. s.watchos.deployment_target = '2.0'
  26. s.tvos.deployment_target = '9.0'
  27. end