react-native-navigation的迁移库

ignoreReactWarnings.rb 865B

123456789101112131415161718
  1. #!/usr/bin/env ruby
  2. require 'pathname'
  3. $LOAD_PATH.unshift(__dir__ + "/../node_modules/detox/scripts/Xcodeproj/lib")
  4. $LOAD_PATH.unshift(__dir__ + "/../node_modules/detox/scripts/Nanaimo/lib")
  5. require 'xcodeproj'
  6. project = Xcodeproj::Project.open(__dir__ + "/../node_modules/react-native/React/React.xcodeproj")
  7. warning_flags = ['-Wno-shorten-64-to-32','-Wno-unused-parameter','-Wno-unreachable-code','-Wno-deprecated-declarations','-Wno-extra-tokens','-Wno-unused-variable','-Wno-incompatible-pointer-types','-Wno-conditional-uninitialized','-Wno-undeclared-selector','-Wno-objc-protocol-property-synthesis']
  8. project.build_configuration_list['Debug'].build_settings['WARNING_CFLAGS'] = warning_flags
  9. project.build_configuration_list['Release'].build_settings['WARNING_CFLAGS'] = warning_flags
  10. raise "Error: Unable to save Xcode project" unless project.save()