Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
S
Scan QR Code Barcode Reader
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
Scan QR Code Barcode Reader
Commits
aca00d74
Commit
aca00d74
authored
Jan 09, 2025
by
wanglei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
...
parent
35878617
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
3 deletions
+7
-3
MyApplication.kt
app/src/main/java/com/base/scanqr/MyApplication.kt
+1
-1
AdEvent.kt
app/src/main/java/com/base/scanqr/ads/AdEvent.kt
+1
-1
AdState.kt
app/src/main/java/com/base/scanqr/ads/AdState.kt
+5
-0
settings.gradle.kts
settings.gradle.kts
+0
-1
No files found.
app/src/main/java/com/base/scanqr/MyApplication.kt
View file @
aca00d74
...
...
@@ -270,7 +270,7 @@ class MyApplication : Application() {
//广告
AdConfigBean
.
adsConfigBean
=
configBean
.
adConfigBean
LogEx
.
logDebug
(
"initConfig"
,
"adsConfigBean=${AdConfigBean.adsConfigBean.
timeInterval
}"
)
LogEx
.
logDebug
(
"initConfig"
,
"adsConfigBean=${AdConfigBean.adsConfigBean.
numDisplayLimit
}"
)
//通知
PopupConfigBean
.
popupConfigBean
=
configBean
.
popupConfigBean
...
...
app/src/main/java/com/base/scanqr/ads/AdEvent.kt
View file @
aca00d74
...
...
@@ -59,7 +59,7 @@ abstract class AdEvent {
obj
.
put
(
"req_id"
,
reqId
)
obj
.
put
(
"from"
,
from
)
EventUtils
.
event
(
"ad_limit"
,
value
,
obj
)
LogEx
.
logDebug
(
TAG
,
"ad_limit $obj"
)
LogEx
.
logDebug
(
TAG
,
"ad_limit $
value $
obj"
)
}
...
...
app/src/main/java/com/base/scanqr/ads/AdState.kt
View file @
aca00d74
package
com.base.scanqr.ads
import
android.app.Activity
import
android.app.Dialog
import
java.lang.ref.WeakReference
...
...
@@ -55,6 +56,10 @@ class AdState<T>() {
fun
onAdHidden
()
{
// 广告关闭,清空缓存数据,重新加载
showingAd
=
false
//重置下上次展示的时间,避免看广告的时间算入间隔
lastShowTime
=
System
.
currentTimeMillis
()
}
fun
onAdDisplayFailed
()
{
...
...
settings.gradle.kts
View file @
aca00d74
...
...
@@ -16,7 +16,6 @@ dependencyResolutionManagement {
repositories
{
google
()
mavenCentral
()
maven
(
"https://maven.google.com'"
)
maven
(
"https://s01.oss.sonatype.org/content/groups/public"
)
maven
(
"https://jitpack.io"
)
maven
(
"https://android-sdk.is.com"
)
...
...
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