equal
deleted
inserted
replaced
|
1 import org.jetbrains.kotlin.gradle.dsl.JvmTarget |
|
2 |
1 /* |
3 /* |
2 * AboutOss is an utility library to retrieve and display |
4 * AboutOss is an utility library to retrieve and display |
3 * opensource licenses in Android applications. |
5 * opensource licenses in Android applications. |
4 * |
6 * |
5 * Copyright (C) 2023 by Frederic-Charles Barthelery. |
7 * Copyright (C) 2023 by Frederic-Charles Barthelery. |
19 * You should have received a copy of the GNU General Public License |
21 * You should have received a copy of the GNU General Public License |
20 * along with AboutOss. If not, see <http://www.gnu.org/licenses/>. |
22 * along with AboutOss. If not, see <http://www.gnu.org/licenses/>. |
21 */ |
23 */ |
22 plugins { |
24 plugins { |
23 id("com.android.library") |
25 id("com.android.library") |
24 kotlin("android") |
26 kotlin("multiplatform") |
25 id("com.geekorum.build.source-license-checker") |
27 id("com.geekorum.build.source-license-checker") |
26 `maven-publish` |
28 `maven-publish` |
27 } |
29 } |
28 |
30 |
29 group = "com.geekorum.aboutoss" |
31 group = "com.geekorum.aboutoss" |
30 version = "0.1.0" |
32 version = "0.1.0" |
|
33 |
|
34 kotlin { |
|
35 androidTarget { |
|
36 compilerOptions { |
|
37 jvmTarget.set(JvmTarget.JVM_17) |
|
38 } |
|
39 } |
|
40 |
|
41 jvm("desktop") |
|
42 |
|
43 listOf( |
|
44 iosX64(), |
|
45 iosArm64(), |
|
46 iosSimulatorArm64(), |
|
47 ).forEach { iosTarget -> |
|
48 iosTarget.binaries.framework { |
|
49 baseName = "aboutoss-core" |
|
50 isStatic = true |
|
51 } |
|
52 } |
|
53 |
|
54 sourceSets { |
|
55 commonMain.dependencies { |
|
56 implementation(libs.okio) |
|
57 implementation(libs.kotlinx.coroutines) |
|
58 } |
|
59 } |
|
60 } |
31 |
61 |
32 android { |
62 android { |
33 namespace = "com.geekorum.aboutoss.core" |
63 namespace = "com.geekorum.aboutoss.core" |
34 compileSdk = 35 |
64 compileSdk = 35 |
35 |
65 |
51 "proguard-rules.pro" |
81 "proguard-rules.pro" |
52 ) |
82 ) |
53 } |
83 } |
54 } |
84 } |
55 compileOptions { |
85 compileOptions { |
56 sourceCompatibility = JavaVersion.VERSION_1_8 |
86 sourceCompatibility = JavaVersion.VERSION_17 |
57 targetCompatibility = JavaVersion.VERSION_1_8 |
87 targetCompatibility = JavaVersion.VERSION_17 |
58 } |
|
59 kotlinOptions { |
|
60 jvmTarget = "1.8" |
|
61 } |
88 } |
62 |
89 |
63 publishing { |
90 publishing { |
64 singleVariant("release") { |
91 singleVariant("release") { |
65 withJavadocJar() |
92 withJavadocJar() |
67 } |
94 } |
68 } |
95 } |
69 } |
96 } |
70 |
97 |
71 dependencies { |
98 dependencies { |
72 implementation(libs.okio) |
|
73 implementation(libs.kotlinx.coroutines) |
|
74 |
99 |
75 testImplementation(libs.junit) |
100 testImplementation(libs.junit) |
76 androidTestImplementation(libs.androidx.test.ext.junit) |
101 androidTestImplementation(libs.androidx.test.ext.junit) |
77 androidTestImplementation(libs.espresso.core) |
102 androidTestImplementation(libs.espresso.core) |
78 } |
103 } |