Skip to content

Commit b11083f

Browse files
committed
initialization
1 parent ae8555c commit b11083f

File tree

26 files changed

+1969
-525
lines changed

26 files changed

+1969
-525
lines changed

Demo/Demo.xcodeproj/project.pbxproj

Lines changed: 480 additions & 0 deletions
Large diffs are not rendered by default.

Example/LLaunchScreen.xcodeproj/project.xcworkspace/contents.xcworkspacedata renamed to Demo/Demo.xcodeproj/project.xcworkspace/contents.xcworkspacedata

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>IDEDidComputeMac32BitWarning</key>
6+
<true/>
7+
</dict>
8+
</plist>

Example/LLaunchScreen.xcodeproj/xcshareddata/xcschemes/LLaunchScreen-Example.xcscheme renamed to Demo/Demo.xcodeproj/xcshareddata/xcschemes/Demo.xcscheme

Lines changed: 17 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "0900"
3+
LastUpgradeVersion = "1240"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"
@@ -14,24 +14,10 @@
1414
buildForAnalyzing = "YES">
1515
<BuildableReference
1616
BuildableIdentifier = "primary"
17-
BlueprintIdentifier = "607FACCF1AFB9204008FA782"
18-
BuildableName = "LLaunchScreen_Example.app"
19-
BlueprintName = "LLaunchScreen_Example"
20-
ReferencedContainer = "container:LLaunchScreen.xcodeproj">
21-
</BuildableReference>
22-
</BuildActionEntry>
23-
<BuildActionEntry
24-
buildForTesting = "YES"
25-
buildForRunning = "YES"
26-
buildForProfiling = "NO"
27-
buildForArchiving = "NO"
28-
buildForAnalyzing = "YES">
29-
<BuildableReference
30-
BuildableIdentifier = "primary"
31-
BlueprintIdentifier = "607FACE41AFB9204008FA782"
32-
BuildableName = "LLaunchScreen_Tests.xctest"
33-
BlueprintName = "LLaunchScreen_Tests"
34-
ReferencedContainer = "container:LLaunchScreen.xcodeproj">
17+
BlueprintIdentifier = "6A666C3825D0047E001B737B"
18+
BuildableName = "Demo.app"
19+
BlueprintName = "Demo"
20+
ReferencedContainer = "container:Demo.xcodeproj">
3521
</BuildableReference>
3622
</BuildActionEntry>
3723
</BuildActionEntries>
@@ -40,37 +26,24 @@
4026
buildConfiguration = "Debug"
4127
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
4228
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
43-
language = ""
4429
shouldUseLaunchSchemeArgsEnv = "YES">
4530
<Testables>
4631
<TestableReference
4732
skipped = "NO">
4833
<BuildableReference
4934
BuildableIdentifier = "primary"
50-
BlueprintIdentifier = "607FACE41AFB9204008FA782"
51-
BuildableName = "LLaunchScreen_Tests.xctest"
52-
BlueprintName = "LLaunchScreen_Tests"
53-
ReferencedContainer = "container:LLaunchScreen.xcodeproj">
35+
BlueprintIdentifier = "6AC238CA25F05A9B00D29782"
36+
BuildableName = "Tests.xctest"
37+
BlueprintName = "Tests"
38+
ReferencedContainer = "container:Demo.xcodeproj">
5439
</BuildableReference>
5540
</TestableReference>
5641
</Testables>
57-
<MacroExpansion>
58-
<BuildableReference
59-
BuildableIdentifier = "primary"
60-
BlueprintIdentifier = "607FACCF1AFB9204008FA782"
61-
BuildableName = "LLaunchScreen_Example.app"
62-
BlueprintName = "LLaunchScreen_Example"
63-
ReferencedContainer = "container:LLaunchScreen.xcodeproj">
64-
</BuildableReference>
65-
</MacroExpansion>
66-
<AdditionalOptions>
67-
</AdditionalOptions>
6842
</TestAction>
6943
<LaunchAction
7044
buildConfiguration = "Debug"
7145
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
7246
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
73-
language = ""
7447
launchStyle = "0"
7548
useCustomWorkingDirectory = "NO"
7649
ignoresPersistentStateOnLaunch = "NO"
@@ -81,14 +54,12 @@
8154
runnableDebuggingMode = "0">
8255
<BuildableReference
8356
BuildableIdentifier = "primary"
84-
BlueprintIdentifier = "607FACCF1AFB9204008FA782"
85-
BuildableName = "LLaunchScreen_Example.app"
86-
BlueprintName = "LLaunchScreen_Example"
87-
ReferencedContainer = "container:LLaunchScreen.xcodeproj">
57+
BlueprintIdentifier = "6A666C3825D0047E001B737B"
58+
BuildableName = "Demo.app"
59+
BlueprintName = "Demo"
60+
ReferencedContainer = "container:Demo.xcodeproj">
8861
</BuildableReference>
8962
</BuildableProductRunnable>
90-
<AdditionalOptions>
91-
</AdditionalOptions>
9263
</LaunchAction>
9364
<ProfileAction
9465
buildConfiguration = "Release"
@@ -100,10 +71,10 @@
10071
runnableDebuggingMode = "0">
10172
<BuildableReference
10273
BuildableIdentifier = "primary"
103-
BlueprintIdentifier = "607FACCF1AFB9204008FA782"
104-
BuildableName = "LLaunchScreen_Example.app"
105-
BlueprintName = "LLaunchScreen_Example"
106-
ReferencedContainer = "container:LLaunchScreen.xcodeproj">
74+
BlueprintIdentifier = "6A666C3825D0047E001B737B"
75+
BuildableName = "Demo.app"
76+
BlueprintName = "Demo"
77+
ReferencedContainer = "container:Demo.xcodeproj">
10778
</BuildableReference>
10879
</BuildableProductRunnable>
10980
</ProfileAction>

