File tree Expand file tree Collapse file tree 3 files changed +32
-25
lines changed Expand file tree Collapse file tree 3 files changed +32
-25
lines changed File renamed without changes.
Original file line number Diff line number Diff line change 1
1
apply plugin : ' org.jetbrains.kotlin.multiplatform'
2
- apply plugin : ' com.android.library'
2
+ apply plugin : ' com.android.kotlin.multiplatform. library'
3
3
apply plugin : ' com.vanniktech.maven.publish'
4
4
apply plugin : ' org.jetbrains.dokka' // Must be applied here for publish plugin.
5
5
6
-
7
6
kotlin {
8
- androidTarget()
7
+ androidLibrary {
8
+ namespace ' timber.log'
9
+ compileSdk libs. versions. compileSdk. get(). toInteger()
10
+ minSdk libs. versions. minSdk. get(). toInteger()
11
+
12
+ optimization {
13
+ // "it" --> https://issuetracker.google.com/issues/445115242
14
+ it. consumerKeepRules. file(' consumer-keep-rules.pro' )
15
+ }
16
+
17
+ lint {
18
+ it. textReport = true
19
+ }
20
+ }
9
21
22
+ // TODO Remove!
10
23
jvmToolchain(17 )
11
24
25
+ sourceSets {
26
+ commonMain {
27
+ dependencies {
28
+ implementation libs. annotations
29
+ }
30
+ }
31
+ commonTest {
32
+ dependencies {
33
+ implementation libs. annotations
34
+ implementation libs. junit
35
+ implementation libs. assertk
36
+ implementation libs. robolectric
37
+ }
38
+ }
39
+ }
40
+
12
41
abiValidation {
13
42
enabled = true
14
43
}
@@ -21,28 +50,6 @@ tasks.named('check') { check ->
21
50
)
22
51
}
23
52
24
- android {
25
- namespace ' timber.log'
26
- compileSdkVersion libs. versions. compileSdk. get(). toInteger()
27
-
28
- defaultConfig {
29
- minSdkVersion libs. versions. minSdk. get()
30
- consumerProguardFiles ' consumer-proguard-rules.pro'
31
- }
32
-
33
- lintOptions {
34
- textReport true
35
- textOutput ' stdout'
36
- }
37
- }
38
-
39
53
dependencies {
40
- implementation libs. annotations
41
-
42
- testImplementation libs. annotations
43
- testImplementation libs. junit
44
- testImplementation libs. assertk
45
- testImplementation libs. robolectric
46
-
47
54
lintPublish project(' :timber-lint' )
48
55
}
File renamed without changes.
You can’t perform that action at this time.
0 commit comments