Skip to content

Commit

Permalink
Use default methods on the JVM (#240)
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeWharton authored Jun 17, 2023
1 parent bfae3ba commit 2fc16c5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
8 changes: 1 addition & 7 deletions api/Turbine.api
Original file line number Diff line number Diff line change
Expand Up @@ -86,21 +86,15 @@ public abstract interface class app/cash/turbine/Turbine : app/cash/turbine/Rece
public abstract fun add (Ljava/lang/Object;)V
public abstract fun asChannel ()Lkotlinx/coroutines/channels/Channel;
public abstract fun close (Ljava/lang/Throwable;)V
public static synthetic fun close$default (Lapp/cash/turbine/Turbine;Ljava/lang/Throwable;ILjava/lang/Object;)V
public abstract fun takeComplete ()V
public abstract fun takeError ()Ljava/lang/Throwable;
public abstract fun takeEvent ()Lapp/cash/turbine/Event;
public abstract fun takeItem ()Ljava/lang/Object;
}

public final class app/cash/turbine/Turbine$DefaultImpls {
public static synthetic fun close$default (Lapp/cash/turbine/Turbine;Ljava/lang/Throwable;ILjava/lang/Object;)V
}

public abstract interface class app/cash/turbine/TurbineContext : kotlinx/coroutines/CoroutineScope {
public abstract fun testIn-5_5nbZA (Lkotlinx/coroutines/flow/Flow;Lkotlinx/coroutines/CoroutineScope;Lkotlin/time/Duration;Ljava/lang/String;)Lapp/cash/turbine/ReceiveTurbine;
}

public final class app/cash/turbine/TurbineContext$DefaultImpls {
public static synthetic fun testIn-5_5nbZA$default (Lapp/cash/turbine/TurbineContext;Lkotlinx/coroutines/flow/Flow;Lkotlinx/coroutines/CoroutineScope;Lkotlin/time/Duration;Ljava/lang/String;ILjava/lang/Object;)Lapp/cash/turbine/ReceiveTurbine;
}

Expand Down
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ kotlin {
jvm {
compilations.configureEach { KotlinJvmCompilation compilation ->
compilation.compilerOptions.options.jvmTarget = JvmTarget.JVM_1_8
compilation.compilerOptions.options.freeCompilerArgs.add("-Xjvm-default=all")
}
}

Expand Down

0 comments on commit 2fc16c5

Please sign in to comment.