@byteplus/react-native-live-push 1.5.1-rc.2 → 1.5.2-rc.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/ios/VeLiveMixerView.m +5 -15
- package/lib/commonjs/index.js +2 -2
- package/lib/module/index.js +2 -2
- package/package.json +1 -1
package/ios/VeLiveMixerView.m
CHANGED
|
@@ -360,7 +360,9 @@
|
|
|
360
360
|
- (void)insertReactSubview:(UIView *)subview atIndex:(NSInteger)atIndex {
|
|
361
361
|
// Process directly on main thread because React Native ensures thread safety
|
|
362
362
|
[super insertSubview:subview atIndex:atIndex];
|
|
363
|
-
|
|
363
|
+
// Don't use Auto Layout, set frame directly in layoutSubviews
|
|
364
|
+
subview.translatesAutoresizingMaskIntoConstraints = YES;
|
|
365
|
+
subview.frame = self.bounds;
|
|
364
366
|
}
|
|
365
367
|
|
|
366
368
|
- (void)removeReactSubview:(UIView *)subview {
|
|
@@ -371,19 +373,7 @@
|
|
|
371
373
|
return [self subviews];
|
|
372
374
|
}
|
|
373
375
|
|
|
374
|
-
//
|
|
375
|
-
- (void)setSubViewAutoLayout:(UIView *)subview {
|
|
376
|
-
// Disable automatic conversion, use constraints layout
|
|
377
|
-
subview.translatesAutoresizingMaskIntoConstraints = NO;
|
|
378
|
-
|
|
379
|
-
// Set four-side constraints, let subview fill parent view
|
|
380
|
-
[NSLayoutConstraint activateConstraints:@[
|
|
381
|
-
[subview.leadingAnchor constraintEqualToAnchor:self.leadingAnchor],
|
|
382
|
-
[subview.trailingAnchor constraintEqualToAnchor:self.trailingAnchor],
|
|
383
|
-
[subview.topAnchor constraintEqualToAnchor:self.topAnchor],
|
|
384
|
-
[subview.bottomAnchor constraintEqualToAnchor:self.bottomAnchor]
|
|
385
|
-
]];
|
|
386
|
-
}
|
|
376
|
+
// Removed setSubViewAutoLayout method as Auto Layout is forbidden in new architecture
|
|
387
377
|
|
|
388
378
|
// Override layoutSubviews to ensure correct subview layout
|
|
389
379
|
- (void)layoutSubviews {
|
|
@@ -544,4 +534,4 @@
|
|
|
544
534
|
return image;
|
|
545
535
|
}
|
|
546
536
|
|
|
547
|
-
@end
|
|
537
|
+
@end
|
package/lib/commonjs/index.js
CHANGED
|
@@ -26827,7 +26827,7 @@ function initAndroidEnv(config) {
|
|
|
26827
26827
|
.setLicenseUri(config.LicenseUri.android);
|
|
26828
26828
|
androidEnv = builder.build();
|
|
26829
26829
|
EnvHelper.init(androidEnv, {
|
|
26830
|
-
hybrid_ua: "rn|push|".concat("1.5.
|
|
26830
|
+
hybrid_ua: "rn|push|".concat("1.5.1"),
|
|
26831
26831
|
});
|
|
26832
26832
|
Env.openAppLog(config.openLog);
|
|
26833
26833
|
TTNetManager.initTTNet(context);
|
|
@@ -26839,7 +26839,7 @@ function initAndroidEnv(config) {
|
|
|
26839
26839
|
function initIOSEnv(config) {
|
|
26840
26840
|
return __awaiter(this, void 0, void 0, function () {
|
|
26841
26841
|
return __generator(this, function (_a) {
|
|
26842
|
-
VeLivePushHelper.startWithConfiguration(__assign(__assign({}, config), { LicenseUri: config.LicenseUri.ios, appLogAid: '500808' , hybrid_ua: "rn|push|".concat("1.5.
|
|
26842
|
+
VeLivePushHelper.startWithConfiguration(__assign(__assign({}, config), { LicenseUri: config.LicenseUri.ios, appLogAid: '500808' , hybrid_ua: "rn|push|".concat("1.5.1") }));
|
|
26843
26843
|
return [2 /*return*/];
|
|
26844
26844
|
});
|
|
26845
26845
|
});
|
package/lib/module/index.js
CHANGED
|
@@ -26825,7 +26825,7 @@ function initAndroidEnv(config) {
|
|
|
26825
26825
|
.setLicenseUri(config.LicenseUri.android);
|
|
26826
26826
|
androidEnv = builder.build();
|
|
26827
26827
|
EnvHelper.init(androidEnv, {
|
|
26828
|
-
hybrid_ua: "rn|push|".concat("1.5.
|
|
26828
|
+
hybrid_ua: "rn|push|".concat("1.5.1"),
|
|
26829
26829
|
});
|
|
26830
26830
|
Env.openAppLog(config.openLog);
|
|
26831
26831
|
TTNetManager.initTTNet(context);
|
|
@@ -26837,7 +26837,7 @@ function initAndroidEnv(config) {
|
|
|
26837
26837
|
function initIOSEnv(config) {
|
|
26838
26838
|
return __awaiter(this, void 0, void 0, function () {
|
|
26839
26839
|
return __generator(this, function (_a) {
|
|
26840
|
-
VeLivePushHelper.startWithConfiguration(__assign(__assign({}, config), { LicenseUri: config.LicenseUri.ios, appLogAid: '500808' , hybrid_ua: "rn|push|".concat("1.5.
|
|
26840
|
+
VeLivePushHelper.startWithConfiguration(__assign(__assign({}, config), { LicenseUri: config.LicenseUri.ios, appLogAid: '500808' , hybrid_ua: "rn|push|".concat("1.5.1") }));
|
|
26841
26841
|
return [2 /*return*/];
|
|
26842
26842
|
});
|
|
26843
26843
|
});
|