Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
android_fairyland_pro
Project
Project
Details
Activity
Releases
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
android
android_fairyland_pro
Commits
9afad96f
Commit
9afad96f
authored
Aug 02, 2021
by
jyx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新穿山甲sdk版本,版本1.0.8
parent
fbfb6e54
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
30 additions
and
5 deletions
+30
-5
build.gradle
app/build.gradle
+3
-3
open_ad_sdk_3.9.0.0.aar
app/libs/open_ad_sdk_3.9.0.0.aar
+0
-0
CsjFullVideoAdManager.java
...a/com/mints/fairyland/ad/video/CsjFullVideoAdManager.java
+5
-0
CsjVideoAdManager.java
.../java/com/mints/fairyland/ad/video/CsjVideoAdManager.java
+5
-0
BxmPlayVideo.java
...c/main/java/com/mints/fairyland/manager/BxmPlayVideo.java
+5
-0
TtCsjAdManager.java
...main/java/com/mints/fairyland/manager/TtCsjAdManager.java
+12
-2
No files found.
app/build.gradle
View file @
9afad96f
...
...
@@ -9,8 +9,8 @@ android {
applicationId
"com.mints.fairyland"
minSdkVersion
rootProject
.
ext
.
androidMinSdkVersion
targetSdkVersion
rootProject
.
ext
.
androidTargetSdkVersion
versionCode
1
0
versionName
"1.0.
7
"
versionCode
1
1
versionName
"1.0.
8
"
flavorDimensions
"default"
// dex突破65535的限制
...
...
@@ -204,7 +204,7 @@ dependencies {
// 移动安全联盟
implementation
(
name:
'oaid_sdk_1.0.23'
,
ext:
'aar'
)
// 穿山甲广告 版本3.4.1.2
implementation
(
name:
'open_ad_sdk'
,
ext:
'aar'
)
implementation
(
name:
'open_ad_sdk
_3.9.0.0
'
,
ext:
'aar'
)
// 广点通广告 腾讯
implementation
(
name:
'GDTSDK.unionNoPlugin.4.294.1164'
,
ext:
'aar'
)
// shareSdk
...
...
app/libs/open_ad_sdk.aar
→
app/libs/open_ad_sdk
_3.9.0.0
.aar
View file @
9afad96f
No preview for this file type
app/src/main/java/com/mints/fairyland/ad/video/CsjFullVideoAdManager.java
View file @
9afad96f
...
...
@@ -134,6 +134,11 @@ public class CsjFullVideoAdManager extends BaseVideoAd {
}
}
}
@Override
public
void
onFullScreenVideoCached
(
TTFullScreenVideoAd
ttFullScreenVideoAd
)
{
}
});
}
...
...
app/src/main/java/com/mints/fairyland/ad/video/CsjVideoAdManager.java
View file @
9afad96f
...
...
@@ -171,6 +171,11 @@ public class CsjVideoAdManager extends BaseVideoAd {
}
}
@Override
public
void
onRewardVideoCached
(
TTRewardVideoAd
ttRewardVideoAd
)
{
}
//视频广告的素材加载完毕,比如视频url等,在此回调后,可以播放在线视频,网络不好可能出现加载缓冲,影响体验。
@Override
public
void
onRewardVideoAdLoad
(
TTRewardVideoAd
ad
)
{
...
...
app/src/main/java/com/mints/fairyland/manager/BxmPlayVideo.java
View file @
9afad96f
...
...
@@ -59,6 +59,11 @@ public class BxmPlayVideo {
public
void
onRewardVideoCached
()
{
}
@Override
public
void
onRewardVideoCached
(
TTRewardVideoAd
ttRewardVideoAd
)
{
}
});
}
catch
(
Throwable
e
)
{
appNative
.
onError
(
0
);
...
...
app/src/main/java/com/mints/fairyland/manager/TtCsjAdManager.java
View file @
9afad96f
...
...
@@ -72,9 +72,18 @@ public class TtCsjAdManager {
//step1:接入网盟广告sdk的初始化操作,详情见接入文档和穿山甲平台说明
private
static
void
doInit
(
Context
context
)
{
if
(!
sInit
)
{
TTAdSdk
.
init
(
context
,
buildConfig
(
context
));
TTAdSdk
.
init
(
context
,
buildConfig
(
context
),
new
TTAdSdk
.
InitCallback
()
{
@Override
public
void
success
()
{
sInit
=
true
;
}
@Override
public
void
fail
(
int
i
,
String
s
)
{
sInit
=
false
;
}
});
}
}
public
static
String
getVersion
()
{
...
...
@@ -99,6 +108,7 @@ public class TtCsjAdManager {
.
debug
(
logFlag
)
//测试阶段打开,可以通过日志排查问题,上线时去除该调用
.
directDownloadNetworkType
(
TTAdConstant
.
NETWORK_STATE_WIFI
,
TTAdConstant
.
NETWORK_STATE_3G
)
//允许直接下载的网络状态集合
.
supportMultiProcess
(
false
)
//是否支持多进程
.
asyncInit
(
true
)
//.httpStack(new MyOkStack3())//自定义网络库,demo中给出了okhttp3版本的样例,其余请自行开发或者咨询工作人员。
.
build
();
}
...
...
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