Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
android_vedio
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_vedio
Commits
ab481650
Commit
ab481650
authored
Jun 21, 2023
by
jyx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加穿山甲短剧 SDK
parent
7e8f055b
Changes
10
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
582 additions
and
3 deletions
+582
-3
build.gradle
video/app/build.gradle
+10
-1
AndroidManifest.xml
video/app/src/main/AndroidManifest.xml
+20
-1
SDK_Setting_5175152.json
video/app/src/main/assets/SDK_Setting_5175152.json
+54
-0
MintsApplication.java
...src/main/java/com/mints/wisdomclean/MintsApplication.java
+1
-0
MyFragment.kt
...main/java/com/mints/wisdomclean/ui/fragment/MyFragment.kt
+10
-1
DPHolderManager.kt
.../main/java/com/mints/wisdomclean/vedio/DPHolderManager.kt
+40
-0
DramaHomeActivity.kt
...ain/java/com/mints/wisdomclean/vedio/DramaHomeActivity.kt
+53
-0
DrawDramaActivity.kt
...ain/java/com/mints/wisdomclean/vedio/DrawDramaActivity.kt
+372
-0
drama_home_frag_wrapper.xml
video/app/src/main/res/layout/drama_home_frag_wrapper.xml
+11
-0
draw_drama_activity.xml
video/app/src/main/res/layout/draw_drama_activity.xml
+11
-0
No files found.
video/app/build.gradle
View file @
ab481650
...
...
@@ -133,7 +133,6 @@ android {
dirs
'libs'
}
}
}
MobSDK
{
spEdition
"fp"
...
...
@@ -255,6 +254,16 @@ dependencies {
implementation
'com.github.yyued:SVGAPlayer-Android:2.1.4'
// 穿山甲
implementation
(
"com.pangle.cn:pangrowth-sdk:3.7.0.1"
)
{
exclude
group:
'com.pangle.cn'
,
module:
'pangrowth-game-sdk'
exclude
group:
'com.pangle.cn'
,
module:
'pangrowth-novel-sdk'
exclude
group:
'com.pangle.cn'
,
module:
'pangrowth-luckycat-sdk'
exclude
group:
'com.pangle.cn'
,
module:
'partner-luckycat-api-sdk'
exclude
group:
'com.pangle.cn'
,
module:
'pangrowth-reward-sdk'
exclude
group:
'com.pangle.cn'
,
module:
'partner-live-sdk'
exclude
group:
'com.tencent.mm.opensdk'
,
module:
'wechat-sdk-android'
}
testImplementation
'junit:junit:4.13.2'
androidTestImplementation
'androidx.test.ext:junit:1.1.3'
...
...
video/app/src/main/AndroidManifest.xml
View file @
ab481650
...
...
@@ -13,6 +13,11 @@
tools:ignore=
"ScopedStorage"
/>
<uses-permission
android:name=
"android.permission.REQUEST_DELETE_PACKAGES"
/>
<!-- 穿山甲 -->
<uses-permission
android:name=
"android.permission.READ_PHONE_STATE"
/>
<uses-permission
android:name=
"android.permission.ACCESS_NETWORK_STATE"
/>
<uses-permission
android:name=
"android.permission.ACCESS_WIFI_STATE"
/>
<application
android:name=
".MintsApplication"
android:allowBackup=
"false"
...
...
@@ -185,8 +190,8 @@
android:screenOrientation=
"portrait"
/>
<activity
android:name=
".ui.activitys.VedioActivity"
android:exported=
"false"
android:configChanges=
"orientation|screenSize|keyboardHidden"
android:exported=
"false"
android:screenOrientation=
"portrait"
/>
<activity
android:name=
".ui.activitys.ManageOrderActivity"
...
...
@@ -201,6 +206,15 @@
android:exported=
"false"
android:screenOrientation=
"portrait"
/>
<activity
android:name=
".vedio.DramaHomeActivity"
android:exported=
"false"
android:screenOrientation=
"portrait"
/>
<activity
android:name=
".vedio.DrawDramaActivity"
android:exported=
"false"
android:screenOrientation=
"portrait"
/>
<service
android:name=
".ui.service.UpdateService"
android:exported=
"true"
/>
...
...
@@ -240,6 +254,11 @@
android:resource=
"@xml/pangle_file_paths"
/>
</provider>
<provider
android:name=
"com.bytedance.sdk.dp.act.DPProvider"
android:authorities=
"${applicationId}.BDDPProvider"
android:exported=
"false"
/>
<provider
android:name=
"com.bytedance.sdk.openadsdk.multipro.TTMultiProvider"
android:authorities=
"${applicationId}.TTMultiProvider"
...
...
video/app/src/main/assets/SDK_Setting_5175152.json
0 → 100644
View file @
ab481650
{
"init"
:
{
"site_id"
:
"5175152"
,
"app_id"
:
"193842"
,
"partner"
:
"pangle_193842"
,
"secure_key"
:
"11146c60bf023251701462c31a44a28b"
},
"feed"
:
{
"news_list_ad_code_id"
:
"946175237"
,
"news_first_ad_code_id"
:
"946175238"
,
"news_second_ad_code_id"
:
"946175242"
,
"video_first_ad_code_id"
:
""
,
"video_second_ad_code_id"
:
"946175251"
,
"related_ad_code_id"
:
"946175239"
,
"news_draw_ad_code_id"
:
"946175243"
,
"news_draw_native_ad_code_id"
:
"946175244"
,
"news_interstitial_code_id"
:
"947027583"
},
"small_video"
:
{
"draw_ad_code_id"
:
"946175245"
,
"draw_native_ad_code_id"
:
"946175248"
,
"grid_ad_code_id"
:
"946175241"
,
"grid_draw_ad_code_id"
:
"946175246"
,
"grid_draw_native_ad_code_id"
:
"946175250"
,
"video_card_ad_code_id"
:
"946175247"
,
"video_card_draw_ad_code_id"
:
"946175240"
,
"video_card_draw_native_ad_code_id"
:
"946175249"
,
"interstitial_note_ad_code_id"
:
"946506704"
,
"draw_fullscreen_interstitial_ad_code_id"
:
"947490273"
,
"draw_interstitial_ad_code_id"
:
"947490116"
,
"staggered_grid_ad_code_id"
:
"946506705"
,
"staggered_grid_draw_ad_code_id"
:
"946175245"
,
"staggered_grid_draw_native_ad_code_id"
:
"946175248"
,
"draw_banner_code_id"
:
"947490413"
,
"drama_rewarded_ad_code_id"
:
"951008975"
,
"drama_rewarded_ad_code_id_02"
:
"951011822"
,
"drama_draw_ad_code_id"
:
"952225157"
},
"novel"
:
{
"banner_ad_code_id"
:
"946508521"
,
"exciting_ad_code_id"
:
"946176105"
,
"interstitial_code_id"
:
"946508522"
,
"mid_ad_code_id"
:
"946176107"
,
"pre_ad_code_id"
:
"946176106"
,
"status"
:
1
},
"live"
:
{
"live_card_ad_code_id"
:
"946192110"
,
"live_preview_draw_ad_code_id"
:
"947474066"
,
"live_preview_draw_native_ad_code_id"
:
"947474068"
}
}
video/app/src/main/java/com/mints/wisdomclean/MintsApplication.java
View file @
ab481650
...
...
@@ -17,6 +17,7 @@ import com.mints.wisdomclean.net.LoanService;
import
com.mints.wisdomclean.utils.AppPreferencesManager
;
import
com.mints.wisdomclean.utils.MateUtils
;
import
com.mints.wisdomclean.utils.ForegroundOrBackground
;
import
com.mints.wisdomclean.vedio.DPHolderManager
;
import
com.orhanobut.logger.AndroidLogAdapter
;
import
com.orhanobut.logger.FormatStrategy
;
import
com.orhanobut.logger.Logger
;
...
...
video/app/src/main/java/com/mints/wisdomclean/ui/fragment/MyFragment.kt
View file @
ab481650
...
...
@@ -17,10 +17,14 @@ import com.mints.wisdomclean.ui.activitys.*
import
com.mints.wisdomclean.ui.fragment.base.BaseFragment
import
com.mints.wisdomclean.utils.TimeRender
import
com.mints.library.utils.nodoubleclick.AntiShake
import
com.mints.wisdomclean.MintsApplication
import
com.mints.wisdomclean.ui.widgets.DialogListener
import
com.mints.wisdomclean.ui.widgets.DialogUtils
import
com.mints.wisdomclean.utils.SpanUtils
import
com.mints.wisdomclean.utils.UcropUtils
import
com.mints.wisdomclean.vedio.DPHolderManager
import
com.mints.wisdomclean.vedio.DramaHomeActivity
import
com.mints.wisdomclean.vedio.DrawDramaActivity
import
kotlinx.android.synthetic.main.fragment_main_my.*
/**
...
...
@@ -49,6 +53,8 @@ class MyFragment : BaseFragment(), MyView, View.OnClickListener {
.
create
()
initListener
()
DPHolderManager
.
initDpSdk
(
MintsApplication
.
getContext
())
}
override
fun
onHiddenChanged
(
hidden
:
Boolean
)
{
...
...
@@ -95,7 +101,10 @@ class MyFragment : BaseFragment(), MyView, View.OnClickListener {
}
}
R
.
id
.
iv_my_set
->
{
readyGo
(
SettingsActivity
::
class
.
java
)
// readyGo(SettingsActivity::class.java)
// readyGo(DramaHomeActivity::class.java)
readyGo
(
DrawDramaActivity
::
class
.
java
)
}
R
.
id
.
ll_feedback
,
R
.
id
.
ll_contactus2
,
R
.
id
.
ll_contactus
->
{
// 联系客服
...
...
video/app/src/main/java/com/mints/wisdomclean/vedio/DPHolderManager.kt
0 → 100644
View file @
ab481650
package
com.mints.wisdomclean.vedio
import
android.app.Application
import
android.content.Context
import
android.util.Log
import
com.bytedance.sdk.dp.DPSdk
import
com.bytedance.sdk.dp.DPSdkConfig
/**
* @author Assen
* @date 2023/6/21
* @desc
*/
object
DPHolderManager
{
const
val
TAG
=
"DPHolderManager"
var
isDPStarted
=
false
fun
initDpSdk
(
context
:
Context
)
{
//1. 初始化,最好放到application.onCreate()执行
val
configBuilder
=
DPSdkConfig
.
Builder
().
debug
(
true
)
DPSdk
.
init
(
context
,
"SDK_Setting_5175152.json"
,
configBuilder
.
build
())
startDpSdk
()
}
fun
startDpSdk
()
{
DPSdk
.
start
{
isSuccess
,
message
->
//请确保使用Sdk时Sdk已经成功启动
//isSuccess=true表示启动成功
//启动失败,可以再次调用启动接口(建议最多不要超过3次)
isDPStarted
=
isSuccess
Log
.
e
(
TAG
,
"start result=$isSuccess, msg=$message"
)
}
}
}
\ No newline at end of file
video/app/src/main/java/com/mints/wisdomclean/vedio/DramaHomeActivity.kt
0 → 100644
View file @
ab481650
package
com.mints.wisdomclean.vedio
import
android.os.Bundle
import
android.util.Log
import
androidx.appcompat.app.AppCompatActivity
import
com.bytedance.sdk.dp.*
import
com.mints.wisdomclean.R
/**
* Created by limingqi on 2023/1/28
*/
class
DramaHomeActivity
:
AppCompatActivity
()
{
companion
object
{
private
const
val
TAG
=
"DramaHomeActivity"
}
private
var
dpWidget
:
IDPWidget
?
=
null
private
var
isInited
=
false
override
fun
onCreate
(
savedInstanceState
:
Bundle
?)
{
super
.
onCreate
(
savedInstanceState
)
setContentView
(
R
.
layout
.
drama_home_frag_wrapper
)
if
(
DPSdk
.
isStartSuccess
())
{
init
()
}
}
private
fun
init
()
{
if
(
isInited
)
{
return
}
initWidget
()
dpWidget
?.
let
{
widget
->
supportFragmentManager
.
beginTransaction
().
replace
(
R
.
id
.
fl_container
,
widget
.
fragment
)
.
commit
()
isInited
=
true
}
}
private
fun
initWidget
()
{
dpWidget
=
DPSdk
.
factory
().
createDramaHome
(
DPWidgetDramaHomeParams
.
obtain
()
.
listener
(
object
:
IDPDramaHomeListener
()
{
override
fun
onItemClick
(
drama
:
DPDrama
?,
map
:
MutableMap
<
String
,
Any
>?)
{
super
.
onItemClick
(
drama
,
map
)
drama
?:
return
map
?:
return
Log
.
d
(
TAG
,
"onItemClick Drama = $drama, CommonParams = $map"
)
}
})
)
}
}
\ No newline at end of file
video/app/src/main/java/com/mints/wisdomclean/vedio/DrawDramaActivity.kt
0 → 100644
View file @
ab481650
package
com.mints.wisdomclean.vedio
import
android.app.Activity
import
android.content.Intent
import
android.os.Bundle
import
android.os.SystemClock
import
android.util.Log
import
androidx.appcompat.app.AppCompatActivity
import
com.bytedance.sdk.dp.DPDramaDetailConfig
import
com.bytedance.sdk.dp.DPSdk
import
com.bytedance.sdk.dp.DPWidgetDrawParams
import
com.bytedance.sdk.dp.IDPAdListener
import
com.bytedance.sdk.dp.IDPDramaListener
import
com.bytedance.sdk.dp.IDPDrawListener
import
com.bytedance.sdk.dp.IDPWidget
import
com.mints.wisdomclean.R
/**
* Created by limingqi on 2023/5/10
*/
class
DrawDramaActivity
:
AppCompatActivity
()
{
companion
object
{
const
val
KEY_DRAMA_UNLOCK_INDEX
=
"key_drama_unlock_index"
const
val
KEY_DRAMA_CURRENT_DURATION
=
"drama_current_duration"
private
const
val
TAG
=
"DrawDramaActivity"
const
val
CHANNEL_TYPE
=
"channel_type"
const
val
CONTENT_TYPE
=
"content_type"
const
val
DETAIL_MODE
=
"detail_mode"
const
val
HIDE_INFO
=
"hide_info"
const
val
HIDE_ENTER
=
"hide_enter"
private
const
val
FREE_SET
=
-
1
private
const
val
LOCK_SET
=
-
1
fun
start
(
activity
:
Activity
,
channelType
:
Int
,
contentType
:
Int
,
detailMode
:
String
,
hideInfo
:
Boolean
,
hideEnter
:
Boolean
)
{
val
intent
=
Intent
(
activity
,
DrawDramaActivity
::
class
.
java
)
intent
.
putExtra
(
CHANNEL_TYPE
,
channelType
)
intent
.
putExtra
(
CONTENT_TYPE
,
contentType
)
intent
.
putExtra
(
DETAIL_MODE
,
detailMode
)
intent
.
putExtra
(
HIDE_INFO
,
hideInfo
)
intent
.
putExtra
(
HIDE_ENTER
,
hideEnter
)
intent
.
addFlags
(
Intent
.
FLAG_ACTIVITY_NEW_TASK
)
activity
.
startActivity
(
intent
)
}
}
private
var
dpWidget
:
IDPWidget
?
=
null
private
var
lastBackTime
:
Long
=
-
1
private
var
channelType
=
DPWidgetDrawParams
.
DRAW_CHANNEL_TYPE_RECOMMEND
private
var
contentType
=
DPWidgetDrawParams
.
DRAW_CONTENT_TYPE_ONLY_DRAMA
private
var
detailMode
=
DPDramaDetailConfig
.
COMMON_DETAIL
private
var
mIsHideInfo
=
false
private
var
mIsHideEnter
=
false
private
var
isInited
=
false
override
fun
onCreate
(
savedInstanceState
:
Bundle
?)
{
super
.
onCreate
(
savedInstanceState
)
setContentView
(
R
.
layout
.
draw_drama_activity
)
intent
?.
let
{
intent
->
channelType
=
intent
.
getIntExtra
(
CHANNEL_TYPE
,
DPWidgetDrawParams
.
DRAW_CHANNEL_TYPE_RECOMMEND
)
contentType
=
intent
.
getIntExtra
(
CONTENT_TYPE
,
DPWidgetDrawParams
.
DRAW_CONTENT_TYPE_ONLY_DRAMA
)
intent
.
getStringExtra
(
DETAIL_MODE
)
?.
let
{
detailMode
=
it
}
mIsHideInfo
=
intent
.
getBooleanExtra
(
HIDE_INFO
,
false
)
mIsHideEnter
=
intent
.
getBooleanExtra
(
HIDE_ENTER
,
false
)
}
if
(
DPSdk
.
isStartSuccess
())
{
init
()
}
}
private
fun
init
()
{
if
(
isInited
)
{
return
}
//初始化draw组件
initDrawWidget
()
dpWidget
?.
let
{
supportFragmentManager
.
beginTransaction
()
.
replace
(
R
.
id
.
draw_drama_frame
,
it
.
fragment
)
.
commitAllowingStateLoss
()
isInited
=
true
}
}
override
fun
onSaveInstanceState
(
outState
:
Bundle
)
{
super
.
onSaveInstanceState
(
outState
)
outState
.
putParcelable
(
"android:support:fragments"
,
null
)
}
private
fun
initDrawWidget
()
{
val
dramaDetailConfig
=
DPDramaDetailConfig
.
obtain
(
detailMode
)
.
setEnterDelegate
{
context
,
drama
,
current
->
// outerDrama = drama
// val intent = Intent(context, DramaApiDetailActivity::class.java)
// intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
// outerDrama = drama
// intent.putExtra(KEY_DRAMA_UNLOCK_INDEX, 100)
// intent.putExtra(KEY_DRAMA_CURRENT_DURATION, current)
// context.startActivity(intent)
}
.
freeSet
(
FREE_SET
)
.
lockSet
(
LOCK_SET
)
.
listener
(
dramaListener
)
.
adListener
(
dramaAdListener
)
dpWidget
=
DPSdk
.
factory
().
createDraw
(
DPWidgetDrawParams
.
obtain
()
.
adOffset
(
0
)
//单位 dp,为 0 时可以不设置
.
drawContentType
(
contentType
)
.
drawChannelType
(
channelType
)
.
hideChannelName
(
channelType
==
DPWidgetDrawParams
.
DRAW_CHANNEL_TYPE_RECOMMEND
)
.
hideDramaInfo
(
mIsHideInfo
)
.
hideDramaEnter
(
mIsHideEnter
)
.
dramaDetailConfig
(
dramaDetailConfig
)
.
hideClose
(
false
,
null
)
.
listener
(
drawListener
)
.
adListener
(
drawAdListener
)
)
}
private
fun
log
(
msg
:
String
)
{
Log
.
d
(
TAG
,
msg
)
}
override
fun
onBackPressed
()
{
if
(
dpWidget
!=
null
&&
!
dpWidget
!!
.
canBackPress
())
{
return
}
if
(
dpWidget
==
null
)
{
return
}
val
current
=
SystemClock
.
elapsedRealtime
()
if
(
current
-
lastBackTime
>
3000
)
{
lastBackTime
=
current
dpWidget
?.
backRefresh
()
return
}
super
.
onBackPressed
()
}
override
fun
onDestroy
()
{
super
.
onDestroy
()
dpWidget
?.
destroy
()
}
private
var
dramaListener
:
IDPDramaListener
=
object
:
IDPDramaListener
()
{
override
fun
onDPSeekTo
(
position
:
Int
,
time
:
Long
)
{
super
.
onDPSeekTo
(
position
,
time
)
Log
.
d
(
TAG
,
"onDPSeekTo:"
)
}
override
fun
onDPPageChange
(
position
:
Int
,
map
:
MutableMap
<
String
,
Any
>?)
{
super
.
onDPPageChange
(
position
,
map
)
Log
.
d
(
TAG
,
"onDPPageChange:"
+
map
?.
toString
())
}
override
fun
onDPVideoPlay
(
map
:
MutableMap
<
String
,
Any
>?)
{
super
.
onDPVideoPlay
(
map
)
Log
.
d
(
TAG
,
"onDPVideoPlay:"
+
map
?.
toString
())
}
override
fun
onDPVideoPause
(
map
:
MutableMap
<
String
,
Any
>?)
{
super
.
onDPVideoPause
(
map
)
Log
.
d
(
TAG
,
"onDPVideoPause:"
+
map
?.
toString
())
}
override
fun
onDPVideoContinue
(
map
:
MutableMap
<
String
,
Any
>?)
{
super
.
onDPVideoContinue
(
map
)
Log
.
d
(
TAG
,
"onDPVideoContinue:"
+
map
?.
toString
())
}
override
fun
onDPVideoCompletion
(
map
:
MutableMap
<
String
,
Any
>?)
{
super
.
onDPVideoCompletion
(
map
)
Log
.
d
(
TAG
,
"onDPVideoCompletion:"
+
map
?.
toString
())
}
override
fun
onDPVideoOver
(
map
:
MutableMap
<
String
,
Any
>?)
{
super
.
onDPVideoOver
(
map
)
Log
.
d
(
TAG
,
"onDPVideoOver:"
+
map
?.
toString
())
}
override
fun
onDPClose
()
{
super
.
onDPClose
()
Log
.
d
(
TAG
,
"onDPClose"
)
}
override
fun
onDPRequestStart
(
map
:
MutableMap
<
String
,
Any
>?)
{
super
.
onDPRequestStart
(
map
)
Log
.
d
(
TAG
,
"onDPRequestStart:"
+
map
?.
toString
())
}
override
fun
onDPRequestFail
(
code
:
Int
,
msg
:
String
?,
map
:
MutableMap
<
String
,
Any
>?)
{
super
.
onDPRequestFail
(
code
,
msg
,
map
)
Log
.
d
(
TAG
,
"onDPRequestFail:"
+
map
?.
toString
())
}
override
fun
onDPRequestSuccess
(
list
:
MutableList
<
MutableMap
<
String
,
Any
>>?)
{
super
.
onDPRequestSuccess
(
list
)
list
?.
forEach
{
it
->
Log
.
d
(
TAG
,
"onDPRequestSuccess:"
+
it
.
toString
())
}
}
override
fun
onDramaSwitch
(
map
:
MutableMap
<
String
,
Any
>?)
{
super
.
onDramaSwitch
(
map
)
Log
.
d
(
TAG
,
"onDramaSwitch:"
+
map
?.
toString
())
}
}
private
val
drawListener
=
object
:
IDPDrawListener
()
{
override
fun
onDPRefreshFinish
()
{
Log
.
d
(
TAG
,
"onDPRefreshFinish"
)
}
override
fun
onDPPageChange
(
position
:
Int
)
{
Log
.
d
(
TAG
,
"onDPPageChange: $position"
)
}
override
fun
onDPVideoPlay
(
map
:
Map
<
String
,
Any
>)
{
Log
.
d
(
TAG
,
"onDPVideoPlay: $map"
)
}
override
fun
onDPVideoCompletion
(
map
:
Map
<
String
,
Any
>)
{
Log
.
d
(
TAG
,
"onDPVideoCompletion: $map"
)
}
override
fun
onDPVideoOver
(
map
:
Map
<
String
,
Any
>)
{
Log
.
d
(
TAG
,
"onDPVideoOver: $map"
)
}
override
fun
onDPClose
()
{
Log
.
d
(
TAG
,
"onDPClose"
)
}
override
fun
onDPRequestStart
(
map
:
Map
<
String
,
Any
>?)
{
Log
.
d
(
TAG
,
"onDPRequestStart: $map"
)
}
override
fun
onDPRequestSuccess
(
list
:
List
<
Map
<
String
,
Any
>>)
{
Log
.
d
(
TAG
,
"onDPRequestSuccess: $list"
)
}
override
fun
onDPRequestFail
(
code
:
Int
,
msg
:
String
,
map
:
Map
<
String
,
Any
>?
)
{
Log
.
d
(
TAG
,
"onDPRequestFail: code = $code, msg = $msg, map = $map"
)
}
override
fun
onDPClickAuthorName
(
map
:
Map
<
String
,
Any
>)
{
Log
.
d
(
TAG
,
"onDPClickAuthorName: $map"
)
}
override
fun
onDPClickAvatar
(
map
:
Map
<
String
,
Any
>)
{
Log
.
d
(
TAG
,
"onDPClickAvatar: $map"
)
}
override
fun
onDPClickComment
(
map
:
Map
<
String
,
Any
>)
{
Log
.
d
(
TAG
,
"onDPClickComment: $map"
)
}
override
fun
onDPClickLike
(
isLike
:
Boolean
,
map
:
Map
<
String
,
Any
>
)
{
Log
.
d
(
TAG
,
"onDPClickLike: isLike = $isLike, map = $map"
)
}
override
fun
onDPVideoPause
(
map
:
Map
<
String
,
Any
>)
{
Log
.
d
(
TAG
,
"onDPVideoPause: $map"
)
}
override
fun
onDPVideoContinue
(
map
:
Map
<
String
,
Any
>)
{
Log
.
d
(
TAG
,
"onDPVideoContinue: $map"
)
}
override
fun
onDPClickShare
(
map
:
MutableMap
<
String
,
Any
>?)
{
Log
.
d
(
TAG
,
"onDPClickShare $map"
)
}
}
private
val
dramaAdListener
:
IDPAdListener
=
object
:
IDPAdListener
()
{
override
fun
onDPAdRequest
(
map
:
Map
<
String
?
,
Any
?
>)
{
Log
.
d
(
TAG
,
"onDPAdRequest map = $map"
)
}
override
fun
onDPAdRequestSuccess
(
map
:
Map
<
String
?
,
Any
?
>)
{
Log
.
d
(
TAG
,
"onDPAdRequestSuccess map = $map"
)
}
override
fun
onDPAdRequestFail
(
code
:
Int
,
msg
:
String
?,
map
:
Map
<
String
?
,
Any
?
>)
{
Log
.
d
(
TAG
,
"onDPAdRequestFail map = $map"
)
}
override
fun
onDPAdFillFail
(
map
:
Map
<
String
?
,
Any
?
>)
{
Log
.
d
(
TAG
,
"onDPAdFillFail map = $map"
)
}
override
fun
onDPAdShow
(
map
:
Map
<
String
?
,
Any
?
>)
{
Log
.
d
(
TAG
,
"onDPAdShow map = $map"
)
}
override
fun
onDPAdPlayStart
(
map
:
Map
<
String
?
,
Any
?
>)
{
Log
.
d
(
TAG
,
"onDPAdPlayStart: map = $map"
)
}
override
fun
onDPAdPlayPause
(
map
:
Map
<
String
?
,
Any
?
>)
{
Log
.
d
(
TAG
,
"onDPAdPlayPause map = $map"
)
}
override
fun
onDPAdPlayContinue
(
map
:
Map
<
String
?
,
Any
?
>)
{
Log
.
d
(
TAG
,
"onDPAdPlayContinue map = $map"
)
}
override
fun
onDPAdPlayComplete
(
map
:
Map
<
String
?
,
Any
?
>)
{
Log
.
d
(
TAG
,
"onDPAdPlayComplete map = $map"
)
}
override
fun
onDPAdClicked
(
map
:
Map
<
String
?
,
Any
?
>)
{
Log
.
d
(
TAG
,
"onDPAdClicked map = $map"
)
}
}
private
val
drawAdListener
:
IDPAdListener
=
object
:
IDPAdListener
()
{
override
fun
onDPAdRequest
(
map
:
Map
<
String
?
,
Any
?
>)
{
Log
.
d
(
TAG
,
"onDPAdRequest map = $map"
)
}
override
fun
onDPAdRequestSuccess
(
map
:
Map
<
String
?
,
Any
?
>)
{
Log
.
d
(
TAG
,
"onDPAdRequestSuccess map = $map"
)
}
override
fun
onDPAdRequestFail
(
code
:
Int
,
msg
:
String
?,
map
:
Map
<
String
?
,
Any
?
>)
{
Log
.
d
(
TAG
,
"onDPAdRequestFail map = $map"
)
}
override
fun
onDPAdFillFail
(
map
:
Map
<
String
?
,
Any
?
>)
{
Log
.
d
(
TAG
,
"onDPAdFillFail map = $map"
)
}
override
fun
onDPAdShow
(
map
:
Map
<
String
?
,
Any
?
>)
{
Log
.
d
(
TAG
,
"onDPAdShow map = $map"
)
}
override
fun
onDPAdPlayStart
(
map
:
Map
<
String
?
,
Any
?
>)
{
Log
.
d
(
TAG
,
"onDPAdPlayStart: map = $map"
)
}
override
fun
onDPAdPlayPause
(
map
:
Map
<
String
?
,
Any
?
>)
{
Log
.
d
(
TAG
,
"onDPAdPlayPause map = $map"
)
}
override
fun
onDPAdPlayContinue
(
map
:
Map
<
String
?
,
Any
?
>)
{
Log
.
d
(
TAG
,
"onDPAdPlayContinue map = $map"
)
}
override
fun
onDPAdPlayComplete
(
map
:
Map
<
String
?
,
Any
?
>)
{
Log
.
d
(
TAG
,
"onDPAdPlayComplete map = $map"
)
}
override
fun
onDPAdClicked
(
map
:
Map
<
String
?
,
Any
?
>)
{
Log
.
d
(
TAG
,
"onDPAdClicked map = $map"
)
}
}
}
\ No newline at end of file
video/app/src/main/res/layout/drama_home_frag_wrapper.xml
0 → 100644
View file @
ab481650
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
>
<FrameLayout
android:id=
"@+id/fl_container"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
/>
</FrameLayout>
\ No newline at end of file
video/app/src/main/res/layout/draw_drama_activity.xml
0 → 100644
View file @
ab481650
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
>
<FrameLayout
android:id=
"@+id/draw_drama_frame"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
/>
</FrameLayout>
\ No newline at end of file
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