Skip to content

Commit cde826b

Browse files
authored
Merge pull request #21 from shadowsocks/plugin-1.3.4
Change ID to v2ray-plugin with back compatibility
2 parents 172bd4c + 0f664a1 commit cde826b

File tree

4 files changed

+20
-4
lines changed

4 files changed

+20
-4
lines changed

app/build.gradle

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,15 @@ def getCurrentFlavor() {
1717
}
1818
}
1919

20+
def javaVersion = JavaVersion.VERSION_1_8
21+
2022
android {
2123
compileSdkVersion 29
24+
compileOptions {
25+
sourceCompatibility javaVersion
26+
targetCompatibility javaVersion
27+
}
28+
kotlinOptions.jvmTarget = javaVersion
2229
defaultConfig {
2330
applicationId "com.github.shadowsocks.plugin.v2ray"
2431
minSdkVersion rootProject.minSdkVersion
@@ -64,7 +71,7 @@ tasks.whenTaskAdded { task ->
6471
dependencies {
6572
implementation fileTree(dir: 'libs', include: ['*.jar'])
6673
implementation 'androidx.preference:preference:1.1.0'
67-
implementation 'com.github.shadowsocks:plugin:1.3.3'
74+
implementation 'com.github.shadowsocks:plugin:1.3.4'
6875
implementation 'com.takisoft.preferencex:preferencex-simplemenu:1.1.0'
6976
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlinVersion"
7077
testImplementation 'junit:junit:4.13'

app/src/main/AndroidManifest.xml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,17 @@
2020
<action android:name="com.github.shadowsocks.plugin.ACTION_NATIVE_PLUGIN"/>
2121
<data android:scheme="plugin"
2222
android:host="com.github.shadowsocks"
23-
android:pathPrefix="/v2ray"/>
23+
android:path="/v2ray"/>
24+
</intent-filter>
25+
<intent-filter>
26+
<action android:name="com.github.shadowsocks.plugin.ACTION_NATIVE_PLUGIN"/>
27+
<data android:scheme="plugin"
28+
android:host="com.github.shadowsocks"
29+
android:path="/v2ray-plugin"/>
2430
</intent-filter>
2531
<meta-data android:name="com.github.shadowsocks.plugin.id"
32+
android:value="v2ray-plugin"/>
33+
<meta-data android:name="com.github.shadowsocks.plugin.id.aliases"
2634
android:value="v2ray"/>
2735
<meta-data android:name="com.github.shadowsocks.plugin.executable_path"
2836
android:value="libv2ray.so"/>
@@ -34,7 +42,7 @@
3442
<category android:name="android.intent.category.DEFAULT"/>
3543
<data android:scheme="plugin"
3644
android:host="com.github.shadowsocks"
37-
android:path="/v2ray"/>
45+
android:path="/v2ray-plugin"/>
3846
</intent-filter>
3947
</activity>
4048
</application>

app/src/main/go/v2ray-plugin

build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ allprojects {
2222
repositories {
2323
google()
2424
jcenter()
25+
mavenLocal()
2526
}
2627
}
2728

0 commit comments

Comments
 (0)