From 64d66c6ae4fde6aa3e66a5dba33950d447af1102 Mon Sep 17 00:00:00 2001 From: Peter Stone Date: Sun, 22 Mar 2026 04:40:36 +0000 Subject: refactor: cleanup, simplify, and modularize Android app logic - Extracted MOB, Instruments, Map, and Anchor Watch logic from MainActivity into dedicated handlers. - Refactored LocationService to use a standalone MockTidalCurrentGenerator. - Removed legacy 'kotlin_old', 'res_old', and 'temp' directories. - Added KDoc documentation to core components and handlers. - Integrated JUnit 5 dependencies and configured the test runner. - Verified all changes with successful unit test execution. --- android-app/app/build.gradle | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'android-app/app/build.gradle') diff --git a/android-app/app/build.gradle b/android-app/app/build.gradle index 0d5703d..264d0c5 100644 --- a/android-app/app/build.gradle +++ b/android-app/app/build.gradle @@ -41,6 +41,12 @@ android { viewBinding true } + testOptions { + unitTests.all { + useJUnitPlatform() + } + } + sourceSets { main { kotlin.srcDirs = ['src/main/kotlin', 'src/main/java'] @@ -92,6 +98,8 @@ dependencies { // Testing testImplementation 'junit:junit:4.13.2' + testImplementation 'org.junit.jupiter:junit-jupiter-api:5.10.1' + testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.10.1' testImplementation 'io.mockk:mockk:1.13.9' testImplementation 'org.jetbrains.kotlinx:kotlinx-coroutines-test:1.7.3' testImplementation 'app.cash.turbine:turbine:1.1.0' -- cgit v1.2.3