Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
L
LuckFarm
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lmj
LuckFarm
Commits
bfefcac8
Commit
bfefcac8
authored
Oct 28, 2020
by
lmj_521aiau@163.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
e7976652
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
103 additions
and
103 deletions
+103
-103
GYAdsManager+Flow.m
GYDemo/GYDemo/SCAds/GYAdsManager+Flow.m
+15
-4
GYAdsManager+RewardedVideo.m
GYDemo/GYDemo/SCAds/GYAdsManager+RewardedVideo.m
+9
-4
Breakpoints_v2.xcbkptlist
...ingjinli.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist
+79
-95
No files found.
GYDemo/GYDemo/SCAds/GYAdsManager+Flow.m
View file @
bfefcac8
...
@@ -10,7 +10,15 @@
...
@@ -10,7 +10,15 @@
@implementation
GYAdsManager
(
Flow
)
@implementation
GYAdsManager
(
Flow
)
-
(
void
)
adsFlowForModels
:(
NSArray
<
GYAdsTrackModel
*>
*
)
models
{
-
(
void
)
adsFlowForModels
:(
NSArray
<
GYAdsTrackModel
*>
*
)
models
{
[
self
adsFlowForModel
:
models
.
firstObject
];
self
.
bigImageModels
=
models
.
mutableCopy
;
self
.
bigImageIndex
=
0
;
[
self
adsFlowPrepareModel
];
}
-
(
void
)
adsFlowPrepareModel
{
if
(
self
.
bigImageIndex
<
self
.
bigImageModels
.
count
)
{
[
self
adsFlowForModel
:
self
.
openScreenModels
[
self
.
bigImageIndex
]];
}
}
}
-
(
void
)
adsFlowForModel
:
(
GYAdsTrackModel
*
)
model
{
-
(
void
)
adsFlowForModel
:
(
GYAdsTrackModel
*
)
model
{
...
@@ -77,7 +85,8 @@
...
@@ -77,7 +85,8 @@
}
}
-
(
void
)
nativeExpressAdFailToLoad
:
(
BUNativeExpressAdManager
*
)
nativeExpressAd
error
:
(
NSError
*
)
error
{
-
(
void
)
nativeExpressAdFailToLoad
:
(
BUNativeExpressAdManager
*
)
nativeExpressAd
error
:
(
NSError
*
)
error
{
self
.
videoIndex
+=
1
;
[
self
adsFlowPrepareModel
];
}
}
-
(
void
)
nativeExpressAdViewRenderSuccess
:
(
BUNativeExpressAdView
*
)
nativeExpressAdView
{
-
(
void
)
nativeExpressAdViewRenderSuccess
:
(
BUNativeExpressAdView
*
)
nativeExpressAdView
{
...
@@ -98,7 +107,8 @@
...
@@ -98,7 +107,8 @@
}
}
-
(
void
)
feedAdsManager
:
(
KSFeedAdsManager
*
)
adsManager
didFailWithError
:
(
NSError
*
_Nullable
)
error
{
-
(
void
)
feedAdsManager
:
(
KSFeedAdsManager
*
)
adsManager
didFailWithError
:
(
NSError
*
_Nullable
)
error
{
self
.
videoIndex
+=
1
;
[
self
adsFlowPrepareModel
];
}
}
#pragma mark - KSFeedAdDelegate
#pragma mark - KSFeedAdDelegate
-
(
void
)
feedAdViewWillShow
:
(
KSFeedAd
*
)
feedAd
{
-
(
void
)
feedAdViewWillShow
:
(
KSFeedAd
*
)
feedAd
{
...
@@ -145,9 +155,10 @@
...
@@ -145,9 +155,10 @@
{
{
NSLog
(
@"%s"
,
__FUNCTION__
);
NSLog
(
@"%s"
,
__FUNCTION__
);
NSLog
(
@"Express Ad Load Fail : %@"
,
error
);
NSLog
(
@"Express Ad Load Fail : %@"
,
error
);
self
.
videoIndex
+=
1
;
[
self
adsFlowPrepareModel
];
}
}
#pragma mark - GDTNativeExpressProAdViewDelegate;
#pragma mark - GDTNativeExpressProAdViewDelegate;
-
(
void
)
gdt_NativeExpressProAdViewRenderSuccess
:
(
GDTNativeExpressProAdView
*
)
nativeExpressAdView
-
(
void
)
gdt_NativeExpressProAdViewRenderSuccess
:
(
GDTNativeExpressProAdView
*
)
nativeExpressAdView
{
{
...
...
GYDemo/GYDemo/SCAds/GYAdsManager+RewardedVideo.m
View file @
bfefcac8
...
@@ -19,6 +19,11 @@
...
@@ -19,6 +19,11 @@
if
(
self
.
videoIndex
<
self
.
videoModels
.
count
)
{
if
(
self
.
videoIndex
<
self
.
videoModels
.
count
)
{
[
self
rewardedVideoForModel
:
self
.
videoModels
[
self
.
videoIndex
]];
[
self
rewardedVideoForModel
:
self
.
videoModels
[
self
.
videoIndex
]];
}
}
// else{
// if (self.adsFinishCallBack) {
// self.adsFinishCallBack(true, [UIView new]);
// }
// }
}
}
-
(
void
)
rewardedVideoForModel
:
(
GYAdsTrackModel
*
)
model
{
-
(
void
)
rewardedVideoForModel
:
(
GYAdsTrackModel
*
)
model
{
...
@@ -30,11 +35,10 @@
...
@@ -30,11 +35,10 @@
}
else
if
([
model
.
adPlatform
isEqualToString
:
@"kuaishou"
]){
}
else
if
([
model
.
adPlatform
isEqualToString
:
@"kuaishou"
]){
[
self
videoForKS
:
model
];
[
self
videoForKS
:
model
];
}
else
{
}
else
{
if
(
self
.
adsFinishCallBack
)
{
self
.
videoIndex
+=
1
;
self
.
adsFinishCallBack
(
true
,
nil
);
[
self
videoPrepareModel
];
}
}
}
NSLog
(
@"common_
bigimag
e============%@"
,
model
.
adPlatform
);
NSLog
(
@"common_
vido
e============%@"
,
model
.
adPlatform
);
}
}
-
(
void
)
videoForCSJ
:
(
GYAdsTrackModel
*
)
model
{
-
(
void
)
videoForCSJ
:
(
GYAdsTrackModel
*
)
model
{
...
@@ -73,6 +77,7 @@
...
@@ -73,6 +77,7 @@
}
}
-
(
void
)
playVideo
{
-
(
void
)
playVideo
{
if
([
self
.
currentAdsModel
.
adPlatform
isEqualToString
:
@"chuanshanjia"
])
{
if
([
self
.
currentAdsModel
.
adPlatform
isEqualToString
:
@"chuanshanjia"
])
{
dispatch_after
(
dispatch_time
(
DISPATCH_TIME_NOW
,
(
int64_t
)(
0
.
75
*
NSEC_PER_SEC
)),
dispatch_get_main_queue
(),
^
{
dispatch_after
(
dispatch_time
(
DISPATCH_TIME_NOW
,
(
int64_t
)(
0
.
75
*
NSEC_PER_SEC
)),
dispatch_get_main_queue
(),
^
{
...
...
farm.xcworkspace/xcuserdata/mingjinli.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist
View file @
bfefcac8
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment