Browse Source

Update examples (#1740)

* Update examples to Gradle 7.3.3

Resolves #1654

* Update compose and agp in examples

Resolves #1117

* Fix gradle plugins classloading in examples and templates

* Make falling balls mpp compatible with examples checker
pull/1747/head
Alexey Tsvetkov 3 years ago committed by GitHub
parent
commit
d23806a3f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      examples/codeviewer/android/build.gradle.kts
  2. 21
      examples/codeviewer/build.gradle.kts
  3. 10
      examples/codeviewer/common/build.gradle.kts
  4. 4
      examples/codeviewer/gradle.properties
  5. 2
      examples/codeviewer/gradle/wrapper/gradle-wrapper.properties
  6. 1
      examples/codeviewer/settings.gradle.kts
  7. 2
      examples/falling-balls/build.gradle.kts
  8. 2
      examples/falling-balls/gradle.properties
  9. 2
      examples/falling-balls/gradle/wrapper/gradle-wrapper.properties
  10. 4
      examples/imageviewer/android/build.gradle.kts
  11. 13
      examples/imageviewer/build.gradle.kts
  12. 4
      examples/imageviewer/common/build.gradle.kts
  13. 4
      examples/imageviewer/gradle.properties
  14. 2
      examples/imageviewer/gradle/wrapper/gradle-wrapper.properties
  15. 4
      examples/intellij-plugin/build.gradle.kts
  16. 2
      examples/intellij-plugin/gradle.properties
  17. 2
      examples/intellij-plugin/gradle/wrapper/gradle-wrapper.properties
  18. 4
      examples/issues/android/build.gradle.kts
  19. 14
      examples/issues/build.gradle.kts
  20. 4
      examples/issues/gradle.properties
  21. 2
      examples/issues/gradle/wrapper/gradle-wrapper.properties
  22. 2
      examples/notepad/gradle.properties
  23. 2
      examples/notepad/gradle/wrapper/gradle-wrapper.properties
  24. 4
      examples/todoapp-lite/android/build.gradle.kts
  25. 13
      examples/todoapp-lite/build.gradle.kts
  26. 4
      examples/todoapp-lite/common/build.gradle.kts
  27. 4
      examples/todoapp-lite/gradle.properties
  28. 2
      examples/todoapp-lite/gradle/wrapper/gradle-wrapper.properties
  29. 4
      examples/todoapp/android/build.gradle.kts
  30. 3
      examples/todoapp/android/src/main/AndroidManifest.xml
  31. 2
      examples/todoapp/buildSrc/buildSrc/src/main/kotlin/Deps.kt
  32. 2
      examples/todoapp/buildSrc/gradle.properties
  33. 4
      examples/todoapp/buildSrc/src/main/kotlin/android-setup.gradle.kts
  34. 4
      examples/todoapp/buildSrc/src/main/kotlin/multiplatform-compose-setup.gradle.kts
  35. 2
      examples/todoapp/buildSrc/src/main/kotlin/multiplatform-setup.gradle.kts
  36. 2
      examples/todoapp/gradle.properties
  37. 2
      examples/todoapp/gradle/wrapper/gradle-wrapper.properties
  38. 2
      examples/visual-effects/gradle.properties
  39. 2
      examples/visual-effects/gradle/wrapper/gradle-wrapper.properties
  40. 2
      examples/web-compose-bird/gradle.properties
  41. 2
      examples/web-compose-bird/gradle/wrapper/gradle-wrapper.properties
  42. 2
      examples/web-compose-in-js/gradle/wrapper/gradle-wrapper.properties
  43. 2
      examples/web-landing/gradle.properties
  44. 2
      examples/web-landing/gradle/wrapper/gradle-wrapper.properties
  45. 2
      examples/web-with-react/gradle.properties
  46. 2
      examples/web-with-react/gradle/wrapper/gradle-wrapper.properties
  47. 4
      examples/widgets-gallery/android/build.gradle.kts
  48. 13
      examples/widgets-gallery/build.gradle.kts
  49. 8
      experimental/examples/falling-balls-mpp/build.gradle.kts
  50. 7
      experimental/examples/falling-balls-mpp/gradle.properties
  51. 2
      experimental/examples/falling-balls-mpp/gradle/wrapper/gradle-wrapper.properties
  52. 12
      experimental/examples/falling-balls-mpp/settings.gradle.kts
  53. 1
      experimental/lwjgl-integration/build.gradle.kts
  54. 1
      templates/desktop-template/build.gradle.kts
  55. 2
      templates/desktop-template/gradle.properties
  56. 2
      templates/desktop-template/gradle/wrapper/gradle-wrapper.properties
  57. 4
      templates/multiplatform-template/android/build.gradle.kts
  58. 13
      templates/multiplatform-template/build.gradle.kts
  59. 6
      templates/multiplatform-template/common/build.gradle.kts
  60. 2
      templates/multiplatform-template/gradle.properties
  61. 2
      templates/multiplatform-template/gradle/wrapper/gradle-wrapper.properties
  62. 2
      templates/web-template/gradle.properties
  63. 2
      templates/web-template/gradle/wrapper/gradle-wrapper.properties

6
examples/codeviewer/android/build.gradle.kts

@ -15,12 +15,12 @@ android {
} }
compileOptions { compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8 sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_1_8 targetCompatibility = JavaVersion.VERSION_11
} }
} }
dependencies { dependencies {
implementation(project(":common")) implementation(project(":common"))
implementation("androidx.activity:activity-compose:1.3.1") implementation("androidx.activity:activity-compose:1.4.0")
} }

21
examples/codeviewer/build.gradle.kts

@ -1,7 +1,26 @@
allprojects { import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
// this is necessary to avoid the plugins to be loaded multiple times
// in each subproject's classloader
kotlin("jvm") apply false
kotlin("multiplatform") apply false
kotlin("android") apply false
id("com.android.application") apply false
id("com.android.library") apply false
id("org.jetbrains.compose") apply false
}
subprojects {
repositories { repositories {
google() google()
mavenCentral() mavenCentral()
maven("https://maven.pkg.jetbrains.space/public/p/compose/dev") maven("https://maven.pkg.jetbrains.space/public/p/compose/dev")
} }
plugins.withId("org.jetbrains.kotlin.multiplatform") {
tasks.withType<KotlinCompile> {
kotlinOptions.freeCompilerArgs += "-Xopt-in=kotlin.RequiresOptIn"
}
}
} }

10
examples/codeviewer/common/build.gradle.kts

@ -22,8 +22,8 @@ kotlin {
named("androidMain") { named("androidMain") {
kotlin.srcDirs("src/jvmMain/kotlin") kotlin.srcDirs("src/jvmMain/kotlin")
dependencies { dependencies {
api("androidx.appcompat:appcompat:1.3.0-beta01") api("androidx.appcompat:appcompat:1.4.1")
api("androidx.core:core-ktx:1.3.1") api("androidx.core:core-ktx:1.7.0")
} }
} }
named("desktopMain") { named("desktopMain") {
@ -41,13 +41,11 @@ android {
defaultConfig { defaultConfig {
minSdkVersion(21) minSdkVersion(21)
targetSdkVersion(31) targetSdkVersion(31)
versionCode = 1
versionName = "1.0"
} }
compileOptions { compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8 sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_1_8 targetCompatibility = JavaVersion.VERSION_11
} }
sourceSets { sourceSets {

4
examples/codeviewer/gradle.properties

@ -20,5 +20,5 @@ android.enableJetifier=true
# Kotlin code style for this project: "official" or "obsolete": # Kotlin code style for this project: "official" or "obsolete":
kotlin.code.style=official kotlin.code.style=official
kotlin.version=1.6.10 kotlin.version=1.6.10
agp.version=4.2.2 agp.version=7.0.4
compose.version=1.0.1-rc2 compose.version=1.0.1

2
examples/codeviewer/gradle/wrapper/gradle-wrapper.properties vendored

@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.1.1-bin.zip distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-bin.zip
zipStoreBase=GRADLE_USER_HOME zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists zipStorePath=wrapper/dists

1
examples/codeviewer/settings.gradle.kts

@ -13,6 +13,7 @@ pluginManagement {
kotlin("jvm").version(kotlinVersion) kotlin("jvm").version(kotlinVersion)
kotlin("multiplatform").version(kotlinVersion) kotlin("multiplatform").version(kotlinVersion)
kotlin("android").version(kotlinVersion) kotlin("android").version(kotlinVersion)
id("com.android.base").version(agpVersion)
id("com.android.application").version(agpVersion) id("com.android.application").version(agpVersion)
id("com.android.library").version(agpVersion) id("com.android.library").version(agpVersion)
id("org.jetbrains.compose").version(composeVersion) id("org.jetbrains.compose").version(composeVersion)

2
examples/falling-balls/build.gradle.kts

@ -7,7 +7,7 @@ plugins {
id("org.jetbrains.compose") id("org.jetbrains.compose")
} }
group = "me.user" group = "org.jetbrains.compose.demo.falling"
version = "1.0" version = "1.0"
repositories { repositories {

2
examples/falling-balls/gradle.properties

@ -1,3 +1,3 @@
kotlin.code.style=official kotlin.code.style=official
kotlin.version=1.6.10 kotlin.version=1.6.10
compose.version=1.0.1-rc2 compose.version=1.0.1

2
examples/falling-balls/gradle/wrapper/gradle-wrapper.properties vendored

@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.1.1-bin.zip distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-bin.zip
zipStoreBase=GRADLE_USER_HOME zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists zipStorePath=wrapper/dists

4
examples/imageviewer/android/build.gradle.kts

@ -15,8 +15,8 @@ android {
} }
compileOptions { compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8 sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_1_8 targetCompatibility = JavaVersion.VERSION_11
} }
} }

13
examples/imageviewer/build.gradle.kts

@ -1,4 +1,15 @@
allprojects { plugins {
// this is necessary to avoid the plugins to be loaded multiple times
// in each subproject's classloader
kotlin("jvm") apply false
kotlin("multiplatform") apply false
kotlin("android") apply false
id("com.android.application") apply false
id("com.android.library") apply false
id("org.jetbrains.compose") apply false
}
subprojects {
repositories { repositories {
google() google()
mavenCentral() mavenCentral()

4
examples/imageviewer/common/build.gradle.kts

@ -43,8 +43,8 @@ android {
} }
compileOptions { compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8 sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_1_8 targetCompatibility = JavaVersion.VERSION_11
} }
sourceSets { sourceSets {

4
examples/imageviewer/gradle.properties

@ -20,5 +20,5 @@ android.enableJetifier=true
# Kotlin code style for this project: "official" or "obsolete": # Kotlin code style for this project: "official" or "obsolete":
kotlin.code.style=official kotlin.code.style=official
kotlin.version=1.6.10 kotlin.version=1.6.10
agp.version=4.2.2 agp.version=7.0.4
compose.version=1.0.1-rc2 compose.version=1.0.1

2
examples/imageviewer/gradle/wrapper/gradle-wrapper.properties vendored

@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.1.1-bin.zip distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-bin.zip
zipStoreBase=GRADLE_USER_HOME zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists zipStorePath=wrapper/dists

4
examples/intellij-plugin/build.gradle.kts

@ -1,7 +1,7 @@
import org.jetbrains.compose.compose import org.jetbrains.compose.compose
plugins { plugins {
id("org.jetbrains.intellij") version "1.1.4" id("org.jetbrains.intellij") version "1.3.0"
java java
kotlin("jvm") kotlin("jvm")
id("org.jetbrains.compose") id("org.jetbrains.compose")
@ -24,7 +24,7 @@ dependencies {
// See https://github.com/JetBrains/gradle-intellij-plugin/ // See https://github.com/JetBrains/gradle-intellij-plugin/
intellij { intellij {
version.set("2021.2") version.set("2021.3")
} }
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> { tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {

2
examples/intellij-plugin/gradle.properties

@ -1,3 +1,3 @@
kotlin.code.style=official kotlin.code.style=official
kotlin.version=1.6.10 kotlin.version=1.6.10
compose.version=1.0.1-rc2 compose.version=1.0.1

2
examples/intellij-plugin/gradle/wrapper/gradle-wrapper.properties vendored

@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.1.1-bin.zip distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-bin.zip
zipStoreBase=GRADLE_USER_HOME zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists zipStorePath=wrapper/dists

4
examples/issues/android/build.gradle.kts

@ -15,8 +15,8 @@ android {
} }
compileOptions { compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8 sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_1_8 targetCompatibility = JavaVersion.VERSION_11
} }
} }

14
examples/issues/build.gradle.kts

@ -1,6 +1,16 @@
allprojects { plugins {
// this is necessary to avoid the plugins to be loaded multiple times
// in each subproject's classloader
kotlin("jvm") apply false
kotlin("multiplatform") apply false
kotlin("android") apply false
id("com.android.application") apply false
id("com.android.library") apply false
id("org.jetbrains.compose") apply false
}
subprojects {
repositories { repositories {
mavenLocal()
google() google()
mavenCentral() mavenCentral()
maven("https://maven.pkg.jetbrains.space/public/p/compose/dev") maven("https://maven.pkg.jetbrains.space/public/p/compose/dev")

4
examples/issues/gradle.properties

@ -20,5 +20,5 @@ android.useAndroidX=true
# Automatically convert third-party libraries to use AndroidX # Automatically convert third-party libraries to use AndroidX
android.enableJetifier=true android.enableJetifier=true
kotlin.version=1.6.10 kotlin.version=1.6.10
agp.version=4.2.2 agp.version=7.0.4
compose.version=1.0.1-rc2 compose.version=1.0.1

2
examples/issues/gradle/wrapper/gradle-wrapper.properties vendored

@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.1.1-bin.zip distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-bin.zip
zipStoreBase=GRADLE_USER_HOME zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists zipStorePath=wrapper/dists

2
examples/notepad/gradle.properties

@ -1,4 +1,4 @@
org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8 org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8
kotlin.code.style=official kotlin.code.style=official
kotlin.version=1.6.10 kotlin.version=1.6.10
compose.version=1.0.1-rc2 compose.version=1.0.1

2
examples/notepad/gradle/wrapper/gradle-wrapper.properties vendored

@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.1.1-bin.zip distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-bin.zip
zipStoreBase=GRADLE_USER_HOME zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists zipStorePath=wrapper/dists

4
examples/todoapp-lite/android/build.gradle.kts

@ -15,8 +15,8 @@ android {
} }
compileOptions { compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8 sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_1_8 targetCompatibility = JavaVersion.VERSION_11
} }
} }

13
examples/todoapp-lite/build.gradle.kts

@ -1,4 +1,15 @@
allprojects { plugins {
// this is necessary to avoid the plugins to be loaded multiple times
// in each subproject's classloader
kotlin("jvm") apply false
kotlin("multiplatform") apply false
kotlin("android") apply false
id("com.android.application") apply false
id("com.android.library") apply false
id("org.jetbrains.compose") apply false
}
subprojects {
repositories { repositories {
google() google()
mavenCentral() mavenCentral()

4
examples/todoapp-lite/common/build.gradle.kts

@ -30,8 +30,8 @@ android {
} }
compileOptions { compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8 sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_1_8 targetCompatibility = JavaVersion.VERSION_11
} }
sourceSets { sourceSets {

4
examples/todoapp-lite/gradle.properties

@ -20,5 +20,5 @@ android.enableJetifier=true
# Kotlin code style for this project: "official" or "obsolete": # Kotlin code style for this project: "official" or "obsolete":
kotlin.code.style=official kotlin.code.style=official
kotlin.version=1.6.10 kotlin.version=1.6.10
agp.version=4.2.2 agp.version=7.0.4
compose.version=1.0.1-rc2 compose.version=1.0.1

2
examples/todoapp-lite/gradle/wrapper/gradle-wrapper.properties vendored

@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.1.1-bin.zip distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-bin.zip
zipStoreBase=GRADLE_USER_HOME zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists zipStorePath=wrapper/dists

4
examples/todoapp/android/build.gradle.kts

@ -17,8 +17,8 @@ android {
} }
compileOptions { compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8 sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_1_8 targetCompatibility = JavaVersion.VERSION_11
} }
packagingOptions { packagingOptions {

3
examples/todoapp/android/src/main/AndroidManifest.xml

@ -16,7 +16,8 @@
android:theme="@style/Theme.AppCompat.Light.NoActionBar"> android:theme="@style/Theme.AppCompat.Light.NoActionBar">
<activity <activity
android:name="example.todo.android.MainActivity" android:name="example.todo.android.MainActivity"
android:label="@string/app_name"> android:label="@string/app_name"
android:exported="false">
<intent-filter> <intent-filter>
<action android:name="android.intent.action.MAIN" /> <action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" /> <category android:name="android.intent.category.LAUNCHER" />

2
examples/todoapp/buildSrc/buildSrc/src/main/kotlin/Deps.kt

@ -29,7 +29,7 @@ object Deps {
object Android { object Android {
object Tools { object Tools {
object Build { object Build {
const val gradlePlugin = "com.android.tools.build:gradle:4.1.0" const val gradlePlugin = "com.android.tools.build:gradle:7.0.4"
} }
} }
} }

2
examples/todoapp/buildSrc/gradle.properties

@ -1,3 +1,3 @@
# TODO can we get rid of duplication with root gradle.properties? # TODO can we get rid of duplication with root gradle.properties?
kotlin.version=1.6.10 kotlin.version=1.6.10
compose.version=1.0.1-rc2 compose.version=1.0.1

4
examples/todoapp/buildSrc/src/main/kotlin/android-setup.gradle.kts

@ -13,8 +13,8 @@ android {
} }
compileOptions { compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8 sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_1_8 targetCompatibility = JavaVersion.VERSION_11
} }
sourceSets { sourceSets {

4
examples/todoapp/buildSrc/src/main/kotlin/multiplatform-compose-setup.gradle.kts

@ -23,7 +23,7 @@ kotlin {
named("androidMain") { named("androidMain") {
dependencies { dependencies {
implementation("androidx.appcompat:appcompat:1.3.0-beta01") implementation("androidx.appcompat:appcompat:1.3.0")
implementation("androidx.core:core-ktx:1.3.1") implementation("androidx.core:core-ktx:1.3.1")
} }
} }
@ -36,6 +36,6 @@ kotlin {
} }
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> { tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
kotlinOptions.jvmTarget = "1.8" kotlinOptions.jvmTarget = "11"
} }
} }

2
examples/todoapp/buildSrc/src/main/kotlin/multiplatform-setup.gradle.kts

@ -40,6 +40,6 @@ kotlin {
} }
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> { tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
kotlinOptions.jvmTarget = "1.8" kotlinOptions.jvmTarget = "11"
} }
} }

2
examples/todoapp/gradle.properties

@ -24,4 +24,4 @@ org.gradle.caching=true
kotlin.native.disableCompilerDaemon=true kotlin.native.disableCompilerDaemon=true
kotlin.version=1.6.10 kotlin.version=1.6.10
compose.version=1.0.1-rc2 compose.version=1.0.1

2
examples/todoapp/gradle/wrapper/gradle-wrapper.properties vendored

@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.1.1-bin.zip distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-bin.zip
zipStoreBase=GRADLE_USER_HOME zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists zipStorePath=wrapper/dists

2
examples/visual-effects/gradle.properties

@ -1,3 +1,3 @@
kotlin.code.style=official kotlin.code.style=official
kotlin.version=1.6.10 kotlin.version=1.6.10
compose.version=1.0.1-rc2 compose.version=1.0.1

2
examples/visual-effects/gradle/wrapper/gradle-wrapper.properties vendored

@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.1.1-bin.zip distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-bin.zip
zipStoreBase=GRADLE_USER_HOME zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists zipStorePath=wrapper/dists

2
examples/web-compose-bird/gradle.properties

@ -1,4 +1,4 @@
kotlin.code.style=official kotlin.code.style=official
org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=1024m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=1024m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
kotlin.version=1.6.10 kotlin.version=1.6.10
compose.version=1.0.1-rc2 compose.version=1.0.1

2
examples/web-compose-bird/gradle/wrapper/gradle-wrapper.properties vendored

@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.1.1-bin.zip distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-bin.zip
zipStoreBase=GRADLE_USER_HOME zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists zipStorePath=wrapper/dists

2
examples/web-compose-in-js/gradle/wrapper/gradle-wrapper.properties vendored

@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.1-bin.zip distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-bin.zip
zipStoreBase=GRADLE_USER_HOME zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists zipStorePath=wrapper/dists

2
examples/web-landing/gradle.properties

@ -1,3 +1,3 @@
kotlin.code.style=official kotlin.code.style=official
kotlin.version=1.6.10 kotlin.version=1.6.10
compose.version=1.0.1-rc2 compose.version=1.0.1

2
examples/web-landing/gradle/wrapper/gradle-wrapper.properties vendored

@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.1.1-bin.zip distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-bin.zip
zipStoreBase=GRADLE_USER_HOME zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists zipStorePath=wrapper/dists

2
examples/web-with-react/gradle.properties

@ -1,3 +1,3 @@
kotlin.code.style=official kotlin.code.style=official
kotlin.version=1.6.10 kotlin.version=1.6.10
compose.version=1.0.1-rc2 compose.version=1.0.1

2
examples/web-with-react/gradle/wrapper/gradle-wrapper.properties vendored

@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.1.1-bin.zip distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-bin.zip
zipStoreBase=GRADLE_USER_HOME zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists zipStorePath=wrapper/dists

4
examples/widgets-gallery/android/build.gradle.kts

@ -15,8 +15,8 @@ android {
} }
compileOptions { compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8 sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_1_8 targetCompatibility = JavaVersion.VERSION_11
} }
} }

13
examples/widgets-gallery/build.gradle.kts

@ -1,4 +1,15 @@
allprojects { plugins {
// this is necessary to avoid the plugins to be loaded multiple times
// in each subproject's classloader
kotlin("jvm") apply false
kotlin("multiplatform") apply false
kotlin("android") apply false
id("com.android.application") apply false
id("com.android.library") apply false
id("org.jetbrains.compose") apply false
}
subprojects {
repositories { repositories {
google() google()
mavenCentral() mavenCentral()

8
experimental/examples/falling-balls-mpp/build.gradle.kts

@ -14,8 +14,8 @@ buildscript {
} }
plugins { plugins {
kotlin("multiplatform") version "1.6.10" kotlin("multiplatform")
id("org.jetbrains.compose") version "1.1.0-beta04" id("org.jetbrains.compose")
} }
version = "1.0-SNAPSHOT" version = "1.0-SNAPSHOT"
@ -23,9 +23,9 @@ version = "1.0-SNAPSHOT"
repositories { repositories {
mavenLocal() mavenLocal()
mavenCentral() mavenCentral()
google() gradlePluginPortal()
maven("https://maven.pkg.jetbrains.space/public/p/compose/dev") maven("https://maven.pkg.jetbrains.space/public/p/compose/dev")
} google()}
kotlin { kotlin {
jvm("desktop") jvm("desktop")

7
experimental/examples/falling-balls-mpp/gradle.properties

@ -1,5 +1,8 @@
org.gradle.jvmargs=-Xmx3g
compose.version=1.1.0-beta04
kotlin.version=1.6.10
kotlin.code.style=official
kotlin.native.cacheKind=none kotlin.native.cacheKind=none
kotlin.native.useEmbeddableCompilerJar=true kotlin.native.useEmbeddableCompilerJar=true
org.gradle.jvmargs=-Xmx3g
kotlin.mpp.enableGranularSourceSetsMetadata=true
kotlin.native.enableDependencyPropagation=false kotlin.native.enableDependencyPropagation=false
kotlin.mpp.enableGranularSourceSetsMetadata=true

2
experimental/examples/falling-balls-mpp/gradle/wrapper/gradle-wrapper.properties vendored

@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.1.1-bin.zip distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-bin.zip
zipStoreBase=GRADLE_USER_HOME zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists zipStorePath=wrapper/dists

12
experimental/examples/falling-balls-mpp/settings.gradle.kts

@ -1,12 +1,20 @@
pluginManagement { pluginManagement {
repositories { repositories {
mavenLocal() mavenLocal()
gradlePluginPortal()
mavenCentral() mavenCentral()
maven { url = uri("https://maven.pkg.jetbrains.space/public/p/compose/dev") } gradlePluginPortal()
maven("https://maven.pkg.jetbrains.space/public/p/compose/dev")
google() google()
} }
plugins {
val kotlinVersion = extra["kotlin.version"] as String
kotlin("multiplatform").version(kotlinVersion)
val composeVersion = extra["compose.version"] as String
id("org.jetbrains.compose").version(composeVersion)
} }
}
rootProject.name = "falling-balls-mpp" rootProject.name = "falling-balls-mpp"

1
experimental/lwjgl-integration/build.gradle.kts

@ -35,7 +35,6 @@ compose.desktop {
mainClass = "MainKt" mainClass = "MainKt"
nativeDistributions { nativeDistributions {
appResourcesRootDir.set(project.layout.projectDirectory.dir("xxx"))
targetFormats(TargetFormat.Dmg, TargetFormat.Msi, TargetFormat.Deb) targetFormats(TargetFormat.Dmg, TargetFormat.Msi, TargetFormat.Deb)
packageName = "KotlinJvmComposeDesktopApplication" packageName = "KotlinJvmComposeDesktopApplication"
packageVersion = "1.0.0" packageVersion = "1.0.0"

1
templates/desktop-template/build.gradle.kts

@ -25,7 +25,6 @@ compose.desktop {
mainClass = "MainKt" mainClass = "MainKt"
nativeDistributions { nativeDistributions {
appResourcesRootDir.set(project.layout.projectDirectory.dir("xxx"))
targetFormats(TargetFormat.Dmg, TargetFormat.Msi, TargetFormat.Deb) targetFormats(TargetFormat.Dmg, TargetFormat.Msi, TargetFormat.Deb)
packageName = "KotlinJvmComposeDesktopApplication" packageName = "KotlinJvmComposeDesktopApplication"
packageVersion = "1.0.0" packageVersion = "1.0.0"

2
templates/desktop-template/gradle.properties

@ -1,4 +1,4 @@
org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8 org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8
kotlin.code.style=official kotlin.code.style=official
kotlin.version=1.6.10 kotlin.version=1.6.10
compose.version=1.0.1-rc2 compose.version=1.0.1

2
templates/desktop-template/gradle/wrapper/gradle-wrapper.properties vendored

@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.1.1-bin.zip distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-bin.zip
zipStoreBase=GRADLE_USER_HOME zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists zipStorePath=wrapper/dists

4
templates/multiplatform-template/android/build.gradle.kts

@ -15,8 +15,8 @@ android {
} }
compileOptions { compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8 sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_1_8 targetCompatibility = JavaVersion.VERSION_11
} }
} }

13
templates/multiplatform-template/build.gradle.kts

@ -1,4 +1,15 @@
allprojects { plugins {
// this is necessary to avoid the plugins to be loaded multiple times
// in each subproject's classloader
kotlin("jvm") apply false
kotlin("multiplatform") apply false
kotlin("android") apply false
id("com.android.application") apply false
id("com.android.library") apply false
id("org.jetbrains.compose") apply false
}
subprojects {
repositories { repositories {
google() google()
mavenCentral() mavenCentral()

6
templates/multiplatform-template/common/build.gradle.kts

@ -35,13 +35,11 @@ android {
defaultConfig { defaultConfig {
minSdkVersion(21) minSdkVersion(21)
targetSdkVersion(31) targetSdkVersion(31)
versionCode = 1
versionName = "1.0"
} }
compileOptions { compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8 sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_1_8 targetCompatibility = JavaVersion.VERSION_11
} }
sourceSets { sourceSets {

2
templates/multiplatform-template/gradle.properties

@ -3,5 +3,5 @@ android.useAndroidX=true
android.enableJetifier=true android.enableJetifier=true
kotlin.code.style=official kotlin.code.style=official
kotlin.version=1.6.10 kotlin.version=1.6.10
agp.version=4.2.2 agp.version=7.0.4
compose.version=1.0.1 compose.version=1.0.1

2
templates/multiplatform-template/gradle/wrapper/gradle-wrapper.properties vendored

@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.1.1-bin.zip distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-bin.zip
zipStoreBase=GRADLE_USER_HOME zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists zipStorePath=wrapper/dists

2
templates/web-template/gradle.properties

@ -1,4 +1,4 @@
org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8 org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8
kotlin.code.style=official kotlin.code.style=official
kotlin.version=1.6.10 kotlin.version=1.6.10
compose.version=1.0.1-rc2 compose.version=1.0.1

2
templates/web-template/gradle/wrapper/gradle-wrapper.properties vendored

@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.1.1-bin.zip distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-bin.zip
zipStoreBase=GRADLE_USER_HOME zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists zipStorePath=wrapper/dists

Loading…
Cancel
Save