No Description

react-native-agora.podspec 3.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. #
  2. # Be sure to run `pod spec lint react-native-agora.podspec' to ensure this is a
  3. # valid spec and to remove all comments including this before submitting the spec.
  4. #
  5. # To learn more about Podspec attributes see http://docs.cocoapods.org/specification.html
  6. # To see working Podspecs in the CocoaPods repo see https://github.com/CocoaPods/Specs/
  7. #
  8. require 'json'
  9. package = JSON.parse File.read File.join __dir__, "package.json"
  10. Pod::Spec.new do |s|
  11. s.name = package["name"]
  12. s.version = package["version"]
  13. s.summary = package["summary"]
  14. s.description = package["description"]
  15. s.homepage = package["homepage"]
  16. s.license = package["license"]
  17. s.authors = package["authors"]
  18. # ――― Platform Specifics ――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
  19. #
  20. # If this Pod runs only on iOS or OS X, then specify the platform and
  21. # the deployment target. You can optionally include the target after the platform.
  22. #
  23. s.platform = :ios
  24. # s.platform = :ios, "5.0"
  25. # When using multiple platforms
  26. # s.ios.deployment_target = "5.0"
  27. # s.osx.deployment_target = "10.7"
  28. # s.watchos.deployment_target = "2.0"
  29. # s.tvos.deployment_target = "9.0"
  30. # ――― Source Location ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
  31. #
  32. # Specify the location from where the source should be retrieved.
  33. # Supports git, hg, bzr, svn and HTTP.
  34. #
  35. #s.source = { :http => "file:///./ios" }
  36. s.source = { :git => package["repository"]["url"] }
  37. #s.source = { :git => package["repository"]["url"] , :tag => "#{s.version}" }
  38. s.source_files = "RCTAgora", "RCTAgora/**/*.{h,m}"
  39. # s.public_header_files = "Classes/**/*.h"
  40. # ――― Resources ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
  41. #
  42. # A list of resources included with the Pod. These are copied into the
  43. # target bundle with a build phase script. Anything else will be cleaned.
  44. # You can preserve files from being cleaned, please don't preserve
  45. # non-essential files like tests, examples and documentation.
  46. #
  47. # s.resource = "icon.png"
  48. # s.resources = "Resources/*.png"
  49. # s.preserve_paths = "FilesToSave", "MoreFilesToSave"
  50. # ――― Project Linking ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
  51. #
  52. # Link your library with frameworks, or libraries. Libraries do not include
  53. # the lib prefix of their name.
  54. #
  55. # s.framework = "SomeFramework"
  56. # s.frameworks = "SomeFramework", "AnotherFramework"
  57. # s.library = "iconv"
  58. # s.libraries = "iconv", "xml2"
  59. # ――― Project Settings ――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
  60. #
  61. # If your library depends on compiler flags you can set them in the xcconfig hash
  62. # where they will only apply to your library. If you depend on other Podspecs
  63. # you can include multiple dependencies to ensure it works.
  64. # s.requires_arc = true
  65. s.subspec 'AgoraRtcCryptoLoader' do |sp|
  66. sp.source_files = './ios/RCTAgora/libs/AgoraRtcCryptoLoader.framework/**/*.{c,h,m,mm,S,cpp}'
  67. sp.vendored_libraries = 'libcrypto.a'
  68. end
  69. s.xcconfig = {
  70. "HEADER_SEARCH_PATHS" => [
  71. "$(SDKROOT)../../node_modules/react-native/React",
  72. "$(SDKROOT)../../ios/Pods"
  73. ]
  74. }
  75. s.dependency "AgoraRtcEngine_iOS", "2.3.3"
  76. s.dependency 'React'
  77. end