react-native 0.68.0-rc.1 → 0.68.0-rc.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (61) hide show
  1. package/Libraries/Core/ReactNativeVersion.js +1 -1
  2. package/Libraries/Text/TextInput/Multiline/RCTUITextView.m +1 -29
  3. package/Libraries/Text/TextInput/RCTBaseTextInputView.m +2 -0
  4. package/React/Base/RCTVersion.m +1 -1
  5. package/React/Fabric/Mounting/ComponentViews/TextInput/RCTTextInputComponentView.mm +4 -2
  6. package/ReactAndroid/build.gradle +1 -1
  7. package/ReactAndroid/gradle.properties +1 -1
  8. package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.java +1 -1
  9. package/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextShadowNode.java +0 -5
  10. package/ReactCommon/cxxreact/ReactNativeVersion.h +1 -1
  11. package/ReactCommon/react/renderer/mapbuffer/MapBuffer.cpp +5 -5
  12. package/ReactCommon/react/renderer/mapbuffer/MapBuffer.h +5 -3
  13. package/ReactCommon/react/renderer/mapbuffer/MapBufferBuilder.cpp +7 -5
  14. package/ReactCommon/react/renderer/mapbuffer/MapBufferBuilder.h +1 -1
  15. package/android/com/facebook/react/react-native/{0.68.0-rc.1/react-native-0.68.0-rc.1-sources.jar → 0.68.0-rc.2/react-native-0.68.0-rc.2-sources.jar} +0 -0
  16. package/android/com/facebook/react/react-native/0.68.0-rc.2/react-native-0.68.0-rc.2-sources.jar.md5 +1 -0
  17. package/android/com/facebook/react/react-native/0.68.0-rc.2/react-native-0.68.0-rc.2-sources.jar.sha1 +1 -0
  18. package/android/com/facebook/react/react-native/0.68.0-rc.2/react-native-0.68.0-rc.2-sources.jar.sha256 +1 -0
  19. package/android/com/facebook/react/react-native/0.68.0-rc.2/react-native-0.68.0-rc.2-sources.jar.sha512 +1 -0
  20. package/android/com/facebook/react/react-native/{0.68.0-rc.1/react-native-0.68.0-rc.1.aar → 0.68.0-rc.2/react-native-0.68.0-rc.2.aar} +0 -0
  21. package/android/com/facebook/react/react-native/0.68.0-rc.2/react-native-0.68.0-rc.2.aar.md5 +1 -0
  22. package/android/com/facebook/react/react-native/0.68.0-rc.2/react-native-0.68.0-rc.2.aar.sha1 +1 -0
  23. package/android/com/facebook/react/react-native/0.68.0-rc.2/react-native-0.68.0-rc.2.aar.sha256 +1 -0
  24. package/android/com/facebook/react/react-native/0.68.0-rc.2/react-native-0.68.0-rc.2.aar.sha512 +1 -0
  25. package/android/com/facebook/react/react-native/{0.68.0-rc.1/react-native-0.68.0-rc.1.module → 0.68.0-rc.2/react-native-0.68.0-rc.2.module} +15 -15
  26. package/android/com/facebook/react/react-native/0.68.0-rc.2/react-native-0.68.0-rc.2.module.md5 +1 -0
  27. package/android/com/facebook/react/react-native/0.68.0-rc.2/react-native-0.68.0-rc.2.module.sha1 +1 -0
  28. package/android/com/facebook/react/react-native/0.68.0-rc.2/react-native-0.68.0-rc.2.module.sha256 +1 -0
  29. package/android/com/facebook/react/react-native/0.68.0-rc.2/react-native-0.68.0-rc.2.module.sha512 +1 -0
  30. package/android/com/facebook/react/react-native/{0.68.0-rc.1/react-native-0.68.0-rc.1.pom → 0.68.0-rc.2/react-native-0.68.0-rc.2.pom} +1 -1
  31. package/android/com/facebook/react/react-native/0.68.0-rc.2/react-native-0.68.0-rc.2.pom.md5 +1 -0
  32. package/android/com/facebook/react/react-native/0.68.0-rc.2/react-native-0.68.0-rc.2.pom.sha1 +1 -0
  33. package/android/com/facebook/react/react-native/0.68.0-rc.2/react-native-0.68.0-rc.2.pom.sha256 +1 -0
  34. package/android/com/facebook/react/react-native/0.68.0-rc.2/react-native-0.68.0-rc.2.pom.sha512 +1 -0
  35. package/android/com/facebook/react/react-native/maven-metadata.xml +4 -4
  36. package/android/com/facebook/react/react-native/maven-metadata.xml.md5 +1 -1
  37. package/android/com/facebook/react/react-native/maven-metadata.xml.sha1 +1 -1
  38. package/android/com/facebook/react/react-native/maven-metadata.xml.sha256 +1 -1
  39. package/android/com/facebook/react/react-native/maven-metadata.xml.sha512 +1 -1
  40. package/package.json +3 -2
  41. package/react.gradle +14 -0
  42. package/template/Gemfile.lock +2 -2
  43. package/template/_flowconfig +2 -0
  44. package/template/android/app/build.gradle +14 -8
  45. package/template/package.json +1 -5
  46. package/android/com/facebook/react/react-native/0.68.0-rc.1/react-native-0.68.0-rc.1-sources.jar.md5 +0 -1
  47. package/android/com/facebook/react/react-native/0.68.0-rc.1/react-native-0.68.0-rc.1-sources.jar.sha1 +0 -1
  48. package/android/com/facebook/react/react-native/0.68.0-rc.1/react-native-0.68.0-rc.1-sources.jar.sha256 +0 -1
  49. package/android/com/facebook/react/react-native/0.68.0-rc.1/react-native-0.68.0-rc.1-sources.jar.sha512 +0 -1
  50. package/android/com/facebook/react/react-native/0.68.0-rc.1/react-native-0.68.0-rc.1.aar.md5 +0 -1
  51. package/android/com/facebook/react/react-native/0.68.0-rc.1/react-native-0.68.0-rc.1.aar.sha1 +0 -1
  52. package/android/com/facebook/react/react-native/0.68.0-rc.1/react-native-0.68.0-rc.1.aar.sha256 +0 -1
  53. package/android/com/facebook/react/react-native/0.68.0-rc.1/react-native-0.68.0-rc.1.aar.sha512 +0 -1
  54. package/android/com/facebook/react/react-native/0.68.0-rc.1/react-native-0.68.0-rc.1.module.md5 +0 -1
  55. package/android/com/facebook/react/react-native/0.68.0-rc.1/react-native-0.68.0-rc.1.module.sha1 +0 -1
  56. package/android/com/facebook/react/react-native/0.68.0-rc.1/react-native-0.68.0-rc.1.module.sha256 +0 -1
  57. package/android/com/facebook/react/react-native/0.68.0-rc.1/react-native-0.68.0-rc.1.module.sha512 +0 -1
  58. package/android/com/facebook/react/react-native/0.68.0-rc.1/react-native-0.68.0-rc.1.pom.md5 +0 -1
  59. package/android/com/facebook/react/react-native/0.68.0-rc.1/react-native-0.68.0-rc.1.pom.sha1 +0 -1
  60. package/android/com/facebook/react/react-native/0.68.0-rc.1/react-native-0.68.0-rc.1.pom.sha256 +0 -1
  61. package/android/com/facebook/react/react-native/0.68.0-rc.1/react-native-0.68.0-rc.1.pom.sha512 +0 -1
