# My other pods platform:ios, '9.0' require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules' def common_pods pod 'SDAVAssetExportSession', :git => 'https://github.com/nixplay/SDAVAssetExportSession.git', :tag => '0.0.6' pod 'FileMD5Hash' pod 'AFNetworking' pod 'NixNetwork', :git => 'git@git.nixplay.ninja:mobile/NixNetwork.git', :tag => '1.0.2' pod 'TPKeyboardAvoiding', '~> 1.3' end def rn_pods pod 'RNVectorIcons', :path => '../node_modules/react-native-vector-icons' pod 'FBLazyVector', :path => "../node_modules/react-native/Libraries/FBLazyVector" pod 'FBReactNativeSpec', :path => "../node_modules/react-native/Libraries/FBReactNativeSpec" pod 'RCTRequired', :path => "../node_modules/react-native/Libraries/RCTRequired" pod 'RCTTypeSafety', :path => "../node_modules/react-native/Libraries/TypeSafety" pod 'React', :path => '../node_modules/react-native/' pod 'React-Core', :path => '../node_modules/react-native/' pod 'React-CoreModules', :path => '../node_modules/react-native/React/CoreModules' pod 'React-Core/DevSupport', :path => '../node_modules/react-native/' pod 'React-RCTActionSheet', :path => '../node_modules/react-native/Libraries/ActionSheetIOS' pod 'React-RCTAnimation', :path => '../node_modules/react-native/Libraries/NativeAnimation' pod 'React-RCTBlob', :path => '../node_modules/react-native/Libraries/Blob' pod 'React-RCTImage', :path => '../node_modules/react-native/Libraries/Image' pod 'React-RCTLinking', :path => '../node_modules/react-native/Libraries/LinkingIOS' pod 'React-RCTNetwork', :path => '../node_modules/react-native/Libraries/Network' pod 'React-RCTSettings', :path => '../node_modules/react-native/Libraries/Settings' pod 'React-RCTText', :path => '../node_modules/react-native/Libraries/Text' pod 'React-RCTVibration', :path => '../node_modules/react-native/Libraries/Vibration' pod 'React-Core/RCTWebSocket', :path => '../node_modules/react-native/' pod 'React-cxxreact', :path => '../node_modules/react-native/ReactCommon/cxxreact' pod 'React-jsi', :path => '../node_modules/react-native/ReactCommon/jsi' pod 'React-jsiexecutor', :path => '../node_modules/react-native/ReactCommon/jsiexecutor' pod 'React-jsinspector', :path => '../node_modules/react-native/ReactCommon/jsinspector' pod 'ReactCommon/jscallinvoker', :path => "../node_modules/react-native/ReactCommon" pod 'ReactCommon/turbomodule/core', :path => "../node_modules/react-native/ReactCommon" pod 'Yoga', :path => '../node_modules/react-native/ReactCommon/yoga' 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' end def basic_pods rn_pods # Your 'node_modules' directory is probably in the root of your project, # but if not, adjust the `:path` accordingly # pod 'React', :path => '../node_modules/react-native', :subspecs => [ # 'Core', # 'CxxBridge', # Include this for RN >= 0.47 # 'DevSupport', # Include this to enable In - App Devmenu if RN >= 0.43 # 'RCTImage', # 'RCTText', # 'RCTNetwork', # 'RCTWebSocket', # Needed for debugging # 'RCTAnimation', # Needed for FlatList and animations running on native UI thread # # Add any other subspecs you want to use in your project # ] # # Explicitly include Yoga if you are using RN >= 0.42.0 # pod 'yoga', :path => '../node_modules/react-native/ReactCommon/yoga' # # 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 'react-native-config', :path => '../node_modules/react-native-config' pod 'Fabric', '~> 1.9.0' pod 'Crashlytics', '~> 3.12.0' pod 'GMImagePicker', :git => 'https://github.com/nixplay/GMImagePicker.git', :tag => '0.4.0-dev3' pod 'ICGVideoTrimmer', :git => 'https://github.com/nixplay/ICGVideoTrimmer.git' pod 'Firebase/Core' pod 'Firebase/Performance', '~> 5.20.1' pod 'RNReanimated', :path => '../node_modules/react-native-reanimated' pod 'Toast' pod 'Underscore.m' pod 'FileMD5Hash' pod 'RNPermissions', :path => '../node_modules/react-native-permissions' pod 'react-native-safe-area', path: '../node_modules/react-native-safe-area' # pod 'React-ART', :path => '../node_modules/react-native/Libraries/ART' common_pods pod 'react-native-creedon-imagepicker', :podspec => '../node_modules/react-native-creedon-imagepicker/react-native-creedon-imagepicker.podspec' pod 'react-native-nixplay-core', :podspec => '../node_modules/react-native-nixplay-core/react-native-nixplay-core.podspec' use_native_modules! permissions_path = '../node_modules/react-native-permissions/ios' pod 'Permission-Notifications', :path => "#{permissions_path}/Notifications.podspec" pod 'Permission-Camera', :path => "#{permissions_path}/Camera.podspec" pod 'Permission-Contacts', :path => "#{permissions_path}/Contacts.podspec" pod 'Permission-LocationAlways', :path => "#{permissions_path}/LocationAlways.podspec" pod 'Permission-LocationWhenInUse', :path => "#{permissions_path}/LocationWhenInUse.podspec" pod 'Permission-Microphone', :path => "#{permissions_path}/Microphone.podspec" pod 'Permission-PhotoLibrary', :path => "#{permissions_path}/PhotoLibrary.podspec" pod 'react-native-webview', :path => '../node_modules/react-native-webview' pod 'react-native-cameraroll', :path => '../node_modules/@react-native-community/cameraroll' pod 'RNBluetoothEscposPrinter', :path => '../node_modules/react-native-bluetooth-escpos-printer' end def appex_pods pod 'SDWebImage', '~> 5.0.0' common_pods end target 'MAAGApp' do # Uncomment the next line if you're using Swift or would like to use dynamic frameworks # use_frameworks! # Pods for Nixplay basic_pods target 'MAAGAppTests' do inherit! :search_paths # Pods for testing end end target 'MAAGAppRnd' do pod 'Calabash' basic_pods appex_pods end target 'MAAGAppAlpha' do basic_pods end target 'MAAGAppBeta' do basic_pods end target 'MAAGAppQa' do pod 'Calabash' basic_pods end target 'MAAGAppProd' do basic_pods end target 'MagShareExtensionAlpha' do appex_pods end target 'MagShareExtensionBeta' do appex_pods end target 'MagShareExtensionQa' do appex_pods pod 'NixNetwork', :git => 'git@git.nixplay.ninja:mobile/NixNetwork.git', :tag => '1.0.2' # You need to add now ReactNativeShareExtension as Dependency because it is now a POD. end target 'MagShareExtension' do appex_pods pod 'NixNetwork', :git => 'git@git.nixplay.ninja:mobile/NixNetwork.git', :tag => '1.0.2' # You need to add now ReactNativeShareExtension as Dependency because it is now a POD. end target 'MAAGApp-tvOS' do # Uncomment the next line if you're using Swift or would like to use dynamic frameworks # use_frameworks! # Pods for Nixplay-tvOS target 'MAAGApp-tvOSTests' do inherit! :search_paths # Pods for testing end end # post_install do | installer | # installer.pods_project.targets.each do | target | # if target.name == "React" # target.remove_from_project # end # end # end post_install do |installer| installer.pods_project.targets.each do |target| if ['RNFBApp', 'RNFBMessaging'].include?(target.name) target.add_system_framework(installer.pods_project.targets.find{|target| target.name == 'GoogleUtilities'}) elsif target.name.eql?('RNFBAnalytics') target.add_system_framework(installer.pods_project.targets.find{|target| target.name == 'FirebaseAnalytics'}) target.add_system_framework(installer.pods_project.targets.find{|target| target.name == 'GoogleAppMeasurement'}) target.add_system_framework(installer.pods_project.targets.find{|target| target.name == 'nanopb'}) target.add_system_framework(installer.pods_project.targets.find{|target| target.name == 'GoogleUtilities'}) end end # Add this, taken from: https://github.com/facebook/react-native/issues/25792#issuecomment-517295859 installer.pods_project.targets.each do |target| target.build_configurations.each do |config| config.build_settings['APPLICATION_EXTENSION_API_ONLY'] = 'NO' end end #This is for hotfix with React Native Config installer.pods_project.targets.each do |target| if target.name == 'react-native-config' phase = target.project.new(Xcodeproj::Project::Object::PBXShellScriptBuildPhase) phase.shell_script = "cd ../../"\ " && RNC_ROOT=./node_modules/react-native-config/"\ " && export SYMROOT=$RNC_ROOT/ios/ReactNativeConfig"\ " && ruby $RNC_ROOT/ios/ReactNativeConfig/BuildDotenvConfig.ruby" target.build_phases << phase target.build_phases.move(phase,0) end end end