#morgane-helloasso_code
1 messages ¡ Page 1 of 1 (latest)
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
đ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1384160687923658792
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi, can you share the entire error for when it fails? Can you also share the exact integration documentation you're using here?
The documentation is this one : https://docs.stripe.com/terminal/payments/setup-reader/tap-to-pay and this one https://github.com/stripe/stripe-terminal-android
I rebuild the app to have the full error
I'm grabbing a teammate who has more expertise with Mobile development.
Thank you for your patience
Hey there, what exactly are the proguard errors you encounter during compilation and are youn sure its directly related to the Stripe SDK?
For comparison, you can see some example proguard rules in our stripe-android example apps:
https://github.com/stripe/stripe-android/blob/v21.17.0/paymentsheet-example/proguard-rules.pro
(i recognize you're using our Terminal SDK stripe-terminal-android)
The error is :Missing classes detected while running R8. Please add the missing classes or apply additional keep rules that are generated in /app/build/outputs/mapping/rcRelease/missing_rules.txt.
Missing class com.s.am.aL12531 (referenced from: java.lang.String com.s.am.burden.As(com.squareup.wire.Message) and 5 other contexts)
Missing class com.s.ee.DashboardC28853 (referenced from: com.s.ee.Build com.s.ee.Billing.Dashboard() and 1 other context)
Missing class com.s.x.StripeD16414 (referenced from: com.stripe.proto.api.attestation.RotateKeyResponse com.s.x.Billing.Billing(com.s.x.Billing, java.lang.String, com.stripe.proto.api.attestation.RotateKeyRequest, java.util.Map, int, java.lang.Object) and 6 other contexts)
Missing class java.beans.ConstructorProperties (referenced from: void com.fasterxml.jackson.databind.ext.Java7SupportImpl.<init>() and 2 other contexts)
Missing class java.beans.Transient (referenced from: void com.fasterxml.jackson.databind.ext.Java7SupportImpl.<init>() and 1 other context)
Missing class org.slf4j.impl.StaticLoggerBinder (referenced from: void org.slf4j.LoggerFactory.bind() and 3 other contexts)
Missing class org.slf4j.impl.StaticMDCBinder (referenced from: org.slf4j.spi.MDCAdapter org.slf4j.MDC.bwCompatibleGetMDCAdapterFromBinder())
In the mentionned file, they give the rules I mentionned in my issue :
Please add these rules to your existing keep rules in order to suppress warnings.
This is generated automatically by the Android Gradle plugin.
-dontwarn com.s.am.aL12531
-dontwarn com.s.ee.DashboardC28853
-dontwarn com.s.x.StripeD16414
-dontwarn java.beans.ConstructorProperties
-dontwarn java.beans.Transient
-dontwarn org.slf4j.impl.StaticLoggerBinder
-dontwarn org.slf4j.impl.StaticMDCBinder
What version of the SDK & android are you using?
You might need to add keep rules for some dependencies like retrofit or moshi jsonadapter, as seen here:
https://github.com/stripe/stripe-terminal-android/issues/445#issuecomment-2025521244
-keep,allowobfuscation,allowshrinking class com.squareup.moshi.JsonAdapter
Or like in the example I linked to:
# Keep generic signature of Call, Response (R8 full mode strips signatures from non-kept items).
-keep,allowobfuscation,allowshrinking interface retrofit2.Call
-keep,allowobfuscation,allowshrinking class retrofit2.Response
You should also ensure that you're using a min android SDK target version at least as high as the Stripe SDK version requires.
Finally you can try adding rules to force-keep Stripe classes: https://github.com/stripe/stripe-terminal-android/issues/527#issuecomment-2469033156
-keep class com.stripe.** { *; }
-dontwarn com.stripe.**
If they doesn't work, I would recommend that you distill a minimal reproduction without any of your on proprietary code and open an issue on the github repo so the team can investigate.
I am using the version 4.4.0 of the SDK, and min Android SDK version 26, compiled on SDK 34. I also tried with a compilation on SDK 35 but I have the same issue