react-native 0.66.3 → 0.66.4
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/Core/ReactNativeVersion.js +1 -1
- package/React/Base/RCTVersion.m +1 -1
- 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.66.3/react-native-0.66.3.aar → 0.66.4/react-native-0.66.4.aar} +0 -0
- package/android/com/facebook/react/react-native/0.66.4/react-native-0.66.4.aar.md5 +1 -0
- package/android/com/facebook/react/react-native/0.66.4/react-native-0.66.4.aar.sha1 +1 -0
- package/android/com/facebook/react/react-native/0.66.4/react-native-0.66.4.aar.sha256 +1 -0
- package/android/com/facebook/react/react-native/0.66.4/react-native-0.66.4.aar.sha512 +1 -0
- package/android/com/facebook/react/react-native/{0.66.3/react-native-0.66.3.module → 0.66.4/react-native-0.66.4.module} +16 -16
- package/android/com/facebook/react/react-native/0.66.4/react-native-0.66.4.module.md5 +1 -0
- package/android/com/facebook/react/react-native/0.66.4/react-native-0.66.4.module.sha1 +1 -0
- package/android/com/facebook/react/react-native/0.66.4/react-native-0.66.4.module.sha256 +1 -0
- package/android/com/facebook/react/react-native/0.66.4/react-native-0.66.4.module.sha512 +1 -0
- package/android/com/facebook/react/react-native/{0.66.3/react-native-0.66.3.pom → 0.66.4/react-native-0.66.4.pom} +1 -1
- package/android/com/facebook/react/react-native/0.66.4/react-native-0.66.4.pom.md5 +1 -0
- package/android/com/facebook/react/react-native/0.66.4/react-native-0.66.4.pom.sha1 +1 -0
- package/android/com/facebook/react/react-native/0.66.4/react-native-0.66.4.pom.sha256 +1 -0
- package/android/com/facebook/react/react-native/0.66.4/react-native-0.66.4.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/package.json +1 -1
- package/scripts/react_native_pods.rb +7 -3
- package/template/package.json +1 -1
- package/android/com/facebook/react/react-native/0.66.3/react-native-0.66.3.aar.md5 +0 -1
- package/android/com/facebook/react/react-native/0.66.3/react-native-0.66.3.aar.sha1 +0 -1
- package/android/com/facebook/react/react-native/0.66.3/react-native-0.66.3.aar.sha256 +0 -1
- package/android/com/facebook/react/react-native/0.66.3/react-native-0.66.3.aar.sha512 +0 -1
- package/android/com/facebook/react/react-native/0.66.3/react-native-0.66.3.module.md5 +0 -1
- package/android/com/facebook/react/react-native/0.66.3/react-native-0.66.3.module.sha1 +0 -1
- package/android/com/facebook/react/react-native/0.66.3/react-native-0.66.3.module.sha256 +0 -1
- package/android/com/facebook/react/react-native/0.66.3/react-native-0.66.3.module.sha512 +0 -1
- package/android/com/facebook/react/react-native/0.66.3/react-native-0.66.3.pom.md5 +0 -1
- package/android/com/facebook/react/react-native/0.66.3/react-native-0.66.3.pom.sha1 +0 -1
- package/android/com/facebook/react/react-native/0.66.3/react-native-0.66.3.pom.sha256 +0 -1
- package/android/com/facebook/react/react-native/0.66.3/react-native-0.66.3.pom.sha512 +0 -1
package/React/Base/RCTVersion.m
CHANGED
|
@@ -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
|
+
e812e6358cbea21b00660c0c2cba01f9
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
673d65136b846a67305ea56685691a38b4890442
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
24bd7f5067d8254630b21465c4971c53ac959fcae6296555a7d03dcf503b38c1
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
8c82dddf79e73fb7df35e62b22b4c439651f1fc1501f968f9e34ead98a0fa7fbdbdc2588430a96d8f701d549ee0b92d467c2bdef8cd0f8e28558bba00f408ba5
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"component": {
|
|
4
4
|
"group": "com.facebook.react",
|
|
5
5
|
"module": "react-native",
|
|
6
|
-
"version": "0.66.
|
|
6
|
+
"version": "0.66.4",
|
|
7
7
|
"attributes": {
|
|
8
8
|
"org.gradle.status": "release"
|
|
9
9
|
}
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"createdBy": {
|
|
12
12
|
"gradle": {
|
|
13
13
|
"version": "6.9",
|
|
14
|
-
"buildId": "
|
|
14
|
+
"buildId": "rhkmqqvtxncldme6kwnaoxk3y4"
|
|
15
15
|
}
|
|
16
16
|
},
|
|
17
17
|
"variants": [
|
|
@@ -132,13 +132,13 @@
|
|
|
132
132
|
],
|
|
133
133
|
"files": [
|
|
134
134
|
{
|
|
135
|
-
"name": "react-native-0.66.
|
|
136
|
-
"url": "react-native-0.66.
|
|
137
|
-
"size":
|
|
138
|
-
"sha512": "
|
|
139
|
-
"sha256": "
|
|
140
|
-
"sha1": "
|
|
141
|
-
"md5": "
|
|
135
|
+
"name": "react-native-0.66.4.aar",
|
|
136
|
+
"url": "react-native-0.66.4.aar",
|
|
137
|
+
"size": 17710262,
|
|
138
|
+
"sha512": "8c82dddf79e73fb7df35e62b22b4c439651f1fc1501f968f9e34ead98a0fa7fbdbdc2588430a96d8f701d549ee0b92d467c2bdef8cd0f8e28558bba00f408ba5",
|
|
139
|
+
"sha256": "24bd7f5067d8254630b21465c4971c53ac959fcae6296555a7d03dcf503b38c1",
|
|
140
|
+
"sha1": "673d65136b846a67305ea56685691a38b4890442",
|
|
141
|
+
"md5": "e812e6358cbea21b00660c0c2cba01f9"
|
|
142
142
|
}
|
|
143
143
|
]
|
|
144
144
|
},
|
|
@@ -259,13 +259,13 @@
|
|
|
259
259
|
],
|
|
260
260
|
"files": [
|
|
261
261
|
{
|
|
262
|
-
"name": "react-native-0.66.
|
|
263
|
-
"url": "react-native-0.66.
|
|
264
|
-
"size":
|
|
265
|
-
"sha512": "
|
|
266
|
-
"sha256": "
|
|
267
|
-
"sha1": "
|
|
268
|
-
"md5": "
|
|
262
|
+
"name": "react-native-0.66.4.aar",
|
|
263
|
+
"url": "react-native-0.66.4.aar",
|
|
264
|
+
"size": 17710262,
|
|
265
|
+
"sha512": "8c82dddf79e73fb7df35e62b22b4c439651f1fc1501f968f9e34ead98a0fa7fbdbdc2588430a96d8f701d549ee0b92d467c2bdef8cd0f8e28558bba00f408ba5",
|
|
266
|
+
"sha256": "24bd7f5067d8254630b21465c4971c53ac959fcae6296555a7d03dcf503b38c1",
|
|
267
|
+
"sha1": "673d65136b846a67305ea56685691a38b4890442",
|
|
268
|
+
"md5": "e812e6358cbea21b00660c0c2cba01f9"
|
|
269
269
|
}
|
|
270
270
|
]
|
|
271
271
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
80815ffae5babcc30adf9706710f7b34
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
3f0b7629422a5d11ab4e442521be0bcc0cfbba88
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
9393670d6e468fa64921b93be7f9c5efbe5a456e624da5e99062163e49395b2b
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
d510c4e25f8686113d7840f5033a07a65db5a45630c8985686e732f7b80a40a0bf3bced58e3443a2050c7503deed29b006f6733bef372acdcb5929c53192d30e
|
|
@@ -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.66.
|
|
12
|
+
<version>0.66.4</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
|
+
455a2bbc362c87dd3aef2062e2fa6d27
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
24f2ae6ad77948508bc7252ca54e91a839852015
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
1dd34b30662c29b762b0a04670c8a837e9ec66de871c7e2a24d417e9fc33360a
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
f9aa8c4f8e95b2b50293b59e2c5e50091cca203bb8760b402c3a1f11b47e0efb7de9a7ea090fc8d55e44223c240e2a370f7460adc64b153191e4492fa00ddda7
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
<groupId>com.facebook.react</groupId>
|
|
4
4
|
<artifactId>react-native</artifactId>
|
|
5
5
|
<versioning>
|
|
6
|
-
<latest>0.66.
|
|
7
|
-
<release>0.66.
|
|
6
|
+
<latest>0.66.4</latest>
|
|
7
|
+
<release>0.66.4</release>
|
|
8
8
|
<versions>
|
|
9
|
-
<version>0.66.
|
|
9
|
+
<version>0.66.4</version>
|
|
10
10
|
</versions>
|
|
11
|
-
<lastUpdated>
|
|
11
|
+
<lastUpdated>20211209204740</lastUpdated>
|
|
12
12
|
</versioning>
|
|
13
13
|
</metadata>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
52e431bb760a6821458836fe1b22e0d5
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
7165103039cf2360070f2c23ef76db7b827d338d
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
e0e4c615f915c421fa3f1ac4197a384a7ec2cb52c0b40283123e422dec88548d
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
a6d3e57b55e84d72ac59e8a6489c7a6d8cb0bd4c48ff54d5364c8330a0294290d4252b000d0c6297535717958a710a3cd4b0bf27f9d4ced4bbea5a2f71d444d1
|
package/package.json
CHANGED
|
@@ -237,13 +237,17 @@ def __apply_Xcode_12_5_M1_post_install_workaround(installer)
|
|
|
237
237
|
# The most reliable known workaround is to bump iOS deployment target to match react-native (iOS 11 now).
|
|
238
238
|
installer.pods_project.targets.each do |target|
|
|
239
239
|
target.build_configurations.each do |config|
|
|
240
|
-
|
|
240
|
+
# ensure IPHONEOS_DEPLOYMENT_TARGET is at least 11.0
|
|
241
|
+
should_upgrade = config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'].split('.')[0].to_i < 11
|
|
242
|
+
if should_upgrade
|
|
243
|
+
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '11.0'
|
|
241
244
|
end
|
|
245
|
+
end
|
|
242
246
|
end
|
|
243
247
|
|
|
244
248
|
# But... doing so caused another issue in Flipper:
|
|
245
249
|
# "Time.h:52:17: error: typedef redefinition with different types"
|
|
246
|
-
# We need to make a patch to RCT-Folly -
|
|
250
|
+
# We need to make a patch to RCT-Folly - remove the `__IPHONE_OS_VERSION_MIN_REQUIRED` check.
|
|
247
251
|
# See https://github.com/facebook/flipper/issues/834 for more details.
|
|
248
|
-
`sed -i -e $'s/__IPHONE_10_0
|
|
252
|
+
`sed -i -e $'s/ && (__IPHONE_OS_VERSION_MIN_REQUIRED < __IPHONE_10_0)//' Pods/RCT-Folly/folly/portability/Time.h`
|
|
249
253
|
end
|
package/template/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
ed78b13e5cd3fe7f866332255030c062
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
d7843bea0bbe6a3979545e5b4b229e451a724911
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
a8373042073d9974ed595db0427a2ed55ddf1e86847577cd19a7b9c3cb248042
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
fee2b61eaa87bb3421ac60967022a39e470b4f1ae6c93f10187d8a50cb20d76271d331ec45ee85504df0a2e76749229cae2a9000f92b72cf86927c0b7ed72a2a
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
0661cbf49b29bdac4f345a242875fc7d
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
d532d69d9551531deed2fa71e5760c96bbae7273
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
0f40aacccd2e34f7c71565f4ac622915c83787d618b234e9f11519fc5c60db6a
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
2d14d9e836c2c9451a2094f807a00831532ca65045651e867c6c3f76644940d55491489cd1bca42a2a8f7c948143d7d53bac2008d594ab9add07619af0ee1cee
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
9eef166659d1f6f7c688964bf68c67b7
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
0ff2fcd41fbe6607e757cdb0dd95dc4f1861aaa4
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
dae958ddf78897e3d747d04da491fe84be8d404026775e3e50c05936af74a55c
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
152172449e18a62c6d54f5a4b38726dd0a84f327b083f015fcfea7ef671d69a253a75544fd36680215e6082e1bf26a26af1f2c1d673a34580960c75a4d9d80fd
|