react-native-gesture-handler 2.13.2 → 2.13.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/RNGestureHandler.podspec +28 -19
- package/package.json +1 -1
package/RNGestureHandler.podspec
CHANGED
|
@@ -1,29 +1,18 @@
|
|
|
1
1
|
require "json"
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
new_arch_enabled = ENV['RCT_NEW_ARCH_ENABLED'] == '1'
|
|
4
|
+
apple_platform = new_arch_enabled ? '11.0' : '9.0'
|
|
4
5
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
s.name = "RNGestureHandler"
|
|
10
|
-
s.version = package["version"]
|
|
11
|
-
s.summary = package["description"]
|
|
12
|
-
s.homepage = "https://github.com/software-mansion/react-native-gesture-handler"
|
|
13
|
-
s.license = "MIT"
|
|
14
|
-
s.author = { package["author"]["name"] => package["author"]["email"] }
|
|
15
|
-
s.source = { :git => "https://github.com/software-mansion/react-native-gesture-handler", :tag => "#{s.version}" }
|
|
16
|
-
s.source_files = "ios/**/*.{h,m,mm}"
|
|
17
|
-
s.requires_arc = true
|
|
18
|
-
|
|
19
|
-
if fabric_enabled
|
|
6
|
+
# Utility function to install dependencies if React Native's
|
|
7
|
+
# install_modules_dependencies is not defined
|
|
8
|
+
def install_dependencies(s, new_arch_enabled)
|
|
9
|
+
if new_arch_enabled
|
|
20
10
|
folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -Wno-comma -Wno-shorten-64-to-32'
|
|
21
11
|
|
|
22
12
|
s.pod_target_xcconfig = {
|
|
23
13
|
'HEADER_SEARCH_PATHS' => '"$(PODS_ROOT)/boost" "$(PODS_ROOT)/boost-for-react-native" "$(PODS_ROOT)/RCT-Folly"',
|
|
24
14
|
'CLANG_CXX_LANGUAGE_STANDARD' => 'c++17',
|
|
25
15
|
}
|
|
26
|
-
s.platforms = { ios: '11.0', tvos: '11.0' }
|
|
27
16
|
s.compiler_flags = folly_compiler_flags + ' -DRCT_NEW_ARCH_ENABLED'
|
|
28
17
|
|
|
29
18
|
s.dependency "React"
|
|
@@ -34,8 +23,28 @@ Pod::Spec.new do |s|
|
|
|
34
23
|
s.dependency "RCTTypeSafety"
|
|
35
24
|
s.dependency "ReactCommon/turbomodule/core"
|
|
36
25
|
else
|
|
37
|
-
s.platforms = { :ios => "9.0", :tvos => "9.0" }
|
|
38
|
-
|
|
39
26
|
s.dependency "React-Core"
|
|
40
27
|
end
|
|
41
28
|
end
|
|
29
|
+
|
|
30
|
+
Pod::Spec.new do |s|
|
|
31
|
+
# NPM package specification
|
|
32
|
+
package = JSON.parse(File.read(File.join(File.dirname(__FILE__), "package.json")))
|
|
33
|
+
|
|
34
|
+
s.name = "RNGestureHandler"
|
|
35
|
+
s.version = package["version"]
|
|
36
|
+
s.summary = package["description"]
|
|
37
|
+
s.homepage = "https://github.com/software-mansion/react-native-gesture-handler"
|
|
38
|
+
s.license = "MIT"
|
|
39
|
+
s.author = { package["author"]["name"] => package["author"]["email"] }
|
|
40
|
+
s.source = { :git => "https://github.com/software-mansion/react-native-gesture-handler", :tag => "#{s.version}" }
|
|
41
|
+
s.source_files = "ios/**/*.{h,m,mm}"
|
|
42
|
+
s.requires_arc = true
|
|
43
|
+
s.platforms = { ios: apple_platform, tvos: apple_platform }
|
|
44
|
+
|
|
45
|
+
if defined?(install_modules_dependencies()) != nil
|
|
46
|
+
install_modules_dependencies(s);
|
|
47
|
+
else
|
|
48
|
+
install_dependencies(s, new_arch_enabled)
|
|
49
|
+
end
|
|
50
|
+
end
|
package/package.json
CHANGED