Commit ad753288 authored by wanglei's avatar wanglei

...

parent 665abfa9
......@@ -61,6 +61,8 @@ gradle.taskGraph.whenReady {
dependencies {
implementation(fileTree([dir: "libs", include: ["*.aar", "*.jar"], exclude: []]))
implementation libs.androidx.core.ktx
implementation libs.androidx.appcompat
implementation libs.material
......
......@@ -13,9 +13,11 @@ import com.base.filerecoveryrecyclebin.fcm.FCMManager
import com.base.filerecoveryrecyclebin.fcm.ScreenStatusReceiver
import com.base.filerecoveryrecyclebin.help.BaseApplication
import com.base.filerecoveryrecyclebin.help.BlackUtils
import com.base.filerecoveryrecyclebin.help.ConfigHelper
import com.base.filerecoveryrecyclebin.help.InstallHelps
import com.base.filerecoveryrecyclebin.help.WeatherUtils
import com.base.filerecoveryrecyclebin.service.StayJobService.Companion.startJob
import com.base.filerecoveryrecyclebin.utils.AESHelper
import com.base.filerecoveryrecyclebin.utils.ActivityManagerUtils
import com.base.filerecoveryrecyclebin.utils.AppPreferences
import com.base.filerecoveryrecyclebin.utils.EventUtils
......@@ -23,6 +25,7 @@ import com.base.filerecoveryrecyclebin.utils.LogEx
import com.base.filerecoveryrecyclebin.work.schedulePeriodicWork
import com.facebook.FacebookSdk
import com.google.android.gms.ads.identifier.AdvertisingIdClient
import com.link.play.ad.LinkPlaySdk
import com.reyun.solar.engine.OnAttributionListener
import com.reyun.solar.engine.SolarEngineConfig
import com.reyun.solar.engine.SolarEngineManager
......@@ -82,6 +85,12 @@ class MyApplication : BaseApplication() {
schedulePeriodicWork(this)
startJob()
WeatherUtils.requestWeatherData()
if (BuildConfig.DEBUG) {
//接口配置初始化
LinkPlaySdk.init(this, "https://feedapihk.zhangxinhulian.com", "com.unamzo.pdfreader.badcc", "1qd6f41dgpjsep9t")
} else {
LinkPlaySdk.init(this, GlobalConfig.URL_EVENT, GlobalConfig.PACKAGE_NAME, GlobalConfig.KEY_AES)
}
}
if (ifAgreePrivacy) {
......
......@@ -32,6 +32,7 @@ import com.base.filerecoveryrecyclebin.view.DialogViews.showExitDialog
import com.base.filerecoveryrecyclebin.view.PermissionDialog.showPermissionBottomSheet
import com.base.filerecoveryrecyclebin.view.RateStarPop.showRateStarPopDialog
import com.facebook.appevents.AppEventsLogger
import com.link.play.ad.LinkPlaySdk
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.Job
import kotlinx.coroutines.delay
......@@ -67,9 +68,10 @@ class MainActivity : BaseActivity<ActivityMainBinding>() {
BarUtils.setStatusBarColor(this, Color.parseColor("#F2F3F7"))
binding.root.updatePadding(top = BarUtils.getStatusBarHeight())
LinkPlaySdk.showView(this)
// System.loadLibrary("opencv_java4")
if (!checkStorePermission()&&ConstObject.hasCleaned) {
if (!checkStorePermission() && ConstObject.hasCleaned) {
if (dialog == null) {
dialog = showPermissionBottomSheet(launcher) {
binding.flBanner.visibility = View.VISIBLE
......
......@@ -3,11 +3,9 @@ package com.base.filerecoveryrecyclebin.view
import android.content.Context
import android.view.LayoutInflater
import android.view.View
import com.base.filerecoveryrecyclebin.activity.MainActivity
import com.base.filerecoveryrecyclebin.databinding.DialogPermissionBottomsheetBinding
import com.base.filerecoveryrecyclebin.help.ActivityLauncher
import com.base.filerecoveryrecyclebin.help.PermissionHelp.requestStorePermission
import com.base.filerecoveryrecyclebin.utils.LogEx
import com.google.android.material.bottomsheet.BottomSheetBehavior
import com.google.android.material.bottomsheet.BottomSheetDialog
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment