BILDIT-Platform / react-native-bildit-flybuy

React Native FlyBuy module. Supports Core, Pickup, Notify, and Presence Native SDK APIs.
9 stars 6 forks source link

react-native-bildit-flybuy:compileDebugKotlin fails due to type inference mismatch #77

Closed kevin-r-wilson closed 5 months ago

kevin-r-wilson commented 5 months ago

Describe the bug After upgrading a react native project, using gradle 8.6, build tools version 34, and any 1.8 or higher version of kotlin - the app fails to compile.

node_modules/react-native-bildit-flybuy/android/src/main/java/com/reactnativeflybuy/FlybuyModule.kt:1056:13 Type mismatch: inferred type is java.time.Instant! but org.threeten.bp.Instant was expected

node_modules/react-native-bildit-flybuy/android/src/main/java/com/reactnativeflybuy/FlybuyModule.kt:1057:11 Type mismatch: inferred type is java.time.Instant! but org.threeten.bp.Instant was expected

To Reproduce Steps to reproduce the behavior:

  1. Create a project with flybuy using react native 74
  2. Build

Expected behavior The app should compile successfully.

Additional context Add the output from this command npx react-native info to this section System: OS: macOS 14.5 CPU: (16) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz Memory: 2.93 GB / 16.00 GB Shell: version: "5.9" path: /bin/zsh Binaries: Node: version: 20.11.0 path: /private/var/folders/qf/117kl9zs3wzbs78xwc7nf1980000kt/T/xfs-3df361ee/node Yarn: version: 4.2.2 path: /private/var/folders/qf/117kl9zs3wzbs78xwc7nf1980000kt/T/xfs-3df361ee/yarn npm: version: 10.8.1 path: /private/var/folders/qf/117kl9zs3wzbs78xwc7nf1980000kt/T/xfs-3df361ee/npm Watchman: version: 2024.03.25.00 path: /usr/local/bin/watchman Managers: CocoaPods: version: 1.15.2 path: /usr/local/bin/pod SDKs: iOS SDK: Platforms:

mohanenm commented 5 months ago

@kevin-r-wilson this should be resolved in 2.3.4. Please take a look. Thanks.