Skip to content

Commit ebc3bec

Browse files
committedFeb 10, 2022
Some refactoring
1 parent a754ffd commit ebc3bec

File tree

6 files changed

+6
-49
lines changed

6 files changed

+6
-49
lines changed
 

‎LiveView-iOS/AppDelegate.swift

-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ import UIKit
1010
@main
1111
class AppDelegate: UIResponder, UIApplicationDelegate {
1212

13-
14-
1513
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
1614
// Override point for customization after application launch.
1715
return true

‎LiveView-iOS/Base.lproj/Main.storyboard

-24
This file was deleted.

‎LiveView-iOS/Info.plist

-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@
1515
<string>Default Configuration</string>
1616
<key>UISceneDelegateClassName</key>
1717
<string>$(PRODUCT_MODULE_NAME).SceneDelegate</string>
18-
<key>UISceneStoryboardFile</key>
19-
<string>Main</string>
2018
</dict>
2119
</array>
2220
</dict>

‎LiveView-iOS/SceneDelegate.swift

+4-5
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,11 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate {
1111

1212
var window: UIWindow?
1313

14-
1514
func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) {
16-
// Use this method to optionally configure and attach the UIWindow `window` to the provided UIWindowScene `scene`.
17-
// If using a storyboard, the `window` property will automatically be initialized and attached to the scene.
18-
// This delegate does not imply the connecting scene or session are new (see `application:configurationForConnectingSceneSession` instead).
19-
guard let _ = (scene as? UIWindowScene) else { return }
15+
guard let windowScene = (scene as? UIWindowScene) else { return }
16+
window = UIWindow(windowScene: windowScene)
17+
window?.rootViewController = ViewController()
18+
window?.makeKeyAndVisible()
2019
}
2120

2221
func sceneDidDisconnect(_ scene: UIScene) {

‎LiveView-iOS/control ‎LiveView-iOS/debian/control

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ Architecture: iphoneos-arm
66
Author: Danylo Kostyshyn
77
Maintainer: Danylo Kostyshyn
88
Section: Utilities
9-
Description: Demo app that uses IOKit (libusb, libvnc) to interact with USB camera on a jailbroken iPhone
9+
Description: Demo app that uses IOKit (libusb, libvnc) to interact with a USB camera on a jailbroken iPhone
1010
Homepage: https://github.com/danylokos/LiveView

‎LiveView.xcodeproj/project.pbxproj

+1-15
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
771E48B627A0905F000F220D /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 771E48B527A0905F000F220D /* AppDelegate.swift */; };
1515
771E48B827A0905F000F220D /* SceneDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 771E48B727A0905F000F220D /* SceneDelegate.swift */; };
1616
771E48BA27A0905F000F220D /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 771E48B927A0905F000F220D /* ViewController.swift */; };
17-
771E48BD27A0905F000F220D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 771E48BB27A0905F000F220D /* Main.storyboard */; };
1817
771E48BF27A09061000F220D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 771E48BE27A09061000F220D /* Assets.xcassets */; };
1918
771E48C227A09061000F220D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 771E48C027A09061000F220D /* LaunchScreen.storyboard */; };
2019
771E48E627A0CAE6000F220D /* LiveViewKit.docc in Sources */ = {isa = PBXBuildFile; fileRef = 771E48E527A0CAE6000F220D /* LiveViewKit.docc */; };
@@ -81,7 +80,6 @@
8180
771E48B527A0905F000F220D /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
8281
771E48B727A0905F000F220D /* SceneDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SceneDelegate.swift; sourceTree = "<group>"; };
8382
771E48B927A0905F000F220D /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = "<group>"; };
84-
771E48BC27A0905F000F220D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
8583
771E48BE27A09061000F220D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
8684
771E48C127A09061000F220D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
8785
771E48C327A09061000F220D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
@@ -173,7 +171,6 @@
173171
771E48B727A0905F000F220D /* SceneDelegate.swift */,
174172
771E48B927A0905F000F220D /* ViewController.swift */,
175173
771E48BE27A09061000F220D /* Assets.xcassets */,
176-
771E48BB27A0905F000F220D /* Main.storyboard */,
177174
771E48C027A09061000F220D /* LaunchScreen.storyboard */,
178175
771E48C327A09061000F220D /* Info.plist */,
179176
);
@@ -324,7 +321,6 @@
324321
files = (
325322
771E48C227A09061000F220D /* LaunchScreen.storyboard in Resources */,
326323
771E48BF27A09061000F220D /* Assets.xcassets in Resources */,
327-
771E48BD27A0905F000F220D /* Main.storyboard in Resources */,
328324
);
329325
runOnlyForDeploymentPostprocessing = 0;
330326
};
@@ -353,7 +349,7 @@
353349
);
354350
runOnlyForDeploymentPostprocessing = 0;
355351
shellPath = /bin/sh;
356-
shellScript = "# Create .deb package\n\nversion=1.0\nbuildno=1\n\nPKG_ID=org.kostyshyn.LiveView\nPKG_NAME=$PKG_ID-$version-$buildno.deb\nDPKG_DIR=$TARGET_BUILD_DIR/dpkg\nAPP_BUNDLE=$TARGET_BUILD_DIR/$CONTENTS_FOLDER_PATH\nENTITLEMENTS=$SRCROOT/LiveView-iOS/LiveViewUSB.entitlements\n\n# sign\nldid -S$ENTITLEMENTS $APP_BUNDLE/$EXECUTABLE_NAME\n\n# copy\nrm -rf $DPKG_DIR\nmkdir -p $DPKG_DIR/$PKG_ID/{DEBIAN,Applications}\ncat $SRCROOT/LiveView-iOS/control | sed \"s/Version: PLACEHOLDER/Version: $version-$buildno/\" > $DPKG_DIR/$PKG_ID/DEBIAN/control\ncp -r $APP_BUNDLE $DPKG_DIR/$PKG_ID/Applications/ \n\n# create deb\ncd $DPKG_DIR\ndpkg-deb -Zgzip -b $PKG_ID $TARGET_BUILD_DIR/$PKG_NAME\n\n# install\n#scp -P 2222 $TARGET_BUILD_DIR/$PKG_NAME root@localhost:~/\n#ssh root@localhost -p 2222 \"dpkg -i $PKG_NAME && uicache\"\n";
352+
shellScript = "# Create .deb package\n\nversion=1.0\nbuildno=1\n\nPKG_ID=org.kostyshyn.LiveView\nPKG_NAME=$PKG_ID-$version-$buildno.deb\nDPKG_DIR=$TARGET_BUILD_DIR/dpkg\nAPP_BUNDLE=$TARGET_BUILD_DIR/$CONTENTS_FOLDER_PATH\nENTITLEMENTS=$SRCROOT/LiveView-iOS/LiveViewUSB.entitlements\n\n# sign\nldid -S$ENTITLEMENTS $APP_BUNDLE/$EXECUTABLE_NAME\n\n# copy\nrm -rf $DPKG_DIR\nmkdir -p $DPKG_DIR/$PKG_ID/{DEBIAN,Applications}\ncat $SRCROOT/LiveView-iOS/debian/control | sed \"s/Version: PLACEHOLDER/Version: $version-$buildno/\" > $DPKG_DIR/$PKG_ID/debian/control\ncp -r $APP_BUNDLE $DPKG_DIR/$PKG_ID/Applications/ \n\n# create deb\ncd $DPKG_DIR\ndpkg-deb -Zgzip -b $PKG_ID $TARGET_BUILD_DIR/$PKG_NAME\n\n# install\n#scp -P 2222 $TARGET_BUILD_DIR/$PKG_NAME root@localhost:~/\n#ssh root@localhost -p 2222 \"dpkg -i $PKG_NAME && uicache\"\n";
357353
};
358354
/* End PBXShellScriptBuildPhase section */
359355

