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
3b7d419f
Commit
3b7d419f
authored
Aug 04, 2020
by
Mygod
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update dependencies
parent
9b2095cc
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
73 additions
and
61 deletions
+73
-61
detekt.yml
detekt.yml
+47
-43
mobile/build.gradle.kts
mobile/build.gradle.kts
+2
-2
mobile/src/main/java/com/github/shadowsocks/AppManager.kt
mobile/src/main/java/com/github/shadowsocks/AppManager.kt
+9
-6
mobile/src/main/java/com/github/shadowsocks/ProfilesFragment.kt
.../src/main/java/com/github/shadowsocks/ProfilesFragment.kt
+8
-6
mobile/src/main/java/com/github/shadowsocks/ScannerActivity.kt
...e/src/main/java/com/github/shadowsocks/ScannerActivity.kt
+1
-0
mobile/src/main/java/com/github/shadowsocks/acl/CustomRulesFragment.kt
...in/java/com/github/shadowsocks/acl/CustomRulesFragment.kt
+3
-2
plugin/src/main/java/com/github/shadowsocks/plugin/PluginOptions.kt
.../main/java/com/github/shadowsocks/plugin/PluginOptions.kt
+2
-1
repositories.gradle.kts
repositories.gradle.kts
+1
-1
No files found.
detekt.yml
View file @
3b7d419f
# https://github.com/arturbosch/detekt/blob/
1.7.1/detekt-cli
/src/main/resources/default-detekt-config.yml
# https://github.com/arturbosch/detekt/blob/
v1.10.0/detekt-core
/src/main/resources/default-detekt-config.yml
comments
:
active
:
false
...
...
@@ -41,14 +41,14 @@ complexity:
threshold
:
4
StringLiteralDuplication
:
active
:
true
excludes
:
[
'
**/test/**'
,
'
**/androidTest/**'
,
'
**/
*.Test.kt'
,
'
**/*.Spec.kt'
,
'
**/*.Spek.kt
'
]
excludes
:
[
'
**/test/**'
,
'
**/androidTest/**'
,
'
**/
commonTest/**'
,
'
**/jvmTest/**'
,
'
**/jsTest/**'
,
'
**/iosTest/**
'
]
threshold
:
3
ignoreAnnotation
:
true
excludeStringsWithLessThan5Characters
:
true
ignoreStringsRegex
:
'
$^'
TooManyFunctions
:
active
:
true
excludes
:
[
'
**/test/**'
,
'
**/androidTest/**'
,
'
**/
*.Test.kt'
,
'
**/*.Spec.kt'
,
'
**/*.Spek.kt
'
]
excludes
:
[
'
**/test/**'
,
'
**/androidTest/**'
,
'
**/
commonTest/**'
,
'
**/jvmTest/**'
,
'
**/jsTest/**'
,
'
**/iosTest/**
'
]
thresholdInFiles
:
11
thresholdInClasses
:
11
thresholdInInterfaces
:
11
...
...
@@ -69,7 +69,7 @@ empty-blocks:
active
:
true
EmptyCatchBlock
:
active
:
true
allowedExceptionNameRegex
:
'
^(_|(ignore|expected).*)
'
allowedExceptionNameRegex
:
'
_|(ignore|expected).*
'
EmptyClassBlock
:
active
:
true
EmptyDefaultConstructor
:
...
...
@@ -123,7 +123,7 @@ exceptions:
-
NumberFormatException
-
ParseException
-
MalformedURLException
allowedExceptionNameRegex
:
'
^(_|(ignore|expected).*)
'
allowedExceptionNameRegex
:
'
_|(ignore|expected).*
'
ThrowingExceptionFromFinally
:
active
:
false
ThrowingExceptionInMain
:
...
...
@@ -137,18 +137,7 @@ exceptions:
ThrowingNewInstanceOfSameException
:
active
:
true
TooGenericExceptionCaught
:
active
:
true
excludes
:
[
'
**/test/**'
,
'
**/androidTest/**'
,
'
**/*.Test.kt'
,
'
**/*.Spec.kt'
,
'
**/*.Spek.kt'
]
exceptionNames
:
-
ArrayIndexOutOfBoundsException
-
Error
-
Exception
-
IllegalMonitorStateException
-
NullPointerException
-
IndexOutOfBoundsException
-
RuntimeException
-
Throwable
allowedExceptionNameRegex
:
'
^(_|(ignore|expected).*)'
active
:
false
TooGenericExceptionThrown
:
active
:
true
exceptionNames
:
...
...
@@ -162,8 +151,7 @@ formatting:
android
:
true
autoCorrect
:
true
AnnotationOnSeparateLine
:
active
:
true
autoCorrect
:
true
active
:
false
ChainWrapping
:
active
:
true
autoCorrect
:
true
...
...
@@ -179,12 +167,11 @@ formatting:
autoCorrect
:
true
insertFinalNewLine
:
true
ImportOrdering
:
active
:
false
Indentation
:
active
:
true
autoCorrect
:
true
indentSize
:
4
continuationIndentSize
:
4
layout
:
'
idea'
Indentation
:
active
:
false
MaximumLineLength
:
active
:
false
ModifierOrdering
:
...
...
@@ -244,6 +231,9 @@ formatting:
SpacingAroundDot
:
active
:
true
autoCorrect
:
true
SpacingAroundDoubleColon
:
active
:
true
autoCorrect
:
true
SpacingAroundKeyword
:
active
:
true
autoCorrect
:
true
...
...
@@ -256,6 +246,12 @@ formatting:
SpacingAroundRangeOperator
:
active
:
true
autoCorrect
:
true
SpacingBetweenDeclarationsWithAnnotations
:
active
:
false
autoCorrect
:
true
SpacingBetweenDeclarationsWithComments
:
active
:
false
autoCorrect
:
true
StringTemplate
:
active
:
true
autoCorrect
:
true
...
...
@@ -264,38 +260,39 @@ naming:
active
:
true
ClassNaming
:
active
:
true
classPattern
:
'
[A-Z$][a-zA-Z0-9$]*'
excludes
:
[
'
**/test/**'
,
'
**/androidTest/**'
,
'
**/*.Test.kt'
,
'
**/*.Spec.kt'
,
'
**/*.Spek.kt'
]
excludes
:
[
'
**/test/**'
,
'
**/androidTest/**'
,
'
**/commonTest/**'
,
'
**/jvmTest/**'
,
'
**/jsTest/**'
,
'
**/iosTest/**'
]
classPattern
:
'
[A-Z][a-zA-Z0-9]*'
ConstructorParameterNaming
:
active
:
true
excludes
:
[
'
**/test/**'
,
'
**/androidTest/**'
,
'
**/
*.Test.kt'
,
'
**/*.Spec.kt'
,
'
**/*.Spek.kt
'
]
excludes
:
[
'
**/test/**'
,
'
**/androidTest/**'
,
'
**/
commonTest/**'
,
'
**/jvmTest/**'
,
'
**/jsTest/**'
,
'
**/iosTest/**
'
]
parameterPattern
:
'
[a-z][A-Za-z0-9]*'
privateParameterPattern
:
'
[a-z][A-Za-z0-9]*'
excludeClassPattern
:
'
$^'
ignoreOverridden
:
true
EnumNaming
:
active
:
true
excludes
:
[
'
**/test/**'
,
'
**/androidTest/**'
,
'
**/
*.Test.kt'
,
'
**/*.Spec.kt'
,
'
**/*.Spek.kt
'
]
enumEntryPattern
:
'
^
[A-Z][_a-zA-Z0-9]*'
excludes
:
[
'
**/test/**'
,
'
**/androidTest/**'
,
'
**/
commonTest/**'
,
'
**/jvmTest/**'
,
'
**/jsTest/**'
,
'
**/iosTest/**
'
]
enumEntryPattern
:
'
[A-Z][_a-zA-Z0-9]*'
ForbiddenClassName
:
active
:
true
excludes
:
[
'
**/test/**'
,
'
**/androidTest/**'
,
'
**/
*.Test.kt'
,
'
**/*.Spec.kt'
,
'
**/*.Spek.kt
'
]
excludes
:
[
'
**/test/**'
,
'
**/androidTest/**'
,
'
**/
commonTest/**'
,
'
**/jvmTest/**'
,
'
**/jsTest/**'
,
'
**/iosTest/**
'
]
forbiddenName
:
[]
FunctionMaxLength
:
active
:
true
excludes
:
[
'
**/test/**'
,
'
**/androidTest/**'
,
'
**/
*.Test.kt'
,
'
**/*.Spec.kt'
,
'
**/*.Spek.kt
'
]
excludes
:
[
'
**/test/**'
,
'
**/androidTest/**'
,
'
**/
commonTest/**'
,
'
**/jvmTest/**'
,
'
**/jsTest/**'
,
'
**/iosTest/**
'
]
maximumFunctionNameLength
:
30
FunctionMinLength
:
active
:
false
FunctionNaming
:
active
:
true
excludes
:
[
'
**/test/**'
,
'
**/androidTest/**'
,
'
**/
*.Test.kt'
,
'
**/*.Spec.kt'
,
'
**/*.Spek.kt
'
]
functionPattern
:
'
^([a-z$][a-zA-Z$0-9]*)|(`.*`)$
'
excludes
:
[
'
**/test/**'
,
'
**/androidTest/**'
,
'
**/
commonTest/**'
,
'
**/jvmTest/**'
,
'
**/jsTest/**'
,
'
**/iosTest/**
'
]
functionPattern
:
'
([a-z][a-zA-Z0-9]*)|(`.*`)
'
excludeClassPattern
:
'
$^'
ignoreOverridden
:
true
ignoreAnnotated
:
[
'
Composable'
]
FunctionParameterNaming
:
active
:
true
excludes
:
[
'
**/test/**'
,
'
**/androidTest/**'
,
'
**/
*.Test.kt'
,
'
**/*.Spec.kt'
,
'
**/*.Spek.kt
'
]
excludes
:
[
'
**/test/**'
,
'
**/androidTest/**'
,
'
**/
commonTest/**'
,
'
**/jvmTest/**'
,
'
**/jsTest/**'
,
'
**/iosTest/**
'
]
parameterPattern
:
'
[a-z][A-Za-z0-9]*'
excludeClassPattern
:
'
$^'
ignoreOverridden
:
true
...
...
@@ -309,29 +306,29 @@ naming:
active
:
false
ObjectPropertyNaming
:
active
:
true
excludes
:
[
'
**/test/**'
,
'
**/androidTest/**'
,
'
**/
*.Test.kt'
,
'
**/*.Spec.kt'
,
'
**/*.Spek.kt
'
]
excludes
:
[
'
**/test/**'
,
'
**/androidTest/**'
,
'
**/
commonTest/**'
,
'
**/jvmTest/**'
,
'
**/jsTest/**'
,
'
**/iosTest/**
'
]
constantPattern
:
'
[A-Za-z][_A-Za-z0-9]*'
propertyPattern
:
'
[A-Za-z][_A-Za-z0-9]*'
privatePropertyPattern
:
'
(_)?[A-Za-z][_A-Za-z0-9]*'
PackageNaming
:
active
:
true
excludes
:
[
'
**/test/**'
,
'
**/androidTest/**'
,
'
**/
*.Test.kt'
,
'
**/*.Spec.kt'
,
'
**/*.Spek.kt
'
]
packagePattern
:
'
^[a-z]+(\.[a-z][A-Za-z0-9]*)*$
'
excludes
:
[
'
**/test/**'
,
'
**/androidTest/**'
,
'
**/
commonTest/**'
,
'
**/jvmTest/**'
,
'
**/jsTest/**'
,
'
**/iosTest/**
'
]
packagePattern
:
'
[a-z]+(\.[a-z][A-Za-z0-9]*)*
'
TopLevelPropertyNaming
:
active
:
true
excludes
:
[
'
**/test/**'
,
'
**/androidTest/**'
,
'
**/
*.Test.kt'
,
'
**/*.Spec.kt'
,
'
**/*.Spek.kt
'
]
excludes
:
[
'
**/test/**'
,
'
**/androidTest/**'
,
'
**/
commonTest/**'
,
'
**/jvmTest/**'
,
'
**/jsTest/**'
,
'
**/iosTest/**
'
]
constantPattern
:
'
[A-Z][_A-Z0-9]*'
propertyPattern
:
'
[A-Za-z][_A-Za-z0-9]*'
privatePropertyPattern
:
'
_?[A-Za-z][_A-Za-z0-9]*'
VariableMaxLength
:
active
:
true
excludes
:
[
'
**/test/**'
,
'
**/androidTest/**'
,
'
**/
*.Test.kt'
,
'
**/*.Spec.kt'
,
'
**/*.Spek.kt
'
]
excludes
:
[
'
**/test/**'
,
'
**/androidTest/**'
,
'
**/
commonTest/**'
,
'
**/jvmTest/**'
,
'
**/jsTest/**'
,
'
**/iosTest/**
'
]
maximumVariableNameLength
:
64
VariableMinLength
:
active
:
false
VariableNaming
:
active
:
true
excludes
:
[
'
**/test/**'
,
'
**/androidTest/**'
,
'
**/
*.Test.kt'
,
'
**/*.Spec.kt'
,
'
**/*.Spek.kt
'
]
excludes
:
[
'
**/test/**'
,
'
**/androidTest/**'
,
'
**/
commonTest/**'
,
'
**/jvmTest/**'
,
'
**/jsTest/**'
,
'
**/iosTest/**
'
]
variablePattern
:
'
[a-z][A-Za-z0-9]*'
privateVariablePattern
:
'
(_)?[a-z][A-Za-z0-9]*'
excludeClassPattern
:
'
$^'
...
...
@@ -343,10 +340,9 @@ performance:
active
:
true
ForEachOnRange
:
active
:
true
excludes
:
[
'
**/test/**'
,
'
**/androidTest/**'
,
'
**/
*.Test.kt'
,
'
**/*.Spec.kt'
,
'
**/*.Spek.kt
'
]
excludes
:
[
'
**/test/**'
,
'
**/androidTest/**'
,
'
**/
commonTest/**'
,
'
**/jvmTest/**'
,
'
**/jsTest/**'
,
'
**/iosTest/**
'
]
SpreadOperator
:
active
:
true
excludes
:
[
'
**/test/**'
,
'
**/androidTest/**'
,
'
**/*.Test.kt'
,
'
**/*.Spec.kt'
,
'
**/*.Spek.kt'
]
active
:
false
UnnecessaryTemporaryInstantiation
:
active
:
true
...
...
@@ -364,8 +360,14 @@ potential-bugs:
active
:
true
HasPlatformType
:
active
:
true
IgnoredReturnValue
:
active
:
true
restrictToAnnotatedMethods
:
true
returnValueAnnotations
:
[
'
*.CheckReturnValue'
,
'
*.CheckResult'
]
ImplicitDefaultLocale
:
active
:
true
ImplicitUnitReturnType
:
active
:
false
InvalidRange
:
active
:
true
IteratorHasNextCallsNextMethod
:
...
...
@@ -426,7 +428,7 @@ style:
forbiddenPatterns
:
'
'
ForbiddenMethodCall
:
active
:
true
methods
:
[]
methods
:
[
'
kotlin.io.println'
,
'
kotlin.io.print'
]
ForbiddenPublicDataClass
:
active
:
true
ignorePackages
:
[
'
*.internal'
,
'
*.internal.*'
]
...
...
@@ -448,6 +450,8 @@ style:
active
:
false
MandatoryBracesIfStatements
:
active
:
false
MandatoryBracesLoops
:
active
:
false
MaxLineLength
:
active
:
true
maxLineLength
:
120
...
...
mobile/build.gradle.kts
View file @
3b7d419f
...
...
@@ -18,10 +18,10 @@ dependencies {
implementation
(
"androidx.camera:camera-camera2:$cameraxVersion"
)
implementation
(
"androidx.camera:camera-lifecycle:$cameraxVersion"
)
implementation
(
"androidx.camera:camera-view:1.0.0-alpha14"
)
implementation
(
"androidx.constraintlayout:constraintlayout:2.0.0-
beta8
"
)
implementation
(
"androidx.constraintlayout:constraintlayout:2.0.0-
rc1
"
)
implementation
(
"androidx.lifecycle:lifecycle-runtime-ktx:$lifecycleVersion"
)
implementation
(
"com.google.firebase:firebase-ads:19.3.0"
)
implementation
(
"com.google.mlkit:barcode-scanning:16.0.
1
"
)
implementation
(
"com.google.mlkit:barcode-scanning:16.0.
2
"
)
implementation
(
"com.google.zxing:core:3.4.0"
)
implementation
(
"com.takisoft.preferencex:preferencex-simplemenu:1.1.0"
)
implementation
(
"com.twofortyfouram:android-plugin-api-for-locale:1.0.4"
)
...
...
mobile/src/main/java/com/github/shadowsocks/AppManager.kt
View file @
3b7d419f
...
...
@@ -278,8 +278,10 @@ class AppManager : AppCompatActivity() {
return
true
}
R
.
id
.
action_export_clipboard
->
{
Snackbar
.
make
(
list
,
if
(
Core
.
trySetPrimaryClip
(
"${DataStore.bypass}\n${DataStore.individual}"
))
R
.
string
.
action_export_msg
else
R
.
string
.
action_export_err
,
Snackbar
.
LENGTH_LONG
).
show
()
val
success
=
Core
.
trySetPrimaryClip
(
"${DataStore.bypass}\n${DataStore.individual}"
)
Snackbar
.
make
(
list
,
if
(
success
)
R
.
string
.
action_export_msg
else
R
.
string
.
action_export_err
,
Snackbar
.
LENGTH_LONG
).
show
()
return
true
}
R
.
id
.
action_import_clipboard
->
{
...
...
@@ -287,8 +289,9 @@ class AppManager : AppCompatActivity() {
if
(!
proxiedAppString
.
isNullOrEmpty
())
{
val
i
=
proxiedAppString
.
indexOf
(
'\n'
)
try
{
val
(
enabled
,
apps
)
=
if
(
i
<
0
)
Pair
(
proxiedAppString
,
""
)
else
Pair
(
proxiedAppString
.
substring
(
0
,
i
),
proxiedAppString
.
substring
(
i
+
1
))
val
(
enabled
,
apps
)
=
if
(
i
<
0
)
{
proxiedAppString
to
""
}
else
proxiedAppString
.
substring
(
0
,
i
)
to
proxiedAppString
.
substring
(
i
+
1
)
bypassGroup
.
check
(
if
(
enabled
.
toBoolean
())
R
.
id
.
btn_bypass
else
R
.
id
.
btn_on
)
DataStore
.
individual
=
apps
DataStore
.
dirty
=
true
...
...
@@ -307,9 +310,9 @@ class AppManager : AppCompatActivity() {
override
fun
supportNavigateUpTo
(
upIntent
:
Intent
)
=
super
.
supportNavigateUpTo
(
upIntent
.
addFlags
(
Intent
.
FLAG_ACTIVITY_CLEAR_TOP
))
override
fun
onKeyUp
(
keyCode
:
Int
,
event
:
KeyEvent
?)
=
if
(
keyCode
==
KeyEvent
.
KEYCODE_MENU
)
override
fun
onKeyUp
(
keyCode
:
Int
,
event
:
KeyEvent
?)
=
if
(
keyCode
==
KeyEvent
.
KEYCODE_MENU
)
{
if
(
toolbar
.
isOverflowMenuShowing
)
toolbar
.
hideOverflowMenu
()
else
toolbar
.
showOverflowMenu
()
else
super
.
onKeyUp
(
keyCode
,
event
)
}
else
super
.
onKeyUp
(
keyCode
,
event
)
override
fun
onDestroy
()
{
instance
=
null
...
...
mobile/src/main/java/com/github/shadowsocks/ProfilesFragment.kt
View file @
3b7d419f
...
...
@@ -324,8 +324,9 @@ class ProfilesFragment : ToolbarFragment(), Toolbar.OnMenuItemClickListener {
true
}
R
.
id
.
action_export_clipboard
->
{
(
activity
as
MainActivity
).
snackbar
().
setText
(
if
(
Core
.
trySetPrimaryClip
(
this
.
item
.
toString
()))
R
.
string
.
action_export_msg
else
R
.
string
.
action_export_err
).
show
()
val
success
=
Core
.
trySetPrimaryClip
(
this
.
item
.
toString
())
(
activity
as
MainActivity
).
snackbar
().
setText
(
if
(
success
)
R
.
string
.
action_export_msg
else
R
.
string
.
action_export_err
).
show
()
true
}
else
->
false
...
...
@@ -466,8 +467,9 @@ class ProfilesFragment : ToolbarFragment(), Toolbar.OnMenuItemClickListener {
ItemTouchHelper
(
object
:
ItemTouchHelper
.
SimpleCallback
(
ItemTouchHelper
.
UP
or
ItemTouchHelper
.
DOWN
,
ItemTouchHelper
.
START
)
{
override
fun
getSwipeDirs
(
recyclerView
:
RecyclerView
,
viewHolder
:
RecyclerView
.
ViewHolder
):
Int
=
if
(
isProfileEditable
((
viewHolder
as
ProfileViewHolder
).
item
.
id
))
super
.
getSwipeDirs
(
recyclerView
,
viewHolder
)
else
0
if
(
isProfileEditable
((
viewHolder
as
ProfileViewHolder
).
item
.
id
))
{
super
.
getSwipeDirs
(
recyclerView
,
viewHolder
)
}
else
0
override
fun
getDragDirs
(
recyclerView
:
RecyclerView
,
viewHolder
:
RecyclerView
.
ViewHolder
):
Int
=
if
(
isEnabled
)
super
.
getDragDirs
(
recyclerView
,
viewHolder
)
else
0
...
...
@@ -530,8 +532,8 @@ class ProfilesFragment : ToolbarFragment(), Toolbar.OnMenuItemClickListener {
R
.
id
.
action_export_clipboard
->
{
val
profiles
=
ProfileManager
.
getActiveProfiles
()
val
success
=
profiles
!=
null
&&
Core
.
trySetPrimaryClip
(
profiles
.
joinToString
(
"\n"
))
(
activity
as
MainActivity
).
snackbar
().
setText
(
if
(
success
)
R
.
string
.
action_export_msg
else
R
.
string
.
action_export_err
).
show
()
(
activity
as
MainActivity
).
snackbar
().
setText
(
if
(
success
)
R
.
string
.
action_export_msg
else
R
.
string
.
action_export_err
).
show
()
true
}
R
.
id
.
action_export_file
->
{
...
...
mobile/src/main/java/com/github/shadowsocks/ScannerActivity.kt
View file @
3b7d419f
...
...
@@ -58,6 +58,7 @@ class ScannerActivity : AppCompatActivity(), ImageAnalysis.Analyzer {
private
val
imageAnalysis
by
lazy
{
ImageAnalysis
.
Builder
().
apply
{
setBackpressureStrategy
(
ImageAnalysis
.
STRATEGY_KEEP_ONLY_LATEST
)
setBackgroundExecutor
(
Dispatchers
.
Default
.
asExecutor
())
}.
build
().
also
{
it
.
setAnalyzer
(
Dispatchers
.
Main
.
immediate
.
asExecutor
(),
this
)
}
}
...
...
mobile/src/main/java/com/github/shadowsocks/acl/CustomRulesFragment.kt
View file @
3b7d419f
...
...
@@ -435,8 +435,9 @@ class CustomRulesFragment : ToolbarFragment(), Toolbar.OnMenuItemClickListener,
is
URL
->
acl
.
urls
.
add
(
it
)
}
}
(
activity
as
MainActivity
).
snackbar
().
setText
(
if
(
Core
.
trySetPrimaryClip
(
acl
.
toString
()))
R
.
string
.
action_export_msg
else
R
.
string
.
action_export_err
).
show
()
val
success
=
Core
.
trySetPrimaryClip
(
acl
.
toString
())
(
activity
as
MainActivity
).
snackbar
().
setText
(
if
(
success
)
R
.
string
.
action_export_msg
else
R
.
string
.
action_export_err
).
show
()
}
override
fun
onMenuItemClick
(
item
:
MenuItem
):
Boolean
=
when
(
item
.
itemId
)
{
...
...
plugin/src/main/java/com/github/shadowsocks/plugin/PluginOptions.kt
View file @
3b7d419f
...
...
@@ -52,8 +52,9 @@ class PluginOptions : HashMap<String, String?> {
if
(
key
!=
null
)
{
put
(
key
,
current
.
toString
())
key
=
null
}
else
if
(
current
.
isNotEmpty
())
}
else
if
(
current
.
isNotEmpty
())
{
if
(
parseId
)
id
=
current
.
toString
()
else
put
(
current
.
toString
(),
null
)
}
current
.
setLength
(
0
)
parseId
=
false
}
...
...
repositories.gradle.kts
View file @
3b7d419f
rootProject
.
extra
.
apply
{
set
(
"androidPlugin"
,
"com.android.tools.build:gradle:4.1.0-beta0
4
"
)
set
(
"androidPlugin"
,
"com.android.tools.build:gradle:4.1.0-beta0
5
"
)
set
(
"kotlinVersion"
,
"1.3.72"
)
}
...
...
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