Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ android {
namespace = "com.shezik.drawanywhere"
compileSdk = 36

lint {
disable += "NullSafeMutableLiveData"
}

defaultConfig {
applicationId = "com.shezik.drawanywhere"
minSdk = 26
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ fun Modifier.stylusAwareDrawing(
val initialEvent = awaitPointerEvent()
val initialChange = initialEvent.changes.firstOrNull()

if (initialChange == null || !initialChange.pressed)
if (initialChange == null || !initialChange.pressed || initialChange.type != PointerType.Stylus)
return@awaitEachGesture

val strokeModifier = when {
Expand Down
6 changes: 3 additions & 3 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[versions]
agp = "8.11.1"
agp = "8.7.3"
compose = "1.9.0"
appcompat = "1.7.1"
datastorePreferences = "1.1.7"
kotlin = "2.2.10"
coreKtx = "1.17.0"
kotlin = "2.0.0"
coreKtx = "1.13.1"
junit = "4.13.2"
junitVersion = "1.3.0"
composeBom = "2025.08.00"
Expand Down
3 changes: 2 additions & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionSha256Sum=20f1b1176237254a6fc204d8434196fa11a4cfb387567519c61556e8710aed78
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

9 changes: 5 additions & 4 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ include(":app")

plugins {
id("com.autonomousapps.build-health") version "2.19.0"
id("org.jetbrains.kotlin.jvm") version "2.2.10" apply false
id("com.android.application") version "8.11.1" apply false
id("org.jetbrains.kotlin.android") version "2.2.10" apply false
}
id("org.jetbrains.kotlin.jvm") version "2.0.0" apply false
id("com.android.application") version "8.7.3" apply false
id("org.jetbrains.kotlin.android") version "2.0.0" apply false
}