@@ -411,14 +407,6 @@
411407
name = Main.storyboard;
412408
sourceTree = "<group>";
413409
};
414-
771E48BB27A0905F000F220D /* Main.storyboard */ = {
415-
isa = PBXVariantGroup;
416-
children = (
417-
771E48BC27A0905F000F220D /* Base */,
418-
);
419-
name = Main.storyboard;
420-
sourceTree = "<group>";
421-
};
422410
771E48C027A09061000F220D /* LaunchScreen.storyboard */ = {
423411
isa = PBXVariantGroup;
424412
children = (
@@ -620,7 +608,6 @@
620608
INFOPLIST_KEY_NSPhotoLibraryAddUsageDescription = "Save photo";
621609
INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES;
622610
INFOPLIST_KEY_UILaunchStoryboardName = LaunchScreen;
623-
INFOPLIST_KEY_UIMainStoryboardFile = Main;
624611
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
625612
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
626613
LD_RUNPATH_SEARCH_PATHS = (
@@ -654,7 +641,6 @@
654641
INFOPLIST_KEY_NSPhotoLibraryAddUsageDescription = "Save photo";
655642
INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES;
656643
INFOPLIST_KEY_UILaunchStoryboardName = LaunchScreen;
657-
INFOPLIST_KEY_UIMainStoryboardFile = Main;
658644
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
659645
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
660646
LD_RUNPATH_SEARCH_PATHS = (

0 commit comments

Comments
 (0)
Please sign in to comment.