react-native 0.67.0-rc.2 → 0.67.0-rc.6
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.
- package/Libraries/Components/Keyboard/Keyboard.js +2 -2
- package/Libraries/Core/ReactNativeVersion.js +1 -1
- package/React/Base/RCTVersion.m +1 -1
- package/React/FBReactNativeSpec/FBReactNativeSpec/FBReactNativeSpec-generated.mm +2096 -0
- package/React/FBReactNativeSpec/FBReactNativeSpec/FBReactNativeSpec.h +2554 -0
- package/React/Modules/RCTI18nUtil.h +6 -14
- package/React/Modules/RCTI18nUtil.m +47 -1
- package/ReactAndroid/gradle.properties +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.java +1 -1
- package/ReactCommon/cxxreact/ReactNativeVersion.h +1 -1
- package/android/com/facebook/react/react-native/{0.67.0-rc.2/react-native-0.67.0-rc.2.aar → 0.67.0-rc.6/react-native-0.67.0-rc.6.aar} +0 -0
- package/android/com/facebook/react/react-native/0.67.0-rc.6/react-native-0.67.0-rc.6.aar.md5 +1 -0
- package/android/com/facebook/react/react-native/0.67.0-rc.6/react-native-0.67.0-rc.6.aar.sha1 +1 -0
- package/android/com/facebook/react/react-native/0.67.0-rc.6/react-native-0.67.0-rc.6.aar.sha256 +1 -0
- package/android/com/facebook/react/react-native/0.67.0-rc.6/react-native-0.67.0-rc.6.aar.sha512 +1 -0
- package/android/com/facebook/react/react-native/{0.67.0-rc.2/react-native-0.67.0-rc.2.module → 0.67.0-rc.6/react-native-0.67.0-rc.6.module} +13 -13
- package/android/com/facebook/react/react-native/0.67.0-rc.6/react-native-0.67.0-rc.6.module.md5 +1 -0
- package/android/com/facebook/react/react-native/0.67.0-rc.6/react-native-0.67.0-rc.6.module.sha1 +1 -0
- package/android/com/facebook/react/react-native/0.67.0-rc.6/react-native-0.67.0-rc.6.module.sha256 +1 -0
- package/android/com/facebook/react/react-native/0.67.0-rc.6/react-native-0.67.0-rc.6.module.sha512 +1 -0
- package/android/com/facebook/react/react-native/{0.67.0-rc.2/react-native-0.67.0-rc.2.pom → 0.67.0-rc.6/react-native-0.67.0-rc.6.pom} +1 -1
- package/android/com/facebook/react/react-native/0.67.0-rc.6/react-native-0.67.0-rc.6.pom.md5 +1 -0
- package/android/com/facebook/react/react-native/0.67.0-rc.6/react-native-0.67.0-rc.6.pom.sha1 +1 -0
- package/android/com/facebook/react/react-native/0.67.0-rc.6/react-native-0.67.0-rc.6.pom.sha256 +1 -0
- package/android/com/facebook/react/react-native/0.67.0-rc.6/react-native-0.67.0-rc.6.pom.sha512 +1 -0
- package/android/com/facebook/react/react-native/maven-metadata.xml +4 -4
- package/android/com/facebook/react/react-native/maven-metadata.xml.md5 +1 -1
- package/android/com/facebook/react/react-native/maven-metadata.xml.sha1 +1 -1
- package/android/com/facebook/react/react-native/maven-metadata.xml.sha256 +1 -1
- package/android/com/facebook/react/react-native/maven-metadata.xml.sha512 +1 -1
- package/jest/preprocessor.js +7 -75
- package/package.json +1 -1
- package/scripts/react-native-xcode.sh +5 -5
- package/scripts/react_native_pods.rb +8 -3
- package/template/Gemfile.lock +3 -3
- package/template/package.json +1 -1
- package/android/com/facebook/react/react-native/0.67.0-rc.2/react-native-0.67.0-rc.2.aar.md5 +0 -1
- package/android/com/facebook/react/react-native/0.67.0-rc.2/react-native-0.67.0-rc.2.aar.sha1 +0 -1
- package/android/com/facebook/react/react-native/0.67.0-rc.2/react-native-0.67.0-rc.2.aar.sha256 +0 -1
- package/android/com/facebook/react/react-native/0.67.0-rc.2/react-native-0.67.0-rc.2.aar.sha512 +0 -1
- package/android/com/facebook/react/react-native/0.67.0-rc.2/react-native-0.67.0-rc.2.module.md5 +0 -1
- package/android/com/facebook/react/react-native/0.67.0-rc.2/react-native-0.67.0-rc.2.module.sha1 +0 -1
- package/android/com/facebook/react/react-native/0.67.0-rc.2/react-native-0.67.0-rc.2.module.sha256 +0 -1
- package/android/com/facebook/react/react-native/0.67.0-rc.2/react-native-0.67.0-rc.2.module.sha512 +0 -1
- package/android/com/facebook/react/react-native/0.67.0-rc.2/react-native-0.67.0-rc.2.pom.md5 +0 -1
- package/android/com/facebook/react/react-native/0.67.0-rc.2/react-native-0.67.0-rc.2.pom.sha1 +0 -1
- package/android/com/facebook/react/react-native/0.67.0-rc.2/react-native-0.67.0-rc.2.pom.sha256 +0 -1
- package/android/com/facebook/react/react-native/0.67.0-rc.2/react-native-0.67.0-rc.2.pom.sha512 +0 -1
|
@@ -18,19 +18,11 @@
|
|
|
18
18
|
+ (instancetype)sharedInstance;
|
|
19
19
|
|
|
20
20
|
- (BOOL)isRTL;
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* Could be used to test RTL layout with English
|
|
30
|
-
* Used for development and testing purpose
|
|
31
|
-
*/
|
|
32
|
-
@property (atomic, setter=forceRTL:) BOOL isRTLForced;
|
|
33
|
-
|
|
34
|
-
@property (atomic, setter=swapLeftAndRightInRTL:) BOOL doLeftAndRightSwapInRTL;
|
|
21
|
+
- (BOOL)isRTLAllowed;
|
|
22
|
+
- (void)allowRTL:(BOOL)value;
|
|
23
|
+
- (BOOL)isRTLForced;
|
|
24
|
+
- (void)forceRTL:(BOOL)value;
|
|
25
|
+
- (BOOL)doLeftAndRightSwapInRTL;
|
|
26
|
+
- (void)swapLeftAndRightInRTL:(BOOL)value;
|
|
35
27
|
|
|
36
28
|
@end
|
|
@@ -18,7 +18,6 @@
|
|
|
18
18
|
dispatch_once(&onceToken, ^{
|
|
19
19
|
sharedInstance = [self new];
|
|
20
20
|
[sharedInstance swapLeftAndRightInRTL:true];
|
|
21
|
-
[sharedInstance allowRTL:true];
|
|
22
21
|
});
|
|
23
22
|
|
|
24
23
|
return sharedInstance;
|
|
@@ -41,6 +40,53 @@
|
|
|
41
40
|
return NO;
|
|
42
41
|
}
|
|
43
42
|
|
|
43
|
+
/**
|
|
44
|
+
* Should be used very early during app start up
|
|
45
|
+
* Before the bridge is initialized
|
|
46
|
+
* @return whether the app allows RTL layout, default is true
|
|
47
|
+
*/
|
|
48
|
+
- (BOOL)isRTLAllowed
|
|
49
|
+
{
|
|
50
|
+
NSNumber *value = [[NSUserDefaults standardUserDefaults] objectForKey:@"RCTI18nUtil_allowRTL"];
|
|
51
|
+
if (value == nil) {
|
|
52
|
+
return YES;
|
|
53
|
+
}
|
|
54
|
+
return [value boolValue];
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
- (void)allowRTL:(BOOL)rtlStatus
|
|
58
|
+
{
|
|
59
|
+
[[NSUserDefaults standardUserDefaults] setBool:rtlStatus forKey:@"RCTI18nUtil_allowRTL"];
|
|
60
|
+
[[NSUserDefaults standardUserDefaults] synchronize];
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* Could be used to test RTL layout with English
|
|
65
|
+
* Used for development and testing purpose
|
|
66
|
+
*/
|
|
67
|
+
- (BOOL)isRTLForced
|
|
68
|
+
{
|
|
69
|
+
BOOL rtlStatus = [[NSUserDefaults standardUserDefaults] boolForKey:@"RCTI18nUtil_forceRTL"];
|
|
70
|
+
return rtlStatus;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
- (void)forceRTL:(BOOL)rtlStatus
|
|
74
|
+
{
|
|
75
|
+
[[NSUserDefaults standardUserDefaults] setBool:rtlStatus forKey:@"RCTI18nUtil_forceRTL"];
|
|
76
|
+
[[NSUserDefaults standardUserDefaults] synchronize];
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
- (BOOL)doLeftAndRightSwapInRTL
|
|
80
|
+
{
|
|
81
|
+
return [[NSUserDefaults standardUserDefaults] boolForKey:@"RCTI18nUtil_makeRTLFlipLeftAndRightStyles"];
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
- (void)swapLeftAndRightInRTL:(BOOL)value
|
|
85
|
+
{
|
|
86
|
+
[[NSUserDefaults standardUserDefaults] setBool:value forKey:@"RCTI18nUtil_makeRTLFlipLeftAndRightStyles"];
|
|
87
|
+
[[NSUserDefaults standardUserDefaults] synchronize];
|
|
88
|
+
}
|
|
89
|
+
|
|
44
90
|
// Check if the current device language is RTL
|
|
45
91
|
- (BOOL)isDevicePreferredLanguageRTL
|
|
46
92
|
{
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
f3fe94d5a454081a3359afe7aa49e405
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
ca91faab9a20134935d522b3111a853502077879
|
package/android/com/facebook/react/react-native/0.67.0-rc.6/react-native-0.67.0-rc.6.aar.sha256
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
fb58e5004af9542f5fa65978eb51c91e2217f3ecef075f9a8ca48d41ac7af655
|
package/android/com/facebook/react/react-native/0.67.0-rc.6/react-native-0.67.0-rc.6.aar.sha512
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
87bc12cbdaa3c75d2e49a5bfd790915cc3916a5a2e570a65a4f032719731a7a76f90b79874c7d51df98beb0a0eb74874f6a8445a8d840613324af48f15ae4f7e
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"component": {
|
|
4
4
|
"group": "com.facebook.react",
|
|
5
5
|
"module": "react-native",
|
|
6
|
-
"version": "0.67.0-rc.
|
|
6
|
+
"version": "0.67.0-rc.6",
|
|
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.67.0-rc.
|
|
135
|
-
"url": "react-native-0.67.0-rc.
|
|
134
|
+
"name": "react-native-0.67.0-rc.6.aar",
|
|
135
|
+
"url": "react-native-0.67.0-rc.6.aar",
|
|
136
136
|
"size": 17805009,
|
|
137
|
-
"sha512": "
|
|
138
|
-
"sha256": "
|
|
139
|
-
"sha1": "
|
|
140
|
-
"md5": "
|
|
137
|
+
"sha512": "87bc12cbdaa3c75d2e49a5bfd790915cc3916a5a2e570a65a4f032719731a7a76f90b79874c7d51df98beb0a0eb74874f6a8445a8d840613324af48f15ae4f7e",
|
|
138
|
+
"sha256": "fb58e5004af9542f5fa65978eb51c91e2217f3ecef075f9a8ca48d41ac7af655",
|
|
139
|
+
"sha1": "ca91faab9a20134935d522b3111a853502077879",
|
|
140
|
+
"md5": "f3fe94d5a454081a3359afe7aa49e405"
|
|
141
141
|
}
|
|
142
142
|
]
|
|
143
143
|
},
|
|
@@ -258,13 +258,13 @@
|
|
|
258
258
|
],
|
|
259
259
|
"files": [
|
|
260
260
|
{
|
|
261
|
-
"name": "react-native-0.67.0-rc.
|
|
262
|
-
"url": "react-native-0.67.0-rc.
|
|
261
|
+
"name": "react-native-0.67.0-rc.6.aar",
|
|
262
|
+
"url": "react-native-0.67.0-rc.6.aar",
|
|
263
263
|
"size": 17805009,
|
|
264
|
-
"sha512": "
|
|
265
|
-
"sha256": "
|
|
266
|
-
"sha1": "
|
|
267
|
-
"md5": "
|
|
264
|
+
"sha512": "87bc12cbdaa3c75d2e49a5bfd790915cc3916a5a2e570a65a4f032719731a7a76f90b79874c7d51df98beb0a0eb74874f6a8445a8d840613324af48f15ae4f7e",
|
|
265
|
+
"sha256": "fb58e5004af9542f5fa65978eb51c91e2217f3ecef075f9a8ca48d41ac7af655",
|
|
266
|
+
"sha1": "ca91faab9a20134935d522b3111a853502077879",
|
|
267
|
+
"md5": "f3fe94d5a454081a3359afe7aa49e405"
|
|
268
268
|
}
|
|
269
269
|
]
|
|
270
270
|
}
|
package/android/com/facebook/react/react-native/0.67.0-rc.6/react-native-0.67.0-rc.6.module.md5
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
75bf2353e500f8597cadca7387acf60b
|
package/android/com/facebook/react/react-native/0.67.0-rc.6/react-native-0.67.0-rc.6.module.sha1
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
cb0a9990a8e2864c9f0fa6893d3f315a3fd750bc
|
package/android/com/facebook/react/react-native/0.67.0-rc.6/react-native-0.67.0-rc.6.module.sha256
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
f5e8dd04c36593eb21fda4a37c5a25bb1552d78a017b11d929c573e8c1752f8e
|
package/android/com/facebook/react/react-native/0.67.0-rc.6/react-native-0.67.0-rc.6.module.sha512
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
0bf37d831191424f1f6d9d9c48adc22911bd94730406271bf36a778f491d47a2dc694ed7b2636dba05683d9c661e39d807e4c05d4db372ed78e0d99ebebd811b
|
|
@@ -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.67.0-rc.
|
|
12
|
+
<version>0.67.0-rc.6</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
|
+
2355cfe78c53cacdc03969d7711b0331
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
f893613672e85b4c010619a06c4e65f36ce9ea0a
|
package/android/com/facebook/react/react-native/0.67.0-rc.6/react-native-0.67.0-rc.6.pom.sha256
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
bd4d2b6dd7f12341bc6b61a8affa9cd7cf05ef39d7fb9608d1ece5713a8a527e
|
package/android/com/facebook/react/react-native/0.67.0-rc.6/react-native-0.67.0-rc.6.pom.sha512
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
eeaa257ded7f28dd8991bd11111a58c03a08af4d1ee7190f3dd7e085892403dedcedb7cfed77b94650bffe00ffea70f856ad661d89684e922a8835eea01f305a
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
<groupId>com.facebook.react</groupId>
|
|
4
4
|
<artifactId>react-native</artifactId>
|
|
5
5
|
<versioning>
|
|
6
|
-
<latest>0.67.0-rc.
|
|
7
|
-
<release>0.67.0-rc.
|
|
6
|
+
<latest>0.67.0-rc.6</latest>
|
|
7
|
+
<release>0.67.0-rc.6</release>
|
|
8
8
|
<versions>
|
|
9
|
-
<version>0.67.0-rc.
|
|
9
|
+
<version>0.67.0-rc.6</version>
|
|
10
10
|
</versions>
|
|
11
|
-
<lastUpdated>
|
|
11
|
+
<lastUpdated>20211214194225</lastUpdated>
|
|
12
12
|
</versioning>
|
|
13
13
|
</metadata>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
15e1bcbf82e0ee597a18db605fba7bfc
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
a3406e4f3333348aa6f63689758d7544b1ebcfef
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
2ab4420a0ad63efd6f71675e673e85c16191b7ee24ce245b1d2d621cab97fa6b
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
6acf01e53b80c7fa91a1b10b07a9dd2601ba3ffa405a868d0e48076e3d9a7fe094805e564cb650fca469b8ac58b03eade958c26f6470b48b33702d192110cf26
|
package/jest/preprocessor.js
CHANGED
|
@@ -13,42 +13,10 @@
|
|
|
13
13
|
'use strict';
|
|
14
14
|
|
|
15
15
|
const babelRegisterOnly = require('metro-babel-register');
|
|
16
|
-
const nullthrows = require('nullthrows');
|
|
17
16
|
const createCacheKeyFunction = require('@jest/create-cache-key-function')
|
|
18
17
|
.default;
|
|
19
|
-
const t = require('@babel/types');
|
|
20
|
-
const {statements} = require('@babel/template').default;
|
|
21
18
|
|
|
22
|
-
const
|
|
23
|
-
const importAll = '__importAll__';
|
|
24
|
-
|
|
25
|
-
// prelude
|
|
26
|
-
const importPrelude = statements(`
|
|
27
|
-
function ${importDefault}(moduleId) {
|
|
28
|
-
const exports = require(moduleId);
|
|
29
|
-
|
|
30
|
-
if (exports && exports.__esModule) {
|
|
31
|
-
return exports.default;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
return exports;
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
function ${importAll}(moduleId) {
|
|
38
|
-
const exports = require(moduleId);
|
|
39
|
-
|
|
40
|
-
if (exports && exports.__esModule) {
|
|
41
|
-
return exports;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
return Object.assign({}, exports, {default: exports});
|
|
45
|
-
};
|
|
46
|
-
`);
|
|
47
|
-
|
|
48
|
-
const {
|
|
49
|
-
transformSync: babelTransformSync,
|
|
50
|
-
transformFromAstSync: babelTransformFromAstSync,
|
|
51
|
-
} = require('@babel/core');
|
|
19
|
+
const {transformSync: babelTransformSync} = require('@babel/core');
|
|
52
20
|
const generate = require('@babel/generator').default;
|
|
53
21
|
|
|
54
22
|
const nodeFiles = new RegExp(
|
|
@@ -73,13 +41,13 @@ module.exports = {
|
|
|
73
41
|
}).code;
|
|
74
42
|
}
|
|
75
43
|
|
|
76
|
-
|
|
44
|
+
const {ast} = transformer.transform({
|
|
77
45
|
filename: file,
|
|
78
46
|
options: {
|
|
79
47
|
ast: true, // needed for open source (?) https://github.com/facebook/react-native/commit/f8d6b97140cffe8d18b2558f94570c8d1b410d5c#r28647044
|
|
80
48
|
dev: true,
|
|
81
49
|
enableBabelRuntime: false,
|
|
82
|
-
experimentalImportSupport:
|
|
50
|
+
experimentalImportSupport: false,
|
|
83
51
|
globalPrefix: '',
|
|
84
52
|
hot: false,
|
|
85
53
|
inlineRequires: true,
|
|
@@ -111,6 +79,10 @@ module.exports = {
|
|
|
111
79
|
[require('@babel/plugin-transform-regenerator')],
|
|
112
80
|
[require('@babel/plugin-transform-sticky-regex')],
|
|
113
81
|
[require('@babel/plugin-transform-unicode-regex')],
|
|
82
|
+
[
|
|
83
|
+
require('@babel/plugin-transform-modules-commonjs'),
|
|
84
|
+
{strict: false, allowTopLevelThis: true},
|
|
85
|
+
],
|
|
114
86
|
[require('@babel/plugin-transform-classes')],
|
|
115
87
|
[require('@babel/plugin-transform-arrow-functions')],
|
|
116
88
|
[require('@babel/plugin-transform-spread')],
|
|
@@ -127,46 +99,6 @@ module.exports = {
|
|
|
127
99
|
],
|
|
128
100
|
});
|
|
129
101
|
|
|
130
|
-
// We're not using @babel/plugin-transform-modules-commonjs so
|
|
131
|
-
// we need to add 'use strict' manually
|
|
132
|
-
const directives = ast.program.directives;
|
|
133
|
-
|
|
134
|
-
if (
|
|
135
|
-
ast.program.sourceType === 'module' &&
|
|
136
|
-
(directives == null ||
|
|
137
|
-
directives.findIndex(d => d.value.value === 'use strict') === -1)
|
|
138
|
-
) {
|
|
139
|
-
ast.program.directives = [
|
|
140
|
-
...(directives || []),
|
|
141
|
-
t.directive(t.directiveLiteral('use strict')),
|
|
142
|
-
];
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
// Postprocess the transformed module to handle ESM and inline requires.
|
|
146
|
-
// We need to do this in a separate pass to avoid issues tracking references.
|
|
147
|
-
const babelTransformResult = babelTransformFromAstSync(ast, src, {
|
|
148
|
-
ast: true,
|
|
149
|
-
retainLines: true,
|
|
150
|
-
plugins: [
|
|
151
|
-
[
|
|
152
|
-
require('metro-transform-plugins').importExportPlugin,
|
|
153
|
-
{importDefault, importAll},
|
|
154
|
-
],
|
|
155
|
-
[
|
|
156
|
-
require('babel-preset-fbjs/plugins/inline-requires.js'),
|
|
157
|
-
{inlineableCalls: [importDefault, importAll]},
|
|
158
|
-
],
|
|
159
|
-
],
|
|
160
|
-
sourceType: 'module',
|
|
161
|
-
});
|
|
162
|
-
|
|
163
|
-
ast = nullthrows(babelTransformResult.ast);
|
|
164
|
-
|
|
165
|
-
// Inject import helpers *after* running the inline-requires transform,
|
|
166
|
-
// because otherwise it will assume they are user code and bail out of
|
|
167
|
-
// inlining calls to them.
|
|
168
|
-
ast.program.body.unshift(...importPrelude());
|
|
169
|
-
|
|
170
102
|
return generate(
|
|
171
103
|
ast,
|
|
172
104
|
// $FlowFixMe[prop-missing] Error found when improving flow typing for libs
|
package/package.json
CHANGED
|
@@ -117,7 +117,7 @@ fi
|
|
|
117
117
|
|
|
118
118
|
BUNDLE_FILE="$CONFIGURATION_BUILD_DIR/main.jsbundle"
|
|
119
119
|
|
|
120
|
-
EXTRA_ARGS=
|
|
120
|
+
EXTRA_ARGS=
|
|
121
121
|
|
|
122
122
|
case "$PLATFORM_NAME" in
|
|
123
123
|
"macosx")
|
|
@@ -144,12 +144,12 @@ if [[ $EMIT_SOURCEMAP == true ]]; then
|
|
|
144
144
|
else
|
|
145
145
|
PACKAGER_SOURCEMAP_FILE="$SOURCEMAP_FILE"
|
|
146
146
|
fi
|
|
147
|
-
EXTRA_ARGS
|
|
147
|
+
EXTRA_ARGS="$EXTRA_ARGS --sourcemap-output $PACKAGER_SOURCEMAP_FILE"
|
|
148
148
|
fi
|
|
149
149
|
|
|
150
150
|
# Hermes doesn't require JS minification.
|
|
151
151
|
if [[ $USE_HERMES == true && $DEV == false ]]; then
|
|
152
|
-
EXTRA_ARGS
|
|
152
|
+
EXTRA_ARGS="$EXTRA_ARGS --minify false"
|
|
153
153
|
fi
|
|
154
154
|
|
|
155
155
|
"$NODE_BINARY" $NODE_ARGS "$CLI_PATH" $BUNDLE_COMMAND \
|
|
@@ -160,8 +160,8 @@ fi
|
|
|
160
160
|
--reset-cache \
|
|
161
161
|
--bundle-output "$BUNDLE_FILE" \
|
|
162
162
|
--assets-dest "$DEST" \
|
|
163
|
-
|
|
164
|
-
|
|
163
|
+
$EXTRA_ARGS \
|
|
164
|
+
$EXTRA_PACKAGER_ARGS
|
|
165
165
|
|
|
166
166
|
if [[ $USE_HERMES != true ]]; then
|
|
167
167
|
cp "$BUNDLE_FILE" "$DEST/"
|
|
@@ -380,13 +380,18 @@ def __apply_Xcode_12_5_M1_post_install_workaround(installer)
|
|
|
380
380
|
# The most reliable known workaround is to bump iOS deployment target to match react-native (iOS 11 now).
|
|
381
381
|
installer.pods_project.targets.each do |target|
|
|
382
382
|
target.build_configurations.each do |config|
|
|
383
|
-
|
|
383
|
+
# ensure IPHONEOS_DEPLOYMENT_TARGET is at least 11.0
|
|
384
|
+
deployment_target = config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'].to_f
|
|
385
|
+
should_upgrade = deployment_target < 11.0 && deployment_target != 0.0
|
|
386
|
+
if should_upgrade
|
|
387
|
+
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '11.0'
|
|
384
388
|
end
|
|
389
|
+
end
|
|
385
390
|
end
|
|
386
391
|
|
|
387
392
|
# But... doing so caused another issue in Flipper:
|
|
388
393
|
# "Time.h:52:17: error: typedef redefinition with different types"
|
|
389
|
-
# We need to make a patch to RCT-Folly -
|
|
394
|
+
# We need to make a patch to RCT-Folly - remove the `__IPHONE_OS_VERSION_MIN_REQUIRED` check.
|
|
390
395
|
# See https://github.com/facebook/flipper/issues/834 for more details.
|
|
391
|
-
`sed -i -e $'s/__IPHONE_10_0
|
|
396
|
+
`sed -i -e $'s/ && (__IPHONE_OS_VERSION_MIN_REQUIRED < __IPHONE_10_0)//' Pods/RCT-Folly/folly/portability/Time.h`
|
|
392
397
|
end
|
package/template/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
GEM
|
|
2
2
|
remote: https://rubygems.org/
|
|
3
3
|
specs:
|
|
4
|
-
CFPropertyList (3.0.
|
|
4
|
+
CFPropertyList (3.0.5)
|
|
5
5
|
rexml
|
|
6
6
|
activesupport (6.1.4.1)
|
|
7
7
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
|
@@ -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.8.
|
|
66
|
+
i18n (1.8.11)
|
|
67
67
|
concurrent-ruby (~> 1.0)
|
|
68
68
|
json (2.6.1)
|
|
69
69
|
minitest (5.14.4)
|
|
@@ -97,4 +97,4 @@ RUBY VERSION
|
|
|
97
97
|
ruby 2.7.4p191
|
|
98
98
|
|
|
99
99
|
BUNDLED WITH
|
|
100
|
-
2.2.
|
|
100
|
+
2.2.27
|
package/template/package.json
CHANGED
package/android/com/facebook/react/react-native/0.67.0-rc.2/react-native-0.67.0-rc.2.aar.md5
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
1330916884e54c0f6c884c632249c2c7
|
package/android/com/facebook/react/react-native/0.67.0-rc.2/react-native-0.67.0-rc.2.aar.sha1
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
15c1cfb8e4ff426780d4df9f25fe728803b3eea9
|
package/android/com/facebook/react/react-native/0.67.0-rc.2/react-native-0.67.0-rc.2.aar.sha256
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
04c66945c37af479e268a283ebff3c9fcc29d8db0dc8463f87e766ee5384aac9
|
package/android/com/facebook/react/react-native/0.67.0-rc.2/react-native-0.67.0-rc.2.aar.sha512
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
da7135ea7c6672765b9777d03619996523280e739b8663150e628dc510ffd66b438ee52bca56e0024f39aaa87193c0caf559b3ac8e426ccd7ad83f155473d1da
|
package/android/com/facebook/react/react-native/0.67.0-rc.2/react-native-0.67.0-rc.2.module.md5
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
efac193154160d4fe1ed7ba972ac0536
|
package/android/com/facebook/react/react-native/0.67.0-rc.2/react-native-0.67.0-rc.2.module.sha1
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
a095dd4317005847e01286018d92892071404c8e
|
package/android/com/facebook/react/react-native/0.67.0-rc.2/react-native-0.67.0-rc.2.module.sha256
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
89dfcf7c06c7b432842384c6ef28276a3d4a58a7ea75439f6527982e0427c6ec
|
package/android/com/facebook/react/react-native/0.67.0-rc.2/react-native-0.67.0-rc.2.module.sha512
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
a50419cd39d426cb0b8a9cac6453f981d1b8753b7a4d6c90b8a157e5dfba1b8cc02925234e3dd7ce58d7cbd591ca76708251402fe4ecf8a5c19f82a8e7e530bc
|
package/android/com/facebook/react/react-native/0.67.0-rc.2/react-native-0.67.0-rc.2.pom.md5
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
5ac15fb6dc1ff02b4217cad644d823e9
|
package/android/com/facebook/react/react-native/0.67.0-rc.2/react-native-0.67.0-rc.2.pom.sha1
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
04e50caecf7c6005fdd86eecc14f9eb4a9cc2a24
|
package/android/com/facebook/react/react-native/0.67.0-rc.2/react-native-0.67.0-rc.2.pom.sha256
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
9bc08e958e21d956c10045c8b9be8676c17ed285920db9170b90f28b85013fea
|
package/android/com/facebook/react/react-native/0.67.0-rc.2/react-native-0.67.0-rc.2.pom.sha512
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
eb4eea96bde32dc725014cf530b2bf36c6de4dc1d958bb2e87e9e260203e3281e9f76a5afa7298b034d2d81d5e340e9b156d7453e07d799f215deb3ee1a42a72
|