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
e6f11d66
Commit
e6f11d66
authored
Nov 04, 2018
by
Mygod
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update dependencies
parent
d3fd0945
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
9 deletions
+10
-9
build.gradle
build.gradle
+6
-6
core/src/main/java/com/github/shadowsocks/acl/AclSyncer.kt
core/src/main/java/com/github/shadowsocks/acl/AclSyncer.kt
+2
-1
core/src/main/java/com/github/shadowsocks/bg/ServiceNotification.kt
...ain/java/com/github/shadowsocks/bg/ServiceNotification.kt
+1
-1
mobile/src/main/java/com/github/shadowsocks/AppManager.kt
mobile/src/main/java/com/github/shadowsocks/AppManager.kt
+1
-1
No files found.
build.gradle
View file @
e6f11d66
...
...
@@ -4,18 +4,18 @@ apply plugin: 'com.github.ben-manes.versions'
buildscript
{
ext
{
kotlinVersion
=
'1.
2.71
'
kotlinVersion
=
'1.
3.0
'
minSdkVersion
=
21
sdkVersion
=
28
compileSdkVersion
=
28
buildToolsVersion
=
'28.0.3'
androidxVersion
=
'1.0.0'
roomVersion
=
'2.0.0'
workVersion
=
'1.0.0-alpha
09
'
workVersion
=
'1.0.0-alpha
10
'
preferencexVersion
=
'1.0.0'
junitVersion
=
'4.12'
androidTestVersion
=
'1.1.0
-alpha4
'
androidEspressoVersion
=
'3.1.0
-alpha4
'
androidTestVersion
=
'1.1.0'
androidEspressoVersion
=
'3.1.0'
}
repositories
{
...
...
@@ -27,9 +27,9 @@ buildscript {
}
dependencies
{
classpath
'com.android.tools.build:gradle:3.2.
0
'
classpath
'com.android.tools.build:gradle:3.2.
1
'
classpath
'com.github.ben-manes:gradle-versions-plugin:0.20.0'
classpath
'com.google.gms:google-services:4.
1
.0'
classpath
'com.google.gms:google-services:4.
2
.0'
classpath
'io.fabric.tools:gradle:1.26.1'
classpath
"org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
}
...
...
core/src/main/java/com/github/shadowsocks/acl/AclSyncer.kt
View file @
e6f11d66
...
...
@@ -20,12 +20,13 @@
package
com.github.shadowsocks.acl
import
android.content.Context
import
androidx.work.*
import
java.io.IOException
import
java.net.URL
import
java.util.concurrent.TimeUnit
class
AclSyncer
:
Worker
(
)
{
class
AclSyncer
(
context
:
Context
,
workerParams
:
WorkerParameters
)
:
Worker
(
context
,
workerParams
)
{
companion
object
{
private
const
val
KEY_ROUTE
=
"route"
...
...
core/src/main/java/com/github/shadowsocks/bg/ServiceNotification.kt
View file @
e6f11d66
...
...
@@ -50,7 +50,7 @@ class ServiceNotification(private val service: BaseService.Interface, profileNam
channel
:
String
,
private
val
visible
:
Boolean
=
false
)
{
private
val
keyGuard
=
(
service
as
Context
).
getSystemService
<
KeyguardManager
>()
!!
private
val
nm
by
lazy
{
(
service
as
Context
).
getSystemService
<
NotificationManager
>()
!!
}
private
val
callback
by
lazy
{
private
val
callback
:
IShadowsocksServiceCallback
by
lazy
{
object
:
IShadowsocksServiceCallback
.
Stub
()
{
override
fun
stateChanged
(
state
:
Int
,
profileName
:
String
?,
msg
:
String
?)
{
}
// ignore
override
fun
trafficUpdated
(
profileId
:
Long
,
txRate
:
Long
,
rxRate
:
Long
,
txTotal
:
Long
,
rxTotal
:
Long
)
{
...
...
mobile/src/main/java/com/github/shadowsocks/AppManager.kt
View file @
e6f11d66
...
...
@@ -230,7 +230,7 @@ class AppManager : AppCompatActivity() {
R
.
id
.
action_import_clipboard
->
{
val
proxiedAppString
=
clipboard
.
primaryClip
?.
getItemAt
(
0
)
?.
text
?.
toString
()
if
(!
proxiedAppString
.
isNullOrEmpty
())
{
val
i
=
proxiedAppString
!!
.
indexOf
(
'\n'
)
val
i
=
proxiedAppString
.
indexOf
(
'\n'
)
try
{
val
(
enabled
,
apps
)
=
if
(
i
<
0
)
Pair
(
proxiedAppString
,
""
)
else
Pair
(
proxiedAppString
.
substring
(
0
,
i
),
proxiedAppString
.
substring
(
i
+
1
))
...
...
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