Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
E
Easy File Manager Junk
Project
Project
Details
Activity
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wanglei
Easy File Manager Junk
Commits
ad8c266f
Commit
ad8c266f
authored
Jun 21, 2024
by
wanglei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
上报
parent
ac37879f
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
11 deletions
+21
-11
PrivacyAgreementManager.kt
...asyfilemanager/activity/splash/PrivacyAgreementManager.kt
+3
-6
PushStrategy.kt
...ain/java/com/base/easyfilemanager/display/PushStrategy.kt
+1
-1
EventHelper.kt
...c/main/java/com/base/easyfilemanager/helps/EventHelper.kt
+7
-2
AdmobUtils.kt
...ain/java/com/base/easyfilemanager/helps/ads/AdmobUtils.kt
+10
-2
No files found.
app/src/main/java/com/base/easyfilemanager/activity/splash/PrivacyAgreementManager.kt
View file @
ad8c266f
...
...
@@ -9,6 +9,7 @@ import android.text.style.UnderlineSpan
import
com.base.easyfilemanager.MyApplication
import
com.base.easyfilemanager.databinding.ActivityLayoutSplashBinding
import
com.base.easyfilemanager.helps.ConfigHelper
import
com.base.easyfilemanager.helps.EventHelper
class
PrivacyAgreementManager
{
...
...
@@ -53,13 +54,9 @@ class PrivacyAgreementManager {
return
@setOnClickListener
}
clicked
=
true
// binding.idTvStart.isVisible = false
// binding.idLlJindu.isVisible = true
// binding.idLlYinsi.isVisible = false
ConfigHelper
.
ifAgreePrivacy
=
true
(
context
.
application
as
com
.
base
.
easyfilemanager
.
MyApplication
).
initApp
()
// EventHelper.event("click_start_to_use")
// EventHelper.event("page_${javaClass.simpleName}")
(
context
.
application
as
MyApplication
).
initApp
()
EventHelper
.
event
(
"click_start_to_use"
)
listener
.
onAgreePrivacy
()
}
}
...
...
app/src/main/java/com/base/easyfilemanager/display/PushStrategy.kt
View file @
ad8c266f
...
...
@@ -73,7 +73,7 @@ object PushStrategy {
}
//是否在前台推送
val
isResumed
=
com
.
base
.
easyfilemanager
.
MyApplication
.
PAUSED_VALUE
==
1
val
isResumed
=
MyApplication
.
PAUSED_VALUE
==
1
LogEx
.
logDebug
(
TAG
,
"isResumed=$isResumed"
)
if
(
isResumed
)
{
LogEx
.
logDebug
(
TAG
,
"================================app在前台拦截==============================="
)
...
...
app/src/main/java/com/base/easyfilemanager/helps/EventHelper.kt
View file @
ad8c266f
...
...
@@ -43,12 +43,17 @@ object EventHelper {
val
filterKey
=
arrayOf
(
"click_start_to_use"
,
"install_referrer"
,
"ad_pull_start"
,
"ad_prepare_show"
,
"notification_jump"
,
"ad_pull"
,
"ad_show"
,
"ad_click"
,
"bigimage_ad_click"
,
"bigimage_ad_show"
,
"ad_price"
,
"fcm_receiver"
,
"fcm_message_received"
,
"notification_jump"
,
"fcm_message_received"
)
if
(!
filterKey
.
contains
(
key
))
{
return
...
...
app/src/main/java/com/base/easyfilemanager/helps/ads/AdmobUtils.kt
View file @
ad8c266f
...
...
@@ -551,7 +551,11 @@ object AdmobUtils {
obj
.
put
(
"credentials"
,
credentials
.
toString
())
obj
.
put
(
"session_id"
,
responseInfo
?.
responseId
)
obj
.
put
(
"from"
,
activity
?.
javaClass
?.
simpleName
)
EventHelper
.
event
(
"ad_show"
,
ext
=
obj
)
if
(
adUnit
!=
"nativeAd"
){
EventHelper
.
event
(
"ad_show"
,
ext
=
obj
)
}
else
{
EventHelper
.
event
(
"bigimage_ad_show"
,
ext
=
obj
)
}
}
private
var
lastObj
:
Any
?
=
null
...
...
@@ -588,7 +592,11 @@ object AdmobUtils {
obj
.
put
(
"credentials"
,
credentials
.
toString
())
obj
.
put
(
"session_id"
,
responseInfo
?.
responseId
)
obj
.
put
(
"networkname"
,
responseInfo
?.
mediationAdapterClassName
)
EventHelper
.
event
(
"ad_click"
,
ext
=
obj
)
if
(
adUnit
!=
"nativeAd"
){
EventHelper
.
event
(
"ad_click"
,
ext
=
obj
)
}
else
{
EventHelper
.
event
(
"bigimage_ad_click"
,
ext
=
obj
)
}
}
private
val
taichiPref
by
lazy
{
...
...
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