Skip to content

Commit 1a855d1

Browse files
committed
example: Fix wrong package
1 parent e3e0b18 commit 1a855d1

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

composeApp/build.gradle.kts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import com.android.build.gradle.internal.api.BaseVariantOutputImpl
44
import org.jetbrains.compose.desktop.application.dsl.TargetFormat
55
import org.jetbrains.kotlin.gradle.ExperimentalWasmDsl
66
import org.jetbrains.kotlin.gradle.plugin.mpp.apple.XCFramework
7+
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
78
import java.io.ByteArrayOutputStream
89
import java.util.Properties
910

@@ -189,7 +190,7 @@ val generateVersionInfo by tasks.registering {
189190
val file = file("src/commonMain/kotlin/utils/VersionInfo.kt")
190191
file.writeText(
191192
"""
192-
package misc
193+
package utils
193194
194195
object VersionInfo {
195196
const val VERSION_NAME = "$verName"
@@ -200,7 +201,7 @@ val generateVersionInfo by tasks.registering {
200201
}
201202
}
202203

203-
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().configureEach {
204+
tasks.withType<KotlinCompile>().configureEach {
204205
dependsOn(generateVersionInfo)
205206
}
206207

composeApp/src/commonMain/kotlin/ThirdPage.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ import androidx.compose.runtime.Composable
55
import androidx.compose.runtime.MutableState
66
import androidx.compose.ui.Modifier
77
import androidx.compose.ui.unit.dp
8-
import misc.VersionInfo
98
import top.yukonga.miuix.kmp.basic.Card
109
import top.yukonga.miuix.kmp.basic.LazyColumn
1110
import top.yukonga.miuix.kmp.basic.ScrollBehavior
1211
import top.yukonga.miuix.kmp.basic.SmallTitle
1312
import top.yukonga.miuix.kmp.extra.SuperDropdown
1413
import top.yukonga.miuix.kmp.extra.SuperSwitch
1514
import top.yukonga.miuix.kmp.utils.getWindowSize
15+
import utils.VersionInfo
1616

1717
@Composable
1818
fun ThirdPage(

0 commit comments

Comments
 (0)