Demo/Demo/AppDelegate.swift

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
//
2+
// AppDelegate.swift
3+
// LLaunchScreen
4+
//
5+
// Created by LL on 2021/1/31.
6+
//
7+
8+
import UIKit
9+
10+
@main
11+
class AppDelegate: UIResponder, UIApplicationDelegate {
12+
13+
var window: UIWindow?
14+
15+
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
16+
17+
print("沙盒路径:\(NSHomeDirectory())")
18+
19+
sleep(1)
20+
21+
if #available(iOS 13.0, *) {
22+
} else {
23+
window = UIWindow.init(frame: UIScreen.main.bounds)
24+
let nav = UINavigationController.init(rootViewController: ViewController())
25+
window?.rootViewController = nav
26+
window?.makeKeyAndVisible()
27+
}
28+
29+
LLaunchScreen.finishLaunching()
30+
31+
return true
32+
}
33+
34+
}
35+
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"colors" : [
3+
{
4+
"idiom" : "universal"
5+
}
6+
],
7+
"info" : {
8+
"author" : "xcode",
9+
"version" : 1
10+
}
11+
}
Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
{
2+
"images" : [
3+
{
4+
"idiom" : "iphone",
5+
"scale" : "2x",
6+
"size" : "20x20"
7+
},
8+
{
9+
"idiom" : "iphone",
10+
"scale" : "3x",
11+
"size" : "20x20"
12+
},
13+
{
14+
"idiom" : "iphone",
15+
"scale" : "2x",
16+
"size" : "29x29"
17+
},
18+
{
19+
"idiom" : "iphone",
20+
"scale" : "3x",
21+
"size" : "29x29"
22+
},
23+
{
24+
"idiom" : "iphone",
25+
"scale" : "2x",
26+
"size" : "40x40"
27+
},
28+
{
29+
"idiom" : "iphone",
30+
"scale" : "3x",
31+
"size" : "40x40"
32+
},
33+
{
34+
"idiom" : "iphone",
35+
"scale" : "2x",
36+
"size" : "60x60"
37+
},
38+
{
39+
"idiom" : "iphone",
40+
"scale" : "3x",
41+
"size" : "60x60"
42+
},
43+
{
44+
"idiom" : "ipad",
45+
"scale" : "1x",
46+
"size" : "20x20"
47+
},
48+
{
49+
"idiom" : "ipad",
50+
"scale" : "2x",
51+
"size" : "20x20"
52+
},
53+
{
54+
"idiom" : "ipad",
55+
"scale" : "1x",
56+
"size" : "29x29"
57+
},
58+
{
59+
"idiom" : "ipad",
60+
"scale" : "2x",
61+
"size" : "29x29"
62+
},
63+
{
64+
"idiom" : "ipad",
65+
"scale" : "1x",
66+
"size" : "40x40"
67+
},
68+
{
69+
"idiom" : "ipad",
70+
"scale" : "2x",
71+
"size" : "40x40"
72+
},
73+
{
74+
"idiom" : "ipad",
75+
"scale" : "1x",
76+
"size" : "76x76"
77+
},
78+
{
79+
"idiom" : "ipad",
80+
"scale" : "2x",
81+
"size" : "76x76"
82+
},
83+
{
84+
"idiom" : "ipad",
85+
"scale" : "2x",
86+
"size" : "83.5x83.5"
87+
},
88+
{
89+
"idiom" : "ios-marketing",
90+
"scale" : "1x",
91+
"size" : "1024x1024"
92+
}
93+
],
94+
"info" : {
95+
"author" : "xcode",
96+
"version" : 1
97+
}
98+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"info" : {
3+
"author" : "xcode",
4+
"version" : 1
5+
}
6+
}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="13122.16" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="BYZ-38-t0r">
3+
<dependencies>
4+
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="13104.12"/>
5+
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
6+
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
7+
</dependencies>
8+
<scenes>
9+
<!--View Controller-->
10+
<scene sceneID="tne-QT-ifu">
11+
<objects>
12+
<viewController id="BYZ-38-t0r" customClass="ViewController" customModuleProvider="target" sceneMemberID="viewController">
13+
<view key="view" contentMode="scaleToFill" id="8bC-Xf-vdC">
14+
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
15+
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
16+
<color key="backgroundColor" xcode11CocoaTouchSystemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/>
17+
<viewLayoutGuide key="safeArea" id="6Tk-OE-BBY"/>
18+
</view>
19+
</viewController>
20+
<placeholder placeholderIdentifier="IBFirstResponder" id="dkx-z0-nzr" sceneMemberID="firstResponder"/>
21+
</objects>
22+
</scene>
23+
</scenes>
24+
</document>

