https://kotlinlang.org logo
Title
b

brabo-hi

02/12/2023, 5:25 AM
hi team, when adding
androix datastore 1.1.0-alpha01
to the shared library i am getting the following error
:shared:iosArm64Main: Could not resolve androidx.datastore:datastore-preferences-core:1.1.0-alpha01
however i don’t have that issue when running version
1.1.0-dev01
c

Chrimaeon

02/12/2023, 8:58 AM
Jetpack DataStore is an JVM only library that you cannot add to a shared multiplatform library. You can only add it as a dependency for your
android
source set.
b

brabo-hi

02/12/2023, 9:22 AM
From what i read version 1.1 is targeting kmm
c

Chrimaeon

02/12/2023, 9:26 AM
Oh nice. but there is no package for
1.1.0-alpha01
for the multiplatform dependencies. i.e. https://maven.google.com/web/index.html?q=datastore#androidx.datastore:datastore-core-iosarm64
b

brabo-hi

02/12/2023, 12:03 PM
Correct but how about 1.1.0-dev01
l

Landry Norris

02/12/2023, 6:56 PM
Only the dev versions support multiplatform right now. They'll likely announce something when that changes.
b

brabo-hi

02/12/2023, 6:58 PM
@Landry Norris thank you for this clarification