dmitry-blackwave / adyen-react-native

Adyen SDK for React Native
MIT License
15 stars 20 forks source link

Working versions? #18

Open jannisch opened 5 years ago

jannisch commented 5 years ago

I appreciate this library but it seems to be pretty broken. Is there any version which is known to be working?

With the sample repository I get:

/tmp/adyen-react-native-samples/QuickStart/node_modules/adyen-react-native/android/src/main/java/com/dblackwave/adyen/AdyenModule.java:5: error: package androidx.annotation does not exist
import androidx.annotation.NonNull;

With react-native 0.61 I was able to compile it but then get

D8: Cannot fit requested classes in a single dex file (# methods: 65961 > 65536)
jannisch commented 5 years ago

Update: I was able to fix the MultiDex issue with this guide, however it's still unclear which versions should be working

mkharibalaji commented 5 years ago

@jannisch, I am working in the Android Part now.Will soon provide a update on Android using RN > 0.60

mkharibalaji commented 5 years ago

@jannisch , For ReactNative > 0.60 use the libraries which supports gradle > 5,so i upgraded the version of adyen to 2.4.5 in the file android/build.gradle under node-modules/adyen-react-native sorted the issue,

dependencies { compile 'com.facebook.react:react-native:+' compile "android.arch.lifecycle:extensions:${rootProject.ext.lifecycleVersion}" compile "android.arch.core:runtime:${rootProject.ext.lifecycleVersion}" compile "android.arch.lifecycle:viewmodel:${rootProject.ext.lifecycleVersion}" compile "com.adyen.checkout:ui:2.4.5" compile "com.adyen.checkout:core-card:2.4.5" compile "com.adyen.checkout:util:2.4.5" }

mkharibalaji commented 5 years ago

I will soon add it to the PR...