Skip to content

Commit

Permalink
chore: Update demo app dependencies (#108)
Browse files Browse the repository at this point in the history
  • Loading branch information
svenjacobs authored Mar 3, 2024
1 parent 7e9133b commit af286e8
Show file tree
Hide file tree
Showing 12 changed files with 47 additions and 64 deletions.
4 changes: 2 additions & 2 deletions demo-app/androidApp/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ android {
compose = true
}
composeOptions {
kotlinCompilerExtensionVersion = "1.5.7"
kotlinCompilerExtensionVersion = "1.5.10"
}
packaging {
resources {
Expand All @@ -40,7 +40,7 @@ android {

dependencies {
implementation(project(":shared"))
implementation(platform("androidx.compose:compose-bom:2023.10.01"))
implementation(platform("androidx.compose:compose-bom:2024.02.01"))
implementation("androidx.compose.ui:ui")
implementation("androidx.compose.ui:ui-tooling")
implementation("androidx.compose.ui:ui-tooling-preview")
Expand Down
12 changes: 6 additions & 6 deletions demo-app/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import com.github.benmanes.gradle.versions.updates.DependencyUpdatesTask

plugins {
id("com.android.application").version("8.2.1").apply(false)
id("com.android.library").version("8.2.1").apply(false)
kotlin("android").version("1.9.21").apply(false)
kotlin("multiplatform").version("1.9.21").apply(false)
id("org.jetbrains.compose").version("1.5.11").apply(false)
id("com.github.ben-manes.versions").version("0.50.0")
id("com.android.application").version("8.3.0").apply(false)
id("com.android.library").version("8.3.0").apply(false)
kotlin("android").version("1.9.22").apply(false)
kotlin("multiplatform").version("1.9.22").apply(false)
id("org.jetbrains.compose").version("1.6.0").apply(false)
id("com.github.ben-manes.versions").version("0.51.0")
}

tasks.register("clean", Delete::class) {
Expand Down
Empty file.
Binary file modified demo-app/gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion demo-app/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
Expand Down
14 changes: 7 additions & 7 deletions demo-app/gradlew
Original file line number Diff line number Diff line change
Expand Up @@ -145,15 +145,15 @@ if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
case $MAX_FD in #(
max*)
# In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked.
# shellcheck disable=SC3045
# shellcheck disable=SC2039,SC3045
MAX_FD=$( ulimit -H -n ) ||
warn "Could not query maximum file descriptor limit"
esac
case $MAX_FD in #(
'' | soft) :;; #(
*)
# In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.
# shellcheck disable=SC3045
# shellcheck disable=SC2039,SC3045
ulimit -n "$MAX_FD" ||
warn "Could not set maximum file descriptor limit to $MAX_FD"
esac
Expand Down Expand Up @@ -202,11 +202,11 @@ fi
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'

# Collect all arguments for the java command;
# * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of
# shell script including quotes and variable substitutions, so put them in
# double quotes to make sure that they get re-expanded; and
# * put everything else in single quotes, so that it's not re-expanded.
# Collect all arguments for the java command:
# * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
# and any embedded shellness will be escaped.
# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be
# treated as '${Hostname}' itself on the command line.

set -- \
"-Dorg.gradle.appname=$APP_BASE_NAME" \
Expand Down
2 changes: 1 addition & 1 deletion demo-app/settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ dependencyResolutionManagement {
}
}

rootProject.name = "Reveal Demo"
rootProject.name = "RevealDemo"
include(
":shared",
":androidApp",
Expand Down
31 changes: 14 additions & 17 deletions demo-app/shared/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -30,24 +30,21 @@ kotlin {
}

sourceSets {
val commonMain by getting {
dependencies {
val revealVersion = "3.0.2"

implementation(compose.runtime)
implementation(compose.foundation)
implementation(compose.material3)
@OptIn(org.jetbrains.compose.ExperimentalComposeLibrary::class)
implementation(compose.components.resources)

implementation("com.svenjacobs.reveal:reveal-core:$revealVersion")
implementation("com.svenjacobs.reveal:reveal-shapes:$revealVersion")
}
commonMain.dependencies {
val revealVersion = "3.0.3"

implementation(compose.runtime)
implementation(compose.foundation)
implementation(compose.material3)
@OptIn(org.jetbrains.compose.ExperimentalComposeLibrary::class)
implementation(compose.components.resources)

implementation("com.svenjacobs.reveal:reveal-core:$revealVersion")
implementation("com.svenjacobs.reveal:reveal-shapes:$revealVersion")
}
val commonTest by getting {
dependencies {
implementation(kotlin("test"))
}

commonTest.dependencies {
implementation(kotlin("test"))
}
}
}
Expand Down
Empty file.
16 changes: 5 additions & 11 deletions reveal-common/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,14 @@ val publicationName by extra { "Reveal (Common)" }

kotlin {
sourceSets {
val commonMain by getting {
dependencies {
implementation(compose.runtime)
implementation(compose.foundation)
}
commonMain.dependencies {
implementation(compose.runtime)
implementation(compose.foundation)
}
val commonTest by getting {
dependencies {
implementation(kotlin("test"))
}
commonTest.dependencies {
implementation(kotlin("test"))
}
}

explicitApi()
}

val androidMinSdk: Int by rootProject.extra
Expand Down
16 changes: 6 additions & 10 deletions reveal-core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,13 @@ val publicationName by extra { "Reveal (Core)" }

kotlin {
sourceSets {
val commonMain by getting {
dependencies {
api(project(":reveal-common"))
implementation(compose.runtime)
implementation(compose.foundation)
}
commonMain.dependencies {
api(project(":reveal-common"))
implementation(compose.runtime)
implementation(compose.foundation)
}
val commonTest by getting {
dependencies {
implementation(kotlin("test"))
}
commonTest.dependencies {
implementation(kotlin("test"))
}
}
}
Expand Down
14 changes: 5 additions & 9 deletions reveal-shapes/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,12 @@ val publicationName by extra { "Reveal (Shapes)" }

kotlin {
sourceSets {
val commonMain by getting {
dependencies {
implementation(compose.runtime)
implementation(compose.foundation)
}
commonMain.dependencies {
implementation(compose.runtime)
implementation(compose.foundation)
}
val commonTest by getting {
dependencies {
implementation(kotlin("test"))
}
commonTest.dependencies {
implementation(kotlin("test"))
}
}
}
Expand Down

0 comments on commit af286e8

Please sign in to comment.