-
Notifications
You must be signed in to change notification settings - Fork 3
/
react-native-media-clipboard.podspec
52 lines (37 loc) · 1.72 KB
/
react-native-media-clipboard.podspec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
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'
folly_version = '2018.10.22.00'
Pod::Spec.new do |s|
s.name = "react-native-media-clipboard"
s.version = package["version"]
s.summary = package["description"]
s.description = <<-DESC
react-native-media-clipboard
DESC
s.homepage = "https://github.com/github_account/react-native-media-clipboard"
s.license = "MIT"
# s.license = { :type => "MIT", :file => "FILE_LICENSE" }
s.authors = { "Your Name" => "yourname@email.com" }
s.platforms = { :ios => "9.0" }
s.source = { :git => "https://github.com/github_account/react-native-media-clipboard.git", :tag => "#{s.version}" }
s.source_files = "ios/**/*.{h,m,swift}"
s.requires_arc = true
s.default_subspec = 'Bridge'
s.swift_version = '5.0'
s.dependency "React"
s.subspec 'Bridge' do |lite|
lite.pod_target_xcconfig = { "LIBRAY_SEARCH_PATHS" => "\"$(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME)\"" }
end
s.subspec 'JSI' do |jsi|
jsi.source_files = "ios/**/*.{h,m,swift,mm}"
jsi.dependency "React-jsi"
jsi.dependency "React-jsiexecutor"
jsi.dependency "ReactCommon/jscallinvoker"
jsi.dependency 'ReactCommon/turbomodule/core'
jsi.dependency 'React-cxxreact'
jsi.dependency 'Folly'
jsi.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/Folly\"", 'DEFINES_MODULE' => 'YES', 'ENABLE_BITCODE' => "NO", "LIBRAY_SEARCH_PATHS" => "\"$(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME)\"" }
jsi.compiler_flags = folly_compiler_flags
end
end