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
ae8e4fcb
Commit
ae8e4fcb
authored
Jul 19, 2022
by
sheteng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2.0 开发 5
parent
00243d6d
Changes
21
Hide whitespace changes
Inline
Side-by-side
Showing
21 changed files
with
98 additions
and
44 deletions
+98
-44
app/src/main/java/com/ccwangluo/accelerator/manager/GameDownLoadManger.kt
...a/com/ccwangluo/accelerator/manager/GameDownLoadManger.kt
+5
-5
app/src/main/java/com/ccwangluo/accelerator/model/Game.kt
app/src/main/java/com/ccwangluo/accelerator/model/Game.kt
+2
-2
app/src/main/java/com/ccwangluo/accelerator/ui/dialog/GameDownloadDialog.kt
...com/ccwangluo/accelerator/ui/dialog/GameDownloadDialog.kt
+1
-1
app/src/main/java/com/ccwangluo/accelerator/ui/gameList/GameListFragment.kt
...com/ccwangluo/accelerator/ui/gameList/GameListFragment.kt
+11
-6
app/src/main/java/com/ccwangluo/accelerator/ui/home/AcceleratorFragment.kt
.../com/ccwangluo/accelerator/ui/home/AcceleratorFragment.kt
+7
-0
app/src/main/java/com/ccwangluo/accelerator/ui/home/MineFragment.kt
...in/java/com/ccwangluo/accelerator/ui/home/MineFragment.kt
+2
-3
app/src/main/java/com/ccwangluo/accelerator/ui/home/NewsFragment.kt
...in/java/com/ccwangluo/accelerator/ui/home/NewsFragment.kt
+1
-1
app/src/main/java/com/ccwangluo/accelerator/ui/home/NoticeFragment.kt
.../java/com/ccwangluo/accelerator/ui/home/NoticeFragment.kt
+3
-2
app/src/main/java/com/ccwangluo/accelerator/ui/login/SplashFragment.kt
...java/com/ccwangluo/accelerator/ui/login/SplashFragment.kt
+5
-0
app/src/main/java/com/ccwangluo/accelerator/ui/news/NewsCollectionAdapter.kt
...om/ccwangluo/accelerator/ui/news/NewsCollectionAdapter.kt
+3
-1
app/src/main/java/com/ccwangluo/accelerator/ui/news/NewsObjectFragment.kt
...a/com/ccwangluo/accelerator/ui/news/NewsObjectFragment.kt
+2
-4
app/src/main/java/com/ccwangluo/accelerator/utils/AcceleratorUtils.kt
.../java/com/ccwangluo/accelerator/utils/AcceleratorUtils.kt
+7
-4
app/src/main/java/com/ccwangluo/accelerator/utils/SysUtils.kt
...src/main/java/com/ccwangluo/accelerator/utils/SysUtils.kt
+7
-7
app/src/main/res/layout/fragment_game_list.xml
app/src/main/res/layout/fragment_game_list.xml
+3
-1
app/src/main/res/layout/fragment_mine.xml
app/src/main/res/layout/fragment_mine.xml
+1
-0
app/src/main/res/layout/fragment_notice.xml
app/src/main/res/layout/fragment_notice.xml
+29
-0
app/src/main/res/layout/fragment_quick.xml
app/src/main/res/layout/fragment_quick.xml
+1
-0
app/src/main/res/layout/item_game.xml
app/src/main/res/layout/item_game.xml
+4
-3
app/src/main/res/values/themes.xml
app/src/main/res/values/themes.xml
+1
-2
build.gradle.kts
build.gradle.kts
+1
-0
core/src/main/java/com/github/shadowsocks/http/HttpConfig.kt
core/src/main/java/com/github/shadowsocks/http/HttpConfig.kt
+2
-2
No files found.
app/src/main/java/com/ccwangluo/accelerator/manager/GameDownLoadManger.kt
View file @
ae8e4fcb
...
...
@@ -50,10 +50,10 @@ object GameDownLoadManger {
filename
)
//
if (file.exists()) {
//
activity.context?.let { DownloadUtils.install(file.absolutePath, it) }
//
return
//
}
if
(
file
.
exists
())
{
activity
.
context
?.
let
{
DownloadUtils
.
install
(
file
.
absolutePath
,
it
)
}
return
}
downloadManager
=
activity
.
context
?.
getSystemService
(
Context
.
DOWNLOAD_SERVICE
)
as
DownloadManager
val
request
=
...
...
@@ -89,7 +89,7 @@ object GameDownLoadManger {
var
progress
=
0F
while
(
progress
<
100F
)
{
progress
=
getDownloadProgress
(
downloadId
)
delay
(
2
000
)
delay
(
1
000
)
}
withContext
(
Dispatchers
.
Main
)
{
gameDownloadListener
?.
onFinish
(
downloadMap
.
get
(
downloadId
))
...
...
app/src/main/java/com/ccwangluo/accelerator/model/Game.kt
View file @
ae8e4fcb
...
...
@@ -10,7 +10,7 @@ data class GameInfo(
val
announcementList
:
List
<
Announcement
>,
val
anotherName
:
String
,
val
boosterPackageName
:
String
?,
val
boosterServer
:
String
,
val
boosterServer
:
String
?
,
val
createdDate
:
String
,
val
dnsServer
:
String
,
val
downloadType
:
Int
,
...
...
@@ -21,7 +21,7 @@ data class GameInfo(
val
imgs
:
String
,
val
introduction
:
String
,
val
packageName
:
String
,
val
proxyRules
:
String
,
val
proxyRules
:
String
?
,
val
score
:
String
,
val
size
:
String
,
val
type
:
Int
,
...
...
app/src/main/java/com/ccwangluo/accelerator/ui/dialog/GameDownloadDialog.kt
View file @
ae8e4fcb
...
...
@@ -42,7 +42,7 @@ class GameDownloadDialog(
val
appSize
=
findViewById
<
TextView
>(
R
.
id
.
app_size
)
appSize
.
setText
(
"文件大小:${gameInfo.size}"
)
val
appVersion
=
findViewById
<
TextView
>(
R
.
id
.
app_version
)
appVersion
.
setText
(
"版本号:${gameInfo.
id
}"
)
appVersion
.
setText
(
"版本号:${gameInfo.
version
}"
)
val
btnLeft
=
findViewById
<
TextView
>(
R
.
id
.
btn_left
)
btnLeft
.
setOnClickListener
{
dismiss
<
GameDownloadDialog
>()
...
...
app/src/main/java/com/ccwangluo/accelerator/ui/gameList/GameListFragment.kt
View file @
ae8e4fcb
...
...
@@ -101,7 +101,7 @@ class GameListFragment : XPageFragment() {
val
game_notice_1_1
=
itemView
.
findViewById
<
TextView
>(
R
.
id
.
game_notice_1_1
)
val
game_notice_1_2
=
itemView
.
findViewById
<
TextView
>(
R
.
id
.
game_notice_1_2
)
val
game_notice_1_3
=
itemView
.
findViewById
<
TextView
>(
R
.
id
.
game_notice_1_3
)
val
announcement1
=
itemData
.
announcementList
.
stream
().
filter
{
it
.
type
==
1
}
val
announcement1
=
itemData
.
announcementList
.
stream
().
filter
{
it
.
addrType
==
3
}
.
collect
(
Collectors
.
toList
())
if
(
announcement1
==
null
||
announcement1
.
size
==
0
)
{
...
...
@@ -132,7 +132,7 @@ class GameListFragment : XPageFragment() {
}
}
val
announcement2
=
itemData
.
announcementList
.
stream
().
filter
{
it
.
type
==
2
}
val
announcement2
=
itemData
.
announcementList
.
stream
().
filter
{
it
.
addrType
==
4
}
.
collect
(
Collectors
.
toList
())
if
(
announcement2
==
null
||
announcement2
.
size
==
0
)
{
...
...
@@ -149,7 +149,7 @@ class GameListFragment : XPageFragment() {
.
load
(
itemData
.
icon
)
.
into
(
game_img
)
game_name
.
setText
(
itemData
.
gameName
)
println
(
itemData
)
if
(
itemData
.
type
==
1
)
{
is_free
.
visibility
=
View
.
VISIBLE
}
else
{
...
...
@@ -283,10 +283,15 @@ class GameListFragment : XPageFragment() {
gameInfo
:
GameInfo
?,
downloadInfo
:
GameDownLoadManger
.
DownloadInfo
)
{
if
(
gameInfo
!=
null
)
{
if
(
gameInfo
!=
null
&&
dataList
.
contains
(
gameInfo
)
)
{
val
lastInfo
=
downloadInfoMap
.
get
(
gameInfo
.
id
)
downloadInfo
.
speed
=
downloadInfo
.
download_so_far
-
if
(
lastInfo
==
null
)
0
else
lastInfo
.
download_so_far
(
downloadInfo
.
download_so_far
-
if
(
lastInfo
==
null
)
0
else
lastInfo
.
download_so_far
)
if
(
lastInfo
!=
null
)
{
if
(
downloadInfo
.
speed
==
0L
&&
lastInfo
.
speed
!=
0L
){
downloadInfo
.
speed
=
lastInfo
.
speed
}
}
downloadInfoMap
.
put
(
gameInfo
.
id
,
downloadInfo
)
_binding
.
gameList
.
adapter
?.
notifyItemChanged
(
dataList
.
indexOf
(
...
...
@@ -311,7 +316,7 @@ class GameListFragment : XPageFragment() {
}
else
if
(
ann
.
type
==
1
)
{
val
params
=
Bundle
()
params
.
putInt
(
Constants
.
GAME_ID
,
ann
.
gameId
)
openPage
(
NewsFragment
::
class
.
java
)
openPage
(
NewsFragment
::
class
.
java
,
params
)
}
}
...
...
app/src/main/java/com/ccwangluo/accelerator/ui/home/AcceleratorFragment.kt
View file @
ae8e4fcb
...
...
@@ -10,6 +10,7 @@ import android.view.animation.Animation
import
android.view.animation.LinearInterpolator
import
android.view.animation.RotateAnimation
import
androidx.lifecycle.ViewModelProvider
import
com.bumptech.glide.Glide
import
com.ccwangluo.accelerator.R
import
com.ccwangluo.accelerator.databinding.FragmentQuickBinding
import
com.ccwangluo.accelerator.model.NetState
...
...
@@ -159,6 +160,12 @@ class AcceleratorFragment : XPageFragment() {
}
binding
.
radiusTv
.
visibility
=
if
(
SysUtils
.
getChannel
()
==
3
)
View
.
GONE
else
View
.
VISIBLE
binding
.
accGameName
.
setText
(
AcceleratorUtils
.
game
!!
.
gameName
)
AcceleratorUtils
.
game
?.
icon
?.
let
{
Glide
.
with
(
this
)
.
load
(
it
)
.
into
(
binding
.
gameBg
)
}
}
override
fun
initListeners
()
{
...
...
app/src/main/java/com/ccwangluo/accelerator/ui/home/MineFragment.kt
View file @
ae8e4fcb
...
...
@@ -41,6 +41,7 @@ class MineFragment : XPageFragment() {
createAgentWeb
(
this
,
binding
.
mineWebview
,
weburl
)
agentWeb
?.
getJsInterfaceHolder
()
?.
addJavaObject
(
"android"
,
AndroidInterface
(
this
,
agentWeb
!!
))
refreshLogin
()
}
override
fun
initListeners
()
{
...
...
@@ -78,9 +79,7 @@ class MineFragment : XPageFragment() {
override
fun
onHiddenChanged
(
hidden
:
Boolean
)
{
super
.
onHiddenChanged
(
hidden
)
if
(!
hidden
)
{
refreshLogin
()
}
refreshLogin
()
}
private
fun
refreshLogin
()
{
...
...
app/src/main/java/com/ccwangluo/accelerator/ui/home/NewsFragment.kt
View file @
ae8e4fcb
...
...
@@ -157,7 +157,7 @@ class NewsFragment : XPageFragment() {
dataList
.
addAll
(
it
)
binding
.
gameNewsList
.
adapter
?.
notifyDataSetChanged
()
})
adapter
=
NewsCollectionAdapter
(
this
,
titles
)
adapter
=
NewsCollectionAdapter
(
this
,
titles
,
gameId
)
binding
.
viewPager
.
adapter
=
adapter
TabLayoutMediator
(
binding
.
tabLayout
,
binding
.
viewPager
)
{
tab
,
position
->
tab
.
setCustomView
(
R
.
layout
.
item_tab
)
...
...
app/src/main/java/com/ccwangluo/accelerator/ui/home/NoticeFragment.kt
View file @
ae8e4fcb
...
...
@@ -7,6 +7,7 @@ import android.view.ViewGroup
import
android.widget.FrameLayout
import
androidx.fragment.app.Fragment
import
com.ccwangluo.accelerator.databinding.FragmentMineBinding
import
com.ccwangluo.accelerator.databinding.FragmentNoticeBinding
import
com.ccwangluo.accelerator.ui.web.AndroidInterface
import
com.ccwangluo.accelerator.manager.LoginUtils
import
com.ccwangluo.accelerator.utils.SysUtils
...
...
@@ -18,7 +19,7 @@ import com.xuexiang.xpage.utils.TitleBar
class
NoticeFragment
:
XPageFragment
()
{
private
var
_binding
:
Fragment
Min
eBinding
?
=
null
private
var
_binding
:
Fragment
Notic
eBinding
?
=
null
private
val
binding
get
()
=
_binding
!!
private
var
agentWeb
:
AgentWeb
?
=
null
...
...
@@ -28,7 +29,7 @@ class NoticeFragment : XPageFragment() {
}
override
fun
inflateView
(
inflater
:
LayoutInflater
?,
container
:
ViewGroup
?):
View
{
_binding
=
Fragment
Min
eBinding
.
inflate
(
inflater
!!
,
container
,
false
)
_binding
=
Fragment
Notic
eBinding
.
inflate
(
inflater
!!
,
container
,
false
)
return
binding
.
root
}
...
...
app/src/main/java/com/ccwangluo/accelerator/ui/login/SplashFragment.kt
View file @
ae8e4fcb
...
...
@@ -7,6 +7,8 @@ import androidx.lifecycle.lifecycleScope
import
com.ccwangluo.accelerator.databinding.FragmentSplashBinding
import
com.ccwangluo.accelerator.ui.BottomNavigationFragment
import
com.ccwangluo.accelerator.utils.AcceleratorUtils
import
com.ccwangluo.accelerator.utils.SysUtils
import
com.ccwangluo.accelerator.utils.http.HttpGo
import
com.tencent.map.geolocation.TencentLocationManager
import
com.xuexiang.xpage.annotation.Page
import
com.xuexiang.xpage.base.XPageFragment
...
...
@@ -31,6 +33,9 @@ class SplashFragment : XPageFragment() {
override
fun
initViews
()
{
TencentLocationManager
.
getInstance
(
context
)
lifecycleScope
.
launch
(
Dispatchers
.
IO
)
{
val
map
=
mutableMapOf
<
String
,
Any
>()
map
.
put
(
"packageNameList"
,
SysUtils
.
getAllAppInfo
(
context
!!
))
HttpGo
.
postSync
<
String
>(
"/api/game/addHotGame"
,
map
)
delay
(
1000
)
withContext
(
Dispatchers
.
Main
)
{
openPage
(
BottomNavigationFragment
::
class
.
java
,
false
)
...
...
app/src/main/java/com/ccwangluo/accelerator/ui/news/NewsCollectionAdapter.kt
View file @
ae8e4fcb
...
...
@@ -4,7 +4,7 @@ import android.os.Bundle
import
androidx.fragment.app.Fragment
import
androidx.viewpager2.adapter.FragmentStateAdapter
class
NewsCollectionAdapter
(
fragment
:
Fragment
,
val
titles
:
Array
<
String
>)
:
class
NewsCollectionAdapter
(
fragment
:
Fragment
,
val
titles
:
Array
<
String
>
,
val
gameId
:
Int
)
:
FragmentStateAdapter
(
fragment
)
{
var
list
=
mutableListOf
<
NewsObjectFragment
>()
...
...
@@ -14,6 +14,7 @@ class NewsCollectionAdapter(fragment: Fragment, val titles: Array<String>) :
fragment
.
arguments
=
Bundle
().
apply
{
// Our object is just an integer :-P
putInt
(
ARG_OBJECT
,
i
)
putInt
(
GAME_ID
,
gameId
)
}
list
.
add
(
fragment
)
}
...
...
@@ -32,5 +33,6 @@ class NewsCollectionAdapter(fragment: Fragment, val titles: Array<String>) :
companion
object
{
val
ARG_OBJECT
=
"object"
val
GAME_ID
=
"GAME_ID"
}
}
app/src/main/java/com/ccwangluo/accelerator/ui/news/NewsObjectFragment.kt
View file @
ae8e4fcb
...
...
@@ -54,6 +54,7 @@ class NewsObjectFragment : XPageFragment() {
private
var
gameId
=
0
override
fun
initViews
()
{
gameId
=
arguments
?.
getInt
(
NewsCollectionAdapter
.
GAME_ID
)
!!
arguments
?.
takeIf
{
it
.
containsKey
(
ARG_OBJECT
)
}
?.
apply
{
position
=
getInt
(
ARG_OBJECT
).
toString
()
recycle_view
=
findViewById
(
R
.
id
.
recycle_view
)
...
...
@@ -283,11 +284,8 @@ class NewsObjectFragment : XPageFragment() {
}
fun
refresh
()
{
AcceleratorUtils
.
game
?.
let
{
gameId
=
it
.
id
page
=
1
newsViewModel
?.
freshData
(
position
,
it
.
id
,
page
)
}
newsViewModel
?.
freshData
(
position
,
gameId
,
page
)
}
}
\ No newline at end of file
app/src/main/java/com/ccwangluo/accelerator/utils/AcceleratorUtils.kt
View file @
ae8e4fcb
...
...
@@ -5,6 +5,7 @@ import android.annotation.SuppressLint
import
android.content.Context
import
android.os.Looper
import
android.os.RemoteException
import
android.text.TextUtils.split
import
androidx.activity.result.ActivityResultLauncher
import
androidx.lifecycle.lifecycleScope
import
com.ccnet.acc.NetworkAdapter
...
...
@@ -196,12 +197,14 @@ object AcceleratorUtils : TencentLocationListener {
proxyGames
.
add
(
it
)
}
}
DataStore
.
proxyRules
=
game
.
proxyRules
DataStore
.
proxyRules
=
if
(
game
.
proxyRules
==
null
)
"*"
else
game
.
proxyRules
DataStore
.
dnsServer
=
game
.
dnsServer
val
serverPort
=
game
.
boosterServer
.
split
(
":"
)
DataStore
.
pingAccHost
=
serverPort
[
0
]
DataStore
.
pingAccPort
=
serverPort
[
1
].
toInt
()
game
.
boosterServer
?.
let
{
val
serverPort
=
it
.
split
(
":"
)
DataStore
.
pingAccHost
=
serverPort
[
0
]
DataStore
.
pingAccPort
=
serverPort
[
1
].
toInt
()
}
}
profile
.
individual
=
proxyGames
.
joinToString
(
"\n"
)
profile
.
route
=
Acl
.
BYPASS_LAN
...
...
app/src/main/java/com/ccwangluo/accelerator/utils/SysUtils.kt
View file @
ae8e4fcb
...
...
@@ -198,21 +198,21 @@ object SysUtils {
if
(
TextUtils
.
isEmpty
(
localVersion
)
||
TextUtils
.
isEmpty
(
remoteVersion
))
{
return
true
}
val
local
=
localVersion
!!
.
split
(
"
\\
."
)
val
remote
=
remoteVersion
!!
.
split
(
"
\\
."
)
if
(
local
.
size
!=
remote
.
size
||
local
.
size
==
0
)
{
val
local
=
localVersion
!!
.
split
(
"."
)
val
remote
=
remoteVersion
!!
.
split
(
"."
)
if
(
remote
.
size
==
0
||
local
.
size
==
0
)
{
return
true
}
for
(
i
in
0
..
local
.
size
)
{
if
(
local
[
i
].
toInt
()
<
remote
[
i
].
toInt
())
{
if
(
remote
.
size
>
i
&&
local
[
i
].
toInt
()
<
remote
[
i
].
toInt
())
{
return
false
}
}
}
catch
(
e
:
java
.
lang
.
Exception
)
{
e
.
printStackTrace
()
}
return
true
}
...
...
@@ -222,8 +222,8 @@ object SysUtils {
* @param ctx
* @return
*/
fun
getAllAppInfo
(
ctx
:
Context
):
ArrayList
<
String
?
>?
{
val
appBeanList
:
ArrayList
<
String
?
>
=
ArrayList
()
fun
getAllAppInfo
(
ctx
:
Context
):
List
<
String
>
{
val
appBeanList
=
mutableListOf
<
String
>
()
val
packageManager
=
ctx
.
packageManager
val
list
=
packageManager
.
getInstalledPackages
(
0
)
for
(
p
in
list
)
{
...
...
app/src/main/res/layout/fragment_game_list.xml
View file @
ae8e4fcb
...
...
@@ -2,7 +2,7 @@
<LinearLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:background=
"@color/
colorPrimaryDark
"
android:background=
"@color/
divide_gray
"
android:orientation=
"vertical"
>
<LinearLayout
...
...
@@ -32,11 +32,13 @@
<androidx.swiperefreshlayout.widget.SwipeRefreshLayout
android:id=
"@+id/refresh_game"
android:background=
"@color/divide_gray"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
>
<androidx.recyclerview.widget.RecyclerView
android:id=
"@+id/game_list"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
/>
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
...
...
app/src/main/res/layout/fragment_mine.xml
View file @
ae8e4fcb
...
...
@@ -2,6 +2,7 @@
<LinearLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:layout_width=
"match_parent"
android:orientation=
"vertical"
android:layout_height=
"match_parent"
>
<FrameLayout
...
...
app/src/main/res/layout/fragment_notice.xml
0 → 100644
View file @
ae8e4fcb
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:layout_width=
"match_parent"
android:orientation=
"vertical"
android:layout_height=
"match_parent"
>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"70dp"
android:background=
"#31354B"
android:orientation=
"horizontal"
>
<TextView
android:layout_width=
"36dp"
android:layout_height=
"25dp"
android:layout_marginLeft=
"15.5dp"
android:layout_marginTop=
"32.5dp"
android:layout_weight=
"1"
android:text=
"系统消息"
android:textColor=
"#FFFFFFFF"
android:textSize=
"18sp"
/>
</LinearLayout>
<FrameLayout
android:layout_marginTop=
"0dp"
android:id=
"@+id/mine_webview"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
/>
</LinearLayout>
\ No newline at end of file
app/src/main/res/layout/fragment_quick.xml
View file @
ae8e4fcb
...
...
@@ -110,6 +110,7 @@
android:background=
"@mipmap/circle_in1"
/>
<com.xuexiang.xui.widget.imageview.RadiusImageView
android:id=
"@+id/game_bg"
android:layout_width=
"190dp"
android:layout_height=
"190dp"
android:layout_centerInParent=
"true"
...
...
app/src/main/res/layout/item_game.xml
View file @
ae8e4fcb
...
...
@@ -289,17 +289,18 @@
android:layout_height=
"wrap_content"
android:text=
"【最新消息】常见问题解答,更新了~"
android:textColor=
"#FF36B8F4"
android:maxLength=
"20"
android:layout_centerVertical=
"true"
android:layout_marginLeft=
"5dp"
android:textSize=
"11sp"
/>
<TextView
android:layout_width=
"
22dp
"
android:layout_height=
"
15dp
"
android:layout_width=
"
wrap_content
"
android:layout_height=
"
wrap_content
"
android:text=
"查看 >"
android:layout_alignParentEnd=
"true"
android:layout_centerVertical=
"true"
android:layout_marginRight=
"5dp"
android:layout_marginRight=
"
1
5dp"
android:textColor=
"#FF36B8F4"
android:textSize=
"11sp"
/>
...
...
app/src/main/res/values/themes.xml
View file @
ae8e4fcb
...
...
@@ -24,8 +24,7 @@
<item
name=
"colorAccent"
>
@color/colorPrimaryDark
</item>
<item
name=
"android:windowTranslucentStatus"
>
true
</item>
<item
name=
"android:windowTranslucentNavigation"
>
false
</item>
<!-- <item name="android:background">@mipmap/splash</item>-->
<item
name=
"android:windowBackground"
>
@mipmap/win_bg
</item>
<item
name=
"android:windowBackground"
>
@color/divide_gray
</item>
<item
name=
"android:windowDisablePreview"
>
true
</item>
<!-- <item name="xui_config_splash_app_logo">@mipmap/tt_logo</item>-->
<item
name=
"xpage_actionbar_background"
>
@null
</item>
...
...
build.gradle.kts
View file @
ae8e4fcb
...
...
@@ -14,6 +14,7 @@ buildscript {
}
dependencies
{
classpath
(
"com.android.tools.build:gradle:4.2.2"
)
val
kotlinVersion
=
rootProject
.
extra
[
"kotlinVersion"
].
toString
()
classpath
(
rootProject
.
extra
[
"androidPlugin"
].
toString
())
classpath
(
"org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.10"
)
...
...
core/src/main/java/com/github/shadowsocks/http/HttpConfig.kt
View file @
ae8e4fcb
...
...
@@ -9,8 +9,8 @@ object HttpConfig {
/**
* 主页h5
*/
// val UI_MAIN_URL = "http://10.3.64.200:808
0
/#"
val
UI_MAIN_URL
=
"http
s://test-cc-tt-front
.orangenet.org.cn/#"
//测试
// val UI_MAIN_URL = "http://10.3.64.200:808
1
/#"
val
UI_MAIN_URL
=
"http
://test-cc-tt-front-new
.orangenet.org.cn/#"
//测试
// val UI_MAIN_URL = "https://cc-tt-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