Commit 2239275f authored by mengcuiguang2's avatar mengcuiguang2

修改启动方式

parent 2f7e858e
...@@ -13,8 +13,8 @@ android { ...@@ -13,8 +13,8 @@ android {
applicationId rootProject.APPLICATION_ID applicationId rootProject.APPLICATION_ID
minSdkVersion rootProject.ext.androidMinSdkVersion minSdkVersion rootProject.ext.androidMinSdkVersion
targetSdkVersion rootProject.ext.androidTargetSdkVersion targetSdkVersion rootProject.ext.androidTargetSdkVersion
versionCode 7 versionCode 8
versionName "1.0.6" versionName "1.0.7"
flavorDimensions "default" flavorDimensions "default"
// dex突破65535的限制 // dex突破65535的限制
...@@ -75,7 +75,8 @@ android { ...@@ -75,7 +75,8 @@ android {
// 不显示Log // 不显示Log
buildConfigField "boolean", "LOG_DEBUG", "true" buildConfigField "boolean", "LOG_DEBUG", "true"
buildConfigField "String", "AppKeyPre", "\"abcd\"" buildConfigField "String", "AppKeyPre", "\"abcd\""
buildConfigField "String", "MainIp", DEBUG_URL // buildConfigField "String", "MainIp", DEBUG_URL
buildConfigField "String", "MainIp", RELEASE_URL
//混淆 //混淆
minifyEnabled false minifyEnabled false
......
...@@ -102,7 +102,6 @@ ...@@ -102,7 +102,6 @@
<activity <activity
android:name="com.mints.flowbox.ui.activitys.SplashGroMoreActivity" android:name="com.mints.flowbox.ui.activitys.SplashGroMoreActivity"
android:excludeFromRecents="true"
android:theme="@style/NormalSplash"> android:theme="@style/NormalSplash">
<intent-filter> <intent-filter>
<action android:name="android.intent.action.MAIN" /> <action android:name="android.intent.action.MAIN" />
......
...@@ -93,18 +93,6 @@ class CleanActivity : BaseActivity(), View.OnClickListener { ...@@ -93,18 +93,6 @@ class CleanActivity : BaseActivity(), View.OnClickListener {
} }
override fun initViewsAndEvents() { override fun initViewsAndEvents() {
WifiAdManager.instance.setWifiAdStatusListener(object : WifiAdStatusListener {
override fun adSuccess() {}
override fun adFail() {
toResult()
}
override fun adClose() {
toResult()
}
})
WifiAdManager.instance.loadWifiAd(this)
initView() initView()
initCleanData() initCleanData()
...@@ -187,6 +175,12 @@ class CleanActivity : BaseActivity(), View.OnClickListener { ...@@ -187,6 +175,12 @@ class CleanActivity : BaseActivity(), View.OnClickListener {
btnClean.text = "开始清理" btnClean.text = "开始清理"
isScaning = false isScaning = false
if (scanMax == 1) {
Handler(Looper.getMainLooper()).postDelayed({
startClean()
}, 1000)
}
if (tvClean.visibility == View.VISIBLE) { if (tvClean.visibility == View.VISIBLE) {
if (AppConfig.fakeCleanCount == 0) { if (AppConfig.fakeCleanCount == 0) {
AppConfig.fakeCleanCount = mCleanList[0].childList.size AppConfig.fakeCleanCount = mCleanList[0].childList.size
...@@ -271,6 +265,17 @@ class CleanActivity : BaseActivity(), View.OnClickListener { ...@@ -271,6 +265,17 @@ class CleanActivity : BaseActivity(), View.OnClickListener {
cleaningOperation(mContext, mCleanList[taskType].childList) cleaningOperation(mContext, mCleanList[taskType].childList)
Handler(Looper.getMainLooper()).postDelayed({ Handler(Looper.getMainLooper()).postDelayed({
WifiAdManager.instance.setWifiAdStatusListener(object : WifiAdStatusListener {
override fun adSuccess() {}
override fun adFail() {
toResult()
}
override fun adClose() {
toResult()
}
})
WifiAdManager.instance.showInterstitial(this@CleanActivity) WifiAdManager.instance.showInterstitial(this@CleanActivity)
}, 2000) }, 2000)
} }
......
...@@ -87,6 +87,8 @@ class IncreasespeedActivity : BaseActivity(), View.OnClickListener { ...@@ -87,6 +87,8 @@ class IncreasespeedActivity : BaseActivity(), View.OnClickListener {
line.visibility = View.GONE line.visibility = View.GONE
if (mIncreaseType == INCREASE_BOOST && AppConfig.isCanBoost) { if (mIncreaseType == INCREASE_BOOST && AppConfig.isCanBoost) {
WifiAdManager.instance.loadWifiAd(this)
container.visibility = View.GONE container.visibility = View.GONE
containerAnim.visibility = View.VISIBLE containerAnim.visibility = View.VISIBLE
startTimer() startTimer()
...@@ -109,6 +111,8 @@ class IncreasespeedActivity : BaseActivity(), View.OnClickListener { ...@@ -109,6 +111,8 @@ class IncreasespeedActivity : BaseActivity(), View.OnClickListener {
mTimerMax = 26 mTimerMax = 26
startTimer() startTimer()
} else if (mIncreaseType == INCREASE_CLEAN && AppConfig.isCanClean) { } else if (mIncreaseType == INCREASE_CLEAN && AppConfig.isCanClean) {
WifiAdManager.instance.loadWifiAd(this)
container.visibility = View.GONE container.visibility = View.GONE
containerAnim.visibility = View.VISIBLE containerAnim.visibility = View.VISIBLE
mTimerMax = 14 mTimerMax = 14
......
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