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
5d3b243a
Commit
5d3b243a
authored
Feb 04, 2021
by
mengcuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化圣于地
parent
89348f53
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
46 additions
and
30 deletions
+46
-30
build.gradle
GoodMoney/app/build.gradle
+2
-2
ShVideoAdManager.kt
...ain/java/com/mints/goodmoney/ad/video/ShVideoAdManager.kt
+8
-1
TtCsjAdManager.java
...main/java/com/mints/goodmoney/manager/TtCsjAdManager.java
+10
-10
YlhAdManager.kt
...src/main/java/com/mints/goodmoney/manager/YlhAdManager.kt
+10
-10
TaskPresenter.kt
.../java/com/mints/goodmoney/mvp/presenters/TaskPresenter.kt
+12
-3
CpdService.java
...app/src/main/java/com/mints/goodmoney/net/CpdService.java
+4
-4
No files found.
GoodMoney/app/build.gradle
View file @
5d3b243a
...
...
@@ -9,8 +9,8 @@ android {
applicationId
"com.mints.goodmoney"
minSdkVersion
rootProject
.
ext
.
androidMinSdkVersion
targetSdkVersion
rootProject
.
ext
.
androidTargetSdkVersion
versionCode
1
7
versionName
"1.1.
6
"
versionCode
1
8
versionName
"1.1.
7
"
flavorDimensions
"default"
// dex突破65535的限制
...
...
GoodMoney/app/src/main/java/com/mints/goodmoney/ad/video/ShVideoAdManager.kt
View file @
5d3b243a
...
...
@@ -3,6 +3,7 @@ package com.mints.goodmoney.ad.video
import
android.app.Activity
import
android.text.TextUtils
import
androidx.annotation.Nullable
import
com.mints.goodmoney.BuildConfig
import
com.mints.goodmoney.common.AppConfig
import
com.mints.goodmoney.common.Constant
import
com.mints.goodmoney.manager.TrackManager
...
...
@@ -65,7 +66,13 @@ class ShVideoAdManager private constructor(activity: Activity) :
this
.
activity
=
activity
isClickScreen
=
true
val
type
=
TZ_REWRAD_TYPE_RELEASE
// val type = TZ_REWRAD_TYPE_RELEASE
val
type
=
if
(
BuildConfig
.
DEBUG
)
{
TZ_REWRAD_TYPE_DEBUG
}
else
{
TZ_REWRAD_TYPE_RELEASE
}
ADLoader
(
activity
)
.
get
(
ADType
.
REWARD_VIDEO
)
...
...
GoodMoney/app/src/main/java/com/mints/goodmoney/manager/TtCsjAdManager.java
View file @
5d3b243a
...
...
@@ -153,16 +153,16 @@ public class TtCsjAdManager {
TT_AD_NATIVEEXPRESS_MORNINGCLOCK
=
"945666097"
;
TT_AD_NATIVEEXPRESS_EAT
=
"945666097"
;
// 激励视频
TT_AD_VEDIO_DRINK
=
"945
666029
"
;
TT_AD_VEDIO_MAIN
=
"945
666029
"
;
TT_AD_VEDIO_ERASE
=
"945
666029
"
;
TT_AD_VEDIO_TURNABLE
=
"945
666029
"
;
TT_AD_VEDIO_MOREDIALOG
=
"945
666029
"
;
TT_AD_VEDIO_OFFINELINE
=
"945
666029
"
;
TT_AD_VEDIO_SIGN
=
"945
666029
"
;
TT_AD_VEDIO_BLESSINGBAG
=
"945
666029
"
;
TT_AD_VEDIO_HOMEVEDIO
=
"945
666029
"
;
TT_AD_VEDIO_SMALLHOMEVEDIO
=
"945
666029
"
;
TT_AD_VEDIO_DRINK
=
"945
562040
"
;
TT_AD_VEDIO_MAIN
=
"945
562040
"
;
TT_AD_VEDIO_ERASE
=
"945
562040
"
;
TT_AD_VEDIO_TURNABLE
=
"945
562040
"
;
TT_AD_VEDIO_MOREDIALOG
=
"945
562040
"
;
TT_AD_VEDIO_OFFINELINE
=
"945
562040
"
;
TT_AD_VEDIO_SIGN
=
"945
562040
"
;
TT_AD_VEDIO_BLESSINGBAG
=
"945
562040
"
;
TT_AD_VEDIO_HOMEVEDIO
=
"945
562040
"
;
TT_AD_VEDIO_SMALLHOMEVEDIO
=
"945
562040
"
;
// banner
TT_AD_BANNER_MY
=
"945666042"
;
...
...
GoodMoney/app/src/main/java/com/mints/goodmoney/manager/YlhAdManager.kt
View file @
5d3b243a
...
...
@@ -89,16 +89,16 @@ object YlhAdManager {
// 开屏
YLH_AD_SPLASH_POSTID
=
"4031840694338658"
// 激励视频
YLH_AD_VEDIO_DRINK_POSTID
=
"
1031552263176415
"
YLH_AD_VEDIO_MAIN_POSTID
=
"
1031552263176415
"
YLH_AD_VEDIO_ERASE_POSTID
=
"
1031552263176415
"
YLH_AD_VEDIO_TURNABLE_POSTID
=
"
1031552263176415
"
YLH_AD_VEDIO_MOREDIALOG_POSTID
=
"
1031552263176415
"
YLH_AD_VEDIO_SIGN_POSTID
=
"
1031552263176415
"
YLH_AD_VEDIO_BLESSINGBAG_POSTID
=
"
1031552263176415
"
YLH_AD_VEDIO_OFFINELINE_POSTID
=
"
1031552263176415
"
YLH_AD_VEDIO_HOMEVEDIO_POSTID
=
"
1031552263176415
"
YLH_AD_VEDIO_SMALLHOMEVEDIO_POSTID
=
"
1031552263176415
"
YLH_AD_VEDIO_DRINK_POSTID
=
"
9001346780383626
"
YLH_AD_VEDIO_MAIN_POSTID
=
"
9001346780383626
"
YLH_AD_VEDIO_ERASE_POSTID
=
"
9001346780383626
"
YLH_AD_VEDIO_TURNABLE_POSTID
=
"
9001346780383626
"
YLH_AD_VEDIO_MOREDIALOG_POSTID
=
"
9001346780383626
"
YLH_AD_VEDIO_SIGN_POSTID
=
"
9001346780383626
"
YLH_AD_VEDIO_BLESSINGBAG_POSTID
=
"
9001346780383626
"
YLH_AD_VEDIO_OFFINELINE_POSTID
=
"
9001346780383626
"
YLH_AD_VEDIO_HOMEVEDIO_POSTID
=
"
9001346780383626
"
YLH_AD_VEDIO_SMALLHOMEVEDIO_POSTID
=
"
9001346780383626
"
return
}
...
...
GoodMoney/app/src/main/java/com/mints/goodmoney/mvp/presenters/TaskPresenter.kt
View file @
5d3b243a
...
...
@@ -3,6 +3,7 @@ package com.mints.goodmoney.mvp.presenters
import
android.text.TextUtils
import
com.google.gson.Gson
import
com.google.gson.JsonObject
import
com.mints.goodmoney.BuildConfig
import
com.mints.goodmoney.common.DeviceInfo
import
com.mints.goodmoney.manager.AppHttpManager
import
com.mints.goodmoney.manager.CpdManager
...
...
@@ -10,8 +11,10 @@ import com.mints.goodmoney.mvp.model.BaseResponse
import
com.mints.goodmoney.mvp.model.CpdModelBean
import
com.mints.goodmoney.mvp.views.TaskView
import
com.mints.goodmoney.net.CpdService
import
com.mints.goodmoney.utils.LogUtil
import
com.mints.library.net.neterror.BaseSubscriber
import
com.mints.library.net.neterror.Throwable
import
com.mints.library.utils.json.JsonUtil
class
TaskPresenter
:
BasePresenter
<
TaskView
>()
{
...
...
@@ -36,7 +39,7 @@ class TaskPresenter : BasePresenter<TaskView>() {
when
(
code
)
{
200
->
{
if
(
data
!=
null
)
{
view
.
getShCpdTimeSuc
(
data
.
get
(
"needSeconds"
).
asInt
,
data
.
get
(
"coin"
).
asInt
,
view
.
getShCpdTimeSuc
(
data
.
get
(
"needSeconds"
).
asInt
,
data
.
get
(
"coin"
).
asInt
,
data
.
get
(
"CPD"
).
asInt
,
data
.
get
(
"CPD_SYD"
).
asInt
)
}
}
...
...
@@ -48,15 +51,21 @@ class TaskPresenter : BasePresenter<TaskView>() {
fun
cmtImp
(
url
:
String
)
{
AppHttpManager
.
getInstance
(
loanApplication
)
.
call
(
CpdService
.
Factory
.
getInstance
().
cmtImp
(
url
),
object
:
BaseSubscriber
<
BaseResponse
<
JsonObject
>
>()
{
object
:
BaseSubscriber
<
Any
>()
{
override
fun
onCompleted
()
{
}
override
fun
onError
(
e
:
Throwable
)
{
if
(
isLinkView
)
return
LogUtil
.
d
(
"TaskPresenter"
,
"onError->${e.printStackTrace()}"
)
}
override
fun
onNext
(
baseResponse
:
BaseResponse
<
JsonObject
>
)
{
override
fun
onNext
(
baseResponse
:
Any
)
{
if
(
isLinkView
)
return
if
(
BuildConfig
.
DEBUG
)
{
LogUtil
.
d
(
"TaskPresenter"
,
"onNext->${url} JsonUtil:${JsonUtil.toJson(baseResponse)}"
)
}
}
})
}
...
...
GoodMoney/app/src/main/java/com/mints/goodmoney/net/CpdService.java
View file @
5d3b243a
...
...
@@ -61,10 +61,10 @@ public interface CpdService {
private
static
CpdService
create
()
{
OkHttpClient
.
Builder
builder
=
new
OkHttpClient
.
Builder
();
builder
.
retryOnConnectionFailure
(
fals
e
);
builder
.
connectTimeout
(
5
,
TimeUnit
.
SECONDS
);
builder
.
readTimeout
(
5
,
TimeUnit
.
SECONDS
);
builder
.
writeTimeout
(
5
,
TimeUnit
.
SECONDS
);
builder
.
retryOnConnectionFailure
(
tru
e
);
builder
.
connectTimeout
(
10
,
TimeUnit
.
SECONDS
);
builder
.
readTimeout
(
10
,
TimeUnit
.
SECONDS
);
builder
.
writeTimeout
(
10
,
TimeUnit
.
SECONDS
);
if
(
BuildConfig
.
DEBUG
)
{
HttpLoggingInterceptor
logging
=
new
HttpLoggingInterceptor
(
message
->
{
...
...
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