@@ -13,5 +13,5 @@ exports.version = {
13
13
  major: 0,
14
14
  minor: 68,
15
15
  patch: 0,
16
- prerelease: 'rc.1',
16
+ prerelease: 'rc.2',
17
17
  };
@@ -147,21 +147,7 @@ static UIColor *defaultPlaceholderColor()
147
147
 
148
148
  - (void)setAttributedText:(NSAttributedString *)attributedText
149
149
  {
150
- // Using `setAttributedString:` while user is typing breaks some internal mechanics
151
- // when entering complex input languages such as Chinese, Korean or Japanese.
152
- // see: https://github.com/facebook/react-native/issues/19339
153
-
154
- // We try to avoid calling this method as much as we can.
155
- // If the text has changed, there is nothing we can do.
156
- if (![super.attributedText.string isEqualToString:attributedText.string]) {
157
- [super setAttributedText:attributedText];
158
- } else {
159
- // But if the text is preserved, we just copying the attributes from the source string.
160
- if (![super.attributedText isEqualToAttributedString:attributedText]) {
161
- [self copyTextAttributesFrom:attributedText];
162
- }
163
- }
164
-
150
+ [super setAttributedText:attributedText];
165
151
  [self textDidChange];
166
152
  }
167
153
 
@@ -311,18 +297,4 @@ static UIColor *defaultPlaceholderColor()
311
297
 
312
298
  #pragma mark - Utility Methods
313
299
 
314
- - (void)copyTextAttributesFrom:(NSAttributedString *)sourceString
315
- {
316
- [self.textStorage beginEditing];
317
-
318
- NSTextStorage *textStorage = self.textStorage;
319
- [sourceString enumerateAttributesInRange:NSMakeRange(0, sourceString.length)
320
- options:NSAttributedStringEnumerationReverse
321
- usingBlock:^(NSDictionary<NSAttributedStringKey,id> * _Nonnull attrs, NSRange range, BOOL * _Nonnull stop) {
322
- [textStorage setAttributes:attrs range:range];
323
- }];
324
-
325
- [self.textStorage endEditing];
326
- }
327
-
328
300
  @end
