Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
arunvariyath committed Mar 15, 2024
2 parents a67a048 + a6dab69 commit 30f7722
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
-keepnames class * extends java.lang.Exception
# For Class.getEnumConstants()
-keepclassmembers enum * {
public static **[] values();
public static **[] values();
}
-keepnames class me.zhanghai.android.files.** implements android.os.Parcelable

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,14 @@ import java.util.concurrent.Future
import java.util.concurrent.TimeUnit
import java.util.concurrent.TimeoutException

inline fun <T, R> Future<T>.map(
crossinline transform: (T) -> R,
crossinline transformException: (Exception) -> Exception = { it }
// The following causes a NoSuchFieldError during runtime, similar to
// https://youtrack.jetbrains.com/issue/KT-20245/
//inline fun <T, R> Future<T>.map(
// crossinline transform: (T) -> R,
// crossinline transformException: (Exception) -> Exception = { it }
fun <T, R> Future<T>.map(
transform: (T) -> R,
transformException: (Exception) -> Exception = { it }
): Future<R> =
object : Future<R> {
override fun cancel(mayInterruptIfRunning: Boolean): Boolean =
Expand Down

0 comments on commit 30f7722

Please sign in to comment.