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

Suspected Proguard issue : Warning:co.omise.android.ui.CreditCardActivity$ActivityTokenRequestListener: can't find referenced field 'int text_error_message' in program class co.omise.android.R$id #33

Closed
j2emanue opened this issue Dec 27, 2017 · 4 comments

Comments

@j2emanue
Copy link

j2emanue commented Dec 27, 2017

#When building a signed apk i get the following warning:

Warning:co.omise.android.ui.CreditCardActivity$ActivityTokenRequestListener: can't find referenced field 'int text_error_message' in program class co.omise.android.R$id

here are my gradle dependencies:

implementation 'co.omise:omise-android:2.3.+'

adding the following to proguard does not rectify the warning:

# Omise
-dontwarn okio.**
-dontwarn com.google.common.**
-dontwarn org.joda.time.**

if it makes any difference we are also using the following dependencies:

//barcode scanner
        implementation 'com.journeyapps:zxing-android-embedded:3.5.0'
//card scanner
        implementation 'io.card:android-sdk:5.5.1'

and we have been using your sdk in production for many months now with no issue but we have task to clean this warning.

@nuxzero
Copy link
Contributor

nuxzero commented Jan 10, 2018

@j2emanue Can you try to change with our latest version implementation 'co.omise:omise-android:2.6.2'.

@j2emanue
Copy link
Author

j2emanue commented Jan 11, 2018

upgrading to the latest version has not resolved the issue. After trying to build a signed apk i still get a lint warning of : Warning:co.omise.android.ui.CreditCardActivity$c: can't find referenced field 'int text_error_message' in program class co.omise.android.R$id

below is the gradle dependency being used:

implementation 'co.omise:omise-android:2.6.2'

I've used your recommended proguard settings.

@nuxzero
Copy link
Contributor

nuxzero commented Jan 11, 2018

We tested in our sample app it look fine for signed apk. But you could try to add -dontwarn co.omise.android.R$id.

@j2emanue
Copy link
Author

yeah ignoring it fixes the warning.

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