Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge 0.66 into master #951

Merged
merged 1,826 commits into from
Jan 14, 2022
Merged
Show file tree
Hide file tree
Changes from 250 commits
Commits
Show all changes
1826 commits
Select commit Hold shift + click to select a range
37dc1d4
Rename immediate to ReactNativeMicrotask in Bridge
Huxpro Jul 27, 2021
c5f8c31
Implement View.removeClippedSubviews prop
sammy-SC Jul 27, 2021
5b77dfd
Add "Use Native Driver" control to RNTester Animated Composing example
charlesbdudley Jul 27, 2021
1c21a11
docs: Fix dead links in README for rn-tester (#31901)
Naturalclar Jul 27, 2021
eb4297e
docs: update links to forwarded page (#31903)
Naturalclar Jul 27, 2021
c2ba886
Remove redundant warnings for RCTMountingManager
sammy-SC Jul 27, 2021
d3e8362
Ignore when a text string or number is supplied as a child.
sota000 Jul 27, 2021
d98ec75
React Native sync for revisions cae6350...419cc9c
rickhanlonii Jul 28, 2021
eb38543
Remove option to make measure calls asynchronous
sammy-SC Jul 28, 2021
6d4fff2
Fix android view dimensions
mdvacca Jul 28, 2021
3081db2
Refactor DevServerHelper to separate checking if packager running
amy588 Jul 28, 2021
be189cd
Introduce queueMicrotask API
Huxpro Jul 28, 2021
dc8d218
Shim Immediate APIs when Promise is queueing to JSVM
Huxpro Jul 28, 2021
f592ad0
Attempt to fix undefined instance handle in EventTarget
sammy-SC Jul 28, 2021
f1b1ba8
Makes "force" property available to Apple Pencil based events. (#31780)
swittk Jul 29, 2021
8b1b7f7
Fix typo in VirtualizedList-test.js (#31756)
eltociear Jul 29, 2021
09b9422
Pass context through to all prop parser (core changes)
JoshuaGross Jul 29, 2021
5d33e65
Pass context through to all prop parser (props structs changes)
JoshuaGross Jul 29, 2021
02b8eac
Pass context through to all prop parser (conversions.h)
JoshuaGross Jul 29, 2021
175b1ea
Pass PropsParserContext to prop parsing layer
JoshuaGross Jul 29, 2021
5df92fb
Fix typo in Constants.h (#31049)
eltociear Jul 29, 2021
ce44104
Daily `arc lint --take CLANGFORMAT`
Jul 29, 2021
1c87d4a
Update Dimension.js typo (#29858)
chownation Jul 29, 2021
853e7a5
Make existential type an error in xplat
evanyeung Jul 29, 2021
feae814
Remove unused import (#30544)
jacobp100 Jul 30, 2021
8066bc9
Updated TextInput autoCompleteType prop to autoComplete 1/2 (#26010)
jeswinsimon Jul 30, 2021
cdce14f
Implement PlatformColor in Fabric Android
mdvacca Jul 31, 2021
cb0e1d6
Allows to set individual (left,top,right,bottom) dotted/dashed border…
fabOnReact Aug 2, 2021
3ed3d34
Correct error message in getViewState method
sammy-SC Aug 2, 2021
1e4dd5e
Clean up RAIICallbackManager experiment
RSNara Aug 2, 2021
32bfd7a
Stop sharing LongLivedObjectCollection with the bridge
RSNara Aug 2, 2021
034c6df
Stop sharing LongLivedObjectCollection with the bridge
RSNara Aug 2, 2021
0fa8253
setup fragment based tab bar navigation
Aug 2, 2021
f9ca578
Remove 'using namespace facebook::jni'
mdvacca Aug 2, 2021
809fd7e
Add TODO to fix and enable 'generated_tests-codegen_testsAndroid'
mdvacca Aug 2, 2021
4f2c6d0
Move RNTester Buck library to GitHub (#31435)
motiz88 Aug 2, 2021
8efbb2e
Move react-native Buck library to GitHub
motiz88 Aug 2, 2021
0638889
Extract feature detection as an utilitiy module
Huxpro Aug 3, 2021
d9a9ae3
Conditionalize the Regenerator Setup
Huxpro Aug 3, 2021
402eec8
Protect against crashes when over-releasing a TouchEvent
JoshuaGross Aug 3, 2021
4fcf468
Co-locate Buck targets for JS polyfills with their sources
motiz88 Aug 3, 2021
0b4f4ee
chore: update Dimensions API Flow types (#31898)
Simek Aug 3, 2021
8a8a532
Fix order of calls for Native Animated Module
sammy-SC Aug 3, 2021
d4ee734
Merge BUCK file at Libraries/ into root
motiz88 Aug 3, 2021
228b8e5
Fix Buck package boundary violation in core components schema
motiz88 Aug 3, 2021
de25552
Allow resolving view from FabricUIManager
javache Aug 3, 2021
c39a4c7
Flush operations queue when animation starts
sammy-SC Aug 3, 2021
363a8fb
iOS: Log error when invalid NSNull data is passed to RCTAsyncLocalSto…
p-sun Aug 3, 2021
dc15c48
fbshipit-source-id: 909b2667480ed96ae376896d966f6c27f5e73964
motiz88 Aug 4, 2021
df9cd05
Update OSS Buck definitions (#31948)
motiz88 Aug 4, 2021
8408d72
Update Android Dockerfile to include root BUCK file (#31950)
motiz88 Aug 4, 2021
a8a8503
Check for negative `numberOfLines` in TextView
Aug 4, 2021
f1b49f7
Fix NPE when hierarchy return null values
mdvacca Aug 4, 2021
43a91d0
Extend getInspectorDataForInstance to return props
mdvacca Aug 4, 2021
81167e0
Add documentation for FabricUIManager.getInspectorDataForInstance
mdvacca Aug 4, 2021
298fd10
chore: remove FlowFixMe (#29468)
Naturalclar Aug 4, 2021
b26ae3e
Move RCT* Buck targets to GitHub
motiz88 Aug 4, 2021
1ed1ac7
Move integration test Buck targets to GitHub
motiz88 Aug 4, 2021
30d37cf
Move RNTester unit/integration test Buck targets to GitHub
motiz88 Aug 4, 2021
260c5a3
Move RCTTestApple into packages/rn-tester
motiz88 Aug 4, 2021
a169009
React Native sync for revisions 419cc9c...19092ac
acdlite Aug 4, 2021
7ce0f40
refactor!: drop deprecated `StatusBarIOS` (#31466)
ecreeth Aug 5, 2021
b385484
Fix OSS Buck parsing errors (#31957)
motiz88 Aug 5, 2021
8d15372
Fix Buck package boundary violation involving RCTEventDispatcher.h (#…
motiz88 Aug 5, 2021
b30fe90
Remove package boundary exceptions in OSS Buck config
motiz88 Aug 5, 2021
72f7962
Update JSLoader.cpp (#29270)
sunnylqm Aug 5, 2021
3bc883c
Warn when negative `numberOfLines` prop set on <Text/> component
Aug 5, 2021
55f504a
Make So loading inside generated TMM delegates less confusing
RSNara Aug 6, 2021
cf717ff
Add TODOs to unify component names between JS - Android - iOS - C++
mdvacca Aug 6, 2021
91437d6
Replace Paper -> old renderer
mdvacca Aug 6, 2021
fcead14
Fix Deadlock in RCTi18nUtil (iOS) (#31032)
Saadnajmi Aug 6, 2021
309ee06
Codegen: Always prepare filesystem
hramos Aug 6, 2021
c677e19
- Bump CLI to ^6.0.0 (#31971)
thymikee Aug 6, 2021
e35a963
Fix to make taps on views outside parent bounds work on Android (#29039)
hsource Aug 6, 2021
91cac20
Create slider accessibility delegate in createViewInstance (#31942)
janicduplessis Aug 7, 2021
f3374d0
Flush operations queue when animation starts in RCTNativeAnimatedModule
sammy-SC Aug 9, 2021
b931aa7
Add Flow libdefs for `global`
Huxpro Aug 9, 2021
9b4f8e0
Feat/dynamic color borders (#31140)
habovh Aug 10, 2021
ffb1831
Cleanup warnings in the NDK build
cortinico Aug 10, 2021
beb3c2b
Back out "Flush operations queue when animation starts in RCTNativeAn…
sammy-SC Aug 10, 2021
d583c2f
Fix Undefined symbol: __swift_FORCE_LOAD_$_swiftFileProvider when bui…
sammy-SC Aug 10, 2021
df65dbb
introduce RCTPlatformColorUtils
philIip Aug 10, 2021
e10c222
hook up PlatformColorParser to RCTPlatformColorUtils
philIip Aug 10, 2021
7c68cf4
replace SharedColor alias with class for more reliable template deduc…
philIip Aug 10, 2021
83b1629
Deploy 0.157.0 to xplat
evanyeung Aug 10, 2021
307f548
General Logging Util (stab) class for native errors (#31998)
sota000 Aug 11, 2021
899fa25
Documenting UserFlow.endFailure
dmitry-voronkevich Aug 11, 2021
637ab46
iOS: When RCTSyncImageManager image times out, log warning instead of…
p-sun Aug 11, 2021
56dcc6e
Un-deprecate ReactSoftException
RSNara Aug 11, 2021
cbec66e
Rename ReactSoftException to ReactSoftExceptionLogger
RSNara Aug 11, 2021
27fec95
Updated TextInput autoCompleteType prop to autoComplete 2/2 (#26010)
jeswinsimon Aug 12, 2021
18132c1
Remove autoCompleteType as a native component prop
Aug 12, 2021
f1b4748
Match native*.js and Native*.js srcs
christolliday Aug 12, 2021
3560753
Fix TextInput Cursor jumping to the right when the placeholder null (…
fabOnReact Aug 12, 2021
ae494e7
Bump AGP to 4.2.2
cortinico Aug 12, 2021
1f8c560
Flatten the `react-native-codegen` included build. (#32007)
cortinico Aug 12, 2021
d45d4ea
iOS: Log image url in test environment when image times out
p-sun Aug 12, 2021
f6d0f9d
Fix BorderExample for DynamicColorIOS
Aug 12, 2021
2b427f8
Add a flag to warn whenever the legacy NativeModule system is used
RSNara Aug 13, 2021
f93d95e
Log SoftExceptions when the legacy NativeModule system is used
RSNara Aug 13, 2021
b7fd68e
Introduce JReactSoftExceptionLogger to log SoftExceptions from C++
RSNara Aug 13, 2021
f536f82
Warn whenever CxxNativeModules are used
RSNara Aug 13, 2021
ecd6927
Fix typo in RCTConvert.m (#31067)
eltociear Aug 13, 2021
f51773e
Allow Modal to handle hardware escape key in the same way the back bu…
levibuzolic Aug 14, 2021
c0ce346
Nullable ReconnectingWebSocket params
amy588 Aug 16, 2021
5b5ece7
Clean up unbatched only experiment
sammy-SC Aug 16, 2021
22bc8c2
Clean up AsyncEventBeatV2 experiment
sammy-SC Aug 16, 2021
ec083f9
Back out "Fix Undefined symbol: __swift_FORCE_LOAD_$_swiftFileProvide…
sammy-SC Aug 16, 2021
eb93886
Include Swift lib in LIBRARY_SEARCH_PATHS
sammy-SC Aug 16, 2021
c29ec46
fix#29319 - ios dismiss modal (#31500)
intergalacticspacehighway Aug 16, 2021
5819538
Fix selectionColor doesn't style Android TextInput selection handles …
fabOnReact Aug 16, 2021
913448f
Fixing CI error "Entry file RNTester/js/RNTesterApp.ios.js does not e…
graytmatterMS Aug 16, 2021
3e5998e
Fix dashed/dotted border drawing when border-radius is 0 (#28359)
IjzerenHein Aug 16, 2021
c317a70
Add a way to bind log function to the unified react native logger.
sota000 Aug 16, 2021
aad9f35
React Native sync for revisions 19092ac...5634ed1
rickhanlonii Aug 17, 2021
6daf5bb
Exclude nativeImageSource.js instead of matching [Nn]
christolliday Aug 17, 2021
48567e5
Revert D20590739
Aug 17, 2021
b48c3d1
Fix irregular indent in template (#29871)
nacam403 Aug 17, 2021
d3345f5
JS: Fix "Modal | Basic" Test's Layout
p-sun Aug 17, 2021
f971ea9
replace testing-support-lib with androidx buck targets in RN
Aug 18, 2021
842bcb9
`Android/ColorProps`: ColorProps with value null should be defaultCol…
hank121314 Aug 18, 2021
c18a492
Fix Dimensions not updating on Android (#31973)
jonnyandrew Aug 18, 2021
5923ee5
refactor: remove DefaultProps from the StatusBar Component (#31631)
Aug 18, 2021
06e31c7
fix AGP 7 compatibility (#32030)
dulmandakh Aug 18, 2021
22f81b2
Clean up Fabric startSurface API used in Venice
Aug 18, 2021
4804e68
Expose "unreserved" trait constants that can be mapped per-component
JoshuaGross Aug 18, 2021
29249e1
Call super.onActivityResult in ReactActivity
fatalsun Aug 19, 2021
3e0d778
Move react_native_log out of utils (#32042)
sota000 Aug 19, 2021
d75683a
fix: Resolve NODE_BINARY *after* finding the path to node (#32029)
santiagofm Aug 19, 2021
10cd273
Ship "Disable 'virtual view' preallocation" experiment in code
JoshuaGross Aug 19, 2021
b29a787
Emit soft error for warning
sota000 Aug 19, 2021
ec3a3df
Enable ktfmt
cgrushko Aug 19, 2021
8db946a
Pass configFile: false to Babel parser
motiz88 Aug 19, 2021
f085e09
Passing the scheme field throughout all the metro connection pipeline…
jimmy623 Aug 19, 2021
cb0782c
Adding activity check to enable Dev mode
arushikesarwani94 Aug 19, 2021
b55201c
Deploy 0.158.0 to xplat
mroch Aug 19, 2021
abc1ace
- Fix broken Circle CI due to missing BUCK rule for androidx:tests (#…
Aug 19, 2021
8258f5e
Remove BUILD FILE SYNTAX from build files
chatura-atapattu Aug 19, 2021
2c2b831
Apply new buildifier fixes
chatura-atapattu Aug 20, 2021
b761624
Remove redundant includes
sammy-SC Aug 20, 2021
1036c14
Provide logger to YGConfig
sammy-SC Aug 20, 2021
c2b971d
Set initial maximum surface size to viewport size
sammy-SC Aug 20, 2021
1271e7a
iOS: Don't display LogBox in Dev if Bridge was invalided
p-sun Aug 21, 2021
6c08016
Update ImageBackground.js (#32055)
edenb-moveo Aug 21, 2021
1d0fb08
Fix typo and grammar (#31916)
pietro909 Aug 23, 2021
8434177
Added Selection prop to TextInputProps
Aug 23, 2021
9187e20
Selection prop is applied for TextInput when component is mounting
Aug 23, 2021
88f0676
use correct gradle packageTask and asserts dir for android libraries …
Legion2 Aug 23, 2021
cfb6c3c
Codegen: Add codegen.js wrapper around generate-specs.sh
hramos Aug 24, 2021
ff4b336
Add Flow libdefs for HermesInternalType
Huxpro Aug 24, 2021
11f8d9c
Add support for the UIAccessibilityTraitsTabBar
jimmy623 Aug 24, 2021
d756d43
Add support for AccessibilityValue
jimmy623 Aug 24, 2021
ddf9a63
fix typos in comments (#32061)
bell-steven Aug 24, 2021
bc1c533
Add window to jest setup (#28067)
timomeh Aug 24, 2021
7299cb4
React Native sync for revisions 424fe58...bd5bf55
kacieb Aug 24, 2021
a6768bf
Remove usages of `dynamic_casts` that are used inside assertions
cortinico Aug 24, 2021
dcfa0dc
Fix broken CI with a run of prettier
cortinico Aug 24, 2021
5902152
Fixed dynamic behavior of <Text adjustsFontSizeToFit={true}> on Andro…
shergin-cb Aug 25, 2021
72eb060
Bump @react-native/polyfills version (#32074)
NickGerleman Aug 25, 2021
e6eb81e
Include Swift lib in LIBRARY_SEARCH_PATHS
Aug 25, 2021
10daf76
chore: prefer the local react-native-codegen package (#32096)
tido64 Aug 26, 2021
b78f6ce
feat: add Android 12 BLUETOOTH_ADVERTISE to PermissionsAndroid (#32079)
iBotPeaches Aug 25, 2021
2707324
Update manual testing script to also test Hermes for RNTester
Aug 26, 2021
ab82900
Move react-native-codegen to root
Aug 27, 2021
a0429eb
[0.66.0-rc.0] Bump version numbers
Aug 27, 2021
d20b34a
Native component check in deprecatedPropType was inverted (#31164)
acoates-ms Aug 31, 2021
b23dd85
OSS: Fix $ENTRY_FILE check for non-Debug Xcode builds
fkgozali Sep 1, 2021
ea5109f
OSS: add Xcode 12.5 + M1 machines CocoaPods post_install workaround
fkgozali Sep 1, 2021
038cdda
Switch order of search libraries to fix M1 build error
sammy-SC Sep 1, 2021
1594af1
Copy repo-config dependencies for bumping release version
Sep 1, 2021
d552362
[0.66.0-rc.1] Bump version numbers
Sep 1, 2021
0d7586c
[LOCAL] postfix timestamp to bust yarn cache
tido64 Jun 8, 2021
b4a1d2b
Make JSI a dynamic library
neildhar Aug 28, 2021
013e623
Revert the Android specific max heap size GCConfig
Huxpro Sep 3, 2021
2133172
Bump Hermes npm to 0.9.0
Huxpro Sep 3, 2021
c282c2d
Bump Hermes pod to 0.9.0
Huxpro Sep 3, 2021
c97015d
Update Podfile.lock
Sep 9, 2021
614a370
[0.66.0-rc.2] Bump version numbers
Sep 10, 2021
8b6d7fd
Link RCT-Folly against libc++abi
fkgozali Sep 17, 2021
dc453da
Update rn-tester Podfile.lock to prepare for 0.66.0-rc.3
fkgozali Sep 17, 2021
ab50c6e
[0.66.0-rc.3] Bump version numbers
fkgozali Sep 17, 2021
6b014e8
Don’t hard-code CocoaPods’s sandbox path (#32243)
sonicdoe Sep 21, 2021
9967318
OSS: update Podfile.lock automatically when bumping release version
fkgozali Sep 23, 2021
ef280d6
[LOCAL] Port react-native-codegen new .gitignore from main
fkgozali Sep 24, 2021
a6a983d
OSS: bump-oss-version -- update Podfile.lock later in the flow
fkgozali Sep 24, 2021
d47fd4a
[0.66.0-rc.4] Bump version numbers
fkgozali Sep 24, 2021
09a21f0
[0.66.0] Bump version numbers
Oct 1, 2021
00625b6
Merge tag 'v0.66.0' into fb66merge
HeyImChris Oct 20, 2021
db5d361
Merge branch 'master' into fb66merge
HeyImChris Oct 21, 2021
ce6c252
get ios building
HeyImChris Oct 21, 2021
3cb82fe
remove isSelected and selectedRowIndexPath for now
HeyImChris Oct 21, 2021
fc2911c
add workspace
HeyImChris Nov 10, 2021
236c62e
Restore .eslintignore to what it looks like in react-native-macos
amgleitman Nov 10, 2021
aba766e
Fix easy eslint errors as per the `--fix` option
amgleitman Nov 10, 2021
67cbe7e
Fix the rest of the yarn lint errors
amgleitman Nov 10, 2021
3520159
Update yarn.lock
amgleitman Nov 10, 2021
a1afb19
Merge pull request #3 from amgleitman/amgleitman/fb66merge-eslint-fixes
HeyImChris Nov 10, 2021
586bb5e
Add AccessibilityRole back to Button.js
amgleitman Nov 11, 2021
58c8412
Fix flow issues on iOS and macOS
amgleitman Nov 15, 2021
e399059
Merge pull request #4 from amgleitman/amgleitman/fb66merge-flow-fixes
HeyImChris Nov 16, 2021
b3f4f66
Initialize state in VirtualizedSectionList
amgleitman Nov 16, 2021
5904ee6
Update snapshots
amgleitman Nov 16, 2021
b5df753
Fix parseLogBoxLog tests to include native code blocks
amgleitman Nov 16, 2021
c5d4fe8
Merge pull request #5 from amgleitman/amgleitman/fb66merge-flow-fixes
HeyImChris Nov 17, 2021
8c0c3ea
Specify state explicitly for DisplayOptionsStatusExample
amgleitman Nov 17, 2021
635a0e1
Disable "Text with custom accessibility actions" example
amgleitman Nov 18, 2021
085befd
android
HeyImChris Nov 18, 2021
85debff
Merge branch 'master' of https://github.com/microsoft/react-native-macos
HeyImChris Nov 19, 2021
b1eaf18
Fix AnimatedMock spring to handle animated configs
amgleitman Nov 19, 2021
b9ac73d
Merge pull request #6 from amgleitman/amgleitman/fb66merge-more-fixes
HeyImChris Nov 29, 2021
ba5b965
Fix most compile issues for macOS
amgleitman Dec 7, 2021
e3abc80
Fix post_install sed script
amgleitman Dec 8, 2021
4866442
Changes that allow RNTester to launch on macOS
amgleitman Dec 9, 2021
d2caebd
Fix isHighContrastEnabled on RNTester accessibility page
amgleitman Dec 10, 2021
f8e3166
Merge pull request #7 from amgleitman/amgleitman/fb66merge-macos-compile
HeyImChris Dec 14, 2021
a816edd
Merge branch 'fb66merge' into amgleitman/fb66-rntester-working
amgleitman Dec 15, 2021
d0a3821
Bump special targets in RNTester Podfile to iOS 11
amgleitman Dec 15, 2021
e7191ad
BorderExample: use a platform color that also exists on macOS
amgleitman Dec 15, 2021
d22aab1
Disable dev mode on ship builds (#888)
HeyImChris Nov 11, 2021
3167c6c
fix text fields on macOS
HeyImChris Dec 15, 2021
e75b222
add osx support
HeyImChris Dec 15, 2021
1c83fbd
image prop and scroll view build failures osx
HeyImChris Dec 15, 2021
bc09148
Merge branch 'fb66merge' into amgleitman/fb66-rntester-working
amgleitman Dec 15, 2021
d45345c
Fix yarn lint issues
amgleitman Dec 15, 2021
776bdc0
Update Podfile.lock
amgleitman Dec 15, 2021
e1effd8
Merge pull request #8 from amgleitman/amgleitman/fb66-rntester-working
HeyImChris Dec 15, 2021
45c39b7
endline changes
HeyImChris Dec 16, 2021
035a721
Get rid of macOS RedBox in LayoutEventsExample
amgleitman Jan 4, 2022
c54f0cb
fix: Apply proper accessibility role to images on macOS
amgleitman Jan 5, 2022
2e0f32c
Add another macOS GH#774 tag
amgleitman Jan 5, 2022
10c3f07
Merge pull request #9 from amgleitman/amgleitman/fb66-rntester-working
HeyImChris Jan 5, 2022
f98de97
Merge branch 'main' of https://github.com/microsoft/react-native-macos
HeyImChris Jan 6, 2022
cd7163e
Merge branch 'fb66merge' of https://github.com/HeyImChris/react-nativ…
HeyImChris Jan 10, 2022
8b43fe0
Merge branch 'main' into fb66merge
HeyImChris Jan 11, 2022
c0d8ff7
fix snapshot image test failure
HeyImChris Jan 11, 2022
42ddecc
upgrade ts to a compatible version
HeyImChris Jan 11, 2022
cea231d
bump podfile.lock
HeyImChris Jan 13, 2022
a90c149
Fix Android patches in fb66merge
amgleitman Jan 13, 2022
fd021e7
change cocoapods version
HeyImChris Jan 13, 2022
8332866
update internal cocoapods requirements
HeyImChris Jan 13, 2022
145b1ce
test increasing min deployable target
HeyImChris Jan 13, 2022
a2e1a05
min deployment error in CI, bump to 10.15 osx
HeyImChris Jan 13, 2022
669c1f1
Merge pull request #10 from amgleitman/amgleitman/fb66merge-fix-andro…
HeyImChris Jan 13, 2022
1abaeb4
fix typedef redefinition build error in folly
HeyImChris Jan 13, 2022
0a39af3
disable use_flipper in our templates
HeyImChris Jan 13, 2022
c09b6c5
disable USE_FRAMEWORKS for Flipper support
HeyImChris Jan 13, 2022
2a13045
Revert "disable USE_FRAMEWORKS for Flipper support"
HeyImChris Jan 13, 2022
2fbff75
disable post_install of flipper
HeyImChris Jan 13, 2022
ce57308
combine tempated macos post_install
HeyImChris Jan 14, 2022
ef64730
add generate-specs.sh
HeyImChris Jan 14, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 1 addition & 2 deletions .buckconfig
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@

[android]
target = android-29
target = android-30

[download]
max_number_of_retries = 3

[maven_repositories]
central = https://repo1.maven.org/maven2
google = https://maven.google.com/
jcenter = https://jcenter.bintray.com/

[alias]
rntester = //packages/rn-tester/android/app:app
3 changes: 2 additions & 1 deletion .circleci/Dockerfiles/Dockerfile.android
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# and build a Android application that can be used to run the
# tests specified in the scripts/ directory.
#
FROM reactnativecommunity/react-native-android:2.1
FROM reactnativecommunity/react-native-android:4.0

LABEL Description="React Native Android Test Image"
LABEL maintainer="Héctor Ramos <hector@fb.com>"
Expand All @@ -26,6 +26,7 @@ ENV JAVA_TOOL_OPTIONS="-Dfile.encoding=UTF8"

ADD .buckconfig /app/.buckconfig
ADD .buckjavaargs /app/.buckjavaargs
ADD BUCK /app/BUCK
ADD Libraries /app/Libraries
ADD ReactAndroid /app/ReactAndroid
ADD ReactCommon /app/ReactCommon
Expand Down
122 changes: 72 additions & 50 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ defaults: &defaults
environment:
- GIT_COMMIT_DESC: git log --format=oneline -n 1 $CIRCLE_SHA1
# The public github tokens are publicly visible by design
- PUBLIC_PULLBOT_GITHUB_TOKEN_A: "a6edf8e8d40ce4e8b11a"
- PUBLIC_PULLBOT_GITHUB_TOKEN_B: "150e1341f4dd9c944d2a"
- PUBLIC_ANALYSISBOT_GITHUB_TOKEN_A: &github_token_a "78a72af35445ca3f8180"
- PUBLIC_ANALYSISBOT_GITHUB_TOKEN_B: &github_token_b "b1a98e0bbd56ff1ccba1"
- PUBLIC_PULLBOT_GITHUB_TOKEN_A: &github_pullbot_token_a "a6edf8e8d40ce4e8b11a"
- PUBLIC_PULLBOT_GITHUB_TOKEN_B: &github_pullbot_token_b "150e1341f4dd9c944d2a"
- PUBLIC_ANALYSISBOT_GITHUB_TOKEN_A: &github_analysisbot_token_a "312d354b5c36f082cfe9"
- PUBLIC_ANALYSISBOT_GITHUB_TOKEN_B: &github_analysisbot_token_b "07973d757026bdd9f196"

# -------------------------
# EXECUTORS
Expand All @@ -27,6 +27,7 @@ executors:
nodelts:
<<: *defaults
docker:
# Note: Version set separately for Windows builds, see below.
- image: circleci/node:14
nodeprevlts:
<<: *defaults
Expand All @@ -35,7 +36,7 @@ executors:
reactnativeandroid:
<<: *defaults
docker:
- image: reactnativecommunity/react-native-android:2.1
- image: reactnativecommunity/react-native-android:4.0
resource_class: "large"
environment:
- TERM: "dumb"
Expand All @@ -44,12 +45,14 @@ executors:
- GRADLE_OPTS: '-Dorg.gradle.daemon=false -Dorg.gradle.jvmargs="-XX:+HeapDumpOnOutOfMemoryError"'
- BUILD_THREADS: 2
# Repeated here, as the environment key in this executor will overwrite the one in defaults
- PUBLIC_ANALYSISBOT_GITHUB_TOKEN_A: *github_token_a
- PUBLIC_ANALYSISBOT_GITHUB_TOKEN_B: *github_token_b
- PUBLIC_ANALYSISBOT_GITHUB_TOKEN_A: *github_analysisbot_token_a
- PUBLIC_ANALYSISBOT_GITHUB_TOKEN_B: *github_analysisbot_token_b
- PUBLIC_PULLBOT_GITHUB_TOKEN_A: *github_pullbot_token_a
- PUBLIC_PULLBOT_GITHUB_TOKEN_B: *github_pullbot_token_b
reactnativeios:
<<: *defaults
macos:
xcode: &_XCODE_VERSION "12.1.0"
xcode: &_XCODE_VERSION "12.5.0"

# -------------------------
# COMMANDS
Expand All @@ -75,7 +78,6 @@ commands:
- restore_cache:
keys:
- v4-yarn-cache-{{ arch }}-{{ checksum "yarn.lock" }}
- v4-yarn-cache-{{ arch }}
- run:
name: "Yarn: Install Dependencies"
command: |
Expand All @@ -94,7 +96,6 @@ commands:
- restore_cache:
keys:
- v3-buck-v2019.01.10.01-{{ checksum "scripts/circleci/buck_fetch.sh" }}}
- v3-buck-v2019.01.10.01-
- run:
name: Install BUCK
command: |
Expand Down Expand Up @@ -151,20 +152,20 @@ commands:
command: cp packages/rn-tester/Podfile.lock packages/rn-tester/Podfile.lock.bak
- restore_cache:
keys:
- v3-pods-{{ .Environment.CIRCLE_JOB }}-{{ checksum "packages/rn-tester/Podfile.lock.bak" }}
- v3-pods-{{ .Environment.CIRCLE_JOB }}-
# The committed lockfile is generated using USE_FRAMEWORKS=0 and USE_HERMES=0 so it could load an outdated cache if a change
# only affects the frameworks or hermes config. To help prevent this also cache based on the content of Podfile.
- v3-pods-{{ .Environment.CIRCLE_JOB }}-{{ checksum "packages/rn-tester/Podfile.lock.bak" }}-{{ checksum "packages/rn-tester/Podfile" }}
- steps: << parameters.steps >>
- save_cache:
paths:
- packages/rn-tester/Pods
key: v3-pods-{{ .Environment.CIRCLE_JOB }}-{{ checksum "packages/rn-tester/Podfile.lock.bak" }}
key: v3-pods-{{ .Environment.CIRCLE_JOB }}-{{ checksum "packages/rn-tester/Podfile.lock.bak" }}-{{ checksum "packages/rn-tester/Podfile" }}

download_gradle_dependencies:
steps:
- restore_cache:
keys:
- v1-gradle-{{ checksum "ReactAndroid/build.gradle" }}-{{ checksum "scripts/circleci/gradle_download_deps.sh" }}
- v1-gradle-
- run:
name: Download Dependencies Using Gradle
command: ./scripts/circleci/gradle_download_deps.sh
Expand Down Expand Up @@ -236,17 +237,20 @@ jobs:
# Issues will be posted to the PR itself via GitHub bots.
# This workflow should only fail if the bots fail to run.
analyze_pr:
executor: nodelts
executor: reactnativeandroid
steps:
- restore_cache_checkout:
checkout_type: node
checkout_type: android
- run_yarn

- install_github_bot_deps

# Note: The yarn gpg key needs to be refreshed to work around https://github.com/yarnpkg/yarn/issues/7866
- run:
name: Install additional GitHub bot dependencies
command: sudo apt update && sudo apt install -y shellcheck jq
command: |
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
apt update && apt install -y shellcheck jq

- run:
name: Run linters against modified files (analysis-bot)
Expand All @@ -264,10 +268,10 @@ jobs:
# JOBS: Analyze Code
# -------------------------
analyze_code:
executor: nodelts
executor: reactnativeandroid
steps:
- restore_cache_checkout:
checkout_type: node
checkout_type: android
- setup_artifacts
- run_yarn

Expand All @@ -276,6 +280,11 @@ jobs:
command: scripts/circleci/exec_swallow_error.sh yarn lint --format junit -o ./reports/junit/eslint/results.xml
when: always

- run:
name: Lint Java
command: scripts/circleci/exec_swallow_error.sh yarn lint-java --check
when: always

- run:
name: Check for errors in code using Flow (iOS)
command: yarn flow-check-ios
Expand Down Expand Up @@ -423,7 +432,7 @@ jobs:
steps:
- run:
name: Generate RNTesterPods Workspace
command: cd packages/rn-tester && bundle exec pod install --verbose
command: cd packages/rn-tester && USE_FABRIC=1 bundle exec pod install --verbose

# -------------------------
# Runs iOS unit tests
Expand Down Expand Up @@ -495,12 +504,6 @@ jobs:
command: source scripts/android-setup.sh && launchAVD
background: true

# Keep configuring Android dependencies while AVD boots up

- run:
name: Install rsync, zip
command: apt-get update -y && apt-get install rsync zip -y

# Install Buck
- install_buck_tooling

Expand Down Expand Up @@ -606,14 +609,21 @@ jobs:
default: false
environment:
- ANDROID_HOME: "C:\\Android\\android-sdk"
- ANDROID_NDK: "C:\\Android\\android-sdk\\ndk\\19.2.5345600"
- ANDROID_BUILD_VERSION: 28
- ANDROID_TOOLS_VERSION: 29.0.3
- ANDROID_NDK: "C:\\Android\\android-sdk\\ndk\\20.1.5948944"
- ANDROID_BUILD_VERSION: 30
- ANDROID_TOOLS_VERSION: 30.0.2
- GRADLE_OPTS: -Dorg.gradle.daemon=false
- NDK_VERSION: 19.2.5345600
- NDK_VERSION: 21.4.7075529
steps:
- checkout

- run:
name: Install Node
# Note: Version set separately for non-Windows builds, see above.
command: |
nvm install 14.17.0
nvm use 14.17.0

# Setup Dependencies
- run:
name: Install Yarn
Expand All @@ -626,7 +636,6 @@ jobs:
- restore_cache:
keys:
- v1-win-yarn-cache-{{ arch }}-{{ checksum "yarn.lock" }}
- v1-win-yarn-cache-{{ arch }}-
- run:
name: "Yarn: Install Dependencies"
command: yarn install --frozen-lockfile --non-interactive
Expand All @@ -635,9 +644,11 @@ jobs:
paths:
- C:\Users\circleci\AppData\Local\Yarn

# Try to install the SDK up to 3 times, since network flakiness can cause install failures
# Using a timeout of 9 mins, as circle ci will timeout if there is no output for 10 mins
- run:
name: Install Android SDK Tools
command: choco install android-sdk
command: choco install android-sdk --timeout 540; if (!$?) { choco install android-sdk --timeout 540 --force --forcedependencies}; if (!$?) { choco install android-sdk --force --forcedependencies}

- run:
name: Setup Android SDKs
Expand Down Expand Up @@ -778,30 +789,34 @@ workflows:
run_unit_tests: true
requires:
- setup_ios
- test_ios:
name: test_ios_unit_frameworks_jsc
use_frameworks: true
run_unit_tests: true
requires:
- setup_ios
# DISABLED: USE_FRAMEWORKS=1 not supported by Flipper
# - test_ios:
# name: test_ios_unit_frameworks_jsc
# use_frameworks: true
# run_unit_tests: true
# requires:
# - setup_ios
- test_ios:
name: test_ios_unit_hermes
use_hermes: true
run_unit_tests: true
requires:
- setup_ios
- test_ios:
name: test_ios_unit_frameworks_hermes
use_hermes: true
use_frameworks: true
run_unit_tests: true
requires:
- setup_ios
# DISABLED: USE_FRAMEWORKS=1 not supported by Flipper
# - test_ios:
# name: test_ios_unit_frameworks_hermes
# use_hermes: true
# use_frameworks: true
# run_unit_tests: true
# requires:
# - setup_ios
# DISABLED: Detox tests need to be fixed
# - test_ios:
# name: test_ios_detox
# run_detox_tests: true
# requires:
# - setup_ios
# DISABLED: USE_FRAMEWORKS=1 not supported by Flipper
# - test_ios:
# name: test_ios_detox_frameworks
# use_frameworks: true
Expand Down Expand Up @@ -856,27 +871,34 @@ workflows:

analysis:
jobs:
- setup
- setup:
name: setup_js

- setup:
name: setup_android
checkout_type: android
executor: reactnativeandroid

# Run lints on every commit other than those to the gh-pages branch
- analyze_code:
requires:
- setup
- setup_android
filters:
branches:
ignore: gh-pages

# Run code checks on PRs from forks
- analyze_pr:
requires:
- setup
- setup_android
filters:
branches:
only: /^pull\/.*$/

# Gather coverage
- js_coverage:
requires:
- setup
- setup_js
# [TODO(macOS GH#774): disable this test, it fails in the fork due to not being set up for coveralls
filters:
branches:
Expand All @@ -891,7 +913,7 @@ workflows:
# [TODO(macOS GH#774): disable this release. We never want to release anything from this fork via CCI.
ignore: /.*/
# only:
# - master
# - main
# ]TODO(macOS GH#774)
jobs:
- nightly_job
Expand Down
7 changes: 7 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,12 @@ indent_size = 2
[*.gradle]
indent_size = 4

[*.kts]
indent_size = 4

[BUCK]
indent_size = 4

# Windows files
[*.bat]
end_of_line = crlf
8 changes: 8 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,14 @@
"@react-native/codegen/react-native-modules": 2
}
},
{
"files": [
"flow-typed/**/*.js",
],
"rules": {
quotes: 0
}
},
{
"files": [
"**/__fixtures__/**/*.js",
Expand Down
9 changes: 5 additions & 4 deletions .flowconfig
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ flow/
emoji=true

exact_by_default=true
indexed_access=false

format.bracket_spacing=false

module.file_ext=.js
module.file_ext=.json
Expand All @@ -52,15 +55,13 @@ suppress_type=$FlowFixMeProps
suppress_type=$FlowFixMeState
suppress_type=$FlowFixMeEmpty

experimental.abstract_locations=true

[lints]
sketchy-null-number=warn
sketchy-null-mixed=warn
sketchy-number=warn
untyped-type-import=warn
nonstrict-import=warn
deprecated-type=warn
deprecated-type=error
unsafe-getters-setters=warn
unnecessary-invariant=warn
signature-verification-failure=warn
Expand All @@ -75,4 +76,4 @@ untyped-import
untyped-type-import

[version]
^0.137.0
^0.158.0
Loading