Skip to content

Instantly share code, notes, and snippets.

@vovkasm
Created April 5, 2019 11:40
Show Gist options
  • Save vovkasm/cd2daa781c2179601150195e9ce2fe5b to your computer and use it in GitHub Desktop.
Save vovkasm/cd2daa781c2179601150195e9ce2fe5b to your computer and use it in GitHub Desktop.
# Uncomment the next line to define a global platform for your project
platform :ios, '9.0'
target 'Sample' do
project 'Sample', {
'Debug' => :debug,
'Staging' => :release,
'Production' => :release,
}
pod 'React', :path => '../node_modules/react-native', :subspecs => [
'Core',
'CxxBridge',
'RCTActionSheet',
'RCTAnimation',
'RCTBlob',
'RCTText',
'RCTNetwork',
'RCTWebSocket',
'RCTImage',
'RCTLinkingIOS',
'DevSupport',
]
pod 'yoga', :path => '../node_modules/react-native/ReactCommon/yoga'
pod 'BVLinearGradient', :path => '../node_modules/react-native-linear-gradient'
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-google-places', :podspec => './podspecs/react-native-google-places.podspec'
pod 'RNVectorIcons', :path => '../node_modules/react-native-vector-icons'
pod 'RNFS', :path => '../node_modules/react-native-fs'
pod 'react-native-image-picker', :path => '../node_modules/react-native-image-picker'
pod 'WebImage', :path => '../node_modules/react-native-web-image'
pod 'react-native-vkontakte-login', :path => '../node_modules/@vovkasm/react-native-vkontakte-login'
pod 'RNFirebase', :podspec => './podspecs/RNFirebase.podspec'
pod 'react-native-fbsdk', :path => '../node_modules/react-native-fbsdk'
pod 'RNShare', :path => '../node_modules/react-native-share'
pod 'SentryReactNative', :path => '../node_modules/react-native-sentry'
pod 'react-native-maps', :path => '../node_modules/react-native-maps'
pod 'react-native-google-maps', :path => '../node_modules/react-native-maps'
pod 'react-native-webview', :path => '../node_modules/react-native-webview'
pod 'react-native-amplitude-analytics', :path => '../node_modules/react-native-amplitude-analytics'
pod 'AppsFlyerFramework'
pod 'Firebase/Core', '~> 5.15.0'
pod 'Firebase/Messaging', '~> 5.15.0'
pod 'VK-ios-sdk', '~> 1.4.6'
pod 'GoogleMaps'
pod 'Google-Maps-iOS-Utils'
pod 'FBSDKCoreKit', '~> 4.38.0'
pod 'FBSDKLoginKit', '~> 4.38.0'
pod 'FBSDKShareKit', '~> 4.38.0'
pod 'Amplitude-iOS', '~> 4.3.1'
end
post_install do |installer|
# Disable some shitty RN stuff (I can't see degradation in functional)
installer.pods_project.targets.each do |target|
if target.name == 'React'
target.build_configurations.each do |config|
config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= ['$(inherited)']
config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] << 'RCT_ENABLE_INSPECTOR=0'
config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] << 'ENABLE_PACKAGER_CONNECTION=0'
end
end
end
# Copy acknowledgements into Settings.bundle
require 'fileutils'
FileUtils.cp_r('Pods/Target Support Files/Pods-Sample/Pods-Sample-acknowledgements.plist', 'Sample/Settings.bundle/Acknowledgements.plist', :remove_destination => true)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment