Commit ee28f971 authored by Max Lv's avatar Max Lv

Integrate shadowsocks-rust

parent a2ae4b8a
...@@ -33,3 +33,6 @@ ...@@ -33,3 +33,6 @@
[submodule "core/src/main/jni/re2"] [submodule "core/src/main/jni/re2"]
path = core/src/main/jni/re2 path = core/src/main/jni/re2
url = https://github.com/google/re2.git url = https://github.com/google/re2.git
[submodule "core/shadowsocks-rust"]
path = core/shadowsocks-rust
url = https://github.com/madeye/shadowsocks-rust
...@@ -25,9 +25,13 @@ buildscript { ...@@ -25,9 +25,13 @@ buildscript {
maven { maven {
url 'https://maven.fabric.io/public' url 'https://maven.fabric.io/public'
} }
maven {
url "https://plugins.gradle.org/m2/"
}
} }
dependencies { dependencies {
classpath 'gradle.plugin.org.mozilla.rust-android-gradle:plugin:0.8.3'
classpath 'com.android.tools.build:gradle:4.0.0-alpha09' classpath 'com.android.tools.build:gradle:4.0.0-alpha09'
classpath 'com.github.ben-manes:gradle-versions-plugin:0.27.0' classpath 'com.github.ben-manes:gradle-versions-plugin:0.27.0'
classpath 'com.google.android.gms:oss-licenses-plugin:0.9.5' classpath 'com.google.android.gms:oss-licenses-plugin:0.9.5'
......
...@@ -2,6 +2,7 @@ apply plugin: 'com.android.library' ...@@ -2,6 +2,7 @@ apply plugin: 'com.android.library'
apply plugin: 'kotlin-android' apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions' apply plugin: 'kotlin-android-extensions'
apply plugin: 'kotlin-kapt' apply plugin: 'kotlin-kapt'
apply plugin: 'org.mozilla.rust-android-gradle.rust-android'
android { android {
compileSdkVersion rootProject.compileSdkVersion compileSdkVersion rootProject.compileSdkVersion
...@@ -50,6 +51,15 @@ androidExtensions { ...@@ -50,6 +51,15 @@ androidExtensions {
experimental = true experimental = true
} }
cargo {
module = 'shadowsocks-rust'
libname = 'shadowsocks-rust'
targets = ['arm', 'arm64', 'x86', 'x86_64']
features {
noDefaultBut "sodium", "trust-dns"
}
}
def coroutinesVersion = '1.3.3' def coroutinesVersion = '1.3.3'
def roomVersion = '2.2.3' def roomVersion = '2.2.3'
def workVersion = '2.3.1' def workVersion = '2.3.1'
......
Subproject commit b8beabe3de9c986f4bb57922985a0ee64403e821
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment