Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add consumerProguardFile #790

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Add consumerProguardFile #790

wants to merge 2 commits into from

Conversation

andhie
Copy link

@andhie andhie commented Nov 10, 2016

Prevent obfuscation of GMS ProviderInstaller

Class<?> providerInstaller = Class.forName("com.google.android.gms.security.ProviderInstaller");

Trying to alleviate Issue #782 , #647
But without GMS, Ion would still not work on pre-Lollipop devices with SSL enabled


This change is Reviewable

@kakai248
Copy link

kakai248 commented Apr 21, 2017

I can confirm this fixes the issue for Android >=5.0. However, doing this will also make it stop working on <5.0 (not sure why). To fix it add this:

if(android.os.Build.VERSION.SDK_INT < android.os.Build.VERSION_CODES.LOLLIPOP) {
    Ion.getDefault(this).getConscryptMiddleware().enable(false);
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants