-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
59 lines (48 loc) · 1.96 KB
/
build.gradle
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
plugins {
id 'com.android.library'
id 'kotlin-android' //'org.jetbrains.kotlin.android'
id 'cash.bdo.scalroid'
}
group = 'hobby.chenai.nakam'
version = '1.2.2'
ext.isReleaseVersion = !version.endsWith('SNAPSHOT')
android {
scalroid {
scala.zincVersion.set(rootProject.ext.android.zincVer)
// scalaCodeReferToKt = true
// ktCodeReferToScala = true
// javaDirsExcludes = ['/main/kotlin/', 'src/aaa/xxx']
}
namespace 'hobby.chenai.nakam.assoid'
compileSdk rootProject.ext.android.compileSdk // 33
defaultConfig {
minSdk rootProject.ext.android.minSdk // 26
targetSdk rootProject.ext.android.targetSdk // 33
}
// TODO: Since this module has a compatible 'java.lang.ClassValue', it is not possible for higher versions.
/*compileOptions {
sourceCompatibility rootProject.ext.android.jdkVer
targetCompatibility rootProject.ext.android.jdkVer
}*/
}
dependencies {
scalaCompilerPlugins "org.scalamacros:paradise_$scala2.Version:[2.1.0,)"
api project(':annoid')
// api project(path: ':annoid', configuration: 'releaseRuntimeElements')
api rootProject.ext.depends.annoguard
api rootProject.ext.depends.reflow
api rootProject.ext.depends.scalang
api 'androidx.appcompat:appcompat:1.6.1'
api 'androidx.recyclerview:recyclerview:1.3.2'
api 'androidx.localbroadcastmanager:localbroadcastmanager:[1.0.0,)'
api 'com.squareup.okhttp3:okhttp:4.10.0'
//api 'com.google.code.findbugs:jsr305:3.0.+'
// Scala 2
implementation "org.scala-lang:scala-library:$scala2.Version"
// TODO: 打算用 Slick for Sqlite 替换掉 Quill.
api "com.typesafe.slick:slick_$scala2.Binary:[3.3.2,)"
// slf4j-android(bitcoinj 需要)里含有 slf4j-nop 的所有 3 个 class(混淆时,由于重复报错)。
//"org.slf4j" % "slf4j-nop" % "1.6.4",
//"com.typesafe.slick" %% "slick-hikaricp" % "3.3.2",
api "org.sqldroid:sqldroid:[1.0.3,)"
}