require "json" package = JSON.parse(File.read(File.join(__dir__, "package.json"))) folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -Wno-comma -Wno-shorten-64-to-32' Pod::Spec.new do |s| s.name = "PortalGoogleSignIn" s.version = package["version"] s.summary = package["description"] s.homepage = package["homepage"] s.license = package["license"] s.authors = package["author"] s.platforms = { :ios => "12.0" } s.source = { :git => "https://github.com/portal-hq/monorepo.git", :tag => "#{s.version}" } s.source_files = "ios/**/*.{h,m,mm,swift}" # GoogleSignIn 7.1.x uses GTMSessionFetcher ~> 3.x which is compatible with # Firebase 12 (which requires GTMSessionFetcher/Core < 6.0, >= 3.4). # GoogleSignIn 6.x pinned GTMSessionFetcher ~> 1.1 which conflicts with Firebase. s.dependency "GoogleSignIn", "~> 7.1" # Use install_modules_dependencies helper to install the dependencies if we're running with the new architecture. # See https://react-native-community.github.io/upgrade-helper/?from=0.75.0&to=0.76.0 if respond_to?(:install_modules_dependencies, true) install_modules_dependencies(s) else s.dependency "React-Core" if ENV['RCT_NEW_ARCH_ENABLED'] == '1' then s.compiler_flags = folly_compiler_flags + " -DRCT_NEW_ARCH_ENABLED=1" s.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/boost\"", "OTHER_CPLUSPLUSFLAGS" => "-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1", "CLANG_CXX_LANGUAGE_STANDARD" => "c++17" } s.dependency "React-Codegen" s.dependency "RCT-Folly" s.dependency "RCTRequired" s.dependency "RCTTypeSafety" s.dependency "ReactCommon/turbomodule/core" end end end