forked from xxf098/shadowsocksr-v2ray-trojan-android
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
78 lines (68 loc) · 2.67 KB
/
build.sbt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
scalaVersion := "2.11.8"
dexMaxHeap := "4g"
enablePlugins(AndroidApp)
android.useSupportVectors
name := "shadowsocksr-v2ray"
applicationId := "com.xxf098.ssrray"
val supportLibVersion = "27.1.1"
platformTarget := "android-29"
compileOrder := CompileOrder.JavaThenScala
javacOptions ++= "-source" :: "1.8" :: "-target" :: "1.8" :: Nil
scalacOptions ++= "-target:jvm-1.8" :: "-Xexperimental" :: Nil
ndkJavah := Seq()
ndkBuild := Seq()
proguardVersion := "6.2.0"
proguardCache := Seq()
proguardOptions ++=
"-keep class com.github.shadowsocks.System { *; }" ::
"-keep class tun2socks.** { *;}" ::
"-keep class go.** { *;}" ::
"-keep class okhttp3.** { *; }" ::
"-keep interface okhttp3.** { *; }" ::
"-keep class okio.** { *; }" ::
"-keep interface okio.** { *; }" ::
"-dontwarn okio.**" ::
"-dontwarn okhttp3.**" ::
"-dontwarn com.google.android.gms.internal.**" ::
"-dontwarn com.j256.ormlite.**" ::
"-dontwarn org.xbill.**" ::
"-dontwarn javax.annotation.Nullable" ::
"-dontwarn javax.annotation.ParametersAreNonnullByDefault" ::
Nil
shrinkResources := true
typedResources := false
resConfigs := Seq("ja", "ru", "zh-rCN", "zh-rTW")
resolvers += "Google" at "https://maven.google.com/"
resolvers += Resolver.jcenterRepo
libraryDependencies ++=
"com.android.support" % "cardview-v7" % supportLibVersion ::
"com.android.support" % "design" % supportLibVersion ::
"com.android.support" % "gridlayout-v7" % supportLibVersion ::
"com.android.support" % "preference-v14" % supportLibVersion ::
"com.evernote" % "android-job" % "1.1.3" ::
"com.github.clans" % "fab" % "1.6.4" ::
"com.github.jorgecastilloprz" % "fabprogresscircle" % "1.01" ::
"com.google.android.gms" % "play-services-analytics" % "10.0.1" ::
"com.google.android.gms" % "play-services-gcm" % "10.0.1" ::
"com.j256.ormlite" % "ormlite-android" % "5.1" ::
"com.mikepenz" % "fastadapter" % "2.1.5" ::
"com.mikepenz" % "iconics-core" % "2.8.2" ::
"com.mikepenz" % "materialdrawer" % "5.8.1" ::
"com.mikepenz" % "materialize" % "1.0.0" ::
"com.twofortyfouram" % "android-plugin-api-for-locale" % "1.0.2" ::
"dnsjava" % "dnsjava" % "2.1.9" ::
"eu.chainfire" % "libsuperuser" % "1.0.0.201704021214" ::
"me.dm7.barcodescanner" % "zxing" % "1.9.8" ::
"net.glxn.qrgen" % "android" % "2.0" ::
"com.squareup.okhttp3" % "okhttp" % "4.4.1" ::
"com.google.code.findbugs" % "jsr305" % "1.3.+" ::
"com.google.code.gson" % "gson" % "2.8.6" ::
Nil
lazy val nativeBuild = TaskKey[Unit]("native-build", "Build native executables")
nativeBuild := {
val logger = streams.value.log
Process("./build.sh") ! logger match {
case 0 => // Success!
case n => sys.error(s"Native build script exit code: $n")
}
}