Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
F
File Recovery RecycleBin
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
File Recovery RecycleBin
Commits
5a514230
Commit
5a514230
authored
Jul 22, 2024
by
wanglei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
...
parent
87f8b950
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
26 additions
and
17 deletions
+26
-17
build.gradle
app/build.gradle
+4
-2
SplashActivity.kt
...om/base/filerecoveryrecyclebin/activity/SplashActivity.kt
+2
-15
AdmobMaxHelper.kt
...ava/com/base/filerecoveryrecyclebin/ads/AdmobMaxHelper.kt
+20
-0
qdylogo.png
app/src/main/res/mipmap-xxhdpi/qdylogo.png
+0
-0
No files found.
app/build.gradle
View file @
5a514230
...
...
@@ -110,6 +110,8 @@ dependencies {
implementation
'com.google.firebase:firebase-analytics:21.6.2'
implementation
(
"com.google.firebase:firebase-messaging"
)
//max adjust 归因
implementation
'com.adjust.sdk:adjust-android:4.28.7'
//google 内购订阅
def
billing_version
=
"7.0.0"
implementation
"com.android.billingclient:billing:$billing_version"
}
\ No newline at end of file
app/src/main/java/com/base/filerecoveryrecyclebin/activity/SplashActivity.kt
View file @
5a514230
...
...
@@ -81,10 +81,10 @@ class SplashActivity : BaseActivity<ActivitySplashBinding>() {
progressCollect
()
if
(
ifAgreePrivacy
)
{
AdmobMaxHelper
.
preloadAd
(
this
)
job
=
startProgress
()
binding
.
llStart
.
visibility
=
View
.
GONE
binding
.
llProgress
.
visibility
=
View
.
VISIBLE
preloadAd
()
}
else
{
binding
.
llStart
.
visibility
=
View
.
VISIBLE
binding
.
llProgress
.
visibility
=
View
.
GONE
...
...
@@ -108,19 +108,6 @@ class SplashActivity : BaseActivity<ActivitySplashBinding>() {
}
}
private
fun
preloadAd
()
{
if
(
ConfigHelper
.
admobTrueMaxFlase
)
{
AdmobNativeUtils
.
loadNativeAd
()
AdmobInterstitialUtils
.
loadInterstitialAd
(
this
)
}
else
{
AdMaxInit
.
maxInitAction
=
{
AdMaxOpenUtils
.
loadAppOpenAd
(
this
)
AdMaxInterstitialUtils
.
loadInterstitialAd
(
this
)
AdMaxNativeUtils
.
loadNativeAd
()
}
}
}
private
fun
progressCollect
()
{
lifecycleScope
.
launch
{
progressFlow
.
collectLatest
{
...
...
@@ -207,7 +194,7 @@ class SplashActivity : BaseActivity<ActivitySplashBinding>() {
oneClickStart
=
true
ifAgreePrivacy
=
true
(
application
as
MyApplication
).
initApp
()
preloadAd
(
)
AdmobMaxHelper
.
preloadAd
(
this
)
binding
.
llStart
.
visibility
=
View
.
GONE
binding
.
llProgress
.
visibility
=
View
.
VISIBLE
job
=
startProgress
()
...
...
app/src/main/java/com/base/filerecoveryrecyclebin/ads/AdmobMaxHelper.kt
View file @
5a514230
package
com.base.filerecoveryrecyclebin.ads
import
android.app.Activity
import
android.util.Log
import
android.view.ViewGroup
import
com.base.filerecoveryrecyclebin.R
import
com.base.filerecoveryrecyclebin.ads.admob.AdmobInterstitialUtils
import
com.base.filerecoveryrecyclebin.ads.admob.AdmobNativeUtils
import
com.base.filerecoveryrecyclebin.ads.admob.AdmobOpenUtils
import
com.base.filerecoveryrecyclebin.ads.max.AdMaxInit
import
com.base.filerecoveryrecyclebin.ads.max.AdMaxInit.initAdMax
import
com.base.filerecoveryrecyclebin.ads.max.AdMaxInterstitialUtils
import
com.base.filerecoveryrecyclebin.ads.max.AdMaxNativeUtils
...
...
@@ -73,4 +75,22 @@ object AdmobMaxHelper {
}
}
fun
preloadAd
(
activity
:
Activity
)
{
if
(
ConfigHelper
.
admobTrueMaxFlase
)
{
AdmobOpenUtils
.
loadAppOpenAd
()
AdmobInterstitialUtils
.
loadInterstitialAd
(
activity
)
}
else
{
if
(
isAdInit
.
get
())
{
AdMaxOpenUtils
.
loadAppOpenAd
(
activity
)
AdMaxInterstitialUtils
.
loadInterstitialAd
(
activity
)
}
else
{
AdMaxInit
.
maxInitAction
=
{
Log
.
d
(
TAG
,
"max init suc"
)
AdMaxOpenUtils
.
loadAppOpenAd
(
activity
)
AdMaxInterstitialUtils
.
loadInterstitialAd
(
activity
)
}
}
}
}
}
\ No newline at end of file
app/src/main/res/mipmap-xxhdpi/qdylogo.png
View replaced file @
87f8b950
View file @
5a514230
73.6 KB
|
W:
|
H:
72.7 KB
|
W:
|
H:
2-up
Swipe
Onion skin
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