Open canhtran10 opened 1 year ago
I'm having the same issue
Hi @canhtran10 where did you exactly add below code? compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 }
I added
compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 }
to android block in build.gradle and it did the trick. Now my concern is updating the build.gradle file inside a package is not a good practice as it reset when I run npm ci
As a solution I added a patch with patch-package
Hi @canhtran10 where did you exactly add below code? compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 }
@Harisene in this file path: node_modules/react-native-braintree-dropin-ui/android/build.gradle
android { compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } }
@canhtran10 Have you had any success with getting the callbacks to work when a payment is completed?
RN: 0.64 Java: 11
I got errors: ` node_modules\react-native-braintree-dropin-ui\android\src\main\java\tech\power\RNBraintreeDropIn\RNBraintreeDropInModule.java:40: error: lambda expressions are not supported in -source 7
dropInClient = new DropInClient(activity, callback -> { ^ (use -source 8 or higher to enable lambda expressions)`
I fixed issue by add compileOptions to node_modules/react-native-braintree-dropin-ui/android/build.gradle
` android {
} `
Please take a look, thank you