mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Summary: Move the codegen invocation out of Podfiles and into the FBReactNativeSpec Pod itself. With this change, developers do not need to modify their existing project's Podfiles, and yet the codegen will be integrated into their projects automatically by way of the FBReactNativeSpec Pod. This is accomplished in part by injecting a script build phase into the Pods Xcode project that is generated by CocoaPods. The build phase will save the output of the codegen script to a log in the derived files directory. The codegen will be executed if the codegen log file is not present, or if the contents of the Libraries directory has changed. The codegen will thus be invoked in these situations: **RNTester:** * When `packages/rn-tester/RNTesterPods.xcworkspace` is built, if the codegen output logfile is not present or if the input files have changed. **OSS React Native apps:** * When `ios/AwesomeProject.xcworkspace` is built, if the codegen output file is not present or if the input files have changed. Normally, this should not happen, as we do not expect folks to update the contents of `node_modules/react-native/Libraries`. Pull Request resolved: https://github.com/facebook/react-native/pull/30449 Changelog: [Internal] - Moved codegen invocation out of Podfile and into FBReactNativeSpec Pod Reviewed By: fkgozali Differential Revision: D25138896 fbshipit-source-id: 4779f822459cea2c30fd544eee19a49e8d80153d
114 lines
2.1 KiB
Plaintext
114 lines
2.1 KiB
Plaintext
# Xcode
|
|
!**/*.xcodeproj
|
|
!**/*.pbxproj
|
|
!**/*.xcworkspacedata
|
|
!**/*.xcsettings
|
|
!**/*.xcscheme
|
|
*.pbxuser
|
|
!default.pbxuser
|
|
*.mode1v3
|
|
!default.mode1v3
|
|
*.mode2v3
|
|
!default.mode2v3
|
|
*.perspectivev3
|
|
!default.perspectivev3
|
|
xcuserdata
|
|
*.xccheckout
|
|
*.moved-aside
|
|
DerivedData
|
|
*.hmap
|
|
*.ipa
|
|
*.xcuserstate
|
|
project.xcworkspace
|
|
|
|
# Gradle
|
|
/build/
|
|
/packages/react-native-codegen/android/build/
|
|
/packages/react-native-codegen/android/gradlePlugin-build/gradlePlugin/build
|
|
/packages/rn-tester/android/app/.cxx/
|
|
/packages/rn-tester/android/app/build/
|
|
/packages/rn-tester/android/app/gradle/
|
|
/packages/rn-tester/android/app/gradlew
|
|
/packages/rn-tester/android/app/gradlew.bat
|
|
/ReactAndroid/build/
|
|
/ReactAndroid/gradle/
|
|
/ReactAndroid/gradlew
|
|
/ReactAndroid/gradlew.bat
|
|
|
|
# Buck
|
|
.buckd
|
|
buck-out
|
|
/.lsp.buckd
|
|
/.lsp-buck-out
|
|
/ReactAndroid/src/main/jni/prebuilt/lib/
|
|
/ReactAndroid/src/main/gen
|
|
|
|
# Android Studio
|
|
.project
|
|
.settings
|
|
.classpath
|
|
|
|
# Watchman
|
|
.watchmanconfig
|
|
|
|
# Android
|
|
.idea
|
|
.gradle
|
|
local.properties
|
|
*.iml
|
|
/android/
|
|
|
|
# Node
|
|
node_modules
|
|
*.log
|
|
.nvm
|
|
/bots/node_modules/
|
|
package-lock.json
|
|
|
|
# OS X
|
|
.DS_Store
|
|
|
|
# Test generated files
|
|
/ReactAndroid/src/androidTest/assets/AndroidTestBundle.js
|
|
*.js.meta
|
|
|
|
/coverage
|
|
/third-party
|
|
|
|
# Root dir shouldn't have Xcode project
|
|
/*.xcodeproj
|
|
|
|
# ReactCommon subdir shouldn't have Xcode project
|
|
/ReactCommon/**/*.xcodeproj
|
|
/packages/rn-tester/build
|
|
/packages/rn-tester/android/app/build/*
|
|
|
|
# Libs that shouldn't have Xcode project
|
|
/Libraries/FBLazyVector/**/*.xcodeproj
|
|
/Libraries/FBReactNativeSpec/**/*.xcodeproj
|
|
/Libraries/RCTRequired/**/*.xcodeproj
|
|
/React/CoreModules/**/*.xcodeproj
|
|
/packages/react-native-codegen/**/*.xcodeproj
|
|
|
|
# CocoaPods
|
|
/template/ios/Pods/
|
|
/template/ios/Podfile.lock
|
|
/packages/rn-tester/Gemfile.lock
|
|
|
|
# Ignore RNTester specific Pods, but keep the __offline_mirrors__ here.
|
|
/packages/rn-tester/Pods/*
|
|
!/packages/rn-tester/Pods/__offline_mirrors__
|
|
|
|
# react-native-codegen
|
|
/Libraries/FBReactNativeSpec/FBReactNativeSpec
|
|
/packages/react-native-codegen/lib
|
|
/ReactCommon/fabric/components/rncore/
|
|
/schema-rncore.json
|
|
|
|
# Visual studio
|
|
.vscode
|
|
.vs
|
|
|
|
# Android memory profiler files
|
|
*.hprof
|