diff --git a/.github/workflows/unit-test.yml b/.github/workflows/unit-test.yml index a97d80b..ef4eb01 100644 --- a/.github/workflows/unit-test.yml +++ b/.github/workflows/unit-test.yml @@ -11,11 +11,11 @@ jobs: - uses: actions/setup-java@v3 with: distribution: temurin - java-version: 18 + java-version: 17 - name: Setup Gradle uses: gradle/gradle-build-action@v3 - name: Run build with Gradle Wrapper - run: ./gradlew build --warning-mode=all --stacktrace + run: ./gradlew build --debug # Execute unit tests - name: Unit Test run: ./gradlew testDebugUnitTest diff --git a/android-client-sdk/build.gradle b/android-client-sdk/build.gradle index e26a124..a6f8c7d 100644 --- a/android-client-sdk/build.gradle +++ b/android-client-sdk/build.gradle @@ -101,7 +101,7 @@ ext { jackson_jparser_version = "2.13.5" gson_mapper_version = "2.8.6" coroutines_version = '1.6.2' - kotlin_reflect_version = '1.7.0' + kotlin_reflect_version = '1.9.0' junit_version = "5.8.2" mockito_core_version = '4.6.1' @@ -109,6 +109,7 @@ ext { mockk_version = '1.13.10' hamcrest_version = "2.2" okhttp_version = "4.9.3" + kotlin_version = '1.9.0' android_core_version = "2.1.0" androidx_junit_version = "1.1.3" diff --git a/android-client-sdk/src/test/java/com/devcycle/sdk/android/api/DevCycleClientTests.kt b/android-client-sdk/src/test/java/com/devcycle/sdk/android/api/DevCycleClientTests.kt index ba41de9..956e52e 100644 --- a/android-client-sdk/src/test/java/com/devcycle/sdk/android/api/DevCycleClientTests.kt +++ b/android-client-sdk/src/test/java/com/devcycle/sdk/android/api/DevCycleClientTests.kt @@ -277,7 +277,7 @@ class DevCycleClientTests { generateDispatcher(config = config) val initializeLatch = CountDownLatch(1) - val client = createClient("pretend-its-real", mockWebServer.url("/").toString(), 100L, false, null, LogLevel.VERBOSE ) + val client = createClient("pretend-its-real", mockWebServer.url("/").toString(), 100L, false, null, LogLevel.VERBOSE) client.onInitialized(object: DevCycleCallback { override fun onSuccess(result: String) { calledBack = true @@ -329,9 +329,9 @@ class DevCycleClientTests { try { println("printing the path") println(it.path) + Assertions.assertEquals(true, it.path?.contains("expected_userid")) } catch (e: org.opentest4j.AssertionFailedError) { - println(it.path) throw e } diff --git a/build.gradle b/build.gradle index 6bf6a7c..a862de9 100644 --- a/build.gradle +++ b/build.gradle @@ -7,7 +7,7 @@ buildscript { } dependencies { classpath 'com.android.tools.build:gradle:8.1.0' - classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.21' + classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.0' classpath "de.mannodermaus.gradle.plugins:android-junit5:1.8.2.0" } }