UNPKG

1.23 kBPlain TextView Raw
1require "json"
2version = JSON.parse(File.read("./package.json"))["version"]
3
4folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -Wno-comma -Wno-shorten-64-to-32'
5
6Pod::Spec.new do |s|
7 s.name = "RNStoreReview"
8 s.version = version
9 s.summary = "App Store Ratings for React Native."
10 s.homepage = "https://github.com/oblador/react-native-store-review"
11 s.license = "MIT"
12 s.author = { "Joel Arvidsson" => "joel@oblador.se" }
13 s.platform = :ios, "12.4"
14 s.source = { :git => "https://github.com/oblador/react-native-store-review.git", :tag => "v#{s.version}" }
15 s.source_files = "ios/*.{h,m,mm}"
16 s.preserve_paths = "**/*.js"
17 s.ios.framework = 'StoreKit'
18 s.requires_arc = true
19
20 s.dependency "React-Core"
21
22 # This guard prevent to install the dependencies when we run `pod install` in the old architecture.
23 if ENV['RCT_NEW_ARCH_ENABLED'] == '1' then
24 s.compiler_flags = folly_compiler_flags + " -DRCT_NEW_ARCH_ENABLED=1"
25 s.pod_target_xcconfig = {
26 "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/boost\"",
27 "CLANG_CXX_LANGUAGE_STANDARD" => "c++17"
28 }
29
30 install_modules_dependencies(s)
31 end
32
33end