RNPermissions.podspec 3.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. require 'json'
  2. package = JSON.parse(File.read('./package.json'))
  3. Pod::Spec.new do |s|
  4. s.name = "RNPermissions"
  5. s.version = package["version"]
  6. s.license = package["license"]
  7. s.description = package["description"]
  8. s.summary = package["description"]
  9. s.authors = package["author"]
  10. s.homepage = package["homepage"]
  11. s.default_subspec = "Core"
  12. s.requires_arc = true
  13. s.pod_target_xcconfig = { "CLANG_CXX_LANGUAGE_STANDARD" => "c++14" }
  14. s.platforms = { :ios => "9.0", :tvos => "9.2" }
  15. s.source = { :git => "#{s.homepage}.git", :tag => s.version }
  16. s.source_files = "ios/*.{h,m}"
  17. s.subspec "Core" do |ss|
  18. s.dependency "React/Core"
  19. ss.source_files = "ios/*.{h,m}"
  20. end
  21. s.subspec "BluetoothPeripheral" do |ss|
  22. ss.dependency "RNPermissions/Core"
  23. ss.source_files = "ios/PermissionHandlers/BluetoothPeripheral/*.{h,m}"
  24. end
  25. s.subspec "Calendars" do |ss|
  26. ss.dependency "RNPermissions/Core"
  27. ss.source_files = "ios/PermissionHandlers/Calendars/*.{h,m}"
  28. end
  29. s.subspec "Camera" do |ss|
  30. ss.dependency "RNPermissions/Core"
  31. ss.source_files = "ios/PermissionHandlers/Camera/*.{h,m}"
  32. end
  33. s.subspec "Contacts" do |ss|
  34. ss.dependency "RNPermissions/Core"
  35. ss.source_files = "ios/PermissionHandlers/Contacts/*.{h,m}"
  36. end
  37. s.subspec "FaceID" do |ss|
  38. ss.dependency "RNPermissions/Core"
  39. ss.source_files = "ios/PermissionHandlers/FaceID/*.{h,m}"
  40. end
  41. s.subspec "LocationAlways" do |ss|
  42. ss.dependency "RNPermissions/Core"
  43. ss.source_files = "ios/PermissionHandlers/LocationAlways/*.{h,m}"
  44. end
  45. s.subspec "LocationWhenInUse" do |ss|
  46. ss.dependency "RNPermissions/Core"
  47. ss.source_files = "ios/PermissionHandlers/LocationWhenInUse/*.{h,m}"
  48. end
  49. s.subspec "MediaLibrary" do |ss|
  50. ss.dependency "RNPermissions/Core"
  51. ss.source_files = "ios/PermissionHandlers/MediaLibrary/*.{h,m}"
  52. end
  53. s.subspec "Microphone" do |ss|
  54. ss.dependency "RNPermissions/Core"
  55. ss.source_files = "ios/PermissionHandlers/Microphone/*.{h,m}"
  56. end
  57. s.subspec "Motion" do |ss|
  58. ss.dependency "RNPermissions/Core"
  59. ss.source_files = "ios/PermissionHandlers/Motion/*.{h,m}"
  60. end
  61. s.subspec "Notifications" do |ss|
  62. ss.dependency "RNPermissions/Core"
  63. ss.source_files = "ios/PermissionHandlers/Notifications/*.{h,m}"
  64. end
  65. s.subspec "PhotoLibrary" do |ss|
  66. ss.dependency "RNPermissions/Core"
  67. ss.source_files = "ios/PermissionHandlers/PhotoLibrary/*.{h,m}"
  68. end
  69. s.subspec "Reminders" do |ss|
  70. ss.dependency "RNPermissions/Core"
  71. ss.source_files = "ios/PermissionHandlers/Reminders/*.{h,m}"
  72. end
  73. s.subspec "Siri" do |ss|
  74. ss.dependency "RNPermissions/Core"
  75. ss.source_files = "ios/PermissionHandlers/Siri/*.{h,m}"
  76. end
  77. s.subspec "SpeechRecognition" do |ss|
  78. ss.dependency "RNPermissions/Core"
  79. ss.source_files = "ios/PermissionHandlers/SpeechRecognition/*.{h,m}"
  80. end
  81. s.subspec "StoreKit" do |ss|
  82. ss.dependency "RNPermissions/Core"
  83. ss.source_files = "ios/PermissionHandlers/StoreKit/*.{h,m}"
  84. end
  85. end