Я пытался очистить свой pod-файл, определив переменную
def rn_dependencies
pod 'yoga', :path => '../node_modules/react-native/ReactCommon/yoga'
pod 'React', :path => '../node_modules/react-native', :subspecs => [
'Core',
'CxxBridge',
'ART',
'DevSupport', # Include this to enable In-App Devmenu if RN >= 0.43
'RCTActionSheet',
'RCTAnimation',
'RCTBlob',
'RCTCameraRoll',
'RCTImage',
'RCTLinkingIOS',
'RCTText',
'RCTPushNotification',
'RCTSettings',
'RCTNetwork',
'RCTVibration',
'RCTLinkingIOS',
'RCTWebSocket', # Needed for debugging
]
# Third party deps podspec link
pod 'DoubleConversion', :podspec => '../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec'
pod 'glog', :podspec => '../node_modules/react-native/third-party-podspecs/glog.podspec'
pod 'Folly', :podspec => '../node_modules/react-native/third-party-podspecs/Folly.podspec'
pod 'RNVectorIcons', :path => '../node_modules/react-native-vector-icons'
end
target 'RNApp' do
rn_dependencies
end
target 'RNAppTest' do
inherit! :search_paths
rn_dependencies
end
Я хочу добавить RCTTest
к подспецификации React для цели RNAppTest
.Есть ли способ изменить подспецы React
внутри цели тестирования?В качестве альтернативы, есть ли способ определить переменную для массива?