Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
bannedbook committed Apr 30, 2020
1 parent 84cd6b1 commit b86d44f
Show file tree
Hide file tree
Showing 45 changed files with 16 additions and 1,692 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ buildscript {
junitVersion = '4.13'
androidTestVersion = '1.2.0'
androidEspressoVersion = '3.2.0'
versionCode = 5000700
versionName = '5.0.6.7-nightly'
versionCode = 5000708
versionName = '5.0.6.8-nightly'
resConfigs = ['ar', 'es', 'fa', 'fr', 'ja', 'ko', 'ru', 'tr', 'zh-rCN', 'zh-rTW']
}

Expand Down
2 changes: 1 addition & 1 deletion core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def roomVersion = '2.2.3'
def workVersion = '2.3.1'
dependencies {
api project(':plugin')
implementation project(':v2ray-plugin')
implementation project(':ssvpn-v2ray')
api 'androidx.fragment:fragment-ktx:1.2.1'
api "androidx.lifecycle:lifecycle-common-java8:$lifecycleVersion"
api "androidx.lifecycle:lifecycle-livedata-core-ktx:$lifecycleVersion"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,13 @@ class PluginList : ArrayList<Plugin>() {
val lookup = mutableMapOf<String, Plugin>().apply {
for (plugin in this@PluginList) {
fun check(old: Plugin?) = check(old == null || old === plugin)
remove(plugin.id)
check(put(plugin.id, plugin))
for (alias in plugin.idAliases) check(put(alias, plugin))

for (alias in plugin.idAliases) {
remove(alias)
check(put(alias, plugin))
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ object PluginManager {
PackageManager.MATCH_DIRECT_BOOT_UNAWARE or PackageManager.MATCH_DIRECT_BOOT_AWARE
)
if (providers.isEmpty()) return null
val provider = providers.single().providerInfo
val provider = providers.first().providerInfo
val options = configuration.getOptions { provider.loadString(PluginContract.METADATA_KEY_DEFAULT_CONFIG) }
var failure: Throwable? = null
try {
Expand Down
2 changes: 1 addition & 1 deletion gitupdate.bat
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ git pull origin master
git add -A
git commit -m "update"
git push origin master
git tag -a v5.0.6.7 -m "release v5.0.6.7"
git tag -a v5.0.6.8 -m "release v5.0.6.8"
git push origin --tags
pause
9 changes: 0 additions & 9 deletions mobile/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,6 @@ android {
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
resConfigs rootProject.resConfigs
}
signingConfigs {
release {
storeFile file("/root/java/andorid-key/ssr.key")
storePassword System.console().readLine("\nKeystore password: ")
keyAlias 'ssr'
keyPassword System.console().readLIne("\nKey password: ")
}
}
buildTypes {
debug {
pseudoLocalesEnabled true
Expand All @@ -46,7 +38,6 @@ android {
shrinkResources true
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt')
signingConfig signingConfigs.release
}
}
compileOptions {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -720,7 +720,7 @@ class ProfilesFragment : ToolbarFragment(), Toolbar.OnMenuItemClickListener {
Core.switchProfile(profilesAdapter.profiles[k].id)
activity?.runOnUiThread() {
layoutManager.scrollToPositionWithOffset(k, 0)
layoutManager.stackFromEnd = true
//layoutManager.stackFromEnd = true
profilesAdapter.refreshId(old)
profilesAdapter.refreshId(profilesAdapter.profiles[k].id)
}
Expand Down
3 changes: 2 additions & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
include ':mobile', ':core', ':plugin', ':v2ray-plugin'
include ':ssvpn-v2ray'
include ':mobile', ':core', ':plugin'
2 changes: 2 additions & 0 deletions ssvpn-v2ray/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
configurations.maybeCreate("default")
artifacts.add("default", file('ssvpn-v2ray-release.aar'))
Binary file added ssvpn-v2ray/ssvpn-v2ray-release.aar
Binary file not shown.
5 changes: 0 additions & 5 deletions v2ray-plugin/.gitignore

This file was deleted.

75 changes: 0 additions & 75 deletions v2ray-plugin/build.gradle

This file was deleted.

30 changes: 0 additions & 30 deletions v2ray-plugin/go-build.bash

This file was deleted.

22 changes: 0 additions & 22 deletions v2ray-plugin/proguard-rules.pro

This file was deleted.

47 changes: 0 additions & 47 deletions v2ray-plugin/src/main/AndroidManifest.xml

This file was deleted.

19 changes: 0 additions & 19 deletions v2ray-plugin/src/main/go/v2ray-plugin/.circleci/config.yml

This file was deleted.

3 changes: 0 additions & 3 deletions v2ray-plugin/src/main/go/v2ray-plugin/.gitignore

This file was deleted.

22 changes: 0 additions & 22 deletions v2ray-plugin/src/main/go/v2ray-plugin/LICENSE

This file was deleted.

71 changes: 0 additions & 71 deletions v2ray-plugin/src/main/go/v2ray-plugin/README.md

This file was deleted.

Loading

0 comments on commit b86d44f

Please sign in to comment.