equal
deleted
inserted
replaced
21 */ |
21 */ |
22 import org.jetbrains.kotlin.gradle.dsl.JvmTarget |
22 import org.jetbrains.kotlin.gradle.dsl.JvmTarget |
23 |
23 |
24 @Suppress("DSL_SCOPE_VIOLATION") // TODO: Remove once KTIJ-19369 is fixed |
24 @Suppress("DSL_SCOPE_VIOLATION") // TODO: Remove once KTIJ-19369 is fixed |
25 plugins { |
25 plugins { |
26 id("com.android.application") |
26 id("com.geekorum.build.conventions.mpp-library-with-android") |
27 kotlin("multiplatform") |
|
28 id("com.geekorum.build.source-license-checker") |
27 id("com.geekorum.build.source-license-checker") |
29 alias(libs.plugins.kotlin.compose) |
28 alias(libs.plugins.kotlin.compose) |
30 alias(libs.plugins.jetbrains.compose.multiplatform) |
29 alias(libs.plugins.jetbrains.compose.multiplatform) |
31 alias(libs.plugins.kotlinx.serialization) |
30 alias(libs.plugins.kotlinx.serialization) |
32 alias(libs.plugins.google.gms.oss.license) |
|
33 } |
31 } |
34 |
32 |
35 // workaround bug https://issuetracker.google.com/issues/275534543 |
|
36 buildscript { |
|
37 dependencies { |
|
38 classpath("com.android.tools.build:gradle:8.13.0") |
|
39 } |
|
40 } |
|
41 |
33 |
42 kotlin { |
34 kotlin { |
43 androidTarget { |
35 android { |
|
36 namespace = "com.geekorum.aboutoss.sampleapp" |
|
37 androidResources { |
|
38 enable = true |
|
39 } |
44 compilerOptions { |
40 compilerOptions { |
45 jvmTarget.set(JvmTarget.JVM_17) |
41 jvmTarget.set(JvmTarget.JVM_17) |
46 } |
42 } |
47 } |
43 } |
48 |
44 |
63 } |
59 } |
64 } |
60 } |
65 |
61 |
66 sourceSets { |
62 sourceSets { |
67 commonMain.dependencies { |
63 commonMain.dependencies { |
68 implementation(project(":core")) |
64 api(project(":core")) |
69 implementation(project(":ui:common")) |
65 api(project(":ui:common")) |
70 implementation(project(":ui:material2")) |
66 api(project(":ui:material2")) |
71 implementation(project(":ui:material3")) |
67 api(project(":ui:material3")) |
72 implementation(compose.material3) |
68 implementation(compose.material3) |
73 implementation(compose.components.resources) |
69 implementation(compose.components.resources) |
74 implementation(compose.components.uiToolingPreview) |
70 implementation(compose.components.uiToolingPreview) |
75 implementation(libs.jetbrains.androidx.lifecycle.viewModelCompose) |
71 implementation(libs.jetbrains.androidx.lifecycle.viewModelCompose) |
76 } |
72 } |
89 } |
85 } |
90 } |
86 } |
91 } |
87 } |
92 } |
88 } |
93 |
89 |
94 android { |
|
95 namespace = "com.geekorum.aboutoss.sampleapp" |
|
96 compileSdk = 36 |
|
97 |
|
98 defaultConfig { |
|
99 applicationId = "com.geekorum.aboutoss.sampleapp" |
|
100 minSdk = 28 |
|
101 targetSdk = 35 |
|
102 versionCode = 1 |
|
103 versionName = "1.0" |
|
104 |
|
105 testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" |
|
106 vectorDrawables { |
|
107 useSupportLibrary = true |
|
108 } |
|
109 } |
|
110 |
|
111 buildTypes { |
|
112 release { |
|
113 isMinifyEnabled = false |
|
114 proguardFiles( |
|
115 getDefaultProguardFile("proguard-android-optimize.txt"), |
|
116 "proguard-rules.pro" |
|
117 ) |
|
118 } |
|
119 } |
|
120 compileOptions { |
|
121 sourceCompatibility = JavaVersion.VERSION_17 |
|
122 targetCompatibility = JavaVersion.VERSION_17 |
|
123 } |
|
124 |
|
125 buildFeatures { |
|
126 compose = true |
|
127 buildConfig = true |
|
128 } |
|
129 packaging { |
|
130 resources { |
|
131 excludes += "/META-INF/{AL2.0,LGPL2.1}" |
|
132 } |
|
133 } |
|
134 } |
|
135 |
|
136 dependencies { |
|
137 testImplementation(libs.junit) |
|
138 androidTestImplementation(libs.androidx.test.ext.junit) |
|
139 androidTestImplementation(libs.espresso.core) |
|
140 androidTestImplementation(platform(libs.androidx.compose.bom)) |
|
141 androidTestImplementation(libs.androidx.compose.uiTestJunit4) |
|
142 debugImplementation(libs.androidx.compose.uiTooling) |
|
143 debugImplementation(libs.androidx.compose.uiTestManifest) |
|
144 } |
|