Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
android_goodmoney
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_goodmoney
Commits
bf8b2fc9
Commit
bf8b2fc9
authored
Jun 01, 2021
by
mengcuiguang2
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更换小满sdk
parent
a016932d
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
11 deletions
+13
-11
build.gradle
GoodMoney/app/build.gradle
+1
-1
adsdk-1.4.3.aar
GoodMoney/app/libs/adsdk-1.4.3.aar
+0
-0
XmManager.kt
...pp/src/main/java/com/mints/goodmoney/manager/XmManager.kt
+5
-3
XiaomanActivity.kt
.../java/com/mints/goodmoney/ui/activitys/XiaomanActivity.kt
+3
-3
build.gradle
GoodMoney/build.gradle
+4
-4
No files found.
GoodMoney/app/build.gradle
View file @
bf8b2fc9
...
@@ -343,7 +343,7 @@ dependencies {
...
@@ -343,7 +343,7 @@ dependencies {
implementation
'com.sensorsdata.analytics.android:SensorsAnalyticsSDK:4.4.3'
implementation
'com.sensorsdata.analytics.android:SensorsAnalyticsSDK:4.4.3'
api
'org.aspectj:aspectjrt:1.9.5'
api
'org.aspectj:aspectjrt:1.9.5'
//小满
//小满
implementation
(
"com.bx:adsdk:1.4.2.2"
)
{
implementation
(
name:
'adsdk-1.4.3'
,
ext:
'aar'
)
{
exclude
group:
"com.miit.sdk"
exclude
group:
"com.miit.sdk"
transitive
=
true
transitive
=
true
changing
=
true
changing
=
true
...
...
GoodMoney/app/libs/adsdk-1.4.3.aar
0 → 100644
View file @
bf8b2fc9
File added
GoodMoney/app/src/main/java/com/mints/goodmoney/manager/XmManager.kt
View file @
bf8b2fc9
...
@@ -7,6 +7,7 @@ import android.view.View
...
@@ -7,6 +7,7 @@ import android.view.View
import
android.widget.ImageView
import
android.widget.ImageView
import
com.bumptech.glide.Glide
import
com.bumptech.glide.Glide
import
com.bx.adsdk.AdSdk
import
com.bx.adsdk.AdSdk
import
com.bx.adsdk.bean.MaterialBean
import
com.bx.adsdk.util.MaterialTm
import
com.bx.adsdk.util.MaterialTm
import
com.bytedance.sdk.openadsdk.TTAdConfig
import
com.bytedance.sdk.openadsdk.TTAdConfig
import
com.bytedance.sdk.openadsdk.TTAdConstant
import
com.bytedance.sdk.openadsdk.TTAdConstant
...
@@ -45,11 +46,12 @@ object XmManager {
...
@@ -45,11 +46,12 @@ object XmManager {
if
(
TextUtils
.
isEmpty
(
placeMateId
))
{
if
(
TextUtils
.
isEmpty
(
placeMateId
))
{
MaterialTm
().
loadMaterialData
(
UserManager
.
getInstance
().
userID
,
placeid
,
object
:
MaterialTm
.
Callback
{
MaterialTm
().
loadMaterialData
(
UserManager
.
getInstance
().
userID
,
placeid
,
object
:
MaterialTm
.
Callback
{
//对应PlaceID会有对应的素材
//对应PlaceID会有对应的素材
override
fun
onSuccess
(
imgUrl
:
String
,
placeMateId2
:
String
,
materialId2
:
String
)
{
override
fun
onSuccess
(
p0
:
MaterialBean
?
)
{
placeMateId
=
p
laceMateId2
placeMateId
=
p
0
?.
placeId
!!
materialId
=
materialId2
materialId
=
p0
.
materialId
AdSdk
.
exposure
(
UserManager
.
getInstance
().
userID
,
placeid
,
placeMateId
,
materialId
);
AdSdk
.
exposure
(
UserManager
.
getInstance
().
userID
,
placeid
,
placeMateId
,
materialId
);
LogUtil
.
d
(
"******exposure*********${UserManager.getInstance().userID}******$placeMateId********$materialId****************$placeid**"
)
LogUtil
.
d
(
"******exposure*********${UserManager.getInstance().userID}******$placeMateId********$materialId****************$placeid**"
)
}
}
override
fun
onFailure
(
code
:
String
,
errmsg
:
String
)
{
override
fun
onFailure
(
code
:
String
,
errmsg
:
String
)
{
...
...
GoodMoney/app/src/main/java/com/mints/goodmoney/ui/activitys/XiaomanActivity.kt
View file @
bf8b2fc9
...
@@ -268,7 +268,7 @@ class XiaomanActivity : BaseActivity(), View.OnClickListener {
...
@@ -268,7 +268,7 @@ class XiaomanActivity : BaseActivity(), View.OnClickListener {
override
fun
onError
(
adError
:
AdError
)
{
override
fun
onError
(
adError
:
AdError
)
{
Log
.
e
(
TAG
,
"onError:--->"
+
adError
.
errorMsg
)
Log
.
e
(
TAG
,
"onError:--->"
+
adError
.
errorMsg
)
fragment
.
setVideoError
(
bean
.
requestId
)
fragment
.
setVideoError
(
bean
.
requestId
,
adError
.
errorCode
,
adError
.
errorMsg
)
}
}
})
})
rewardVideoAD
?.
loadAD
()
rewardVideoAD
?.
loadAD
()
...
@@ -344,7 +344,7 @@ class XiaomanActivity : BaseActivity(), View.OnClickListener {
...
@@ -344,7 +344,7 @@ class XiaomanActivity : BaseActivity(), View.OnClickListener {
mTTAdNative
.
loadRewardVideoAd
(
adSlot
,
object
:
TTAdNative
.
RewardVideoAdListener
{
mTTAdNative
.
loadRewardVideoAd
(
adSlot
,
object
:
TTAdNative
.
RewardVideoAdListener
{
override
fun
onError
(
code
:
Int
,
message
:
String
)
{
override
fun
onError
(
code
:
Int
,
message
:
String
)
{
Log
.
d
(
TAG
,
"穿山甲-加载失败$code====$message"
)
Log
.
d
(
TAG
,
"穿山甲-加载失败$code====$message"
)
fragment
.
setVideoError
(
bean
.
requestId
)
fragment
.
setVideoError
(
bean
.
requestId
,
code
,
message
)
}
}
//视频广告加载后的视频文件资源缓存到本地的回调
//视频广告加载后的视频文件资源缓存到本地的回调
...
@@ -390,7 +390,7 @@ class XiaomanActivity : BaseActivity(), View.OnClickListener {
...
@@ -390,7 +390,7 @@ class XiaomanActivity : BaseActivity(), View.OnClickListener {
override
fun
onVideoComplete
()
{}
override
fun
onVideoComplete
()
{}
override
fun
onVideoError
()
{
override
fun
onVideoError
()
{
Log
.
d
(
TAG
,
"穿山甲-视频失败"
)
Log
.
d
(
TAG
,
"穿山甲-视频失败"
)
fragment
.
setVideoError
(
bean
.
requestId
)
fragment
.
setVideoError
(
bean
.
requestId
,
0
,
"error"
)
}
}
override
fun
onRewardVerify
(
rewardVerify
:
Boolean
,
rewardAmount
:
Int
,
rewardName
:
String
,
errorCode
:
Int
,
errorMsg
:
String
)
{
override
fun
onRewardVerify
(
rewardVerify
:
Boolean
,
rewardAmount
:
Int
,
rewardName
:
String
,
errorCode
:
Int
,
errorMsg
:
String
)
{
...
...
GoodMoney/build.gradle
View file @
bf8b2fc9
...
@@ -54,9 +54,9 @@ buildscript {
...
@@ -54,9 +54,9 @@ buildscript {
}
}
// 添加小满科技
// 添加小满科技
maven
{
url
'http://maven.aliyun.com/nexus/content/repositories/jcenter'
}
//
maven { url 'http://maven.aliyun.com/nexus/content/repositories/jcenter' }
maven
{
url
"https://maven.google.com"
}
//
maven { url "https://maven.google.com"}
maven
{
url
"https://maven.linzhuxin.com/repository/lzoom_read_sdk_prd/"
}
//
maven { url "https://maven.linzhuxin.com/repository/lzoom_read_sdk_prd/"}
// maven { url "http://39.97.65.143:8082/repository/maven-public/" }
// maven { url "http://39.97.65.143:8082/repository/maven-public/" }
...
@@ -91,7 +91,7 @@ allprojects {
...
@@ -91,7 +91,7 @@ allprojects {
url
'http://maven.aliyun.com/nexus/content/repositories/releases/'
url
'http://maven.aliyun.com/nexus/content/repositories/releases/'
}
}
//小满
//小满
maven
{
url
"http://47.97.184.214:8081/nexus/content/groups/public"
}
//
maven { url "http://47.97.184.214:8081/nexus/content/groups/public" }
//芒果联盟
//芒果联盟
// maven { url "https://dl.bintray.com/openppeace/maven" }
// maven { url "https://dl.bintray.com/openppeace/maven" }
...
...
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