react-native-image-resizer.podspec 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. require "json"
  2. package = JSON.parse(File.read(File.join(__dir__, "package.json")))
  3. folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -Wno-comma -Wno-shorten-64-to-32'
  4. Pod::Spec.new do |s|
  5. s.name = "react-native-image-resizer"
  6. s.version = package["version"]
  7. s.summary = package["description"]
  8. s.homepage = package["homepage"]
  9. s.license = package["license"]
  10. s.authors = package["author"]
  11. s.platforms = { :ios => "10.0" }
  12. s.source = { :git => "https://github.com/taboulot/react-native-image-resizer.git", :tag => "#{s.version}" }
  13. s.source_files = "ios/**/*.{h,m,mm}"
  14. s.ios.framework = 'AssetsLibrary', 'MobileCoreServices'
  15. # Don't install the dependencies when we run `pod install` in the old architecture.
  16. if ENV['RCT_NEW_ARCH_ENABLED'] == '1' then
  17. s.compiler_flags = folly_compiler_flags + " -DRCT_NEW_ARCH_ENABLED=1"
  18. s.pod_target_xcconfig = {
  19. "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/boost\"",
  20. "OTHER_CPLUSPLUSFLAGS" => "-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1",
  21. "CLANG_CXX_LANGUAGE_STANDARD" => "c++17"
  22. }
  23. s.dependency "React-Codegen"
  24. s.dependency "RCT-Folly"
  25. s.dependency "RCTRequired"
  26. s.dependency "RCTTypeSafety"
  27. s.dependency "ReactCommon/turbomodule/core"
  28. install_modules_dependencies(s)
  29. else
  30. s.dependency "React-Core"
  31. end
  32. end