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
198434ea
Commit
198434ea
authored
Apr 21, 2020
by
Mygod
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refine code style
parent
ebd274a3
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
11 additions
and
11 deletions
+11
-11
.github/doc-json.md
.github/doc-json.md
+1
-1
core/src/main/java/com/github/shadowsocks/acl/Acl.kt
core/src/main/java/com/github/shadowsocks/acl/Acl.kt
+1
-1
core/src/main/java/com/github/shadowsocks/subscription/Subscription.kt
.../java/com/github/shadowsocks/subscription/Subscription.kt
+1
-1
core/src/main/java/com/github/shadowsocks/subscription/SubscriptionService.kt
...om/github/shadowsocks/subscription/SubscriptionService.kt
+1
-1
mobile/src/main/res/layout/layout_custom_rules.xml
mobile/src/main/res/layout/layout_custom_rules.xml
+7
-7
No files found.
.github/doc-json.md
View file @
198434ea
...
...
@@ -104,6 +104,6 @@ When doing subscription updates,
]
},
"udpdns"
:
false
}
,
}
]
```
core/src/main/java/com/github/shadowsocks/acl/Acl.kt
View file @
198434ea
...
...
@@ -49,7 +49,7 @@ class Acl {
const
val
CHINALIST
=
"china-list"
const
val
CUSTOM_RULES
=
"custom-rules"
val
networkAclParser
=
"^IMPORT_URL\\s*<(.+)>\\s*$"
.
toRegex
()
private
val
networkAclParser
=
"^IMPORT_URL\\s*<(.+)>\\s*$"
.
toRegex
()
fun
getFile
(
id
:
String
,
context
:
Context
=
Core
.
deviceStorage
)
=
File
(
context
.
noBackupFilesDir
,
"$id.acl"
)
...
...
core/src/main/java/com/github/shadowsocks/subscription/Subscription.kt
View file @
198434ea
...
...
@@ -29,7 +29,7 @@ import java.net.URL
class
Subscription
{
companion
object
{
const
val
SUBSCRIPTION
=
"subscription"
private
const
val
SUBSCRIPTION
=
"subscription"
var
instance
:
Subscription
get
()
{
...
...
core/src/main/java/com/github/shadowsocks/subscription/SubscriptionService.kt
View file @
198434ea
...
...
@@ -53,7 +53,7 @@ class SubscriptionService : Service(), CoroutineScope {
private
const
val
NOTIFICATION_CHANNEL
=
"service-subscription"
private
const
val
NOTIFICATION_ID
=
2
val
idle
=
MutableLiveData
<
Boolean
>
(
true
)
val
idle
=
MutableLiveData
(
true
)
val
notificationChannel
@RequiresApi
(
26
)
get
()
=
NotificationChannel
(
NOTIFICATION_CHANNEL
,
app
.
getText
(
R
.
string
.
service_subscription
),
NotificationManager
.
IMPORTANCE_LOW
)
...
...
mobile/src/main/res/layout/layout_custom_rules.xml
View file @
198434ea
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:app=
"http://schemas.android.com/apk/res-auto
"
<LinearLayout
xmlns:android=
"http://schemas.android.com/apk/res/android
"
xmlns:tools=
"http://schemas.android.com/tools"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
...
...
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