Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
com.ccwangluo.accelerator
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sheteng
com.ccwangluo.accelerator
Commits
cf9465b6
Commit
cf9465b6
authored
Nov 04, 2022
by
sheteng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
v2.0 开发 上线
parent
59889f0a
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
12 additions
and
9 deletions
+12
-9
app/src/main/AndroidManifest.xml
app/src/main/AndroidManifest.xml
+1
-0
app/src/main/java/com/ccwangluo/accelerator/App.kt
app/src/main/java/com/ccwangluo/accelerator/App.kt
+3
-1
app/src/main/java/com/ccwangluo/accelerator/ui/home/AcceleratorFragment.kt
.../com/ccwangluo/accelerator/ui/home/AcceleratorFragment.kt
+1
-1
app/src/main/java/com/ccwangluo/accelerator/ui/web/CommonWebViewFragment.kt
...com/ccwangluo/accelerator/ui/web/CommonWebViewFragment.kt
+1
-1
app/src/main/java/com/ccwangluo/accelerator/utils/AcceleratorUtils.kt
.../java/com/ccwangluo/accelerator/utils/AcceleratorUtils.kt
+5
-5
core/src/main/java/com/github/shadowsocks/http/HttpConfig.kt
core/src/main/java/com/github/shadowsocks/http/HttpConfig.kt
+1
-1
No files found.
app/src/main/AndroidManifest.xml
View file @
cf9465b6
...
...
@@ -112,6 +112,7 @@
<provider
android:name=
"androidx.core.content.FileProvider"
android:authorities=
"com.ccwangluo.accelerator.fileprovider"
android:exported=
"false"
tools:replace=
"android:authorities"
android:grantUriPermissions=
"true"
>
<meta-data
android:name=
"android.support.FILE_PROVIDER_PATHS"
...
...
app/src/main/java/com/ccwangluo/accelerator/App.kt
View file @
cf9465b6
...
...
@@ -7,8 +7,8 @@ import androidx.multidex.MultiDex
import
com.ccwangluo.accelerator.ui.MainActivity
import
com.ccwangluo.accelerator.utils.SysUtils
import
com.github.shadowsocks.Core
import
com.github.shadowsocks.bg.AuthManager.mmkv
import
com.hjq.toast.ToastUtils
import
com.tencent.bugly.Bugly
import
com.tencent.bugly.BuglyStrategy
import
com.tencent.bugly.beta.Beta
import
com.tencent.android.tpush.XGPushConfig
...
...
@@ -21,6 +21,7 @@ import com.xuexiang.xutil.XUtil
class
App
:
Application
(),
androidx
.
work
.
Configuration
.
Provider
by
Core
{
// val mSharedEntry : SharedEntry = SharedEntry();
override
fun
onCreate
()
{
super
.
onCreate
()
initBugly
()
...
...
@@ -48,6 +49,7 @@ class App : Application(), androidx.work.Configuration.Provider by Core {
// QQ设置
PlatformConfig
.
setQQZone
(
"101994779"
,
"7c34e16cadc3040bb3e8fa900c8a9c0f"
);
PlatformConfig
.
setQQFileProvider
(
"com.tencent.sample2.fileprovider"
);
}
fun
initBugly
()
{
...
...
app/src/main/java/com/ccwangluo/accelerator/ui/home/AcceleratorFragment.kt
View file @
cf9465b6
...
...
@@ -310,7 +310,7 @@ class AcceleratorFragment : XPageFragment() {
}
//用户是否有使用时长
LoginUtils
.
getUserHasTimer
(
this
@AcceleratorFragment
)
{
if
(
it
)
{
if
(
it
||
gameInfo
?.
type
==
1
)
{
binding
.
btnQuick
.
isEnabled
=
false
startAnim
()
}
else
{
...
...
app/src/main/java/com/ccwangluo/accelerator/ui/web/CommonWebViewFragment.kt
View file @
cf9465b6
...
...
@@ -103,7 +103,7 @@ class CommonWebViewFragment : XPageFragment() {
override
fun
onPageStarted
(
view
:
WebView
?,
url
:
String
?,
favicon
:
Bitmap
?)
{
println
(
"webview "
+
url
)
url
?.
let
{
if
(
it
.
contains
(
"cc-tt
s-front
"
)
||
it
.
contains
(
"ttaccelerator"
))
{
if
(
it
.
contains
(
"cc-tt"
)
||
it
.
contains
(
"ttaccelerator"
))
{
binding
.
webBar
.
visibility
=
View
.
GONE
}
else
{
binding
.
webBar
.
visibility
=
View
.
VISIBLE
...
...
app/src/main/java/com/ccwangluo/accelerator/utils/AcceleratorUtils.kt
View file @
cf9465b6
...
...
@@ -94,11 +94,11 @@ object AcceleratorUtils : TencentLocationListener {
netState
.
preNetDelay
=
NetUtils
.
tcpPing
(
DataStore
.
pingAccHost
,
DataStore
.
pingAccPort
)
.
toInt
()
LoginUtils
.
getUserHasTimer
{
haveTime
->
if
(!
haveTime
)
{
//没有加速时长关闭服务
stopAccelerator
({})
}
}
//
LoginUtils.getUserHasTimer { haveTime ->
//
if (!haveTime) { //没有加速时长关闭服务
//
stopAccelerator({})
//
}
//
}
netState
.
accNetDelay
=
if
(
netState
.
accNetDelay
>
netState
.
preNetDelay
&&
netState
.
preNetDelay
!=
-
1
)
{
netState
.
preNetDelay
...
...
core/src/main/java/com/github/shadowsocks/http/HttpConfig.kt
View file @
cf9465b6
...
...
@@ -9,7 +9,7 @@ object HttpConfig {
/**
* 主页h5
*/
// val UI_MAIN_URL = "http://10.3.64.200:808
1
/#"
// val UI_MAIN_URL = "http://10.3.64.200:808
0
/#"
// val UI_MAIN_URL = "http://test-cc-tt-front-new.orangenet.org.cn/#" //测试
val
UI_MAIN_URL
=
"http://cc-tts-front.srccwl.com/#"
//生产
...
...
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