@@ -104,6 +104,7 @@ RCT_NOT_IMPLEMENTED(- (instancetype)initWithFrame:(CGRect)frame)
104
104
  // Similarly, when the user is in the middle of inputting some text in Japanese/Chinese, there will be styling on the
105
105
  // text that we should disregard. See https://developer.apple.com/documentation/uikit/uitextinput/1614489-markedtextrange?language=objc
106
106
  // for more info.
107
+ // Also, updating the attributed text while inputting Korean language will break input mechanism.
107
108
  // If the user added an emoji, the system adds a font attribute for the emoji and stores the original font in NSOriginalFont.
108
109
  // Lastly, when entering a password, etc., there will be additional styling on the field as the native text view
109
110
  // handles showing the last character for a split second.
@@ -116,6 +117,7 @@ RCT_NOT_IMPLEMENTED(- (instancetype)initWithFrame:(CGRect)frame)
116
117
 
117
118
  BOOL shouldFallbackToBareTextComparison =
118
119
  [self.backedTextInputView.textInputMode.primaryLanguage isEqualToString:@"dictation"] ||
120
+ [self.backedTextInputView.textInputMode.primaryLanguage isEqualToString:@"ko-KR"] ||
119
121
  self.backedTextInputView.markedTextRange ||
120
122
  self.backedTextInputView.isSecureTextEntry ||
121
123
  fontHasBeenUpdatedBySystem;
@@ -24,7 +24,7 @@ NSDictionary* RCTGetReactNativeVersion(void)
24
24
  RCTVersionMajor: @(0),
25
25
  RCTVersionMinor: @(68),
26
26
  RCTVersionPatch: @(0),
27
- RCTVersionPrerelease: @"rc.1",
27
+ RCTVersionPrerelease: @"rc.2",
28
28
  };
29
29
  });
30
30
  return __rnVersion;
@@ -617,8 +617,9 @@ using namespace facebook::react;
617
617
  // the settings on a dictation.
618
618
  // Similarly, when the user is in the middle of inputting some text in Japanese/Chinese, there will be styling on the
619
619
  // text that we should disregard. See
620
- // https://developer.apple.com/documentation/uikit/uitextinput/1614489-markedtextrange?language=objc for more info. If
621
- // the user added an emoji, the system adds a font attribute for the emoji and stores the original font in
620
+ // https://developer.apple.com/documentation/uikit/uitextinput/1614489-markedtextrange?language=objc for more info.
621
+ // Also, updating the attributed text while inputting Korean language will break input mechanism.
622
+ // If the user added an emoji, the system adds a font attribute for the emoji and stores the original font in
622
623
  // NSOriginalFont. Lastly, when entering a password, etc., there will be additional styling on the field as the native
623
624
  // text view handles showing the last character for a split second.
624
625
  __block BOOL fontHasBeenUpdatedBySystem = false;
@@ -633,6 +634,7 @@ using namespace facebook::react;
633
634
 
634
635
  BOOL shouldFallbackToBareTextComparison =
635
636
  [_backedTextInputView.textInputMode.primaryLanguage isEqualToString:@"dictation"] ||
637
+ [_backedTextInputView.textInputMode.primaryLanguage isEqualToString:@"ko-KR"] ||
636
638
  _backedTextInputView.markedTextRange || _backedTextInputView.isSecureTextEntry || fontHasBeenUpdatedBySystem;
637
639
 
638
640
  if (shouldFallbackToBareTextComparison) {
@@ -406,7 +406,7 @@ react {
406
406
  // This should be changed to a more generic name, e.g. `ReactCoreSpec`.
407
407
  libraryName = "rncore"
408
408
  jsRootDir = file("../Libraries")
409
- reactRoot = file("$projectDir/..")
409
+ reactNativeDir = file("$projectDir/..")
410
410
  useJavaGenerator = System.getenv("USE_CODEGEN_JAVAPOET")?.toBoolean() ?: false
411
411
  // We search for the codegen in either one of the `node_modules` folder or in the
412
412
  // root packages folder (that's for when we build from source without calling `yarn install`).
@@ -1,4 +1,4 @@
1
- VERSION_NAME=0.68.0-rc.1
1
+ VERSION_NAME=0.68.0-rc.2
2
2
  GROUP=com.facebook.react
3
3
 
4
4
  POM_NAME=ReactNative
@@ -18,5 +18,5 @@ public class ReactNativeVersion {
18
18
  "major", 0,
19
19
  "minor", 68,
20
20
  "patch", 0,
21
- "prerelease", "rc.1");
21
+ "prerelease", "rc.2");
22
22
  }
