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
7094a647
Commit
7094a647
authored
Apr 10, 2021
by
mengcuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加听读广告
parent
ae631a04
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
258 deletions
+20
-258
proguard-rules.pro
GoodMoney/app/proguard-rules.pro
+4
-0
ReadToutiaoAD.java
.../main/java/com/mints/goodmoney/manager/ReadToutiaoAD.java
+4
-252
ReaderManager.kt
...rc/main/java/com/mints/goodmoney/manager/ReaderManager.kt
+11
-6
WrapperActivity.kt
.../java/com/mints/goodmoney/ui/activitys/WrapperActivity.kt
+1
-0
No files found.
GoodMoney/app/proguard-rules.pro
View file @
7094a647
...
...
@@ -671,6 +671,10 @@
# ===================== 听读 START ================
-keep class com.chineseall.reader17ksdk.
*
*{*;}
-keep class com.chineseall.reader.utils.
*
*{*;}
...
...
GoodMoney/app/src/main/java/com/mints/goodmoney/manager/ReadToutiaoAD.java
View file @
7094a647
This diff is collapsed.
Click to expand it.
GoodMoney/app/src/main/java/com/mints/goodmoney/manager/ReaderManager.kt
View file @
7094a647
...
...
@@ -21,6 +21,11 @@ import com.chineseall.reader17ksdk.utils.book.ScreenUtils
* 邮箱:mengcga@163.com
*/
object
ReaderManager
{
private
const
val
APP_ID
=
"1242"
private
const
val
SECRET
=
"hzq"
private
const
val
APP
=
"32"
private
const
val
SUBAPP
=
"0"
private
val
csjAd
by
lazy
{
ReadToutiaoAD
()
}
private
val
ylhAd
by
lazy
{
ReadYlhAd
()
}
...
...
@@ -31,7 +36,7 @@ object ReaderManager {
private
var
isCsjAd
:
Boolean
=
true
fun
init
(
applicationContext
:
Application
)
{
install
(
applicationContext
,
"1242"
,
"hzq@1242"
,
"32"
,
"0"
,
object
:
AdProvider
{
install
(
applicationContext
,
APP_ID
,
SECRET
,
APP
,
SUBAPP
,
object
:
AdProvider
{
/**
* 阅读⻚弹窗广告确认按钮的点击回调-激励视频
* @param dialog
...
...
@@ -78,17 +83,17 @@ object ReaderManager {
curVedioAd
=
ylhVedioAD
ylhAd
.
loadVideoAd
(
ActivityStackManager
.
getInstance
().
topActivity
,
receiver
)
}
//
isCsjAd = !isCsjAd
isCsjAd
=
!
isCsjAd
}
})
}
private
fun
onAdDialogInvoke
(
function0
:
()
->
Unit
)
{
when
(
curVedioAd
)
{
csjVedioAD
->{
csjAd
.
showVideo
(
ActivityStackManager
.
getInstance
().
topActivity
)
{
function0
.
invoke
()
}
when
(
curVedioAd
)
{
csjVedioAD
->
{
csjAd
.
showVideo
(
ActivityStackManager
.
getInstance
().
topActivity
)
{
function0
.
invoke
()
}
}
ylhVedioAD
->{
ylhVedioAD
->
{
ylhAd
.
showVideo
(
ActivityStackManager
.
getInstance
().
topActivity
)
{
function0
.
invoke
()
}
}
}
...
...
GoodMoney/app/src/main/java/com/mints/goodmoney/ui/activitys/WrapperActivity.kt
View file @
7094a647
...
...
@@ -19,6 +19,7 @@ import kotlinx.android.synthetic.main.header_layout.*
* 作者:孟崔广
* 时间:2020/12/10 12:39
*/
@AndroidEntryPoint
class
WrapperActivity
:
BaseActivity
(),
View
.
OnClickListener
{
private
var
wrapperType
=
Constant
.
WRAPPER_TYPE_NEWS
...
...
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