From f75cb708842b9a81bdcb714d103a9b222e49c353 Mon Sep 17 00:00:00 2001 From: Xiaowei Zhu <33129495+zhu-xiaowei@users.noreply.github.com> Date: Sun, 7 Apr 2024 10:11:16 +0800 Subject: [PATCH] feat: specify compatibility with swift 5 (#5) Co-authored-by: xiaoweii --- clickstream-react-native.podspec | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/clickstream-react-native.podspec b/clickstream-react-native.podspec index 508f60a..396e3f3 100644 --- a/clickstream-react-native.podspec +++ b/clickstream-react-native.podspec @@ -4,17 +4,18 @@ 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 = "clickstream-react-native" - s.version = package["version"] - s.summary = package["description"] - s.homepage = package["homepage"] - s.license = package["license"] - s.authors = package["author"] + s.name = "clickstream-react-native" + s.version = package["version"] + s.summary = package["description"] + s.homepage = package["homepage"] + s.license = package["license"] + s.authors = package["author"] - s.platforms = { :ios => "13.0"} - s.source = { :git => "https://github.com/awslabs/clickstream-react-native.git", :tag => "#{s.version}" } + s.platforms = { :ios => "13.0"} + s.swift_version = '5.7' + s.source = { :git => "https://github.com/awslabs/clickstream-react-native.git", :tag => "#{s.version}" } - s.source_files = "ios/*.{h,m,mm,swift}" + s.source_files = "ios/*.{h,m,mm,swift}" s.subspec 'Clickstream' do |sc| sc.source_files = 'ios/Clickstream/Sources/**/*'