diff --git a/README.md b/README.md index 8200a83f4..37d5ea1c1 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ repositories { } dependencies { - implementation 'earth.worldwind:worldwind:1.5.23' + implementation 'earth.worldwind:worldwind:1.5.25' } ``` diff --git a/build.gradle.kts b/build.gradle.kts index de723996d..fbb12235d 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -10,13 +10,13 @@ plugins { buildscript { dependencies { - classpath("dev.icerock.moko:resources-generator:0.24.1") + classpath("dev.icerock.moko:resources-generator:0.24.2") } } allprojects { group = "earth.worldwind" - version = "1.5.23" + version = "1.5.25" extra.apply { set("minSdk", 21) diff --git a/worldwind-examples-android/build.gradle.kts b/worldwind-examples-android/build.gradle.kts index ba380e603..2dcd36302 100644 --- a/worldwind-examples-android/build.gradle.kts +++ b/worldwind-examples-android/build.gradle.kts @@ -37,11 +37,11 @@ android { dependencies { implementation(project(":worldwind")) - implementation("androidx.appcompat:appcompat:1.6.1") - implementation("androidx.lifecycle:lifecycle-runtime-ktx:2.7.0") - implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.8.0") - implementation("com.google.android.material:material:1.11.0") + implementation("androidx.appcompat:appcompat:1.7.0") + implementation("androidx.lifecycle:lifecycle-runtime-ktx:2.8.6") + implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.8.1") + implementation("com.google.android.material:material:1.12.0") implementation("io.github.missioncommand:mil-sym-android-renderer:0.1.60") - coreLibraryDesugaring("com.android.tools:desugar_jdk_libs:2.0.4") + coreLibraryDesugaring("com.android.tools:desugar_jdk_libs:2.1.2") } \ No newline at end of file diff --git a/worldwind-tutorials/build.gradle.kts b/worldwind-tutorials/build.gradle.kts index 5f7d58e56..63aaf983e 100644 --- a/worldwind-tutorials/build.gradle.kts +++ b/worldwind-tutorials/build.gradle.kts @@ -38,10 +38,10 @@ kotlin { val androidMain by getting { dependsOn(commonMain) dependencies { - implementation("androidx.appcompat:appcompat:1.6.1") - implementation("androidx.lifecycle:lifecycle-runtime-ktx:2.7.0") - implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.8.0") - implementation("com.google.android.material:material:1.11.0") + implementation("androidx.appcompat:appcompat:1.7.0") + implementation("androidx.lifecycle:lifecycle-runtime-ktx:2.8.6") + implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.8.1") + implementation("com.google.android.material:material:1.12.0") } } all { @@ -83,5 +83,5 @@ android { } dependencies { - coreLibraryDesugaring("com.android.tools:desugar_jdk_libs:2.0.4") + coreLibraryDesugaring("com.android.tools:desugar_jdk_libs:2.1.2") } \ No newline at end of file diff --git a/worldwind/build.gradle.kts b/worldwind/build.gradle.kts index d9f2f3cb8..29b5358bf 100644 --- a/worldwind/build.gradle.kts +++ b/worldwind/build.gradle.kts @@ -40,13 +40,13 @@ kotlin { } sourceSets { val mockkVersion = "1.13.10" - val mokoVersion = "0.24.1" + val mokoVersion = "0.24.2" val ktorVersion = "2.3.10" val ormliteVersion = "6.1" val commonMain by getting { dependencies { - api("org.jetbrains.kotlinx:kotlinx-datetime:0.6.0") - api("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.8.0") + api("org.jetbrains.kotlinx:kotlinx-datetime:0.6.1") + api("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.8.1") implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.6.3") implementation("io.ktor:ktor-client-core:$ktorVersion") implementation("io.github.pdvrieze.xmlutil:serialization:0.86.3") @@ -113,7 +113,7 @@ kotlin { val androidMain by getting { dependsOn(jvmCommonMain) dependencies { - implementation("androidx.annotation:annotation:1.8.0") + implementation("androidx.annotation:annotation:1.8.2") implementation("androidx.appcompat:appcompat-resources:1.7.0") implementation("io.github.missioncommand:mil-sym-android-renderer:0.1.60") implementation("com.j256.ormlite:ormlite-android:$ormliteVersion") @@ -126,8 +126,8 @@ kotlin { dependencies { implementation(kotlin("test-junit")) implementation("io.mockk:mockk-android:$mockkVersion") - implementation("androidx.test.ext:junit:1.1.5") - implementation("androidx.test:rules:1.5.0") + implementation("androidx.test.ext:junit:1.2.1") + implementation("androidx.test:rules:1.6.1") } } all { @@ -167,7 +167,7 @@ android { } dependencies { - coreLibraryDesugaring("com.android.tools:desugar_jdk_libs:2.0.4") + coreLibraryDesugaring("com.android.tools:desugar_jdk_libs:2.1.2") } // Do not generate Intrinsics runtime assertion for performance reasons diff --git a/worldwind/src/androidMain/kotlin/earth/worldwind/gesture/SelectDragDetector.kt b/worldwind/src/androidMain/kotlin/earth/worldwind/gesture/SelectDragDetector.kt index 517f511ef..4f8be1ae1 100644 --- a/worldwind/src/androidMain/kotlin/earth/worldwind/gesture/SelectDragDetector.kt +++ b/worldwind/src/androidMain/kotlin/earth/worldwind/gesture/SelectDragDetector.kt @@ -107,8 +107,9 @@ open class SelectDragDetector(protected val wwd: WorldWindow) : SimpleOnGestureL val callback = callback ?: return false return runBlocking { val (renderable, position) = awaitPickResult(false) - if (renderable is Renderable && position != null) { - callback.onRenderableDoubleTap(renderable, position) + if (position != null) { + if (renderable is Renderable) callback.onRenderableDoubleTap(renderable, position) + else callback.onTerrainDoubleTap(position) wwd.requestRedraw() true } else false diff --git a/worldwind/src/commonMain/kotlin/earth/worldwind/gesture/SelectDragCallback.kt b/worldwind/src/commonMain/kotlin/earth/worldwind/gesture/SelectDragCallback.kt index e6860426f..cc63ec860 100644 --- a/worldwind/src/commonMain/kotlin/earth/worldwind/gesture/SelectDragCallback.kt +++ b/worldwind/src/commonMain/kotlin/earth/worldwind/gesture/SelectDragCallback.kt @@ -87,4 +87,11 @@ interface SelectDragCallback { * @param position picked terrain or renderable center position */ fun onRenderableDoubleTap(renderable: Renderable, position: Position) {} + + /** + * Terrain position was double-tapped or double-clicked + * + * @param position picked terrain position + */ + fun onTerrainDoubleTap(position: Position) {} } \ No newline at end of file