Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
android_flowbox
Project
Project
Details
Activity
Releases
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
android
android_flowbox
Commits
2239275f
Commit
2239275f
authored
Aug 09, 2021
by
mengcuiguang2
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改启动方式
parent
2f7e858e
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
25 additions
and
16 deletions
+25
-16
build.gradle
app/build.gradle
+4
-3
AndroidManifest.xml
app/src/main/AndroidManifest.xml
+0
-1
CleanActivity.kt
...main/java/com/mints/flowbox/ui/activitys/CleanActivity.kt
+17
-12
IncreasespeedActivity.kt
...a/com/mints/flowbox/ui/activitys/IncreasespeedActivity.kt
+4
-0
No files found.
app/build.gradle
View file @
2239275f
...
@@ -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
...
...
app/src/main/AndroidManifest.xml
View file @
2239275f
...
@@ -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"
/>
...
...
app/src/main/java/com/mints/flowbox/ui/activitys/CleanActivity.kt
View file @
2239275f
...
@@ -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
)
}
}
...
...
app/src/main/java/com/mints/flowbox/ui/activitys/IncreasespeedActivity.kt
View file @
2239275f
...
@@ -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
...
...
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