@@ -343,11 +343,6 @@ public class ReactTextShadowNode extends ReactBaseTextShadowNode {
343
343
  mJustificationMode);
344
344
  uiViewOperationQueue.enqueueUpdateExtraData(getReactTag(), reactTextUpdate);
345
345
  }
346
-
347
- if (mAdjustsFontSizeToFit) {
348
- // Nodes with `adjustsFontSizeToFit` enabled need to be remeasured on every relayout.
349
- markUpdated();
350
- }
351
346
  }
352
347
 
353
348
  @ReactProp(name = "onTextLayout")
@@ -18,7 +18,7 @@ constexpr struct {
18
18
  int32_t Major = 0;
19
19
  int32_t Minor = 68;
20
20
  int32_t Patch = 0;
21
- std::string_view Prerelease = "rc.1";
21
+ std::string_view Prerelease = "rc.2";
22
22
  } ReactNativeVersion;
23
23
 
24
24
  } // namespace facebook::react
@@ -33,11 +33,11 @@ MapBuffer::MapBuffer(std::vector<uint8_t> data) : bytes_(std::move(data)) {
33
33
  }
34
34
  }
35
35
 
36
- uint32_t MapBuffer::getKeyBucket(Key key) const {
37
- uint32_t lo = 0;
38
- uint32_t hi = count_ - 1;
36
+ int32_t MapBuffer::getKeyBucket(Key key) const {
37
+ int32_t lo = 0;
38
+ int32_t hi = count_ - 1;
39
39
  while (lo <= hi) {
40
- uint32_t mid = (lo + hi) >> 1;
40
+ int32_t mid = (lo + hi) >> 1;
41
41
 
42
42
  Key midVal =
43
43
  *reinterpret_cast<Key const *>(bytes_.data() + bucketOffset(mid));
@@ -112,7 +112,7 @@ MapBuffer MapBuffer::getMapBuffer(Key key) const {
112
112
  return MapBuffer(std::move(value));
113
113
  }
114
114
 
115
- uint32_t MapBuffer::size() const {
115
+ size_t MapBuffer::size() const {
116
116
  return bytes_.size();
117
117
  }
118
118
 
@@ -80,7 +80,8 @@ class MapBuffer {
80
80
  uint32_t bufferSize; // Amount of bytes used to store the map in memory
81
81
  };
82
82
 
83
- struct __attribute__((__packed__)) Bucket {
83
+ #pragma pack(push, 1)
84
+ struct Bucket {
84
85
  Key key;
85
86
  uint16_t type;
86
87
  uint64_t data;
@@ -88,6 +89,7 @@ class MapBuffer {
88
89
  Bucket(Key key, uint16_t type, uint64_t data)
89
90
  : key(key), type(type), data(data) {}
90
91
  };
92
+ #pragma pack(pop)
91
93
 
92
94
  static_assert(sizeof(Header) == 8, "MapBuffer header size is incorrect.");
93
95
  static_assert(sizeof(Bucket) == 12, "MapBuffer bucket size is incorrect.");
@@ -124,7 +126,7 @@ class MapBuffer {
124
126
  // TODO T83483191: review this declaration
125
127
  MapBuffer getMapBuffer(MapBuffer::Key key) const;
126
128
 
127
- uint32_t size() const;
129
+ size_t size() const;
128
130
 
129
131
  uint8_t const *data() const;
130
132
 
@@ -140,7 +142,7 @@ class MapBuffer {
140
142
  // returns the relative offset of the first byte of dynamic data
141
143
  int32_t getDynamicDataOffset() const;
142
144
 
143
- uint32_t getKeyBucket(MapBuffer::Key key) const;
145
+ int32_t getKeyBucket(MapBuffer::Key key) const;
144
146
 
145
147
  friend ReadableMapBuffer;
146
148
  };
@@ -14,7 +14,7 @@ namespace facebook {
14
14
  namespace react {
15
15
 
16
16
  constexpr uint32_t INT_SIZE = sizeof(uint32_t);
17
- constexpr double DOUBLE_SIZE = sizeof(double);
17
+ constexpr uint32_t DOUBLE_SIZE = sizeof(double);
18
18
  constexpr uint32_t MAX_BUCKET_VALUE_SIZE = sizeof(uint64_t);
19
19
 
20
20
  MapBuffer MapBufferBuilder::EMPTY() {
@@ -23,6 +23,8 @@ MapBuffer MapBufferBuilder::EMPTY() {
23
23
 
24
24
  MapBufferBuilder::MapBufferBuilder(uint32_t initialSize) {
25
25
  buckets_.reserve(initialSize);
26
+ header_.count = 0;
27
+ header_.bufferSize = 0;
26
28
  }
27
29
 
28
30
  void MapBufferBuilder::storeKeyValue(
@@ -76,7 +78,7 @@ void MapBufferBuilder::putInt(MapBuffer::Key key, int32_t value) {
76
78
  }
77
79
 
78
80
  void MapBufferBuilder::putString(MapBuffer::Key key, std::string const &value) {
79
- int32_t strSize = value.size();
81
+ auto strSize = value.size();
80
82
  const char *strData = value.data();
81
83
 
82
84
  // format [length of string (int)] + [Array of Characters in the string]
@@ -94,7 +96,7 @@ void MapBufferBuilder::putString(MapBuffer::Key key, std::string const &value) {
94
96
  }
95
97
 
96
98
  void MapBufferBuilder::putMapBuffer(MapBuffer::Key key, MapBuffer const &map) {
97
- int32_t mapBufferSize = map.size();
99
+ auto mapBufferSize = map.size();
98
100
 
99
101
  auto offset = dynamicData_.size();
100
102
 
@@ -122,9 +124,9 @@ MapBuffer MapBufferBuilder::build() {
122
124
  // Create buffer: [header] + [key, values] + [dynamic data]
123
125
  auto bucketSize = buckets_.size() * sizeof(MapBuffer::Bucket);
124
126
  auto headerSize = sizeof(MapBuffer::Header);
125
- uint32_t bufferSize = headerSize + bucketSize + dynamicData_.size();
127
+ auto bufferSize = headerSize + bucketSize + dynamicData_.size();
126
128
 
127
- header_.bufferSize = bufferSize;
129
+ header_.bufferSize = static_cast<uint32_t>(bufferSize);
128
130
 
129
131
  if (needsSort_) {
130
132
  std::sort(buckets_.begin(), buckets_.end(), compareBuckets);
@@ -38,7 +38,7 @@ class MapBufferBuilder {
38
38
  MapBuffer build();
39
39
 
40
40
  private:
41
- MapBuffer::Header header_ = {.count = 0, .bufferSize = 0};
41
+ MapBuffer::Header header_;
42
42
 
43
43
  std::vector<MapBuffer::Bucket> buckets_{};
44
44
 
@@ -0,0 +1 @@
1
+ ae2bec5e1bf5eda6ab21a6bcbdcf2102a70c5a25
@@ -0,0 +1 @@
1
+ c096d1d793f4ea26a5d447a3c08c0d270b4d0eb5b3dc6cf7ef109c5b1b8d1288
@@ -0,0 +1 @@
1
+ 00ae26c7d0c06f960b2ba7bdc5e7942390b586ce0337c67dd1d08d4d243288db4730aa95b7551c174360674eeb4663d719a05cee0ececb6ee17d51260e22d17b
@@ -0,0 +1 @@
1
+ 500aa4ef242ba6f16ad72eb869b52b3bf0f4b1fc
@@ -0,0 +1 @@
1
+ e13bab7272f37036164179df6938995ef22619f6bfb7bbb1abb9214bb19ac423
@@ -0,0 +1 @@
1
+ d65d387d3b6e7652c96dd9f1f190e7643db811dbe90aa1d6fe143e50429854fe0d17e6672a2584e1b18fecbbb18727bf1abe0cfd5865f9b4c8213dc6a0f59447
@@ -3,7 +3,7 @@
3
3
  "component": {
4
4
  "group": "com.facebook.react",
5
5
  "module": "react-native",
6
- "version": "0.68.0-rc.1",
6
+ "version": "0.68.0-rc.2",
7
7
  "attributes": {
8
8
  "org.gradle.status": "release"
9
9
  }
@@ -131,13 +131,13 @@
131
131
  ],
132
132
  "files": [
133
133
  {
134
- "name": "react-native-0.68.0-rc.1.aar",
135
- "url": "react-native-0.68.0-rc.1.aar",
136
- "size": 16395276,
137
- "sha512": "2959cdc03a904f7f6845c88d017432592a04c96283018287625735536ea92cef4fe29393809c5b7e63fdb13097c4b8fbaf4ea22c4cfab99a1a9dc13bedd62d8f",
138
- "sha256": "6073f03f09bda95a8b83931de5e7f046bda458296fa3c9760454205c2e353957",
139
- "sha1": "115c2ad91875cab758d40483cfb0aba6c6eff212",
140
- "md5": "52df61c91e6e1dc484b6f7041da9ce3e"
134
+ "name": "react-native-0.68.0-rc.2.aar",
135
+ "url": "react-native-0.68.0-rc.2.aar",
136
+ "size": 16395396,
137
+ "sha512": "d65d387d3b6e7652c96dd9f1f190e7643db811dbe90aa1d6fe143e50429854fe0d17e6672a2584e1b18fecbbb18727bf1abe0cfd5865f9b4c8213dc6a0f59447",
138
+ "sha256": "e13bab7272f37036164179df6938995ef22619f6bfb7bbb1abb9214bb19ac423",
139
+ "sha1": "500aa4ef242ba6f16ad72eb869b52b3bf0f4b1fc",
140
+ "md5": "360a029ccfcc97c4802d2b2fdf34f2be"
141
141
  }
142
142
  ]
143
143
  },
@@ -258,13 +258,13 @@
258
258
  ],
259
259
  "files": [
260
260
  {
261
- "name": "react-native-0.68.0-rc.1.aar",
262
- "url": "react-native-0.68.0-rc.1.aar",
263
- "size": 16395276,
264
- "sha512": "2959cdc03a904f7f6845c88d017432592a04c96283018287625735536ea92cef4fe29393809c5b7e63fdb13097c4b8fbaf4ea22c4cfab99a1a9dc13bedd62d8f",
265
- "sha256": "6073f03f09bda95a8b83931de5e7f046bda458296fa3c9760454205c2e353957",
266
- "sha1": "115c2ad91875cab758d40483cfb0aba6c6eff212",
267
- "md5": "52df61c91e6e1dc484b6f7041da9ce3e"
261
+ "name": "react-native-0.68.0-rc.2.aar",
262
+ "url": "react-native-0.68.0-rc.2.aar",
263
+ "size": 16395396,
264
+ "sha512": "d65d387d3b6e7652c96dd9f1f190e7643db811dbe90aa1d6fe143e50429854fe0d17e6672a2584e1b18fecbbb18727bf1abe0cfd5865f9b4c8213dc6a0f59447",
265
+ "sha256": "e13bab7272f37036164179df6938995ef22619f6bfb7bbb1abb9214bb19ac423",
266
+ "sha1": "500aa4ef242ba6f16ad72eb869b52b3bf0f4b1fc",
267
+ "md5": "360a029ccfcc97c4802d2b2fdf34f2be"
268
268
  }
269
269
  ]
270
270
  }
@@ -0,0 +1 @@
1
+ 1a4a5b5dc0461e88fe31aa85a8bbea18f80c535a
@@ -0,0 +1 @@
1
+ 2a535b5797f1c56703cef6c9ef54f0e435e2a4bb0364f5856e82d758adfab7fe
@@ -0,0 +1 @@
1
+ 6e57c57369e5d91f713251c6518c4544d6affc2e7b04edb719deea0d709eb6837c8d0b07d8e769dcf58d0b86662b73446539dda916077c5b2bd2156617adf645
@@ -9,7 +9,7 @@
9
9
  <modelVersion>4.0.0</modelVersion>
10
10
  <groupId>com.facebook.react</groupId>
11
11
  <artifactId>react-native</artifactId>
12
- <version>0.68.0-rc.1</version>
12
+ <version>0.68.0-rc.2</version>
13
13
  <packaging>aar</packaging>
14
14
  <name>ReactNative</name>
15
15
  <description>A framework for building native apps with React</description>
@@ -0,0 +1 @@
1
+ 081b8d301dcfe2c58d3322dea142fc39f2529252
@@ -0,0 +1 @@
1
+ 0cf47303bbf93075c28dfd284b652b43e722d02160dc68889a3fca2ca3d8098d
@@ -0,0 +1 @@
1
+ 08995052484f3ac0d8c386a974d2179a055a941bf4f9200cf4c5bade07428db63c1232815dbaed23399770be34c5d8b9960eae294a3b496875441edc8b99a14b
@@ -3,11 +3,11 @@
3
3
  <groupId>com.facebook.react</groupId>
4
4
  <artifactId>react-native</artifactId>
5
5
  <versioning>
6
- <latest>0.68.0-rc.1</latest>
7
- <release>0.68.0-rc.1</release>
6
+ <latest>0.68.0-rc.2</latest>
7
+ <release>0.68.0-rc.2</release>
8
8
  <versions>
9
- <version>0.68.0-rc.1</version>
9
+ <version>0.68.0-rc.2</version>
10
10
  </versions>
11
- <lastUpdated>20220203174340</lastUpdated>
11
+ <lastUpdated>20220224173052</lastUpdated>
12
12
  </versioning>
13
13
  </metadata>
@@ -1 +1 @@
1
- aa457a3e7ea2c6e4f0b8f6a08958c8ff
1
+ 3b19734776929fa5018cb9ea29a72206
@@ -1 +1 @@
1
- 5ceb80dd1d92fcdf0d07bdd822f5ba9f539eb7ef
1
+ df094a38c2f4a6287fc6fbe38b0f295d596f22f3
@@ -1 +1 @@
1
- 0bd0710cd56264137900969f9ed30ea4c4f8a18eee068844a9fa3843e11b03b6
1
+ 5de8853cc407555e54e74f3bacfa5c26f34adab6d5b480e2da7e109405fc6227
@@ -1 +1 @@
1
- 70ade999243740c2e1f9494292a1aa855813555ff0b8428f638b13771d32ed6c6b842993f0d970498d5427b04f18ba9a956e9f73bffe979703ddbd3a11696f34
1
+ fa850e13d54b106ce4f6c32cd08493f703f3e231a264079e5f2dbf307229c49a39d03bd1f252770c9db1a34c4db625e180ee0f10c842036bcec50bd15ff41a38
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native",
3
- "version": "0.68.0-rc.1",
3
+ "version": "0.68.0-rc.2",
4
4
  "bin": "./cli.js",
5
5
  "description": "A framework for building native apps using React",
6
6
  "license": "MIT",
@@ -87,7 +87,7 @@
87
87
  },
88
88
  "dependencies": {
89
89
  "@jest/create-cache-key-function": "^27.0.1",
90
- "@react-native-community/cli": "^7.0.1",
90
+ "@react-native-community/cli": "^7.0.3",
91
91
  "@react-native-community/cli-platform-android": "^7.0.1",
92
92
  "@react-native-community/cli-platform-ios": "^7.0.1",
93
93
  "@react-native/assets": "1.0.0",
@@ -108,6 +108,7 @@
108
108
  "pretty-format": "^26.5.2",
109
109
  "promise": "^8.0.3",
110
110
  "react-devtools-core": "^4.23.0",
111
+ "react-native-gradle-plugin": "^0.0.5",
111
112
  "react-refresh": "^0.4.0",
112
113
  "react-shallow-renderer": "16.14.1",
113
114
  "regenerator-runtime": "^0.13.2",
package/react.gradle CHANGED
@@ -6,6 +6,7 @@
6
6
  */
7
7
 
8
8
  import org.apache.tools.ant.taskdefs.condition.Os
9
+ import org.gradle.internal.jvm.Jvm
9
10
 
10
11
  def config = project.hasProperty("react") ? project.react : [:];
11
12
 
@@ -129,6 +130,19 @@ android {
129
130
  }
130
131
  }
131
132
 
133
+ def jvmVersion = Jvm.current().javaVersion.majorVersion
134
+ if (jvmVersion.toInteger() <= 8) {
135
+ println "\n\n\n"
136
+ println "**************************************************************************************************************"
137
+ println "\n\n"
138
+ println "ERROR: requires JDK11 or higher."
139
+ println "Incompatible major version detected: '" + jvmVersion + "'"
140
+ println "\n\n"
141
+ println "**************************************************************************************************************"
142
+ println "\n\n\n"
143
+ System.exit(1)
144
+ }
145
+
132
146
  afterEvaluate {
133
147
  def isAndroidLibrary = plugins.hasPlugin("com.android.library")
134
148
  def variants = isAndroidLibrary ? android.libraryVariants : android.applicationVariants
@@ -3,7 +3,7 @@ GEM
3
3
  specs:
4
4
  CFPropertyList (3.0.5)
5
5
  rexml
6
- activesupport (6.1.4.4)
6
+ activesupport (6.1.4.6)
7
7
  concurrent-ruby (~> 1.0, >= 1.0.2)
8
8
  i18n (>= 1.6, < 2)
9
9
  minitest (>= 5.1)
@@ -63,7 +63,7 @@ GEM
63
63
  fuzzy_match (2.0.4)
64
64
  gh_inspector (1.1.3)
65
65
  httpclient (2.8.3)
66
- i18n (1.9.1)
66
+ i18n (1.10.0)
67
67
  concurrent-ruby (~> 1.0)
68
68
  json (2.6.1)
69
69
  minitest (5.15.0)
@@ -11,6 +11,8 @@ node_modules/react-native/Libraries/polyfills/.*
11
11
  ; Flow doesn't support platforms
12
12
  .*/Libraries/Utilities/LoadingView.js
13
13
 
14
+ .*/node_modules/resolve/test/resolver/malformed_package_json/package\.json$
15
+
14
16
  [untyped]
15
17
  .*/node_modules/@react-native-community/cli/.*/.*
16
18
 
@@ -238,14 +238,8 @@ android {
238
238
  dependencies {
239
239
  implementation fileTree(dir: "libs", include: ["*.jar"])
240
240
 
241
- // If new architecture is enabled, we let you build RN from source
242
- // Otherwise we fallback to a prebuilt .aar bundled in the NPM package.
243
- if (isNewArchitectureEnabled()) {
244
- implementation project(":ReactAndroid")
245
- } else {
246
- //noinspection GradleDynamicVersion
247
- implementation "com.facebook.react:react-native:+" // From node_modules
248
- }
241
+ //noinspection GradleDynamicVersion
242
+ implementation "com.facebook.react:react-native:+" // From node_modules
249
243
 
250
244
  implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.0.0"
251
245
 
@@ -271,6 +265,18 @@ dependencies {
271
265
  }
272
266
  }
273
267
 
268
+ if (isNewArchitectureEnabled()) {
269
+ // If new architecture is enabled, we let you build RN from source
270
+ // Otherwise we fallback to a prebuilt .aar bundled in the NPM package.
271
+ // This will be applied to all the imported transtitive dependency.
272
+ configurations.all {
273
+ resolutionStrategy.dependencySubstitution {
274
+ substitute(module("com.facebook.react:react-native"))
275
+ .using(project(":ReactAndroid")).because("On New Architecture we're building React Native from source")
276
+ }
277
+ }
278
+ }
279
+
274
280
  // Run this once to be able to run the application with BUCK
275
281
  // puts all compile dependencies into folder libs for BUCK to use
276
282
  task copyDownloadableDepsToLibs(type: Copy) {
@@ -11,7 +11,7 @@
11
11
  },
12
12
  "dependencies": {
13
13
  "react": "17.0.2",
14
- "react-native": "0.68.0-rc.1"
14
+ "react-native": "0.68.0-rc.2"
15
15
  },
16
16
  "devDependencies": {
17
17
  "@babel/core": "^7.12.9",
@@ -21,13 +21,9 @@
21
21
  "eslint": "^7.32.0",
22
22
  "jest": "^26.6.3",
23
23
  "metro-react-native-babel-preset": "^0.67.0",
24
- "react-native-gradle-plugin": "^0.0.4",
25
24
  "react-test-renderer": "17.0.2"
26
25
  },
27
26
  "jest": {
28
27
  "preset": "react-native"
29
- },
30
- "codegenConfig": {
31
- "libraries": []
32
28
  }
33
29
  }
@@ -1 +0,0 @@
1
- 35b5dcb1b636cb471770dd4d06d1ed2bd1c434af
@@ -1 +0,0 @@
1
- 613636cf61676a572ea38f4600557d16ce59fe09fc7c7b12d4007b0e7eaaff51
@@ -1 +0,0 @@
1
- 6f4da966cc26a8cb950b05598eeb63fc493137129392812c7ce57e52bf72d77ab8b5a8cd397d6e7c976384511a452b96a40c9347eda8d090126cc6ba03e02dbe
@@ -1 +0,0 @@
1
- 52df61c91e6e1dc484b6f7041da9ce3e
@@ -1 +0,0 @@
1
- 115c2ad91875cab758d40483cfb0aba6c6eff212
@@ -1 +0,0 @@
1
- 6073f03f09bda95a8b83931de5e7f046bda458296fa3c9760454205c2e353957
@@ -1 +0,0 @@
1
- 2959cdc03a904f7f6845c88d017432592a04c96283018287625735536ea92cef4fe29393809c5b7e63fdb13097c4b8fbaf4ea22c4cfab99a1a9dc13bedd62d8f
@@ -1 +0,0 @@
1
- 6886c8f743c45d55423cbbeb0fe8ac9481894768
@@ -1 +0,0 @@
1
- a5d9376d767535ebc2afe1835a1b66a96c4a828b3667025274dca6bf59ca1f7b
@@ -1 +0,0 @@
1
- 52eead21d799a29f90910b18862812c65e19f8846f9595b1451cbd364ba6ea6ea9f353ad18a58f63980e8842c06a7c29c169c78e6fddd573969fb7c3eeca5a3e
@@ -1 +0,0 @@
1
- 0fa24512d15617b0f6065614e9ec6c45
@@ -1 +0,0 @@
1
- 9660bcfd32f296822be3412c92337da5dc69d391
@@ -1 +0,0 @@
1
- f3e5f7d4e0627270eeaa82f3259a719b056424a7f94131b7982b3e3fba43718c
@@ -1 +0,0 @@
1
- f5cb731868236d2fab67bfe79ae21bafd97fdc0f822a3ac52d1c9d207a4087f75a39c58892c6f960e1b61f8910a00733abe90e0afebae600685b7e445b5289a2