From 73d24d987e6fd39d6c4f35d7057fae2eae90516b Mon Sep 17 00:00:00 2001 From: Peter Serwylo Date: Fri, 5 Feb 2016 14:00:38 +1100 Subject: [PATCH] Add exception for rxjava in Proguard. The rxjava library depends on sun.misc.Unsafe, which is unavailable on Android The rxjava team is aware of this, and mention in the docs that they only use the unsafe functionality if the platform supports it. - https://github.com/ReactiveX/RxJava/issues/1415#issuecomment-48390883 - https://github.com/ReactiveX/RxJava/blob/1.x/src/main/java/rx/internal/util/unsafe/UnsafeAccess.java#L23 --- F-Droid/proguard-rules.pro | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/F-Droid/proguard-rules.pro b/F-Droid/proguard-rules.pro index e0d139764..4784add4a 100644 --- a/F-Droid/proguard-rules.pro +++ b/F-Droid/proguard-rules.pro @@ -33,3 +33,10 @@ -keep public class * extends android.support.v4.view.ActionProvider { public (android.content.Context); } + +# The rxjava library depends on sun.misc.Unsafe, which is unavailable on Android +# The rxjava team is aware of this, and mention in the docs that they only use +# the unsafe functionality if the platform supports it. +# - https://github.com/ReactiveX/RxJava/issues/1415#issuecomment-48390883 +# - https://github.com/ReactiveX/RxJava/blob/1.x/src/main/java/rx/internal/util/unsafe/UnsafeAccess.java#L23 +-dontwarn rx.internal.util.**