react-native-macos 0.75.28 → 0.75.30
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/Libraries/Text/Text.d.ts +1 -0
- package/Libraries/Text/TextInput/Singleline/RCTUITextField.mm +1 -1
- package/React/Base/RCTVersion.m +1 -1
- package/React/Base/macOS/RCTUIKit.m +1 -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/package.json +1 -1
- package/sdks/hermes-engine/hermes-utils.rb +7 -16
package/Libraries/Text/Text.d.ts
CHANGED
|
@@ -153,7 +153,7 @@
|
|
|
153
153
|
|
|
154
154
|
- (NSArray<NSAttributedStringKey> *)validAttributesForMarkedText
|
|
155
155
|
{
|
|
156
|
-
return ((NSTextView *)self.currentEditor).validAttributesForMarkedText;
|
|
156
|
+
return ((NSTextView *)self.currentEditor).validAttributesForMarkedText ?: @[];
|
|
157
157
|
}
|
|
158
158
|
|
|
159
159
|
#endif // macOS]
|
package/React/Base/RCTVersion.m
CHANGED
|
@@ -44,7 +44,7 @@ void UIGraphicsBeginImageContextWithOptions(CGSize size, __unused BOOL opaque, C
|
|
|
44
44
|
size_t height = ceilf(size.height * scale);
|
|
45
45
|
|
|
46
46
|
CGColorSpaceRef colorSpace = CGColorSpaceCreateDeviceRGB();
|
|
47
|
-
CGContextRef ctx = CGBitmapContextCreate(NULL, width, height, 8/*bitsPerComponent*/, width * 4/*bytesPerRow*/, colorSpace, kCGImageAlphaPremultipliedFirst);
|
|
47
|
+
CGContextRef ctx = CGBitmapContextCreate(NULL, width, height, 8/*bitsPerComponent*/, width * 4/*bytesPerRow*/, colorSpace, (CGBitmapInfo)kCGImageAlphaPremultipliedFirst);
|
|
48
48
|
CGColorSpaceRelease(colorSpace);
|
|
49
49
|
|
|
50
50
|
if (ctx != NULL)
|
package/package.json
CHANGED
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
require 'net/http'
|
|
7
7
|
require 'rexml/document'
|
|
8
8
|
require 'open3' # [macOS]
|
|
9
|
+
require 'json' # [macOS]
|
|
9
10
|
|
|
10
11
|
HERMES_GITHUB_URL = "https://github.com/facebook/hermes.git"
|
|
11
12
|
ENV_BUILD_FROM_SOURCE = "RCT_BUILD_HERMES_FROM_SOURCE"
|
|
@@ -238,22 +239,12 @@ end
|
|
|
238
239
|
# [macOS react-native-macos does not publish macos specific hermes artifacts
|
|
239
240
|
# so we attempt to find the latest patch version of the iOS artifacts and use that
|
|
240
241
|
def findLastestVersionWithArtifact(version)
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
# Extract version numbers and sort them
|
|
248
|
-
filtered_versions = versions.select { |version| version.text.match?(/^#{versionWithoutPatch}\.\d+$/) }
|
|
249
|
-
if filtered_versions.empty?
|
|
250
|
-
return
|
|
251
|
-
end
|
|
252
|
-
|
|
253
|
-
version_numbers = filtered_versions.map { |version| version.text }
|
|
254
|
-
sorted_versions = version_numbers.sort_by { |v| Gem::Version.new(v) }
|
|
255
|
-
|
|
256
|
-
return sorted_versions.last
|
|
242
|
+
# See https://central.sonatype.org/search/rest-api-guide/ for details on query params
|
|
243
|
+
versionWithoutPatch = "#{version.match(/^(\d+\.\d+)/)}"
|
|
244
|
+
res, = Open3.capture3("curl -s https://search.maven.org/solrsearch/select?q=g:com.facebook.react+AND+a:react-native-artifacts+AND+v:#{versionWithoutPatch}.*&core=gav&rows=1&wt=json")
|
|
245
|
+
wt = JSON.parse(res)
|
|
246
|
+
response = wt['response']
|
|
247
|
+
return response['docs'][0]['v'] unless response['numFound'] == 0
|
|
257
248
|
end
|
|
258
249
|
# macOS]
|
|
259
250
|
|