Daniele Segato
02/25/2023, 11:52 AMandroid.compileOptions
?
4. Does it mean I don't need desugaring anymore for java.time and the likes?
I think I missed something, can anyone shed some light on this topic? Which is the recommended setup regarding the kotlin / java toolchain on an Android Project using the last AGP 8.1.0-alpha06 and Android Studio Giraffe | 2022.3.1 Canary 6?
Thank youDaniele Segato
02/28/2023, 10:33 AMDaniele Segato
02/28/2023, 10:33 AMDaniele Segato
02/28/2023, 10:35 AMDaniele Segato
02/28/2023, 10:51 AMkenkyee
02/28/2023, 2:13 PMDaniele Segato
02/28/2023, 2:17 PMGeneral kotlin behaviours that should work in anywhere but don't work (to be asked in #android )Dex is one of the target for android and I'm asking if I can use jdk 17 and target jdk 17 for Android without issues on devices
kenkyee
02/28/2023, 3:04 PMkenkyee
02/28/2023, 3:05 PMDaniele Segato
02/28/2023, 3:10 PMgetOrElse
for Map. It would compile but than crash at runtime on devices where the jdk didn't have the method.
This is just an example. I just want to know if this could happen setting target jdk 17.kenkyee
02/28/2023, 3:15 PMDaniele Segato
02/28/2023, 3:18 PMkenkyee
02/28/2023, 3:21 PMDaniele Segato
02/28/2023, 3:31 PMString.isBlank()
is new to java 11. It wasn't there in Java 1.8. As far as I understand it targeting java 11 or 17 tells the compiler that method is available. But at runtime, in Android, it will not be if there:
https://source.android.com/docs/setup/start/older-versions#jdk
Are you saying that kotlin will not map to any method after java 8 when building for Android and will know what to do?
There's not much documentation about this nor on the Kotlin side nor on android side.kenkyee
02/28/2023, 3:35 PMkenkyee
02/28/2023, 3:35 PMDaniele Segato
02/28/2023, 3:37 PMDaniele Segato
02/28/2023, 3:47 PMkenkyee
02/28/2023, 3:49 PMDaniele Segato
02/28/2023, 3:50 PMkenkyee
02/28/2023, 3:50 PMkenkyee
02/28/2023, 3:51 PMDaniele Segato
02/28/2023, 3:52 PMkenkyee
02/28/2023, 3:55 PMDaniele Segato
02/28/2023, 3:57 PM