mirror of
https://github.com/kunkundi/crossdesk.git
synced 2026-11-12 03:28:20 +08:00
[fix] check iOS updates against App Store releases
This commit is contained in:
1 parent
f0f0a68ec6
commit
67afb25c75
20 files changed
+327
-71
No files matched your search
@@ -155,10 +155,6 @@ typedef struct {
|
||||
releaseJSON:(NSData *)releaseJSON
|
||||
NS_SWIFT_NAME(availableUpdate(appVersion:releaseJSON:));
|
||||
|
||||
+ (nullable NSString *)checkMobileUpdateForAppVersion:(NSString *)appVersion
|
||||
releaseJSON:(NSData *)releaseJSON
|
||||
NS_SWIFT_NAME(checkMobileUpdate(appVersion:releaseJSON:));
|
||||
|
||||
- (void)configureWithSignalHost:(NSString *)host
|
||||
signalPort:(NSInteger)signalPort;
|
||||
- (void)setVideoAdaptationPolicy:(CrossDeskVideoAdaptationPolicy)policy;
|
||||
|
||||
@@ -508,16 +508,6 @@ MiniRtcParams MakeParams(const RTCState &state, const std::string &user_id,
|
||||
return update ? [NSString stringWithUTF8String:update->c_str()] : nil;
|
||||
}
|
||||
|
||||
+ (nullable NSString *)checkMobileUpdateForAppVersion:(NSString *)appVersion
|
||||
releaseJSON:(NSData *)releaseJSON {
|
||||
if (releaseJSON.length == 0 || releaseJSON.length > 256 * 1024) return nil;
|
||||
const auto result = crossdesk::CheckPlatformAppUpdate(
|
||||
appVersion.UTF8String ?: "", std::string_view(
|
||||
static_cast<const char *>(releaseJSON.bytes), releaseJSON.length),
|
||||
"ios-arm64");
|
||||
return result ? [NSString stringWithUTF8String:result->c_str()] : nil;
|
||||
}
|
||||
|
||||
- (instancetype)init {
|
||||
self = [super init];
|
||||
if (self) {
|
||||
|
||||
Reference in new issue
Block a user