react-native-tvos 0.75.3-0 → 0.75.4-0
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/Blob/RCTFileReaderModule.mm +4 -3
- package/Libraries/Core/ReactNativeVersion.js +1 -1
- package/React/Base/RCTVersion.m +1 -1
- package/React/Views/RCTModalHostView.m +1 -0
- package/ReactAndroid/api/ReactAndroid.api +1 -0
- package/ReactAndroid/gradle.properties +1 -1
- package/ReactAndroid/publish.gradle +2 -2
- package/ReactAndroid/src/main/java/com/facebook/react/jstasks/HeadlessJsTaskContext.java +13 -14
- package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.java +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactEditText.java +8 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactTextInputManager.java +1 -8
- package/ReactCommon/cxxreact/ReactNativeVersion.h +1 -1
- package/package.json +8 -8
- package/scripts/react-native-xcode.sh +3 -2
- package/sdks/hermesc/osx-bin/hermes +0 -0
- package/sdks/hermesc/osx-bin/hermesc +0 -0
- package/sdks/hermesc/win64-bin/hermesc.exe +0 -0
|
@@ -72,9 +72,10 @@ RCT_EXPORT_METHOD(readAsDataURL
|
|
|
72
72
|
nil);
|
|
73
73
|
} else {
|
|
74
74
|
NSString *type = [RCTConvert NSString:blob[@"type"]];
|
|
75
|
-
NSString *text = [NSString
|
|
76
|
-
|
|
77
|
-
|
|
75
|
+
NSString *text = [NSString
|
|
76
|
+
stringWithFormat:@"data:%@;base64,%@",
|
|
77
|
+
![type isEqual:[NSNull null]] && [type length] > 0 ? type : @"application/octet-stream",
|
|
78
|
+
[data base64EncodedStringWithOptions:0]];
|
|
78
79
|
|
|
79
80
|
resolve(text);
|
|
80
81
|
}
|
package/React/Base/RCTVersion.m
CHANGED
|
@@ -161,6 +161,7 @@ RCT_NOT_IMPLEMENTED(-(instancetype)initWithCoder : coder)
|
|
|
161
161
|
if (_isPresented) {
|
|
162
162
|
[_delegate dismissModalHostView:self withViewController:_modalViewController animated:[self hasAnimationType]];
|
|
163
163
|
_isPresented = NO;
|
|
164
|
+
[self setVisible:NO];
|
|
164
165
|
}
|
|
165
166
|
}
|
|
166
167
|
|
|
@@ -7732,6 +7732,7 @@ public class com/facebook/react/views/textinput/ReactEditText : androidx/appcomp
|
|
|
7732
7732
|
public fun setBorderStyle (Ljava/lang/String;)V
|
|
7733
7733
|
public fun setBorderWidth (IF)V
|
|
7734
7734
|
public fun setContentSizeWatcher (Lcom/facebook/react/views/textinput/ContentSizeWatcher;)V
|
|
7735
|
+
public fun setContextMenuHidden (Z)V
|
|
7735
7736
|
public fun setDisableFullscreenUI (Z)V
|
|
7736
7737
|
public fun setFontFamily (Ljava/lang/String;)V
|
|
7737
7738
|
public fun setFontFeatureSettings (Ljava/lang/String;)V
|
|
@@ -20,7 +20,7 @@ def sonatypeUsername = findProperty('SONATYPE_USERNAME')
|
|
|
20
20
|
def sonatypePassword = findProperty('SONATYPE_PASSWORD')
|
|
21
21
|
|
|
22
22
|
def reactAndroidProjectDir = project(':packages:react-native:ReactAndroid').projectDir
|
|
23
|
-
def mavenTempLocalUrl = 'file:///
|
|
23
|
+
def mavenTempLocalUrl = 'file:///home/expo/workingdir/build/maven_local'
|
|
24
24
|
// Rewritten when copying this to ReactAndroid/publish.gradle
|
|
25
25
|
|
|
26
26
|
publishing {
|
|
@@ -103,4 +103,4 @@ publishing {
|
|
|
103
103
|
} else {
|
|
104
104
|
logger.info('Signing disabled as the PGP key was not found')
|
|
105
105
|
}
|
|
106
|
-
}
|
|
106
|
+
}
|
|
@@ -169,26 +169,25 @@ public class HeadlessJsTaskContext {
|
|
|
169
169
|
|
|
170
170
|
/**
|
|
171
171
|
* Finish a JS task. Doesn't actually stop the task on the JS side, only removes it from the list
|
|
172
|
-
* of active tasks and notifies listeners.
|
|
172
|
+
* of active tasks and notifies listeners.
|
|
173
173
|
*
|
|
174
174
|
* @param taskId the unique id returned by {@link #startTask}.
|
|
175
175
|
*/
|
|
176
176
|
public synchronized void finishTask(final int taskId) {
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
Assertions.assertCondition(
|
|
180
|
-
mActiveTaskConfigs.remove(taskId) != null,
|
|
181
|
-
"Tried to remove non-existent task config with id " + taskId + ".");
|
|
177
|
+
boolean removed = mActiveTasks.remove(taskId);
|
|
178
|
+
mActiveTaskConfigs.remove(taskId);
|
|
182
179
|
removeTimeout(taskId);
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
listener
|
|
180
|
+
if (removed) {
|
|
181
|
+
UiThreadUtil.runOnUiThread(
|
|
182
|
+
new Runnable() {
|
|
183
|
+
@Override
|
|
184
|
+
public void run() {
|
|
185
|
+
for (HeadlessJsTaskEventListener listener : mHeadlessJsTaskEventListeners) {
|
|
186
|
+
listener.onHeadlessJsTaskFinish(taskId);
|
|
187
|
+
}
|
|
189
188
|
}
|
|
190
|
-
}
|
|
191
|
-
|
|
189
|
+
});
|
|
190
|
+
}
|
|
192
191
|
}
|
|
193
192
|
|
|
194
193
|
private void removeTimeout(int taskId) {
|
|
@@ -123,6 +123,7 @@ public class ReactEditText extends AppCompatEditText {
|
|
|
123
123
|
private int mFontWeight = ReactConstants.UNSET;
|
|
124
124
|
private int mFontStyle = ReactConstants.UNSET;
|
|
125
125
|
private boolean mAutoFocus = false;
|
|
126
|
+
private boolean mContextMenuHidden = false;
|
|
126
127
|
private boolean mDidAttachToWindow = false;
|
|
127
128
|
private @Nullable String mPlaceholder = null;
|
|
128
129
|
|
|
@@ -198,6 +199,9 @@ public class ReactEditText extends AppCompatEditText {
|
|
|
198
199
|
*/
|
|
199
200
|
@Override
|
|
200
201
|
public boolean onCreateActionMode(ActionMode mode, Menu menu) {
|
|
202
|
+
if (mContextMenuHidden) {
|
|
203
|
+
return false;
|
|
204
|
+
}
|
|
201
205
|
menu.removeItem(android.R.id.pasteAsPlainText);
|
|
202
206
|
return true;
|
|
203
207
|
}
|
|
@@ -1182,6 +1186,10 @@ public class ReactEditText extends AppCompatEditText {
|
|
|
1182
1186
|
mAutoFocus = autoFocus;
|
|
1183
1187
|
}
|
|
1184
1188
|
|
|
1189
|
+
public void setContextMenuHidden(boolean contextMenuHidden) {
|
|
1190
|
+
mContextMenuHidden = contextMenuHidden;
|
|
1191
|
+
}
|
|
1192
|
+
|
|
1185
1193
|
protected void applyTextAttributes() {
|
|
1186
1194
|
// In general, the `getEffective*` functions return `Float.NaN` if the
|
|
1187
1195
|
// property hasn't been set.
|
package/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactTextInputManager.java
CHANGED
|
@@ -651,14 +651,7 @@ public class ReactTextInputManager extends BaseViewManager<ReactEditText, Layout
|
|
|
651
651
|
|
|
652
652
|
@ReactProp(name = "contextMenuHidden", defaultBoolean = false)
|
|
653
653
|
public void setContextMenuHidden(ReactEditText view, boolean contextMenuHidden) {
|
|
654
|
-
|
|
655
|
-
view.setOnLongClickListener(
|
|
656
|
-
new View.OnLongClickListener() {
|
|
657
|
-
public boolean onLongClick(View v) {
|
|
658
|
-
return _contextMenuHidden;
|
|
659
|
-
}
|
|
660
|
-
;
|
|
661
|
-
});
|
|
654
|
+
view.setContextMenuHidden(contextMenuHidden);
|
|
662
655
|
}
|
|
663
656
|
|
|
664
657
|
@ReactProp(name = "selectTextOnFocus", defaultBoolean = false)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-tvos",
|
|
3
|
-
"version": "0.75.
|
|
3
|
+
"version": "0.75.4-0",
|
|
4
4
|
"description": "A framework for building native apps using React",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -113,13 +113,13 @@
|
|
|
113
113
|
"@react-native-community/cli": "14.1.0",
|
|
114
114
|
"@react-native-community/cli-platform-android": "14.1.0",
|
|
115
115
|
"@react-native-community/cli-platform-ios": "14.1.0",
|
|
116
|
-
"@react-native/assets-registry": "0.75.
|
|
117
|
-
"@react-native/codegen": "0.75.
|
|
118
|
-
"@react-native/community-cli-plugin": "0.75.
|
|
119
|
-
"@react-native/gradle-plugin": "0.75.
|
|
120
|
-
"@react-native/js-polyfills": "0.75.
|
|
121
|
-
"@react-native/normalize-colors": "0.75.
|
|
122
|
-
"@react-native-tvos/virtualized-lists": "0.75.
|
|
116
|
+
"@react-native/assets-registry": "0.75.4",
|
|
117
|
+
"@react-native/codegen": "0.75.4",
|
|
118
|
+
"@react-native/community-cli-plugin": "0.75.4",
|
|
119
|
+
"@react-native/gradle-plugin": "0.75.4",
|
|
120
|
+
"@react-native/js-polyfills": "0.75.4",
|
|
121
|
+
"@react-native/normalize-colors": "0.75.4",
|
|
122
|
+
"@react-native-tvos/virtualized-lists": "0.75.4-0",
|
|
123
123
|
"abort-controller": "^3.0.0",
|
|
124
124
|
"anser": "^1.4.9",
|
|
125
125
|
"ansi-regex": "^5.0.0",
|
|
@@ -92,6 +92,8 @@ fi
|
|
|
92
92
|
|
|
93
93
|
[ -z "$CLI_PATH" ] && CLI_PATH="$REACT_NATIVE_DIR/scripts/bundle.js"
|
|
94
94
|
|
|
95
|
+
[ -z "$BUNDLE_COMMAND" ] && BUNDLE_COMMAND="bundle"
|
|
96
|
+
|
|
95
97
|
[ -z "$COMPOSE_SOURCEMAP_PATH" ] && COMPOSE_SOURCEMAP_PATH="$REACT_NATIVE_DIR/scripts/compose-source-maps.js"
|
|
96
98
|
|
|
97
99
|
if [[ -z "$BUNDLE_CONFIG" ]]; then
|
|
@@ -141,7 +143,7 @@ fi
|
|
|
141
143
|
if [[ -n "$CONFIG_JSON" ]]; then
|
|
142
144
|
EXTRA_ARGS+=("--load-config" "$CONFIG_JSON")
|
|
143
145
|
elif [[ -n "$CONFIG_CMD" ]]; then
|
|
144
|
-
EXTRA_ARGS+=("--config-cmd" "$
|
|
146
|
+
EXTRA_ARGS+=("--config-cmd" "$CONFIG_CMD")
|
|
145
147
|
else
|
|
146
148
|
EXTRA_ARGS+=("--config-cmd" "$NODE_BINARY $NODE_ARGS $REACT_NATIVE_DIR/cli.js config")
|
|
147
149
|
fi
|
|
@@ -149,7 +151,6 @@ fi
|
|
|
149
151
|
# shellcheck disable=SC2086
|
|
150
152
|
"$NODE_BINARY" $NODE_ARGS "$CLI_PATH" $BUNDLE_COMMAND \
|
|
151
153
|
$CONFIG_ARG \
|
|
152
|
-
--config-cmd "$CONFIG" \
|
|
153
154
|
--entry-file "$ENTRY_FILE" \
|
|
154
155
|
--platform "$BUNDLE_PLATFORM" \
|
|
155
156
|
--dev $DEV \
|
|
Binary file
|
|
Binary file
|
|
Binary file
|