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

Not working some instagram filters in Android release build with enabled ProGuard #89

Closed
NikitaDudin opened this issue Nov 12, 2021 · 1 comment

Comments

@NikitaDudin
Copy link

NikitaDudin commented Nov 12, 2021

Environment

react-native-image-filter-kit: 0.8.0
Platform: Android
Project settings:

        buildToolsVersion = "30.0.3"
        minSdkVersion = 21
        compileSdkVersion = 30
        targetSdkVersion = 30
        ndkVersion = "22.1.7171670"

OS: MacOS Big Sur 11.6 (20G165)
Node.js: 16.13.0
xCode: 13.1 (13A1030d)
android/app/build.gradle:

def enableProguardInReleaseBuilds = true

react-native: 0.64.3

Solution

add to android/app/proguard-rules.pro file:

# react-native-image-filter-kit https://github.com/iyegoroff/react-native-image-filter-kit/issues/89
-keep class com.facebook.react.views.image.** { *; }
-keep class com.facebook.drawee.** { *; }

Linked issue

@iyegoroff
Copy link
Owner

Thank you! Just updated the readme with your solution.

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

No branches or pull requests

2 participants