Skip to content

Commit fd48869

Browse files
author
jeffgaogao
committed
docs(TcgSdk): add TCAIDemo
1 parent 0c17081 commit fd48869

File tree

64 files changed

+6305
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+6305
-0
lines changed

Demo/TCAIDemo/Podfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
platform :ios,'12.2'
2+
project './TCAIDemo.xcodeproj'
3+
target 'TCAIDemo' do
4+
# Comment the next line if you don't want to use dynamic frameworks
5+
use_frameworks!
6+
pod 'TCRSDK', :git => "https://github.com/tencentyun/cloudgame-ios-sdk.git", :tag => '0.0.1-alpha'
7+
end

Demo/TCAIDemo/TCAIDemo.xcodeproj/project.pbxproj

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

Demo/TCAIDemo/TCAIDemo.xcodeproj/project.xcworkspace/contents.xcworkspacedata

Lines changed: 7 additions & 0 deletions
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>
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
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+
<array/>
5+
</plist>
Lines changed: 119 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,119 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Scheme
3+
LastUpgradeVersion = "1530"
4+
version = "1.7">
5+
<BuildAction
6+
parallelizeBuildables = "YES"
7+
buildImplicitDependencies = "YES"
8+
buildArchitectures = "Automatic">
9+
<BuildActionEntries>
10+
<BuildActionEntry
11+
buildForTesting = "YES"
12+
buildForRunning = "YES"
13+
buildForProfiling = "YES"
14+
buildForArchiving = "YES"
15+
buildForAnalyzing = "YES">
16+
<BuildableReference
17+
BuildableIdentifier = "primary"
18+
BlueprintIdentifier = "4D9213502E15156400C9E8AA"
19+
BuildableName = "TCAIDemo.app"
20+
BlueprintName = "TCAIDemo"
21+
ReferencedContainer = "container:TCAIDemo.xcodeproj">
22+
</BuildableReference>
23+
</BuildActionEntry>
24+
</BuildActionEntries>
25+
</BuildAction>
26+
<TestAction
27+
buildConfiguration = "Debug"
28+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
29+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
30+
shouldUseLaunchSchemeArgsEnv = "YES"
31+
shouldAutocreateTestPlan = "YES">
32+
<Testables>
33+
<TestableReference
34+
skipped = "NO"
35+
parallelizable = "YES">
36+
<BuildableReference
37+
BuildableIdentifier = "primary"
38+
BlueprintIdentifier = "4D92136B2E15156500C9E8AA"
39+
BuildableName = "TCAIDemoTests.xctest"
40+
BlueprintName = "TCAIDemoTests"
41+
ReferencedContainer = "container:TCAIDemo.xcodeproj">
42+
</BuildableReference>
43+
</TestableReference>
44+
<TestableReference
45+
skipped = "NO"
46+
parallelizable = "YES">
47+
<BuildableReference
48+
BuildableIdentifier = "primary"
49+
BlueprintIdentifier = "4D9213752E15156500C9E8AA"
50+
BuildableName = "TCAIDemoUITests.xctest"
51+
BlueprintName = "TCAIDemoUITests"
52+
ReferencedContainer = "container:TCAIDemo.xcodeproj">
53+
</BuildableReference>
54+
</TestableReference>
55+
</Testables>
56+
</TestAction>
57+
<LaunchAction
58+
buildConfiguration = "Debug"
59+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
60+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
61+
launchStyle = "0"
62+
useCustomWorkingDirectory = "NO"
63+
ignoresPersistentStateOnLaunch = "NO"
64+
debugDocumentVersioning = "YES"
65+
debugServiceExtension = "internal"
66+
allowLocationSimulation = "YES">
67+
<BuildableProductRunnable
68+
runnableDebuggingMode = "0">
69+
<BuildableReference
70+
BuildableIdentifier = "primary"
71+
BlueprintIdentifier = "4D9213502E15156400C9E8AA"
72+
BuildableName = "TCAIDemo.app"
73+
BlueprintName = "TCAIDemo"
74+
ReferencedContainer = "container:TCAIDemo.xcodeproj">
75+
</BuildableReference>
76+
</BuildableProductRunnable>
77+
<AdditionalOptions>
78+
<AdditionalOption
79+
key = "MallocStackLogging"
80+
value = ""
81+
isEnabled = "YES">
82+
</AdditionalOption>
83+
<AdditionalOption
84+
key = "PrefersMallocStackLoggingLite"
85+
value = ""
86+
isEnabled = "YES">
87+
</AdditionalOption>
88+
<AdditionalOption
89+
key = "MallocScribble"
90+
value = ""
91+
isEnabled = "YES">
92+
</AdditionalOption>
93+
</AdditionalOptions>
94+
</LaunchAction>
95+
<ProfileAction
96+
buildConfiguration = "Release"
97+
shouldUseLaunchSchemeArgsEnv = "YES"
98+
savedToolIdentifier = ""
99+
useCustomWorkingDirectory = "NO"
100+
debugDocumentVersioning = "YES">
101+
<BuildableProductRunnable
102+
runnableDebuggingMode = "0">
103+
<BuildableReference
104+
BuildableIdentifier = "primary"
105+
BlueprintIdentifier = "4D9213502E15156400C9E8AA"
106+
BuildableName = "TCAIDemo.app"
107+
BlueprintName = "TCAIDemo"
108+
ReferencedContainer = "container:TCAIDemo.xcodeproj">
109+
</BuildableReference>
110+
</BuildableProductRunnable>
111+
</ProfileAction>
112+
<AnalyzeAction
113+
buildConfiguration = "Debug">
114+
</AnalyzeAction>
115+
<ArchiveAction
116+
buildConfiguration = "Release"
117+
revealArchiveInOrganizer = "YES">
118+
</ArchiveAction>
119+
</Scheme>
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Bucket
3+
uuid = "D94957CF-FC67-41B0-9303-3DA3220FB219"
4+
type = "1"
5+
version = "2.0">
6+
</Bucket>
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
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>SchemeUserState</key>
6+
<dict>
7+
<key>TCAIDemo.xcscheme_^#shared#^_</key>
8+
<dict>
9+
<key>orderHint</key>
10+
<integer>0</integer>
11+
</dict>
12+
</dict>
13+
<key>SuppressBuildableAutocreation</key>
14+
<dict>
15+
<key>4D9213502E15156400C9E8AA</key>
16+
<dict>
17+
<key>primary</key>
18+
<true/>
19+
</dict>
20+
<key>4D92136B2E15156500C9E8AA</key>
21+
<dict>
22+
<key>primary</key>
23+
<true/>
24+
</dict>
25+
<key>4D9213752E15156500C9E8AA</key>
26+
<dict>
27+
<key>primary</key>
28+
<true/>
29+
</dict>
30+
</dict>
31+
</dict>
32+
</plist>
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
//
2+
// AppDelegate.h
3+
// CAIDemo
4+
//
5+
// Created by LyleYu on 2020/12/17.
6+
//
7+
8+
#import <UIKit/UIKit.h>
9+
10+
@interface AppDelegate : UIResponder <UIApplicationDelegate>
11+
12+
@property (strong, nonatomic) UIWindow *window;
13+
14+
@end
15+
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
//
2+
// AppDelegate.m
3+
// CAIDemo
4+
//
5+
// Created by LyleYu on 2020/12/17.
6+
//
7+
8+
#import "AppDelegate.h"
9+
#import <TCRSDK/TCRSDK.h>
10+
11+
#import "CAIDemoLoginVC.h"
12+
13+
@interface AppDelegate ()
14+
15+
@end
16+
17+
@implementation AppDelegate
18+
19+
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
20+
// Override point for customization after application launch.
21+
22+
[self normalTest];
23+
24+
[[UIApplication sharedApplication] setIdleTimerDisabled:YES];
25+
26+
return YES;
27+
}
28+
29+
- (UIInterfaceOrientationMask)application:(UIApplication *)application supportedInterfaceOrientationsForWindow:(UIWindow *)window {
30+
return UIInterfaceOrientationMaskAll;
31+
}
32+
33+
- (void)normalTest {
34+
CGRect frame = [[UIScreen mainScreen] bounds];
35+
self.window = [[UIWindow alloc] initWithFrame:frame];
36+
CAIDemoLoginVC *vc = [[CAIDemoLoginVC alloc] init];
37+
self.window.rootViewController = vc;
38+
}
39+
40+
@end

0 commit comments

Comments
 (0)