Skip to content

Commit 75b3710

Browse files
committedMay 17, 2024·
Revert "Prepare for user project"
This reverts commit 110b523.
1 parent 110b523 commit 75b3710

File tree

8 files changed

+2855
-28
lines changed

8 files changed

+2855
-28
lines changed
 

‎build.gradle.kts

+1-2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,5 @@ plugins {
44
alias(libs.plugins.jetbrainsCompose) apply false
55
alias(libs.plugins.androidApplication) apply false
66
alias(libs.plugins.androidLibrary) apply false
7-
kotlin("multiplatform") apply false
8-
kotlin("plugin.compose") apply false
7+
alias(libs.plugins.kotlinMultiplatform) apply false
98
}

‎composeApp/build.gradle.kts

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
11
import org.jetbrains.compose.desktop.application.dsl.TargetFormat
22
import org.jetbrains.compose.ExperimentalComposeLibrary
3-
import org.jetbrains.kotlin.gradle.dsl.KotlinVersion
43
import org.jetbrains.kotlin.gradle.targets.js.dsl.ExperimentalWasmDsl
54
import org.jetbrains.kotlin.gradle.targets.js.webpack.KotlinWebpackConfig
6-
import org.jetbrains.kotlin.gradle.tasks.KotlinCompilationTask
75

86
plugins {
9-
kotlin("multiplatform")
7+
alias(libs.plugins.kotlinMultiplatform)
108
alias(libs.plugins.androidApplication)
119
alias(libs.plugins.jetbrainsCompose)
12-
kotlin("plugin.compose")
1310
}
1411

1512
kotlin {

‎composeApp/src/commonMain/kotlin/App.kt

+1-3
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ import androidx.compose.runtime.remember
1212
import androidx.compose.runtime.setValue
1313
import androidx.compose.ui.Alignment
1414
import androidx.compose.ui.Modifier
15-
import compose_example.composeapp.generated.resources.Res
16-
import compose_example.composeapp.generated.resources.compose_multiplatform
1715
import org.jetbrains.compose.resources.ExperimentalResourceApi
1816
import org.jetbrains.compose.resources.painterResource
1917

@@ -32,7 +30,7 @@ fun App() {
3230
}
3331
AnimatedVisibility(showImage) {
3432
Image(
35-
painterResource(Res.drawable.compose_multiplatform),
33+
painterResource("compose-multiplatform.xml"),
3634
null
3735
)
3836
}

‎gradle.properties

+1-3
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,4 @@ kotlin.mpp.androidSourceSetLayoutVersion=2
1616
kotlin.mpp.enableCInteropCommonization=true
1717

1818
#Development
19-
development=true
20-
21-
kotlin_version=2.0.0-RC3
19+
development=true

‎gradle/libs.versions.toml

+7-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
[versions]
22
compose = "1.5.4"
3-
compose-plugin = "1.6.10-rc03"
3+
compose-plugin = "1.6.0-alpha01"
4+
compose-compiler = "1.5.4"
45
agp = "8.1.4"
56
android-minSdk = "24"
67
android-compileSdk = "34"
@@ -12,9 +13,12 @@ androidx-material = "1.10.0"
1213
androidx-constraintlayout = "2.1.4"
1314
androidx-test-junit = "1.1.5"
1415
androidx-espresso-core = "3.5.1"
16+
kotlin = "1.9.21"
1517
junit = "4.13.2"
1618

1719
[libraries]
20+
kotlin-test = { module = "org.jetbrains.kotlin:kotlin-test", version.ref = "kotlin" }
21+
kotlin-test-junit = { module = "org.jetbrains.kotlin:kotlin-test-junit", version.ref = "kotlin" }
1822
junit = { group = "junit", name = "junit", version.ref = "junit" }
1923
compose-ui = { module = "androidx.compose.ui:ui", version.ref = "compose" }
2024
compose-ui-tooling = { module = "androidx.compose.ui:ui-tooling", version.ref = "compose" }
@@ -32,4 +36,5 @@ androidx-activity-compose = { module = "androidx.activity:activity-compose", ver
3236
[plugins]
3337
jetbrainsCompose = { id = "org.jetbrains.compose", version.ref = "compose-plugin" }
3438
androidApplication = { id = "com.android.application", version.ref = "agp" }
35-
androidLibrary = { id = "com.android.library", version.ref = "agp" }
39+
androidLibrary = { id = "com.android.library", version.ref = "agp" }
40+
kotlinMultiplatform = { id = "org.jetbrains.kotlin.multiplatform", version.ref = "kotlin" }

‎kotlin-js-store/yarn.lock

+2,844
Large diffs are not rendered by default.

‎settings.gradle.kts

-14
Original file line numberDiff line numberDiff line change
@@ -2,31 +2,17 @@ rootProject.name = "compose-example"
22
enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")
33

44
pluginManagement {
5-
val kotlin_repo_url: String? by settings
6-
val kotlin_version: String? by settings
7-
85
repositories {
96
google()
107
gradlePluginPortal()
118
mavenCentral()
12-
13-
kotlin_repo_url?.also { maven(it) }
14-
}
15-
16-
plugins {
17-
kotlin("multiplatform") version kotlin_version
18-
kotlin("plugin.compose") version kotlin_version
199
}
2010
}
2111

2212
dependencyResolutionManagement {
23-
val kotlin_repo_url: String? by settings
24-
2513
repositories {
2614
google()
2715
mavenCentral()
28-
29-
kotlin_repo_url?.also { maven(it) }
3016
}
3117
}
3218

0 commit comments

Comments
 (0)
Please sign in to comment.