react-native-update 10.59.1 → 10.59.2
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.
|
@@ -169,17 +169,21 @@ final class ApkInstaller {
|
|
|
169
169
|
}
|
|
170
170
|
|
|
171
171
|
sessionId = packageInstaller.createSession(sessionParams);
|
|
172
|
-
try (
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
172
|
+
try (PackageInstaller.Session session = packageInstaller.openSession(sessionId)) {
|
|
173
|
+
// The write stream has to be closed before commit(): the system
|
|
174
|
+
// refuses to seal a session with open file transfers
|
|
175
|
+
// ("SecurityException: Files still open"), on every Android version.
|
|
176
|
+
try (
|
|
177
|
+
FileInputStream input = new FileInputStream(apkFile);
|
|
178
|
+
OutputStream output = session.openWrite("base.apk", 0, apkFile.length())
|
|
179
|
+
) {
|
|
180
|
+
byte[] buffer = new byte[COPY_BUFFER_SIZE];
|
|
181
|
+
int count;
|
|
182
|
+
while ((count = input.read(buffer)) != -1) {
|
|
183
|
+
output.write(buffer, 0, count);
|
|
184
|
+
}
|
|
185
|
+
session.fsync(output);
|
|
181
186
|
}
|
|
182
|
-
session.fsync(output);
|
|
183
187
|
|
|
184
188
|
Intent statusIntent = new Intent(
|
|
185
189
|
reactContext,
|
|
@@ -78,6 +78,8 @@ endif()
|
|
|
78
78
|
# keep exporting PushyTurboModule (JSI_EXPORT) for the host's PackageProvider.
|
|
79
79
|
if(NOT CMAKE_BUILD_TYPE STREQUAL "Debug")
|
|
80
80
|
target_compile_options(rnpushy PRIVATE
|
|
81
|
+
# NAPI_MODULE records __FILE__; keep the build path out of the binary.
|
|
82
|
+
-fmacro-prefix-map=${CMAKE_CURRENT_SOURCE_DIR}/=
|
|
81
83
|
-ffunction-sections
|
|
82
84
|
-fdata-sections
|
|
83
85
|
-fvisibility=hidden
|
package/harmony/pushy.har
CHANGED
|
Binary file
|
package/ios/RCTPushy/RCTPushy.mm
CHANGED
|
@@ -31,6 +31,12 @@
|
|
|
31
31
|
|
|
32
32
|
#import <React/RCTConvert.h>
|
|
33
33
|
#import <React/RCTLog.h>
|
|
34
|
+
// RN's log macros pass __FILE__, which would embed this file's absolute build
|
|
35
|
+
// path in the binary; log with the bare file name instead.
|
|
36
|
+
#if RCTLOG_ENABLED
|
|
37
|
+
#undef _RCTLog
|
|
38
|
+
#define _RCTLog(lvl, ...) _RCTLogNativeInternal(lvl, __FILE_NAME__, __LINE__, __VA_ARGS__)
|
|
39
|
+
#endif
|
|
34
40
|
#import <objc/runtime.h>
|
|
35
41
|
#import <os/lock.h>
|
|
36
42
|
|
package/package.json
CHANGED
|
@@ -147,7 +147,7 @@ Pod::Spec.new do |s|
|
|
|
147
147
|
# Privacy manifest (required-reason APIs: disk space, file timestamps,
|
|
148
148
|
# system boot time, user defaults) delivered as its own resource bundle so
|
|
149
149
|
# static and dynamic integrations both carry it.
|
|
150
|
-
s.resource_bundles = { '
|
|
150
|
+
s.resource_bundles = { 'PushyPrivacy' => ['ios/PrivacyInfo.xcprivacy'] }
|
|
151
151
|
|
|
152
152
|
s.dependency 'React'
|
|
153
153
|
s.dependency "React-Core"
|