From f01adb912e3ba6be8a1fc12a7a67f726d4b098f1 Mon Sep 17 00:00:00 2001 From: Xinyi Ye Date: Tue, 23 Jan 2024 13:19:08 -0800 Subject: [PATCH] Use default method --- build.gradle | 2 +- .../java/com/amplitude/android/sample/MainApplication.java | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/build.gradle b/build.gradle index adf51f03..04bbf1f2 100644 --- a/build.gradle +++ b/build.gradle @@ -28,7 +28,7 @@ allprojects{ tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all { kotlinOptions { - freeCompilerArgs = ['-Xjvm-default=enable'] + freeCompilerArgs = ['-Xjvm-default=all'] jvmTarget = "1.8" } } diff --git a/samples/java-android-app/src/main/java/com/amplitude/android/sample/MainApplication.java b/samples/java-android-app/src/main/java/com/amplitude/android/sample/MainApplication.java index bc41bf7a..50a85fbe 100644 --- a/samples/java-android-app/src/main/java/com/amplitude/android/sample/MainApplication.java +++ b/samples/java-android-app/src/main/java/com/amplitude/android/sample/MainApplication.java @@ -85,8 +85,4 @@ public BaseEvent execute(@NonNull BaseEvent event) { return event; } - @Override - public void teardown() { - // Clean up any resources from setup if necessary - } }