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
cc6dc0ac
Commit
cc6dc0ac
authored
Feb 11, 2025
by
guest
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
b128354b
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
80 additions
and
106 deletions
+80
-106
google-services.json
app/google-services.json
+6
-6
proguard-rules.pro
app/proguard-rules.pro
+2
-1
AndroidManifest.xml
app/src/main/AndroidManifest.xml
+2
-2
AdmobEvent.kt
...a/com/base/filerecoveryrecyclebin/ads/admob/AdmobEvent.kt
+5
-10
AdmobNativeUtils.kt
...base/filerecoveryrecyclebin/ads/admob/AdmobNativeUtils.kt
+1
-1
MessagingService.java
...com/base/filerecoveryrecyclebin/fcm/MessagingService.java
+2
-3
GuideFragment.kt
...com/base/filerecoveryrecyclebin/fragment/GuideFragment.kt
+8
-22
ConfigHelper.kt
...java/com/base/filerecoveryrecyclebin/help/ConfigHelper.kt
+4
-4
InstallHelps.kt
...java/com/base/filerecoveryrecyclebin/help/InstallHelps.kt
+42
-50
NewComUtils.kt
.../java/com/base/filerecoveryrecyclebin/help/NewComUtils.kt
+8
-7
No files found.
app/google-services.json
View file @
cc6dc0ac
{
"project_info"
:
{
"project_number"
:
"
135677224109
"
,
"project_id"
:
"
scream-1bc70
"
,
"storage_bucket"
:
"
scream-1bc70.firebasestorage.app
"
"project_number"
:
"
944507974954
"
,
"project_id"
:
"
dumpster-photo-recovery
"
,
"storage_bucket"
:
"
dumpster-photo-recovery.appspot.com
"
},
"client"
:
[
{
"client_info"
:
{
"mobilesdk_app_id"
:
"1:
135677224109:android:5e3fd3c8cfce99d40a1224
"
,
"mobilesdk_app_id"
:
"1:
944507974954:android:1309986ccc55e242589a53
"
,
"android_client_info"
:
{
"package_name"
:
"co
nfine.scream
"
"package_name"
:
"co
m.baloota.photorecyclebin.awm.sp
"
}
},
"oauth_client"
:
[],
"api_key"
:
[
{
"current_key"
:
"AIzaSy
BIUMrPv6OOQWBheBAylXU94bkwvZgBFsg
"
"current_key"
:
"AIzaSy
DBejd5HFvww_CVve-aFYRBjR-d6XwIBFA
"
}
],
"services"
:
{
...
...
app/proguard-rules.pro
View file @
cc6dc0ac
...
...
@@ -61,3 +61,4 @@
-
keep
class
com
.
bytedance
.
sdk
.
**
{
*
;
}
-
dontwarn
com
.
google
.
android
.
gms
.
ads
.
R
$
layout
-
dontwarn
com
.
google
.
android
.
gms
.
ads
.
R
$
styleable
-
keep
class
com
.
base
.
filerecoveryrecyclebin
.
bean
.
**
{
*
;}
\ No newline at end of file
app/src/main/AndroidManifest.xml
View file @
cc6dc0ac
...
...
@@ -306,14 +306,14 @@
<action
android:name=
"com.google.firebase.MESSAGING_EVENT"
/>
<action
android:name=
"com.google.android.c2dm.intent.RECEIVE"
/>
<category
android:name=
"com.
test.easy.cleanerjunk
"
/>
<category
android:name=
"com.
baloota.photorecyclebin.awm.sp
"
/>
</intent-filter>
</receiver>
<!-- Sample AdMob App ID: ca-app-pub-3940256099942544~3347511713 -->
<meta-data
android:name=
"com.google.android.gms.ads.APPLICATION_ID"
android:value=
"ca-app-pub-3
940256099942544~3347511713
"
/>
android:value=
"ca-app-pub-3
838048042416287~9437965450
"
/>
<meta-data
android:name=
"com.facebook.sdk.ApplicationId"
android:value=
"@string/facebook_app_id"
/>
...
...
app/src/main/java/com/base/filerecoveryrecyclebin/ads/admob/AdmobEvent.kt
View file @
cc6dc0ac
...
...
@@ -123,6 +123,7 @@ object AdmobEvent {
val
mediationGroupName
=
extras
.
getString
(
"mediation_group_name"
)
val
mediationABTestName
=
extras
.
getString
(
"mediation_ab_test_name"
)
val
mediationABTestVariant
=
extras
.
getString
(
"mediation_ab_test_variant"
)
obj
.
put
(
"ad_unit"
,
"openAd"
)
obj
.
put
(
"adUnitId"
,
adUnitId
)
obj
.
put
(
"adSourceName"
,
adSourceName
)
obj
.
put
(
"adSourceId"
,
adSourceId
)
...
...
@@ -147,6 +148,7 @@ object AdmobEvent {
val
mediationABTestName
=
extras
.
getString
(
"mediation_ab_test_name"
)
val
mediationABTestVariant
=
extras
.
getString
(
"mediation_ab_test_variant"
)
obj
.
put
(
"adUnitId"
,
adUnitId
)
obj
.
put
(
"ad_unit"
,
"interAd"
)
obj
.
put
(
"adSourceName"
,
adSourceName
)
obj
.
put
(
"adSourceId"
,
adSourceId
)
obj
.
put
(
"adSourceInstanceName"
,
adSourceInstanceName
)
...
...
@@ -190,6 +192,7 @@ object AdmobEvent {
val
mediationABTestName
=
extras
?.
getString
(
"mediation_ab_test_name"
)
val
mediationABTestVariant
=
extras
?.
getString
(
"mediation_ab_test_variant"
)
obj
.
put
(
"adSourceName"
,
adSourceName
)
obj
.
put
(
"ad_unit"
,
"nativeAd"
)
obj
.
put
(
"adSourceId"
,
adSourceId
)
obj
.
put
(
"adSourceInstanceName"
,
adSourceInstanceName
)
obj
.
put
(
"adSourceInstanceId"
,
adSourceInstanceId
)
...
...
@@ -218,11 +221,7 @@ object AdmobEvent {
obj
.
put
(
"credentials"
,
credentials
.
toString
())
obj
.
put
(
"session_id"
,
responseInfo
?.
responseId
)
obj
.
put
(
"networkname"
,
responseInfo
?.
mediationAdapterClassName
)
if
(
adUnit
!=
"nativeAd"
)
{
EventUtils
.
event
(
"ad_click"
,
ext
=
obj
)
}
else
{
EventUtils
.
event
(
"bigimage_ad_click"
,
ext
=
obj
)
}
}
fun
showAd
(
responseInfo
:
ResponseInfo
?,
adUnit
:
String
,
activity
:
Activity
?
=
null
)
{
...
...
@@ -239,10 +238,6 @@ object AdmobEvent {
obj
.
put
(
"credentials"
,
credentials
.
toString
())
obj
.
put
(
"session_id"
,
responseInfo
?.
responseId
)
obj
.
put
(
"from"
,
activity
?.
javaClass
?.
simpleName
)
if
(
adUnit
!=
"nativeAd"
)
{
EventUtils
.
event
(
"ad_show"
,
ext
=
obj
)
}
else
{
EventUtils
.
event
(
"bigimage_ad_show"
,
ext
=
obj
)
}
}
}
\ No newline at end of file
app/src/main/java/com/base/filerecoveryrecyclebin/ads/admob/AdmobNativeUtils.kt
View file @
cc6dc0ac
...
...
@@ -79,7 +79,7 @@ object AdmobNativeUtils {
fun
showNativeAd
(
activity
:
Activity
?,
parent
:
ViewGroup
,
layout
:
Int
=
R
.
layout
.
layout_native_custom
)
{
val
obj
=
JSONObject
()
obj
.
put
(
"ad_unit"
,
"NativeAd"
)
EventUtils
.
event
(
"ad_prepare_show
_native
"
,
ext
=
obj
)
EventUtils
.
event
(
"ad_prepare_show"
,
ext
=
obj
)
if
(!
AdDisplayUtils
.
getInstance
().
shouldShowAd
(
"NativeAd"
))
{
return
}
...
...
app/src/main/java/com/base/filerecoveryrecyclebin/fcm/MessagingService.java
View file @
cc6dc0ac
...
...
@@ -4,8 +4,7 @@ import android.annotation.SuppressLint;
import
androidx.annotation.NonNull
;
import
com.base.filerecoveryrecyclebin.MyApplication
;
import
com.base.filerecoveryrecyclebin.ads.AdDisplayUtils
;
import
com.base.filerecoveryrecyclebin.help.BaseApplication
;
import
com.base.filerecoveryrecyclebin.utils.AppPreferences
;
import
com.base.filerecoveryrecyclebin.utils.EventUtils
;
import
com.google.firebase.messaging.FirebaseMessagingService
;
...
...
@@ -79,7 +78,7 @@ public class MessagingService extends FirebaseMessagingService {
// Consider implementing this method if local notifications are needed
private
void
sendLocalNotification
()
{
NotificationUtil
.
INSTANCE
.
sendNotification
(
My
Application
.
context
,
"MessagingService"
);
NotificationUtil
.
INSTANCE
.
sendNotification
(
Base
Application
.
context
,
"MessagingService"
);
}
}
\ No newline at end of file
app/src/main/java/com/base/filerecoveryrecyclebin/fragment/GuideFragment.kt
View file @
cc6dc0ac
...
...
@@ -7,7 +7,6 @@ import com.base.filerecoveryrecyclebin.R
import
com.base.filerecoveryrecyclebin.activity.MainActivity
import
com.base.filerecoveryrecyclebin.activity.guide.GuideActivity
import
com.base.filerecoveryrecyclebin.ads.AdmobMaxHelper
import
com.base.filerecoveryrecyclebin.bean.ConstObject
import
com.base.filerecoveryrecyclebin.databinding.FragmentGuideBinding
import
com.base.filerecoveryrecyclebin.help.BaseFragment
import
com.base.filerecoveryrecyclebin.utils.AppPreferences
...
...
@@ -65,16 +64,6 @@ class GuideFragment : BaseFragment<FragmentGuideBinding>() {
}
private
fun
jumpNext
()
{
if
(
false
)
{
// startActivity(Intent(requireContext(), VipActivity::class.java).apply {
// putExtra("isSkip", true)
// })
// requireActivity().finish()
// isInstallVip = false
}
else
{
if
(!
ConstObject
.
isCLeanGuide
){
(
requireActivity
()
as
GuideActivity
).
lauchPermisson
()
}
else
{
val
showAd
=
AppPreferences
.
getInstance
().
getString
(
"isShowGuideAd"
,
"0"
)
?.
toInt
()
if
(
showAd
==
1
)
{
AdmobMaxHelper
.
admobMaxShowInterstitialAd
(
requireActivity
(),
isLoading
=
false
)
{
...
...
@@ -86,7 +75,4 @@ class GuideFragment : BaseFragment<FragmentGuideBinding>() {
requireActivity
().
finish
()
}
}
}
}
}
\ No newline at end of file
app/src/main/java/com/base/filerecoveryrecyclebin/help/ConfigHelper.kt
View file @
cc6dc0ac
...
...
@@ -18,10 +18,10 @@ object ConfigHelper {
const
val
nativeAdmobIdTest
=
"ca-app-pub-3940256099942544/2247696110"
// admob广告id
const
val
interAdmobId
=
"ca-app-pub-3
940256099942544/103317371
2"
const
val
nativeAdmobId
=
"ca-app-pub-3
940256099942544/224769611
0"
const
val
openAdmobId
=
"ca-app-pub-3
940256099942544/925739592
1"
const
val
bannerAdmobId
=
"ca-app-pub-3
940256099942544/9214589741
"
const
val
interAdmobId
=
"ca-app-pub-3
838048042416287/823453116
2"
const
val
nativeAdmobId
=
"ca-app-pub-3
838048042416287/619672444
0"
const
val
openAdmobId
=
"ca-app-pub-3
838048042416287/872035097
1"
const
val
bannerAdmobId
=
"ca-app-pub-3
838048042416287/6921449490
"
//max id
const
val
interAdMaxId
=
"b31e7f6d11ee659e"
...
...
app/src/main/java/com/base/filerecoveryrecyclebin/help/InstallHelps.kt
View file @
cc6dc0ac
package
com.base.filerecoveryrecyclebin.help
import
android.os.Build
import
androidx.annotation.RequiresApi
import
com.android.installreferrer.api.InstallReferrerClient
import
com.android.installreferrer.api.InstallReferrerStateListener
import
com.base.filerecoveryrecyclebin.BuildConfig
...
...
@@ -10,6 +8,9 @@ import com.base.filerecoveryrecyclebin.fcm.RecoveryTimerManager
import
com.base.filerecoveryrecyclebin.fcm.ScreenStatusReceiver
import
com.base.filerecoveryrecyclebin.utils.AppPreferences
import
com.base.filerecoveryrecyclebin.utils.EventUtils
import
kotlinx.coroutines.Dispatchers
import
kotlinx.coroutines.MainScope
import
kotlinx.coroutines.launch
import
org.json.JSONObject
/**
...
...
@@ -19,19 +20,8 @@ object InstallHelps {
private
val
TAG
=
"InstallHelps"
fun
init
()
=
Thread
{
//InstallReferrer not empty
// if (!TextUtils.isEmpty(AppPreferences.getInstance().getString("install_source", ""))) {
// if (AdmobMaxHelper.haveSpAdmobTrueMaxFalse()) {
// AdmobMaxHelper.initAdmobMaxAd()
// requestCfg(false)
// } else {
// requestCfg(true)
// }
// return
// }
fun
init
()
{
MainScope
().
launch
(
Dispatchers
.
IO
)
{
val
referrerClient
=
InstallReferrerClient
.
newBuilder
(
BaseApplication
.
context
).
build
()
referrerClient
.
startConnection
(
object
:
InstallReferrerStateListener
{
override
fun
onInstallReferrerSetupFinished
(
responseCode
:
Int
)
{
...
...
@@ -75,7 +65,9 @@ object InstallHelps {
override
fun
onInstallReferrerServiceDisconnected
()
{
}
})
}.
start
()
}
}
fun
requestCfg
(
callBackAd
:
Boolean
)
{
...
...
app/src/main/java/com/base/filerecoveryrecyclebin/help/NewComUtils.kt
View file @
cc6dc0ac
package
com.base.filerecoveryrecyclebin.help
import
android.os.Build
import
android.util.Log
import
com.base.filerecoveryrecyclebin.BuildConfig
import
com.base.filerecoveryrecyclebin.ads.AdDisplayUtils
...
...
@@ -12,7 +11,6 @@ import com.base.filerecoveryrecyclebin.utils.LogEx
import
com.google.gson.Gson
import
com.google.gson.reflect.TypeToken
import
kotlinx.coroutines.CoroutineExceptionHandler
import
kotlinx.coroutines.CoroutineScope
import
kotlinx.coroutines.Dispatchers
import
kotlinx.coroutines.MainScope
import
kotlinx.coroutines.launch
...
...
@@ -22,7 +20,6 @@ import java.io.BufferedReader
import
java.io.InputStreamReader
import
java.net.HttpURLConnection
import
java.net.URL
import
java.util.Base64
import
java.util.Locale
object
NewComUtils
{
...
...
@@ -114,12 +111,16 @@ object NewComUtils {
val
gson
=
Gson
()
val
type
=
object
:
TypeToken
<
Map
<
String
,
String
>>()
{}.
type
val
configMap
=
gson
.
fromJson
<
Map
<
String
,
String
>>(
json
,
type
)
try
{
configMap
.
forEach
{
t
,
u
->
// 对于整型值使用parseInt, 长整型使用parseLong
AppPreferences
.
getInstance
().
put
(
t
,
u
)
LogEx
.
logDebug
(
TAG
,
"t=$t u=$u"
)
}
}
catch
(
_
:
Exception
){
}
val
jsonObject
=
JSONObject
()
jsonObject
.
put
(
"ut"
,
AppPreferences
.
getInstance
().
getString
(
"ut"
,
""
))
...
...
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