react-native-async-storage / async-storage

An asynchronous, persistent, key-value storage system for React Native.
https://react-native-async-storage.github.io/async-storage/
MIT License
4.61k stars 458 forks source link

Next storage implementation: Build issues with RN 0.74 #1091

Open QOAL opened 2 months ago

QOAL commented 2 months ago

What happened?

With React Native 0.74 updating to Kotlin 1.9.22 users using the Next storage implementation will face the following error, along with the build failing: ksp-1.9.20-1.0.14 is too old for kotlin-1.9.22. Please upgrade ksp or downgrade kotlin-gradle-plugin to 1.9.20.

Updating gradle.properties with the following mitigates the issue: AsyncStorage_useNextStorage=true AsyncStorage_kotlinVersion=1.9.22 AsyncStorage_next_kspVersion=1.9.22-1.0.17

I haven't tried any of the newer Room versions.

It looks like async-storage/packages/default-storage/android/config.gradle, and the documentation just needs updating, but this is not my area of expertise.

Version

1.23.1

What platforms are you seeing this issue on?

System Information

System:
  OS: Windows 10 10.0.19045
  CPU: (4) x64 Intel(R) Core(TM) i5-4690K CPU @ 3.50GHz
  Memory: 5.58 GB / 15.87 GB
Binaries:
  Node:
    version: 21.7.3
    path: C:\Program Files\nodejs\node.EXE
  Yarn:
    version: 3.6.4
    path: ~\AppData\Roaming\npm\yarn.CMD
  npm:
    version: 10.2.0
    path: C:\Program Files\nodejs\npm.CMD
  Watchman: Not Found
SDKs:
  Android SDK: Not Found
  Windows SDK:
    AllowDevelopmentWithoutDevLicense: Enabled
    AllowAllTrustedApps: Enabled
IDEs:
  Android Studio: AI-221.6008.13.2211.9619390
  Visual Studio: Not Found
Languages:
  Java: 17.0.10
  Ruby: Not Found
npmPackages:
  "@react-native-community/cli": Not Found
  react:
    installed: 18.2.0
    wanted: 18.2.0
  react-native:
    installed: 0.74.1
    wanted: 0.74.1
  react-native-windows: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: false
iOS:
  hermesEnabled: Not found
  newArchEnabled: Not found

Steps to Reproduce

See above.

krizzu commented 1 month ago

Hey, thanks for reporting, see here: https://github.com/react-native-async-storage/async-storage/pull/1094

algarcia-vector commented 1 month ago

I NEED THIS PLEASE