File tree Expand file tree Collapse file tree 18 files changed +164
-181
lines changed
kotlin/org/jetbrains/compose/resources Expand file tree Collapse file tree 18 files changed +164
-181
lines changed Original file line number Diff line number Diff line change 1
- import org.jetbrains.compose.compose
2
- import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
3
-
4
1
plugins {
5
2
kotlin(" multiplatform" )
6
3
id(" org.jetbrains.compose" )
7
4
}
8
5
9
6
kotlin {
10
- jvm {}
7
+ jvm()
11
8
sourceSets {
12
- named(" jvmMain" ) {
9
+ all {
10
+ languageSettings {
11
+ optIn(" kotlin.RequiresOptIn" )
12
+ }
13
+ }
14
+ val jvmMain by getting {
13
15
dependencies {
14
16
implementation(compose.desktop.currentOs)
15
17
implementation(project(" :AnimatedImage:library" ))
@@ -22,8 +24,4 @@ compose.desktop {
22
24
application {
23
25
mainClass = " org.jetbrains.compose.animatedimage.demo.MainKt"
24
26
}
25
- }
26
-
27
- tasks.withType<KotlinCompile >().configureEach {
28
- kotlinOptions.freeCompilerArgs + = " -Xopt-in=kotlin.RequiresOptIn"
29
27
}
Original file line number Diff line number Diff line change 1
- import org.jetbrains.compose.compose
2
- import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
3
-
4
1
plugins {
5
2
kotlin(" multiplatform" )
6
3
id(" org.jetbrains.compose" )
@@ -9,25 +6,22 @@ plugins {
9
6
10
7
kotlin {
11
8
jvm(" desktop" )
12
-
13
9
sourceSets {
14
- named(" commonMain" ) {
10
+ all {
11
+ languageSettings {
12
+ optIn(" kotlin.RequiresOptIn" )
13
+ }
14
+ }
15
+ val commonMain by getting {
15
16
dependencies {
16
17
api(compose.runtime)
17
18
api(compose.foundation)
18
19
api(project(" :resources:library" ))
19
-
20
20
}
21
21
}
22
- named(" desktopMain" ) {}
23
22
}
24
23
}
25
24
26
- // TODO it seems that argument isn't applied to the common sourceSet. Figure out why
27
- tasks.withType<KotlinCompile >().configureEach {
28
- kotlinOptions.freeCompilerArgs + = " -Xopt-in=kotlin.RequiresOptIn"
29
- }
30
-
31
25
configureMavenPublication(
32
26
groupId = " org.jetbrains.compose.components" ,
33
27
artifactId = " components-animatedimage" ,
Original file line number Diff line number Diff line change 1
1
import org.jetbrains.compose.compose
2
- import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
3
2
4
3
plugins {
5
4
kotlin(" multiplatform" )
6
5
id(" org.jetbrains.compose" )
7
6
}
8
7
9
8
kotlin {
10
- jvm {}
9
+ jvm()
11
10
sourceSets {
12
- named(" jvmMain" ) {
11
+ all {
12
+ languageSettings {
13
+ optIn(" kotlin.RequiresOptIn" )
14
+ }
15
+ }
16
+
17
+ val jvmMain by getting {
13
18
dependencies {
14
19
implementation(compose.desktop.currentOs)
15
20
implementation(project(" :SplitPane:library" ))
@@ -22,8 +27,4 @@ compose.desktop {
22
27
application {
23
28
mainClass = " org.jetbrains.compose.splitpane.demo.MainKt"
24
29
}
25
- }
26
-
27
- tasks.withType<KotlinCompile >().configureEach {
28
- kotlinOptions.freeCompilerArgs + = " -Xopt-in=kotlin.RequiresOptIn"
29
30
}
Original file line number Diff line number Diff line change 1
- import org.jetbrains.compose.compose
2
- import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
3
-
4
1
plugins {
5
2
kotlin(" multiplatform" )
6
3
id(" org.jetbrains.compose" )
@@ -11,21 +8,21 @@ kotlin {
11
8
jvm(" desktop" )
12
9
13
10
sourceSets {
14
- named(" commonMain" ) {
11
+ all {
12
+ languageSettings {
13
+ optIn(" kotlin.RequiresOptIn" )
14
+ }
15
+ }
16
+
17
+ val commonMain by getting {
15
18
dependencies {
16
19
api(compose.runtime)
17
20
api(compose.foundation)
18
21
}
19
22
}
20
- named(" desktopMain" ) {}
21
23
}
22
24
}
23
25
24
- // TODO it seems that argument isn't applied to the common sourceSet. Figure out why
25
- tasks.withType<KotlinCompile >().configureEach {
26
- kotlinOptions.freeCompilerArgs + = " -Xopt-in=kotlin.RequiresOptIn"
27
- }
28
-
29
26
configureMavenPublication(
30
27
groupId = " org.jetbrains.compose.components" ,
31
28
artifactId = " components-splitpane" ,
Original file line number Diff line number Diff line change @@ -3,15 +3,6 @@ plugins {
3
3
id(" com.android.library" ) apply false
4
4
}
5
5
6
- allprojects {
7
- repositories {
8
- mavenLocal() // mavenLocal should be the first to get the correct version of skiko during a local build.
9
- google()
10
- mavenCentral()
11
- maven(" https://maven.pkg.jetbrains.space/public/p/compose/dev" )
12
- }
13
- }
14
-
15
6
subprojects {
16
7
version = findProperty(" deploy.version" ) ? : property(" compose.version" )!!
17
8
Original file line number Diff line number Diff line change 1
- org.gradle.jvmargs =-Xmx2048m -Dfile.encoding=UTF-8
1
+ # Gradle
2
+ org.gradle.jvmargs =-Xmx2048M -Dfile.encoding=UTF-8 -Dkotlin.daemon.jvm.options\="-Xmx2048M"
3
+ org.gradle.caching =true
4
+ # org.gradle.configuration-cache=true //stable since kotlin 1.9.20
5
+
6
+ # Android
2
7
android.useAndroidX =true
3
- android.enableJetifier = true
4
- kotlin.code.style = official
5
- # __KOTLIN_COMPOSE_VERSION__
6
- kotlin .version =1.8.22
7
- # __LATEST_COMPOSE_RELEASE_VERSION__
8
- compose.version = 1.5.10-rc01
9
- agp.version = 7.3.1
8
+
9
+ # Versions
10
+ kotlin.version = 1.9.10
11
+ compose .version =1.5.3
12
+ agp.version = 8.1.2
13
+
14
+ # Compose
10
15
org.jetbrains.compose.experimental.jscanvas.enabled =true
11
16
org.jetbrains.compose.experimental.macos.enabled =true
12
17
org.jetbrains.compose.experimental.uikit.enabled =true
13
-
14
- kotlin.native.useEmbeddableCompilerJar =true
15
- kotlin.native.enableDependencyPropagation =false
16
- kotlin.mpp.enableGranularSourceSetsMetadata =true
17
- # Enable kotlin/native experimental memory model
18
- kotlin.native.binary.memoryModel =experimental
19
18
compose.desktop.verbose =true
19
+
20
+ # Kotlin
21
+ kotlin.code.style =official
22
+ kotlin.js.compiler =ir
20
23
kotlin.js.webpack.major.version =4
21
- xcodeproj =./resources/demo/iosApp
24
+ kotlin.native.useEmbeddableCompilerJar =true
25
+ kotlin.native.binary.memoryModel =experimental
Original file line number Diff line number Diff line change 1
1
distributionBase =GRADLE_USER_HOME
2
2
distributionPath =wrapper/dists
3
- distributionUrl =https\://services.gradle.org/distributions/gradle-7.5.1 -bin.zip
3
+ distributionUrl =https\://services.gradle.org/distributions/gradle-8.4 -bin.zip
4
4
zipStoreBase =GRADLE_USER_HOME
5
5
zipStorePath =wrapper/dists
Original file line number Diff line number Diff line change @@ -4,25 +4,25 @@ plugins {
4
4
id(" org.jetbrains.compose" )
5
5
}
6
6
7
- dependencies {
8
- implementation(project(" :resources:demo:shared" ))
9
- implementation(" androidx.appcompat:appcompat:1.5.1" )
10
- implementation(" androidx.activity:activity-compose:1.6.1" )
11
- implementation(" androidx.compose.foundation:foundation:1.3.1" )
12
- implementation(" androidx.compose.ui:ui:1.3.1" )
13
- }
14
-
15
7
android {
16
- compileSdk = 33
8
+ compileSdk = 34
9
+ namespace = " org.jetbrains.compose.resources.demo"
17
10
defaultConfig {
18
11
applicationId = " me.user.androidApp"
19
12
minSdk = 21
20
- targetSdk = 33
13
+ targetSdk = 34
21
14
versionCode = 1
22
15
versionName = " 1.0"
23
16
}
24
17
compileOptions {
25
- sourceCompatibility = JavaVersion .VERSION_1_8
26
- targetCompatibility = JavaVersion .VERSION_1_8
18
+ sourceCompatibility = JavaVersion .VERSION_11
19
+ targetCompatibility = JavaVersion .VERSION_11
20
+ }
21
+ dependencies {
22
+ implementation(project(" :resources:demo:shared" ))
23
+ implementation(" androidx.appcompat:appcompat:1.6.1" )
24
+ implementation(" androidx.activity:activity-compose:1.8.0" )
25
+ implementation(" androidx.compose.foundation:foundation:1.5.3" )
26
+ implementation(" androidx.compose.ui:ui:1.5.3" )
27
27
}
28
28
}
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" utf-8" ?>
2
- <manifest xmlns : android =" http://schemas.android.com/apk/res/android"
3
- package =" org.jetbrains.compose.resources.demo" >
2
+ <manifest xmlns : android =" http://schemas.android.com/apk/res/android" >
4
3
5
4
<application
6
5
android : allowBackup =" true"
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ plugins {
4
4
}
5
5
6
6
kotlin {
7
- jvm {}
7
+ jvm()
8
8
sourceSets {
9
9
val jvmMain by getting {
10
10
dependencies {
You can’t perform that action at this time.
0 commit comments