forked from shadowsocks/kcptun-android
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
34 lines (25 loc) · 902 Bytes
/
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
scalaVersion := "2.11.8"
enablePlugins(AndroidApp)
android.useSupportVectors
resolvers += Resolver.jcenterRepo
name := "kcptun"
organization := "com.github.shadowsocks"
version := "0.0.6"
versionCode := Some(6)
platformTarget := "android-26"
compileOrder := CompileOrder.JavaThenScala
javacOptions ++= "-source" :: "1.7" :: "-target" :: "1.7" :: Nil
scalacOptions ++= "-target:jvm-1.7" :: "-Xexperimental" :: Nil
proguardVersion := "5.3.3"
proguardCache := Seq()
shrinkResources := true
typedResources := false
resConfigs := Seq("ja", "ko", "ru", "zh-rCN", "zh-rTW")
libraryDependencies += "com.github.shadowsocks" %% "plugin" % "0.0.4"
lazy val goBuild = TaskKey[Unit]("go-build", "Build go and kcptun")
goBuild := {
Process(Seq("src/make.bash", minSdkVersion.value)) ! streams.value.log match {
case 0 => // Success!
case n => sys.error(s"Native build script exit code: $n")
}
}