FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
react-native-detect-maestro/DetectMaestro.podspec at main · retyui/react-native-detect-maestro · GitHub
retyui
/
react-native-detect-maestro
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
13
Code
Issues
0
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
react-native-detect-maestro
/
DetectMaestro.podspec
Copy path
More file actions
More file actions
Latest commit
History
History
History
75 lines (66 loc) · 2.5 KB
Breadcrumbs
react-native-detect-maestro
/
DetectMaestro.podspec
Copy path
File metadata and controls
75 lines (66 loc) · 2.5 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
require
"json"
package
=
JSON
.
parse
(
File
.
read
(
File
.
join
(
__dir__
,
"package.json"
)
)
)
# Detect if new arch is enabled
new_arch_enabled
=
ENV
[
'RCT_NEW_ARCH_ENABLED'
]
==
'1'
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
=
"DetectMaestro"
s
.
version
=
package
[
"version"
]
s
.
summary
=
package
[
"description"
]
s
.
description
=
package
[
"description"
]
s
.
homepage
=
package
[
"homepage"
]
s
.
license
=
package
[
"license"
]
s
.
platforms
=
{
:ios
=>
"11.0"
}
s
.
author
=
package
[
"author"
]
s
.
source
=
{
:git
=>
package
[
"repository"
]
,
:tag
=>
"
#{
s
.
version
}
"
}
s
.
source_files
=
"ios/**/*.{h,m,mm,swift}"
# RN >= 0.71
# check source code for more context
# https://github.com/facebook/react-native/blob/0.71-stable/scripts/react_native_pods.rb#L172#L180
if
defined?
(
install_modules_dependencies
)
if
new_arch_enabled
s
.
pod_target_xcconfig
=
{
"DEFINES_MODULE"
=>
"YES"
,
"SWIFT_OBJC_INTERFACE_HEADER_NAME"
=>
"DetectMaestro-Swift.h"
,
# This is handy when we want to detect if new arch is enabled in Swift code
# and can be used like:
# #if DETECT_MAESTRO_NEW_ARCH_ENABLED
# // do sth when new arch is enabled
# #else
# // do sth when old arch is enabled
# #endif
"OTHER_SWIFT_FLAGS"
=>
"-DDETECT_MAESTRO_NEW_ARCH_ENABLED"
}
else
s
.
pod_target_xcconfig
=
{
"DEFINES_MODULE"
=>
"YES"
,
"SWIFT_OBJC_INTERFACE_HEADER_NAME"
=>
"DetectMaestro-Swift.h"
}
end
install_modules_dependencies
(
s
)
# RN <= 0.70
else
if
new_arch_enabled
s
.
compiler_flags
=
folly_compiler_flags
s
.
pod_target_xcconfig
=
{
"HEADER_SEARCH_PATHS"
=>
"
\"
$(PODS_ROOT)/boost
\"
"
,
"DEFINES_MODULE"
=>
"YES"
,
"SWIFT_OBJC_INTERFACE_HEADER_NAME"
=>
"DetectMaestro-Swift.h"
,
"OTHER_SWIFT_FLAGS"
=>
"-DDETECT_MAESTRO_NEW_ARCH_ENABLED"
}
s
.
dependency
"React-Core"
s
.
dependency
"React-RCTFabric"
# This is for Fabric Native Component
s
.
dependency
"React-Codegen"
s
.
dependency
"RCT-Folly"
s
.
dependency
"RCTRequired"
s
.
dependency
"RCTTypeSafety"
s
.
dependency
"ReactCommon/turbomodule/core"
else
s
.
pod_target_xcconfig
=
{
"DEFINES_MODULE"
=>
"YES"
,
"SWIFT_OBJC_INTERFACE_HEADER_NAME"
=>
"DetectMaestro-Swift.h"
}
s
.
dependency
"React-Core"
end
end
end
Back
|
FazBrowse Home
|
New Git URL