Advertisement
Guest User

Untitled

a guest
Aug 22nd, 2019
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 1.88 KB | None | 0 0
  1. # Uncomment the next line to define a global platform for your project
  2.  
  3.  
  4.  
  5. # platform :ios, '9.0'
  6.  
  7. # Uncomment the next line to define a global platform for your project
  8. # platform :ios, '9.0'
  9.  
  10. target 'onesignaltest' do
  11.   pod 'React', :path => '../node_modules/react-native', :subspecs => [
  12.     'Core',
  13.     'CxxBridge', # Include this for RN >= 0.47
  14.     'DevSupport', # Include this to enable In-App Devmenu if RN >= 0.43
  15.     'RCTText',
  16.     'RCTNetwork',
  17.     'RCTWebSocket', # Needed for debugging
  18.     'RCTAnimation', # Needed for FlatList and animations running on native UI thread
  19.     "tvOS"
  20.     # Add any other subspecs you want to use in your project
  21.   ]
  22.   # Explicitly include Yoga if you are using RN >= 0.42.0
  23.   pod 'yoga', :path => '../node_modules/react-native/ReactCommon/yoga'
  24.  
  25.   # Third party deps podspec link
  26.   pod 'DoubleConversion', :podspec => '../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec'
  27.   pod 'GLog', :podspec => '../node_modules/react-native/third-party-podspecs/GLog.podspec'
  28.   pod 'Folly', :podspec => '../node_modules/react-native/third-party-podspecs/Folly.podspec'
  29.  
  30.   pod 'react-native-onesignal', :path => '../node_modules/react-native-onesignal'
  31.  
  32.  
  33.   # target 'onesignaltest-tvOSTests' do
  34.   #   inherit! :search_paths
  35.   #   # Pods for testing
  36.   # end
  37.  
  38.   # target 'onesignaltestTests' do
  39.   #   inherit! :search_paths
  40.   #   # Pods for testing
  41.   # end
  42.  
  43.   target 'OneSignalNotificationServiceExtension' do
  44.     pod 'OneSignal', '>= 2.9.3', '< 3.0'
  45.   end
  46.  
  47. end
  48. post_install do |installer|
  49.   installer.pods_project.targets.each do |target|
  50.       if target.name == 'yoga'
  51.           target.build_configurations.each do |config|
  52.               config.build_settings['GCC_TREAT_WARNINGS_AS_ERRORS'] = 'NO'
  53.               config.build_settings['GCC_WARN_64_TO_32_BIT_CONVERSION'] = 'NO'
  54.           end
  55.       end
  56.   end
  57. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement