-
-
Notifications
You must be signed in to change notification settings - Fork 982
/
RNGestureHandler.podspec
32 lines (26 loc) · 1.16 KB
/
RNGestureHandler.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
require "json"
is_gh_example_app = ENV["GH_EXAMPLE_APP_NAME"] != nil
compilation_metadata_dir = "CompilationDatabase"
compilation_metadata_generation_flag = is_gh_example_app ? '-gen-cdb-fragment-path ' + compilation_metadata_dir : ''
Pod::Spec.new do |s|
# NPM package specification
package = JSON.parse(File.read(File.join(File.dirname(__FILE__), "package.json")))
s.name = "RNGestureHandler"
s.version = package["version"]
s.summary = package["description"]
s.homepage = "https://github.com/software-mansion/react-native-gesture-handler"
s.license = "MIT"
s.author = { package["author"]["name"] => package["author"]["email"] }
s.source = { :git => "https://github.com/software-mansion/react-native-gesture-handler", :tag => "#{s.version}" }
s.source_files = "apple/**/*.{h,m,mm}"
s.requires_arc = true
s.platforms = { ios: '11.0', tvos: '11.0', osx: '10.15', visionos: '1.0' }
s.xcconfig = {
"OTHER_CFLAGS" => "$(inherited) " + compilation_metadata_generation_flag
}
if defined?(install_modules_dependencies()) != nil
install_modules_dependencies(s);
else
s.dependency "React-Core"
end
end