17 * GNU General Public License for more details. |
17 * GNU General Public License for more details. |
18 * |
18 * |
19 * You should have received a copy of the GNU General Public License |
19 * You should have received a copy of the GNU General Public License |
20 * along with AboutOss. If not, see <http://www.gnu.org/licenses/>. |
20 * along with AboutOss. If not, see <http://www.gnu.org/licenses/>. |
21 */ |
21 */ |
|
22 import org.jetbrains.kotlin.gradle.dsl.JvmTarget |
|
23 |
22 plugins { |
24 plugins { |
23 id("com.android.library") |
25 id("com.android.library") |
24 kotlin("android") |
26 kotlin("multiplatform") |
25 alias(libs.plugins.org.jetbrains.kotlin.compose.compiler) |
27 alias(libs.plugins.org.jetbrains.kotlin.compose.compiler) |
|
28 alias(libs.plugins.org.jetbrains.compose.multiplatform) |
26 id("com.geekorum.build.source-license-checker") |
29 id("com.geekorum.build.source-license-checker") |
27 `maven-publish` |
30 `maven-publish` |
28 } |
31 } |
29 |
32 |
30 group = "com.geekorum.aboutoss" |
33 group = "com.geekorum.aboutoss" |
31 version = "0.1.0" |
34 version = "0.1.0" |
|
35 |
|
36 kotlin { |
|
37 androidTarget { |
|
38 compilerOptions { |
|
39 jvmTarget.set(JvmTarget.JVM_17) |
|
40 } |
|
41 } |
|
42 |
|
43 jvm("desktop") |
|
44 |
|
45 listOf( |
|
46 iosX64(), |
|
47 iosArm64(), |
|
48 iosSimulatorArm64(), |
|
49 ).forEach { iosTarget -> |
|
50 iosTarget.binaries.framework { |
|
51 baseName = "aboutoss-core" |
|
52 isStatic = true |
|
53 } |
|
54 } |
|
55 |
|
56 sourceSets { |
|
57 commonMain.dependencies { |
|
58 api(project(":ui:common")) |
|
59 implementation(project(":core")) |
|
60 implementation(compose.material) |
|
61 implementation(compose.components.resources) |
|
62 } |
|
63 |
|
64 androidMain.dependencies { |
|
65 api(libs.androidx.activity) |
|
66 } |
|
67 } |
|
68 } |
|
69 |
32 |
70 |
33 android { |
71 android { |
34 namespace = "com.geekorum.aboutoss.ui.material" |
72 namespace = "com.geekorum.aboutoss.ui.material" |
35 compileSdk = 35 |
73 compileSdk = 35 |
36 |
74 |
73 } |
108 } |
74 } |
109 } |
75 } |
110 } |
76 |
111 |
77 dependencies { |
112 dependencies { |
78 api(project(":ui:common")) |
|
79 implementation(platform(libs.androidx.compose.bom)) |
113 implementation(platform(libs.androidx.compose.bom)) |
80 implementation(libs.androidx.compose.material) |
|
81 implementation(libs.androidx.compose.material.icons.core) |
|
82 implementation(libs.androidx.activity.compose) |
114 implementation(libs.androidx.activity.compose) |
83 implementation(libs.androidx.navigation.compose) |
115 implementation(libs.androidx.navigation.compose) |
84 |
116 |
85 testImplementation(libs.junit) |
117 testImplementation(libs.junit) |
86 androidTestImplementation(libs.androidx.test.ext.junit) |
118 androidTestImplementation(libs.androidx.test.ext.junit) |