Skip to content

Commit c8a9c01

Browse files
author
Sheng Pan
committed
[Update] demo
1 parent a630815 commit c8a9c01

File tree

3 files changed

+8
-17
lines changed

3 files changed

+8
-17
lines changed

YZOpenSDKDemo/Podfile.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
PODS:
2-
- YZAppSDK (6.0.1):
3-
- YZAppSDK/Base (= 6.0.1)
4-
- YZAppSDK/Base (6.0.1):
2+
- YZAppSDK (6.1.0):
3+
- YZAppSDK/Base (= 6.1.0)
4+
- YZAppSDK/Base (6.1.0):
55
- YZAppSDK/Core
6-
- YZAppSDK/Core (6.0.1)
6+
- YZAppSDK/Core (6.1.0)
77

88
DEPENDENCIES:
99
- YZAppSDK (from `../YZAppSDK.podspec`)
@@ -13,7 +13,7 @@ EXTERNAL SOURCES:
1313
:podspec: ../YZAppSDK.podspec
1414

1515
SPEC CHECKSUMS:
16-
YZAppSDK: 0f6cc9d3d858179d6f4c9b377ada444b22fe10b9
16+
YZAppSDK: 0500342d70a7d06e92715e94b07978c179b41184
1717

1818
PODFILE CHECKSUM: 67abd8a6b0d13a1ba1ef440ba9929648ec2c258b
1919

YZOpenSDKDemo/YouzanBaseDemo/YZBaseDemo.xcodeproj/project.pbxproj

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
8711DFEC1F03C35B00E1889F /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 8711DFD91F03C35B00E1889F /* ViewController.m */; };
1515
8711DFED1F03C35B00E1889F /* WebViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 8711DFDB1F03C35B00E1889F /* WebViewController.m */; };
1616
8711DFEE1F03C35B00E1889F /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 8711DFDD1F03C35B00E1889F /* Main.storyboard */; };
17-
8711DFEF1F03C35B00E1889F /* Cover.png in Resources */ = {isa = PBXBuildFile; fileRef = 8711DFDF1F03C35B00E1889F /* Cover.png */; };
1817
8711DFF01F03C35B00E1889F /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 8711DFE11F03C35B00E1889F /* Images.xcassets */; };
1918
8711DFF11F03C35B00E1889F /* Info.plist in Resources */ = {isa = PBXBuildFile; fileRef = 8711DFE21F03C35B00E1889F /* Info.plist */; };
2019
8711DFF21F03C35B00E1889F /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 8711DFE31F03C35B00E1889F /* LaunchScreen.xib */; };
@@ -39,7 +38,6 @@
3938
8711DFDA1F03C35B00E1889F /* WebViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WebViewController.h; sourceTree = "<group>"; };
4039
8711DFDB1F03C35B00E1889F /* WebViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = WebViewController.m; sourceTree = "<group>"; };
4140
8711DFDD1F03C35B00E1889F /* Main.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; path = Main.storyboard; sourceTree = "<group>"; };
42-
8711DFDF1F03C35B00E1889F /* Cover.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = Cover.png; sourceTree = "<group>"; };
4341
8711DFE11F03C35B00E1889F /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = "<group>"; };
4442
8711DFE21F03C35B00E1889F /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
4543
8711DFE31F03C35B00E1889F /* LaunchScreen.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = LaunchScreen.xib; sourceTree = "<group>"; };
@@ -95,7 +93,6 @@
9593
8711DFCE1F03C35B00E1889F /* AppDelegate.h */,
9694
8711DFCF1F03C35B00E1889F /* AppDelegate.m */,
9795
8711DFD01F03C35B00E1889F /* Features */,
98-
8711DFDE1F03C35B00E1889F /* Supporting */,
9996
8711DFE01F03C35B00E1889F /* Supporting Files */,
10097
8711DFE51F03C35B00E1889F /* Universal */,
10198
);
@@ -150,14 +147,6 @@
150147
path = Views;
151148
sourceTree = "<group>";
152149
};
153-
8711DFDE1F03C35B00E1889F /* Supporting */ = {
154-
isa = PBXGroup;
155-
children = (
156-
8711DFDF1F03C35B00E1889F /* Cover.png */,
157-
);
158-
path = Supporting;
159-
sourceTree = "<group>";
160-
};
161150
8711DFE01F03C35B00E1889F /* Supporting Files */ = {
162151
isa = PBXGroup;
163152
children = (
@@ -260,7 +249,6 @@
260249
8711DFF11F03C35B00E1889F /* Info.plist in Resources */,
261250
8711DFF01F03C35B00E1889F /* Images.xcassets in Resources */,
262251
8711DFEE1F03C35B00E1889F /* Main.storyboard in Resources */,
263-
8711DFEF1F03C35B00E1889F /* Cover.png in Resources */,
264252
);
265253
runOnlyForDeploymentPostprocessing = 0;
266254
};

YZOpenSDKDemo/YouzanBaseDemo/YZBaseDemo/AppDelegate.m

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
2828
[YZSDK.shared initializeSDKWithConfig:conf];
2929
YZSDK.shared.delegate = self; // 必须设置代理方法,保证 SDK 在需要 token 的时候可以正常运行
3030

31+
// 调用预加载接口,可以加速首屏启动
32+
[YZSDK.shared preloadURLs:@[[NSURL URLWithString:@"https://h5.youzan.com/v2/goods/2ok5106sjunmd"]]];
33+
3134
// 查看 sdk 的版本
3235
NSLog(@"%@", YZSDK.shared.version);
3336

0 commit comments

Comments
 (0)