Demo/Demo/Info.plist

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>CFBundleDevelopmentRegion</key>
6+
<string>$(DEVELOPMENT_LANGUAGE)</string>
7+
<key>CFBundleDisplayName</key>
8+
<string>Demo</string>
9+
<key>CFBundleExecutable</key>
10+
<string>$(EXECUTABLE_NAME)</string>
11+
<key>CFBundleIdentifier</key>
12+
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
13+
<key>CFBundleInfoDictionaryVersion</key>
14+
<string>6.0</string>
15+
<key>CFBundleName</key>
16+
<string>$(PRODUCT_NAME)</string>
17+
<key>CFBundlePackageType</key>
18+
<string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>
19+
<key>CFBundleShortVersionString</key>
20+
<string>1.0</string>
21+
<key>CFBundleVersion</key>
22+
<string>1</string>
23+
<key>LSRequiresIPhoneOS</key>
24+
<true/>
25+
<key>UIApplicationSceneManifest</key>
26+
<dict>
27+
<key>UIApplicationSupportsMultipleScenes</key>
28+
<false/>
29+
<key>UISceneConfigurations</key>
30+
<dict>
31+
<key>UIWindowSceneSessionRoleApplication</key>
32+
<array>
33+
<dict>
34+
<key>UISceneConfigurationName</key>
35+
<string>Default Configuration</string>
36+
<key>UISceneDelegateClassName</key>
37+
<string>$(PRODUCT_MODULE_NAME).SceneDelegate</string>
38+
<key>UISceneStoryboardFile</key>
39+
<string>Main</string>
40+
</dict>
41+
</array>
42+
</dict>
43+
</dict>
44+
<key>UIApplicationSupportsIndirectInputEvents</key>
45+
<true/>
46+
<key>UILaunchStoryboardName</key>
47+
<string>LaunchScreen</string>
48+
<key>UIMainStoryboardFile</key>
49+
<string>Main</string>
50+
<key>UIRequiredDeviceCapabilities</key>
51+
<array>
52+
<string>armv7</string>
53+
</array>
54+
<key>UISupportedInterfaceOrientations</key>
55+
<array>
56+
<string>UIInterfaceOrientationPortrait</string>
57+
<string>UIInterfaceOrientationLandscapeLeft</string>
58+
<string>UIInterfaceOrientationLandscapeRight</string>
59+
</array>
60+
<key>UISupportedInterfaceOrientations~ipad</key>
61+
<array>
62+
<string>UIInterfaceOrientationPortrait</string>
63+
<string>UIInterfaceOrientationPortraitUpsideDown</string>
64+
<string>UIInterfaceOrientationLandscapeLeft</string>
65+
<string>UIInterfaceOrientationLandscapeRight</string>
66+
</array>
67+
<key>NSPhotoLibraryUsageDescription</key>
68+
<string>Need to obtain your album permissions</string>
69+
</dict>
70+
</plist>

0 commit comments

Comments
 (0)