Does anyone know why compose 1.5.0 is considered s...
# compose-android
m
Does anyone know why compose 1.5.0 is considered stable, but it requires target SDK 34, which is still beta according to google? https://developer.android.com/tools/releases/platforms
p
It seems that some emoji library got referenced by mistake and that library is forcing the update
1
c
I agree that it's a littttttle weird. but changing the targetSdk doesn't actually opt you into any 34 functionality. so it should be fine ™️
i
s
Does it require targetSdk 34 or just compileSdk 34?
i
Just compileSdk 34
1
✔️ 1
❤️ 1
m
Yes, but changing the compile sdk without changing the target sdk opens you up to a whole mess of issues. We had this issue when going from 30 to 31, in particular because we had several downstream libraries (of our own making) that needed to get updated to support the new bluetooth permissions before we could switch our target sdk to 31. So we changed the compile sdk to 31 and left the target at 30. However, this basically meant that we couldn’t check the version of the OS we were running on to determine behavior. We instead had to check a combination of the OS version and the target sdk version, to decide whether to use location or the new bluetooth permissions.
And just blindly updating the target SDK means you have to account for all the new changes which takes time to deal with in larger apps, especially in terms of testing new behaviors.
i
Libraries can't change your target SDK, so you're still completely in control over what world you want to live in, no matter what compile SDK version you are using