Skip to content

Commit e981723

Browse files
committed
3.3.0, implement #385
1 parent 7486245 commit e981723

File tree

5 files changed

+17
-4
lines changed

5 files changed

+17
-4
lines changed

LiveContainerSwiftUI/AppDelegate.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ import SwiftUI
102102
containerName = containerName1
103103
}
104104
}
105-
if let bundleId {
105+
if let bundleId, bundleId != "ui"{
106106
AppDelegate.launchApp(bundleId: bundleId, container: containerName)
107107
}
108108
}

Resources/Info.plist

+2-2
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
<key>CFBundlePackageType</key>
4343
<string>APPL</string>
4444
<key>CFBundleShortVersionString</key>
45-
<string>3.2.64</string>
45+
<string>3.3.0</string>
4646
<key>CFBundleSignature</key>
4747
<string>????</string>
4848
<key>CFBundleSupportedPlatforms</key>
@@ -61,7 +61,7 @@
6161
</dict>
6262
</array>
6363
<key>CFBundleVersion</key>
64-
<string>3.2.64</string>
64+
<string>3.3.0</string>
6565
<key>LSApplicationCategoryType</key>
6666
<string>public.app-category.games</string>
6767
<key>LSApplicationQueriesSchemes</key>

TweakLoader/UIKit+GuestHooks.m

+7
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,13 @@ void handleLiveContainerLaunch(NSURL* url) {
233233
containerFolderName = queryItem.value;
234234
}
235235
}
236+
237+
// launch to LiveContainerUI
238+
if([bundleName isEqualToString:@"ui"]) {
239+
LCShowSwitchAppConfirmation(url, @"LiveContainer");
240+
return;
241+
}
242+
236243
NSString* containerId = [NSString stringWithUTF8String:getenv("HOME")].lastPathComponent;
237244
if(!containerFolderName) {
238245
containerFolderName = findDefaultContainerWithBundleId(bundleName);

control

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: com.kdt.livecontainer
22
Name: livecontainer
3-
Version: 3.2.64
3+
Version: 3.3.0
44
Architecture: iphoneos-arm
55
Description: Run iOS app without actually installing it!
66
Maintainer: khanhduytran0

main.m

+6
Original file line numberDiff line numberDiff line change
@@ -533,6 +533,12 @@ int LiveContainerMain(int argc, char *argv[]) {
533533

534534
NSString *selectedApp = [lcUserDefaults stringForKey:@"selected"];
535535
NSString *selectedContainer = [lcUserDefaults stringForKey:@"selectedContainer"];
536+
if([selectedApp isEqualToString:@"ui"]) {
537+
selectedApp = nil;
538+
[lcUserDefaults removeObjectForKey:@"selected"];
539+
[lcUserDefaults removeObjectForKey:@"selectedContainer"];
540+
}
541+
536542
if(selectedApp && !selectedContainer) {
537543
selectedContainer = [LCSharedUtils findDefaultContainerWithBundleId:selectedApp];
538544
}

0 commit comments

Comments
 (0)