react-native 0.60.1 → 0.60.5
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/TextInput/TextInput.js +7 -0
- package/Libraries/Core/ReactNativeVersion.js +1 -1
- package/Libraries/WebSocket/RCTReconnectingWebSocket.m +0 -82
- package/Libraries/WebSocket/RCTWebSocket.xcodeproj/project.pbxproj +0 -165
- package/Libraries/WebSocket/React-RCTWebSocket.podspec +1 -3
- package/React/Base/RCTVersion.m +1 -1
- package/React/Modules/RCTRedBox.m +1 -1
- package/ReactAndroid/gradle.properties +1 -1
- package/ReactAndroid/src/main/java/com/facebook/hermes/unicode/AndroidUnicodeUtils.java +6 -0
- package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.java +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/BaseViewManager.java +9 -6
- package/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactEditText.java +3 -1
- package/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactTextInputManager.java +6 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewBackgroundDrawable.java +24 -24
- package/android/com/facebook/react/react-native/0.60.5/react-native-0.60.5-javadoc.jar +0 -0
- package/android/com/facebook/react/react-native/0.60.5/react-native-0.60.5-javadoc.jar.md5 +1 -0
- package/android/com/facebook/react/react-native/0.60.5/react-native-0.60.5-javadoc.jar.sha1 +1 -0
- package/android/com/facebook/react/react-native/{0.60.1/react-native-0.60.1-sources.jar → 0.60.5/react-native-0.60.5-sources.jar} +0 -0
- package/android/com/facebook/react/react-native/0.60.5/react-native-0.60.5-sources.jar.md5 +1 -0
- package/android/com/facebook/react/react-native/0.60.5/react-native-0.60.5-sources.jar.sha1 +1 -0
- package/android/com/facebook/react/react-native/{0.60.1/react-native-0.60.1.aar → 0.60.5/react-native-0.60.5.aar} +0 -0
- package/android/com/facebook/react/react-native/0.60.5/react-native-0.60.5.aar.md5 +1 -0
- package/android/com/facebook/react/react-native/0.60.5/react-native-0.60.5.aar.sha1 +1 -0
- package/android/com/facebook/react/react-native/{0.60.1/react-native-0.60.1.pom → 0.60.5/react-native-0.60.5.pom} +1 -1
- package/android/com/facebook/react/react-native/0.60.5/react-native-0.60.5.pom.md5 +1 -0
- package/android/com/facebook/react/react-native/0.60.5/react-native-0.60.5.pom.sha1 +1 -0
- package/android/com/facebook/react/react-native/maven-metadata.xml +3 -3
- 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/package.json +4 -4
- package/react.gradle +10 -14
- package/scripts/launchPackager.bat +2 -1
- package/template/_prettierrc.js +6 -0
- package/template/android/app/build.gradle +1 -1
- package/template/ios/Podfile +0 -1
- package/template/package.json +2 -2
- package/Libraries/fishhook/LICENSE +0 -22
- package/Libraries/fishhook/README.md +0 -75
- package/Libraries/fishhook/React-fishhook.podspec +0 -31
- package/Libraries/fishhook/fishhook.c +0 -210
- package/Libraries/fishhook/fishhook.h +0 -76
- package/android/com/facebook/react/react-native/0.60.1/react-native-0.60.1-javadoc.jar +0 -0
- package/android/com/facebook/react/react-native/0.60.1/react-native-0.60.1-javadoc.jar.md5 +0 -1
- package/android/com/facebook/react/react-native/0.60.1/react-native-0.60.1-javadoc.jar.sha1 +0 -1
- package/android/com/facebook/react/react-native/0.60.1/react-native-0.60.1-sources.jar.md5 +0 -1
- package/android/com/facebook/react/react-native/0.60.1/react-native-0.60.1-sources.jar.sha1 +0 -1
- package/android/com/facebook/react/react-native/0.60.1/react-native-0.60.1.aar.md5 +0 -1
- package/android/com/facebook/react/react-native/0.60.1/react-native-0.60.1.aar.sha1 +0 -1
- package/android/com/facebook/react/react-native/0.60.1/react-native-0.60.1.pom.md5 +0 -1
- package/android/com/facebook/react/react-native/0.60.1/react-native-0.60.1.pom.sha1 +0 -1
|
@@ -252,6 +252,7 @@ type AndroidProps = $ReadOnly<{|
|
|
|
252
252
|
| 'yes'
|
|
253
253
|
| 'yesExcludeDescendants'
|
|
254
254
|
),
|
|
255
|
+
showSoftInputOnFocus?: ?boolean,
|
|
255
256
|
|}>;
|
|
256
257
|
|
|
257
258
|
type Props = $ReadOnly<{|
|
|
@@ -925,6 +926,12 @@ const TextInput = createReactClass({
|
|
|
925
926
|
'newPassword',
|
|
926
927
|
'oneTimeCode',
|
|
927
928
|
]),
|
|
929
|
+
/**
|
|
930
|
+
* When `false`, it will prevent the soft keyboard from showing when the field is focused.
|
|
931
|
+
* Defaults to `true`.
|
|
932
|
+
* @platform android
|
|
933
|
+
*/
|
|
934
|
+
showSoftInputOnFocus: PropTypes.bool,
|
|
928
935
|
},
|
|
929
936
|
getDefaultProps() {
|
|
930
937
|
return {
|
|
@@ -10,72 +10,10 @@
|
|
|
10
10
|
#import <React/RCTConvert.h>
|
|
11
11
|
#import <React/RCTDefines.h>
|
|
12
12
|
|
|
13
|
-
#if __has_include(<React/fishhook.h>)
|
|
14
|
-
#import <React/fishhook.h>
|
|
15
|
-
#else
|
|
16
|
-
#import <fishhook/fishhook.h>
|
|
17
|
-
#endif
|
|
18
|
-
|
|
19
|
-
#if __has_include(<os/log.h>) && defined(__IPHONE_OS_VERSION_MAX_ALLOWED) && __IPHONE_OS_VERSION_MAX_ALLOWED >= 100300 /* __IPHONE_10_3 */
|
|
20
|
-
#import <os/log.h>
|
|
21
|
-
#endif /* __IPHONE_10_3 */
|
|
22
|
-
|
|
23
13
|
#import "RCTSRWebSocket.h"
|
|
24
14
|
|
|
25
15
|
#if RCT_DEV // Only supported in dev mode
|
|
26
16
|
|
|
27
|
-
#if __has_include(<os/log.h>) && defined(__IPHONE_OS_VERSION_MAX_ALLOWED) && __IPHONE_OS_VERSION_MAX_ALLOWED >= 100300 /* __IPHONE_10_3 */
|
|
28
|
-
|
|
29
|
-
// From https://github.com/apple/swift/blob/ad40c770bfe372f879b530443a3d94761fe258a6/stdlib/public/SDK/os/os_log.m
|
|
30
|
-
typedef struct os_log_pack_s {
|
|
31
|
-
uint64_t olp_continuous_time;
|
|
32
|
-
struct timespec olp_wall_time;
|
|
33
|
-
const void *olp_mh;
|
|
34
|
-
const void *olp_pc;
|
|
35
|
-
const char *olp_format;
|
|
36
|
-
uint8_t olp_data[0];
|
|
37
|
-
} os_log_pack_s, *os_log_pack_t;
|
|
38
|
-
|
|
39
|
-
static void (*orig__nwlog_pack)(os_log_pack_t pack, os_log_type_t logType);
|
|
40
|
-
|
|
41
|
-
static void my__nwlog_pack(os_log_pack_t pack, os_log_type_t logType)
|
|
42
|
-
{
|
|
43
|
-
if (logType == OS_LOG_TYPE_ERROR && strstr(pack->olp_format, "Connection has no connected handler") == NULL) {
|
|
44
|
-
orig__nwlog_pack(pack, logType);
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
#endif /* __IPHONE_10_3 */
|
|
49
|
-
|
|
50
|
-
static void (*orig_nwlog_legacy_v)(int, char*, va_list);
|
|
51
|
-
|
|
52
|
-
static void my_nwlog_legacy_v(int level, char *format, va_list args) {
|
|
53
|
-
static const uint buffer_size = 256;
|
|
54
|
-
static char buffer[buffer_size];
|
|
55
|
-
va_list copy;
|
|
56
|
-
va_copy(copy, args);
|
|
57
|
-
vsnprintf(buffer, buffer_size, format, copy);
|
|
58
|
-
va_end(copy);
|
|
59
|
-
|
|
60
|
-
if (strstr(buffer, "nw_connection_get_connected_socket_block_invoke") == NULL &&
|
|
61
|
-
strstr(buffer, "Connection has no connected handler") == NULL) {
|
|
62
|
-
orig_nwlog_legacy_v(level, format, args);
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
#if defined(__IPHONE_OS_VERSION_MAX_ALLOWED) && __IPHONE_OS_VERSION_MAX_ALLOWED >= 110000 /* __IPHONE_11_0 */
|
|
67
|
-
|
|
68
|
-
static void (*orig_os_log_error_impl)(void *dso, os_log_t log, os_log_type_t type, const char *format, uint8_t *buf, uint32_t size);
|
|
69
|
-
|
|
70
|
-
static void my_os_log_error_impl(void *dso, os_log_t log, os_log_type_t type, const char *format, uint8_t *buf, uint32_t size)
|
|
71
|
-
{
|
|
72
|
-
if (strstr(format, "TCP Conn %p Failed : error %ld:%d") == NULL) {
|
|
73
|
-
orig_os_log_error_impl(dso, log, type, format, buf, size);
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
#endif /* __IPHONE_11_0 */
|
|
78
|
-
|
|
79
17
|
@interface RCTReconnectingWebSocket () <RCTSRWebSocketDelegate>
|
|
80
18
|
@end
|
|
81
19
|
|
|
@@ -84,26 +22,6 @@ static void my_os_log_error_impl(void *dso, os_log_t log, os_log_type_t type, co
|
|
|
84
22
|
RCTSRWebSocket *_socket;
|
|
85
23
|
}
|
|
86
24
|
|
|
87
|
-
+ (void)load
|
|
88
|
-
{
|
|
89
|
-
static dispatch_once_t onceToken;
|
|
90
|
-
dispatch_once(&onceToken, ^{
|
|
91
|
-
rebind_symbols((struct rebinding[1]){
|
|
92
|
-
{"nwlog_legacy_v", my_nwlog_legacy_v, (void *)&orig_nwlog_legacy_v}
|
|
93
|
-
}, 1);
|
|
94
|
-
#if __has_include(<os/log.h>) && defined(__IPHONE_OS_VERSION_MAX_ALLOWED) && __IPHONE_OS_VERSION_MAX_ALLOWED >= 100300 /* __IPHONE_10_3 */
|
|
95
|
-
rebind_symbols((struct rebinding[1]){
|
|
96
|
-
{"__nwlog_pack", my__nwlog_pack, (void *)&orig__nwlog_pack}
|
|
97
|
-
}, 1);
|
|
98
|
-
#endif /* __IPHONE_10_3 */
|
|
99
|
-
#if defined(__IPHONE_OS_VERSION_MAX_ALLOWED) && __IPHONE_OS_VERSION_MAX_ALLOWED >= 110000 /* __IPHONE_11_0 */
|
|
100
|
-
rebind_symbols((struct rebinding[1]){
|
|
101
|
-
{"_os_log_error_impl", my_os_log_error_impl, (void *)&orig_os_log_error_impl}
|
|
102
|
-
}, 1);
|
|
103
|
-
#endif /* __IPHONE_11_0 */
|
|
104
|
-
});
|
|
105
|
-
}
|
|
106
|
-
|
|
107
25
|
- (instancetype)initWithURL:(NSURL *)url queue:(dispatch_queue_t)queue
|
|
108
26
|
{
|
|
109
27
|
if (self = [super init]) {
|
|
@@ -9,113 +9,31 @@
|
|
|
9
9
|
/* Begin PBXBuildFile section */
|
|
10
10
|
1338BBE01B04ACC80064A9C9 /* RCTSRWebSocket.m in Sources */ = {isa = PBXBuildFile; fileRef = 1338BBDD1B04ACC80064A9C9 /* RCTSRWebSocket.m */; };
|
|
11
11
|
1338BBE11B04ACC80064A9C9 /* RCTWebSocketExecutor.m in Sources */ = {isa = PBXBuildFile; fileRef = 1338BBDF1B04ACC80064A9C9 /* RCTWebSocketExecutor.m */; };
|
|
12
|
-
2D3ABDC220C7206E00DF56E9 /* libfishhook.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DBE0D001F3B181A0099AA32 /* libfishhook.a */; };
|
|
13
12
|
2D3B5F3D1D9B165B00451313 /* RCTSRWebSocket.m in Sources */ = {isa = PBXBuildFile; fileRef = 1338BBDD1B04ACC80064A9C9 /* RCTSRWebSocket.m */; };
|
|
14
13
|
2D3B5F3E1D9B165B00451313 /* RCTWebSocketExecutor.m in Sources */ = {isa = PBXBuildFile; fileRef = 1338BBDF1B04ACC80064A9C9 /* RCTWebSocketExecutor.m */; };
|
|
15
14
|
2D3B5F401D9B165B00451313 /* RCTWebSocketModule.m in Sources */ = {isa = PBXBuildFile; fileRef = 3C86DF7B1ADF695F0047B81A /* RCTWebSocketModule.m */; };
|
|
16
15
|
3C86DF7C1ADF695F0047B81A /* RCTWebSocketModule.m in Sources */ = {isa = PBXBuildFile; fileRef = 3C86DF7B1ADF695F0047B81A /* RCTWebSocketModule.m */; };
|
|
17
|
-
3DBE0D141F3B185A0099AA32 /* fishhook.c in Sources */ = {isa = PBXBuildFile; fileRef = 3DBE0D121F3B185A0099AA32 /* fishhook.c */; };
|
|
18
|
-
3DBE0D151F3B185A0099AA32 /* fishhook.c in Sources */ = {isa = PBXBuildFile; fileRef = 3DBE0D121F3B185A0099AA32 /* fishhook.c */; };
|
|
19
|
-
3DBE0D801F3B1AF00099AA32 /* fishhook.h in CopyFiles */ = {isa = PBXBuildFile; fileRef = 3DBE0D131F3B185A0099AA32 /* fishhook.h */; };
|
|
20
|
-
3DBE0D821F3B1B0C0099AA32 /* fishhook.h in CopyFiles */ = {isa = PBXBuildFile; fileRef = 3DBE0D131F3B185A0099AA32 /* fishhook.h */; };
|
|
21
16
|
A12E9E2E1E5DEC4E0029001B /* RCTReconnectingWebSocket.m in Sources */ = {isa = PBXBuildFile; fileRef = A12E9E2D1E5DEC4E0029001B /* RCTReconnectingWebSocket.m */; };
|
|
22
17
|
A12E9E2F1E5DEC550029001B /* RCTReconnectingWebSocket.m in Sources */ = {isa = PBXBuildFile; fileRef = A12E9E2D1E5DEC4E0029001B /* RCTReconnectingWebSocket.m */; };
|
|
23
|
-
ED297176215062BA00B7C4FE /* libfishhook-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DBE0D0D1F3B181C0099AA32 /* libfishhook-tvOS.a */; };
|
|
24
18
|
/* End PBXBuildFile section */
|
|
25
19
|
|
|
26
|
-
/* Begin PBXContainerItemProxy section */
|
|
27
|
-
3DBE0D0E1F3B18490099AA32 /* PBXContainerItemProxy */ = {
|
|
28
|
-
isa = PBXContainerItemProxy;
|
|
29
|
-
containerPortal = 3C86DF3E1ADF2C930047B81A /* Project object */;
|
|
30
|
-
proxyType = 1;
|
|
31
|
-
remoteGlobalIDString = 3DBE0CF41F3B181A0099AA32;
|
|
32
|
-
remoteInfo = fishhook;
|
|
33
|
-
};
|
|
34
|
-
3DBE0D101F3B184D0099AA32 /* PBXContainerItemProxy */ = {
|
|
35
|
-
isa = PBXContainerItemProxy;
|
|
36
|
-
containerPortal = 3C86DF3E1ADF2C930047B81A /* Project object */;
|
|
37
|
-
proxyType = 1;
|
|
38
|
-
remoteGlobalIDString = 3DBE0D011F3B181C0099AA32;
|
|
39
|
-
remoteInfo = "fishhook-tvOS";
|
|
40
|
-
};
|
|
41
|
-
/* End PBXContainerItemProxy section */
|
|
42
|
-
|
|
43
|
-
/* Begin PBXCopyFilesBuildPhase section */
|
|
44
|
-
3DBE0D7F1F3B1AEC0099AA32 /* CopyFiles */ = {
|
|
45
|
-
isa = PBXCopyFilesBuildPhase;
|
|
46
|
-
buildActionMask = 2147483647;
|
|
47
|
-
dstPath = include/fishhook;
|
|
48
|
-
dstSubfolderSpec = 16;
|
|
49
|
-
files = (
|
|
50
|
-
3DBE0D801F3B1AF00099AA32 /* fishhook.h in CopyFiles */,
|
|
51
|
-
);
|
|
52
|
-
runOnlyForDeploymentPostprocessing = 0;
|
|
53
|
-
};
|
|
54
|
-
3DBE0D811F3B1B010099AA32 /* CopyFiles */ = {
|
|
55
|
-
isa = PBXCopyFilesBuildPhase;
|
|
56
|
-
buildActionMask = 2147483647;
|
|
57
|
-
dstPath = include/fishhook;
|
|
58
|
-
dstSubfolderSpec = 16;
|
|
59
|
-
files = (
|
|
60
|
-
3DBE0D821F3B1B0C0099AA32 /* fishhook.h in CopyFiles */,
|
|
61
|
-
);
|
|
62
|
-
runOnlyForDeploymentPostprocessing = 0;
|
|
63
|
-
};
|
|
64
|
-
/* End PBXCopyFilesBuildPhase section */
|
|
65
|
-
|
|
66
20
|
/* Begin PBXFileReference section */
|
|
67
21
|
1338BBDC1B04ACC80064A9C9 /* RCTSRWebSocket.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTSRWebSocket.h; sourceTree = "<group>"; };
|
|
68
22
|
1338BBDD1B04ACC80064A9C9 /* RCTSRWebSocket.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTSRWebSocket.m; sourceTree = "<group>"; };
|
|
69
23
|
1338BBDE1B04ACC80064A9C9 /* RCTWebSocketExecutor.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTWebSocketExecutor.h; sourceTree = "<group>"; };
|
|
70
24
|
1338BBDF1B04ACC80064A9C9 /* RCTWebSocketExecutor.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTWebSocketExecutor.m; sourceTree = "<group>"; };
|
|
71
|
-
13526A511F362F7F0008EF00 /* libfishhook.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; path = libfishhook.a; sourceTree = "<group>"; };
|
|
72
25
|
2D2A28881D9B049200D4039D /* libRCTWebSocket-tvOS.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libRCTWebSocket-tvOS.a"; sourceTree = BUILT_PRODUCTS_DIR; };
|
|
73
|
-
2DC5E5271F3A6CFD000EE84B /* libfishhook-tvOS.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = "libfishhook-tvOS.a"; path = "../fishhook/build/Debug-appletvos/libfishhook-tvOS.a"; sourceTree = "<group>"; };
|
|
74
26
|
3C86DF461ADF2C930047B81A /* libRCTWebSocket.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libRCTWebSocket.a; sourceTree = BUILT_PRODUCTS_DIR; };
|
|
75
27
|
3C86DF7A1ADF695F0047B81A /* RCTWebSocketModule.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTWebSocketModule.h; sourceTree = "<group>"; };
|
|
76
28
|
3C86DF7B1ADF695F0047B81A /* RCTWebSocketModule.m */ = {isa = PBXFileReference; fileEncoding = 4; indentWidth = 2; lastKnownFileType = sourcecode.c.objc; path = RCTWebSocketModule.m; sourceTree = "<group>"; tabWidth = 2; };
|
|
77
|
-
3DBE0D001F3B181A0099AA32 /* libfishhook.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libfishhook.a; sourceTree = BUILT_PRODUCTS_DIR; };
|
|
78
|
-
3DBE0D0D1F3B181C0099AA32 /* libfishhook-tvOS.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libfishhook-tvOS.a"; sourceTree = BUILT_PRODUCTS_DIR; };
|
|
79
|
-
3DBE0D121F3B185A0099AA32 /* fishhook.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = fishhook.c; path = ../fishhook/fishhook.c; sourceTree = "<group>"; };
|
|
80
|
-
3DBE0D131F3B185A0099AA32 /* fishhook.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = fishhook.h; path = ../fishhook/fishhook.h; sourceTree = "<group>"; };
|
|
81
29
|
A12E9E2C1E5DEC4E0029001B /* RCTReconnectingWebSocket.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTReconnectingWebSocket.h; sourceTree = "<group>"; };
|
|
82
30
|
A12E9E2D1E5DEC4E0029001B /* RCTReconnectingWebSocket.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTReconnectingWebSocket.m; sourceTree = "<group>"; };
|
|
83
31
|
/* End PBXFileReference section */
|
|
84
32
|
|
|
85
|
-
/* Begin PBXFrameworksBuildPhase section */
|
|
86
|
-
13526A4F1F362F770008EF00 /* Frameworks */ = {
|
|
87
|
-
isa = PBXFrameworksBuildPhase;
|
|
88
|
-
buildActionMask = 2147483647;
|
|
89
|
-
files = (
|
|
90
|
-
2D3ABDC220C7206E00DF56E9 /* libfishhook.a in Frameworks */,
|
|
91
|
-
);
|
|
92
|
-
runOnlyForDeploymentPostprocessing = 0;
|
|
93
|
-
};
|
|
94
|
-
2DC5E5151F3A6C39000EE84B /* Frameworks */ = {
|
|
95
|
-
isa = PBXFrameworksBuildPhase;
|
|
96
|
-
buildActionMask = 2147483647;
|
|
97
|
-
files = (
|
|
98
|
-
ED297176215062BA00B7C4FE /* libfishhook-tvOS.a in Frameworks */,
|
|
99
|
-
);
|
|
100
|
-
runOnlyForDeploymentPostprocessing = 0;
|
|
101
|
-
};
|
|
102
|
-
/* End PBXFrameworksBuildPhase section */
|
|
103
|
-
|
|
104
33
|
/* Begin PBXGroup section */
|
|
105
|
-
13526A501F362F7F0008EF00 /* Frameworks */ = {
|
|
106
|
-
isa = PBXGroup;
|
|
107
|
-
children = (
|
|
108
|
-
2DC5E5271F3A6CFD000EE84B /* libfishhook-tvOS.a */,
|
|
109
|
-
13526A511F362F7F0008EF00 /* libfishhook.a */,
|
|
110
|
-
);
|
|
111
|
-
name = Frameworks;
|
|
112
|
-
sourceTree = "<group>";
|
|
113
|
-
};
|
|
114
34
|
3C86DF3D1ADF2C930047B81A = {
|
|
115
35
|
isa = PBXGroup;
|
|
116
36
|
children = (
|
|
117
|
-
3DBE0D121F3B185A0099AA32 /* fishhook.c */,
|
|
118
|
-
3DBE0D131F3B185A0099AA32 /* fishhook.h */,
|
|
119
37
|
A12E9E2C1E5DEC4E0029001B /* RCTReconnectingWebSocket.h */,
|
|
120
38
|
A12E9E2D1E5DEC4E0029001B /* RCTReconnectingWebSocket.m */,
|
|
121
39
|
1338BBDC1B04ACC80064A9C9 /* RCTSRWebSocket.h */,
|
|
@@ -137,8 +55,6 @@
|
|
|
137
55
|
children = (
|
|
138
56
|
3C86DF461ADF2C930047B81A /* libRCTWebSocket.a */,
|
|
139
57
|
2D2A28881D9B049200D4039D /* libRCTWebSocket-tvOS.a */,
|
|
140
|
-
3DBE0D001F3B181A0099AA32 /* libfishhook.a */,
|
|
141
|
-
3DBE0D0D1F3B181C0099AA32 /* libfishhook-tvOS.a */,
|
|
142
58
|
);
|
|
143
59
|
name = Products;
|
|
144
60
|
sourceTree = "<group>";
|
|
@@ -180,38 +96,6 @@
|
|
|
180
96
|
productReference = 3C86DF461ADF2C930047B81A /* libRCTWebSocket.a */;
|
|
181
97
|
productType = "com.apple.product-type.library.static";
|
|
182
98
|
};
|
|
183
|
-
3DBE0CF41F3B181A0099AA32 /* fishhook */ = {
|
|
184
|
-
isa = PBXNativeTarget;
|
|
185
|
-
buildConfigurationList = 3DBE0CFD1F3B181A0099AA32 /* Build configuration list for PBXNativeTarget "fishhook" */;
|
|
186
|
-
buildPhases = (
|
|
187
|
-
3DBE0D7F1F3B1AEC0099AA32 /* CopyFiles */,
|
|
188
|
-
3DBE0CF51F3B181A0099AA32 /* Sources */,
|
|
189
|
-
);
|
|
190
|
-
buildRules = (
|
|
191
|
-
);
|
|
192
|
-
dependencies = (
|
|
193
|
-
);
|
|
194
|
-
name = fishhook;
|
|
195
|
-
productName = WebSocket;
|
|
196
|
-
productReference = 3DBE0D001F3B181A0099AA32 /* libfishhook.a */;
|
|
197
|
-
productType = "com.apple.product-type.library.static";
|
|
198
|
-
};
|
|
199
|
-
3DBE0D011F3B181C0099AA32 /* fishhook-tvOS */ = {
|
|
200
|
-
isa = PBXNativeTarget;
|
|
201
|
-
buildConfigurationList = 3DBE0D0A1F3B181C0099AA32 /* Build configuration list for PBXNativeTarget "fishhook-tvOS" */;
|
|
202
|
-
buildPhases = (
|
|
203
|
-
3DBE0D811F3B1B010099AA32 /* CopyFiles */,
|
|
204
|
-
3DBE0D021F3B181C0099AA32 /* Sources */,
|
|
205
|
-
);
|
|
206
|
-
buildRules = (
|
|
207
|
-
);
|
|
208
|
-
dependencies = (
|
|
209
|
-
);
|
|
210
|
-
name = "fishhook-tvOS";
|
|
211
|
-
productName = "RCTWebSocket-tvOS";
|
|
212
|
-
productReference = 3DBE0D0D1F3B181C0099AA32 /* libfishhook-tvOS.a */;
|
|
213
|
-
productType = "com.apple.product-type.library.static";
|
|
214
|
-
};
|
|
215
99
|
/* End PBXNativeTarget section */
|
|
216
100
|
|
|
217
101
|
/* Begin PBXProject section */
|
|
@@ -244,8 +128,6 @@
|
|
|
244
128
|
targets = (
|
|
245
129
|
3C86DF451ADF2C930047B81A /* RCTWebSocket */,
|
|
246
130
|
2D2A28871D9B049200D4039D /* RCTWebSocket-tvOS */,
|
|
247
|
-
3DBE0CF41F3B181A0099AA32 /* fishhook */,
|
|
248
|
-
3DBE0D011F3B181C0099AA32 /* fishhook-tvOS */,
|
|
249
131
|
);
|
|
250
132
|
};
|
|
251
133
|
/* End PBXProject section */
|
|
@@ -273,37 +155,8 @@
|
|
|
273
155
|
);
|
|
274
156
|
runOnlyForDeploymentPostprocessing = 0;
|
|
275
157
|
};
|
|
276
|
-
3DBE0CF51F3B181A0099AA32 /* Sources */ = {
|
|
277
|
-
isa = PBXSourcesBuildPhase;
|
|
278
|
-
buildActionMask = 2147483647;
|
|
279
|
-
files = (
|
|
280
|
-
3DBE0D141F3B185A0099AA32 /* fishhook.c in Sources */,
|
|
281
|
-
);
|
|
282
|
-
runOnlyForDeploymentPostprocessing = 0;
|
|
283
|
-
};
|
|
284
|
-
3DBE0D021F3B181C0099AA32 /* Sources */ = {
|
|
285
|
-
isa = PBXSourcesBuildPhase;
|
|
286
|
-
buildActionMask = 2147483647;
|
|
287
|
-
files = (
|
|
288
|
-
3DBE0D151F3B185A0099AA32 /* fishhook.c in Sources */,
|
|
289
|
-
);
|
|
290
|
-
runOnlyForDeploymentPostprocessing = 0;
|
|
291
|
-
};
|
|
292
158
|
/* End PBXSourcesBuildPhase section */
|
|
293
159
|
|
|
294
|
-
/* Begin PBXTargetDependency section */
|
|
295
|
-
3DBE0D0F1F3B18490099AA32 /* PBXTargetDependency */ = {
|
|
296
|
-
isa = PBXTargetDependency;
|
|
297
|
-
target = 3DBE0CF41F3B181A0099AA32 /* fishhook */;
|
|
298
|
-
targetProxy = 3DBE0D0E1F3B18490099AA32 /* PBXContainerItemProxy */;
|
|
299
|
-
};
|
|
300
|
-
3DBE0D111F3B184D0099AA32 /* PBXTargetDependency */ = {
|
|
301
|
-
isa = PBXTargetDependency;
|
|
302
|
-
target = 3DBE0D011F3B181C0099AA32 /* fishhook-tvOS */;
|
|
303
|
-
targetProxy = 3DBE0D101F3B184D0099AA32 /* PBXContainerItemProxy */;
|
|
304
|
-
};
|
|
305
|
-
/* End PBXTargetDependency section */
|
|
306
|
-
|
|
307
160
|
/* Begin XCBuildConfiguration section */
|
|
308
161
|
2D2A288E1D9B049200D4039D /* Debug */ = {
|
|
309
162
|
isa = XCBuildConfiguration;
|
|
@@ -554,24 +407,6 @@
|
|
|
554
407
|
defaultConfigurationIsVisible = 0;
|
|
555
408
|
defaultConfigurationName = Release;
|
|
556
409
|
};
|
|
557
|
-
3DBE0CFD1F3B181A0099AA32 /* Build configuration list for PBXNativeTarget "fishhook" */ = {
|
|
558
|
-
isa = XCConfigurationList;
|
|
559
|
-
buildConfigurations = (
|
|
560
|
-
3DBE0CFE1F3B181A0099AA32 /* Debug */,
|
|
561
|
-
3DBE0CFF1F3B181A0099AA32 /* Release */,
|
|
562
|
-
);
|
|
563
|
-
defaultConfigurationIsVisible = 0;
|
|
564
|
-
defaultConfigurationName = Release;
|
|
565
|
-
};
|
|
566
|
-
3DBE0D0A1F3B181C0099AA32 /* Build configuration list for PBXNativeTarget "fishhook-tvOS" */ = {
|
|
567
|
-
isa = XCConfigurationList;
|
|
568
|
-
buildConfigurations = (
|
|
569
|
-
3DBE0D0B1F3B181C0099AA32 /* Debug */,
|
|
570
|
-
3DBE0D0C1F3B181C0099AA32 /* Release */,
|
|
571
|
-
);
|
|
572
|
-
defaultConfigurationIsVisible = 0;
|
|
573
|
-
defaultConfigurationName = Release;
|
|
574
|
-
};
|
|
575
410
|
/* End XCConfigurationList section */
|
|
576
411
|
};
|
|
577
412
|
rootObject = 3C86DF3E1ADF2C930047B81A /* Project object */;
|
|
@@ -27,11 +27,9 @@ Pod::Spec.new do |s|
|
|
|
27
27
|
s.author = "Facebook, Inc. and its affiliates"
|
|
28
28
|
s.platforms = { :ios => "9.0", :tvos => "9.2" }
|
|
29
29
|
s.source = source
|
|
30
|
-
s.source_files = "*.{h,m}"
|
|
31
|
-
"Libraries/fishhook/*.{h,c}"
|
|
30
|
+
s.source_files = "*.{h,m}"
|
|
32
31
|
s.preserve_paths = "package.json", "LICENSE", "LICENSE-docs"
|
|
33
32
|
s.header_dir = "React"
|
|
34
33
|
|
|
35
34
|
s.dependency "React-Core", version
|
|
36
|
-
s.dependency "React-fishhook", version
|
|
37
35
|
end
|
package/React/Base/RCTVersion.m
CHANGED
|
@@ -161,7 +161,7 @@
|
|
|
161
161
|
- (NSInteger)bottomSafeViewHeight
|
|
162
162
|
{
|
|
163
163
|
if (@available(iOS 11.0, *)) {
|
|
164
|
-
return
|
|
164
|
+
return RCTSharedApplication().delegate.window.safeAreaInsets.bottom;
|
|
165
165
|
} else {
|
|
166
166
|
return 0;
|
|
167
167
|
}
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
package com.facebook.hermes.unicode;
|
|
8
8
|
|
|
9
|
+
import com.facebook.proguard.annotations.DoNotStrip;
|
|
9
10
|
import java.text.Collator;
|
|
10
11
|
import java.text.DateFormat;
|
|
11
12
|
import java.text.Normalizer;
|
|
@@ -14,12 +15,15 @@ import java.util.Locale;
|
|
|
14
15
|
// TODO: use com.facebook.common.locale.Locales.getApplicationLocale() as the current locale,
|
|
15
16
|
// rather than the device locale. This is challenging because getApplicationLocale() is only
|
|
16
17
|
// available via DI.
|
|
18
|
+
@DoNotStrip
|
|
17
19
|
public class AndroidUnicodeUtils {
|
|
20
|
+
@DoNotStrip
|
|
18
21
|
public static int localeCompare(String left, String right) {
|
|
19
22
|
Collator collator = Collator.getInstance();
|
|
20
23
|
return collator.compare(left, right);
|
|
21
24
|
}
|
|
22
25
|
|
|
26
|
+
@DoNotStrip
|
|
23
27
|
public static String dateFormat(double unixtimeMs, boolean formatDate, boolean formatTime) {
|
|
24
28
|
DateFormat format;
|
|
25
29
|
if (formatDate && formatTime) {
|
|
@@ -34,6 +38,7 @@ public class AndroidUnicodeUtils {
|
|
|
34
38
|
return format.format((long) unixtimeMs).toString();
|
|
35
39
|
}
|
|
36
40
|
|
|
41
|
+
@DoNotStrip
|
|
37
42
|
public static String convertToCase(String input, int targetCase, boolean useCurrentLocale) {
|
|
38
43
|
// These values must match CaseConversion in PlatformUnicode.h
|
|
39
44
|
final int targetUppercase = 0;
|
|
@@ -52,6 +57,7 @@ public class AndroidUnicodeUtils {
|
|
|
52
57
|
}
|
|
53
58
|
}
|
|
54
59
|
|
|
60
|
+
@DoNotStrip
|
|
55
61
|
public static String normalize(String input, int form) {
|
|
56
62
|
// Values must match NormalizationForm in PlatformUnicode.h.
|
|
57
63
|
final int formC = 0;
|
|
@@ -6,11 +6,14 @@
|
|
|
6
6
|
package com.facebook.react.uimanager;
|
|
7
7
|
|
|
8
8
|
import android.graphics.Color;
|
|
9
|
+
import android.text.TextUtils;
|
|
9
10
|
import android.view.View;
|
|
10
11
|
import android.view.ViewParent;
|
|
11
12
|
import androidx.core.view.ViewCompat;
|
|
12
13
|
|
|
14
|
+
import java.util.ArrayList;
|
|
13
15
|
import java.util.HashMap;
|
|
16
|
+
import java.util.List;
|
|
14
17
|
|
|
15
18
|
import com.facebook.react.R;
|
|
16
19
|
import com.facebook.react.bridge.ReadableArray;
|
|
@@ -173,23 +176,23 @@ public abstract class BaseViewManager<T extends View, C extends LayoutShadowNode
|
|
|
173
176
|
final String accessibilityLabel = (String) view.getTag(R.id.accessibility_label);
|
|
174
177
|
final ReadableArray accessibilityStates = (ReadableArray) view.getTag(R.id.accessibility_states);
|
|
175
178
|
final String accessibilityHint = (String) view.getTag(R.id.accessibility_hint);
|
|
176
|
-
|
|
179
|
+
final List<String> contentDescription = new ArrayList<>();
|
|
177
180
|
if (accessibilityLabel != null) {
|
|
178
|
-
contentDescription.
|
|
181
|
+
contentDescription.add(accessibilityLabel);
|
|
179
182
|
}
|
|
180
183
|
if (accessibilityStates != null) {
|
|
181
184
|
for (int i = 0; i < accessibilityStates.size(); i++) {
|
|
182
185
|
String state = accessibilityStates.getString(i);
|
|
183
186
|
if (sStateDescription.containsKey(state)) {
|
|
184
|
-
contentDescription.
|
|
187
|
+
contentDescription.add(view.getContext().getString(sStateDescription.get(state)));
|
|
185
188
|
}
|
|
186
189
|
}
|
|
187
190
|
}
|
|
188
191
|
if (accessibilityHint != null) {
|
|
189
|
-
contentDescription.
|
|
192
|
+
contentDescription.add(accessibilityHint);
|
|
190
193
|
}
|
|
191
|
-
if (contentDescription.
|
|
192
|
-
view.setContentDescription(
|
|
194
|
+
if (contentDescription.size() > 0) {
|
|
195
|
+
view.setContentDescription(TextUtils.join(", ", contentDescription));
|
|
193
196
|
}
|
|
194
197
|
}
|
|
195
198
|
|
|
@@ -213,7 +213,9 @@ public class ReactEditText extends EditText {
|
|
|
213
213
|
}
|
|
214
214
|
setFocusableInTouchMode(true);
|
|
215
215
|
boolean focused = super.requestFocus(direction, previouslyFocusedRect);
|
|
216
|
-
|
|
216
|
+
if (getShowSoftInputOnFocus()) {
|
|
217
|
+
showSoftKeyboard();
|
|
218
|
+
}
|
|
217
219
|
return focused;
|
|
218
220
|
}
|
|
219
221
|
|
package/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactTextInputManager.java
CHANGED
|
@@ -715,6 +715,12 @@ public class ReactTextInputManager extends BaseViewManager<ReactEditText, Layout
|
|
|
715
715
|
view.setBorderStyle(borderStyle);
|
|
716
716
|
}
|
|
717
717
|
|
|
718
|
+
@ReactProp(name = "showSoftInputOnFocus", defaultBoolean = true)
|
|
719
|
+
public void showKeyboardOnFocus(ReactEditText view, boolean showKeyboardOnFocus) {
|
|
720
|
+
view.setShowSoftInputOnFocus(showKeyboardOnFocus);
|
|
721
|
+
}
|
|
722
|
+
|
|
723
|
+
|
|
718
724
|
@ReactPropGroup(names = {
|
|
719
725
|
ViewProps.BORDER_WIDTH,
|
|
720
726
|
ViewProps.BORDER_LEFT_WIDTH,
|
package/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewBackgroundDrawable.java
CHANGED
|
@@ -646,32 +646,32 @@ public class ReactViewBackgroundDrawable extends Drawable {
|
|
|
646
646
|
}
|
|
647
647
|
|
|
648
648
|
mPathForBorderRadiusOutline.addRoundRect(
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
649
|
+
mTempRectForBorderRadiusOutline,
|
|
650
|
+
new float[] {
|
|
651
|
+
topLeftRadius + extraRadiusForOutline,
|
|
652
|
+
topLeftRadius + extraRadiusForOutline,
|
|
653
|
+
topRightRadius + extraRadiusForOutline,
|
|
654
|
+
topRightRadius + extraRadiusForOutline,
|
|
655
|
+
bottomRightRadius + extraRadiusForOutline,
|
|
656
|
+
bottomRightRadius + extraRadiusForOutline,
|
|
657
|
+
bottomLeftRadius + extraRadiusForOutline,
|
|
658
|
+
bottomLeftRadius + extraRadiusForOutline
|
|
659
|
+
},
|
|
660
|
+
Path.Direction.CW);
|
|
661
661
|
|
|
662
662
|
mCenterDrawPath.addRoundRect(
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
663
|
+
mTempRectForCenterDrawPath,
|
|
664
|
+
new float[] {
|
|
665
|
+
innerTopLeftRadiusX + (topLeftRadius > 0 ? extraRadiusForOutline : 0),
|
|
666
|
+
innerTopLeftRadiusY + (topLeftRadius > 0 ? extraRadiusForOutline : 0),
|
|
667
|
+
innerTopRightRadiusX + (topRightRadius > 0 ? extraRadiusForOutline : 0),
|
|
668
|
+
innerTopRightRadiusY + (topRightRadius > 0 ? extraRadiusForOutline : 0),
|
|
669
|
+
innerBottomRightRadiusX + (bottomRightRadius > 0 ? extraRadiusForOutline : 0),
|
|
670
|
+
innerBottomRightRadiusY + (bottomRightRadius > 0 ? extraRadiusForOutline : 0),
|
|
671
|
+
innerBottomLeftRadiusX + (bottomLeftRadius > 0 ? extraRadiusForOutline : 0),
|
|
672
|
+
innerBottomLeftRadiusY + (bottomLeftRadius > 0 ? extraRadiusForOutline : 0)
|
|
673
|
+
},
|
|
674
|
+
Path.Direction.CW);
|
|
675
675
|
|
|
676
676
|
/**
|
|
677
677
|
* Rounded Multi-Colored Border Algorithm:
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
4ca96aa48a90430c0db348b10d2c0c2c
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
7294ac6b01cff14ca0651ff23861dd2d97fcab92
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
d89ff34b6415d18a686ed859a2cf85e5
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
635fabaefff2d6cd4f36ef62fe41c7d7ee991df3
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
8409c91445b6ec9c6cb46bb34329eea8
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
326ba9370bddd10ad2c3d73ff7c70235e1c09cd9
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
<modelVersion>4.0.0</modelVersion>
|
|
5
5
|
<groupId>com.facebook.react</groupId>
|
|
6
6
|
<artifactId>react-native</artifactId>
|
|
7
|
-
<version>0.60.
|
|
7
|
+
<version>0.60.5</version>
|
|
8
8
|
<packaging>aar</packaging>
|
|
9
9
|
<name>ReactNative</name>
|
|
10
10
|
<description>A framework for building native apps with React</description>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
8830d738e28370e6724dbeaa85355d18
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
61d3f816dc0a84aecadf04de2f145f53b41a5a0a
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
<groupId>com.facebook.react</groupId>
|
|
4
4
|
<artifactId>react-native</artifactId>
|
|
5
5
|
<versioning>
|
|
6
|
-
<release>0.60.
|
|
6
|
+
<release>0.60.5</release>
|
|
7
7
|
<versions>
|
|
8
|
-
<version>0.60.
|
|
8
|
+
<version>0.60.5</version>
|
|
9
9
|
</versions>
|
|
10
|
-
<lastUpdated>
|
|
10
|
+
<lastUpdated>20190813172609</lastUpdated>
|
|
11
11
|
</versioning>
|
|
12
12
|
</metadata>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
e78377e13304ef88649c33e3c4584ab8
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
071489cffd23c2b186e5414e9651789b75f09d78
|