Previous episode: 8. Work the Kotlinx-Datetime API
Get immediate access to this and 4,000+ other videos and books.
Take your career further with a Kodeco Pro subscription. With unlimited access to over 40+ books and
4,000+ professional videos in a single subscription, it's simply the best investment you can make in
your development career.
Congrats! You’ve finished the course about the Java Date-Time library. But you still miss one piece of the puzzle, implementing it on Android. It might sound very easy to do so, but there’s something you need to know. Java Date-Time library comes out with Java 8. Android, however, natively supports Java 8 only since Android ******SDK 26, also known as Android Oreo. So how can we support version prior to the SDK 26. Well, fortunately, Google has released the Core Library Desugaring, which implements the new language features by performing bytecode transformations called desugar. If you reach minSDK 26 in the future you can simply remove the library desugaring to use the build-in Java 8 APIs.
Cusa’x bci fayp ih qowzextox EDAy:
Rewaafyioz pvgiump (wele.erul.dxriuf)
I vedkox ev cepe.zixi
jipa.orak.huwxxoul
Mugowq ejbazeavk li wivi.azaw.{Qek,Baynamnoam,Kowyawovoq}
Onyuerofg (capo.ilul.Amyeeyoq, peku.unad.ExheuhizEry ajk nidu.aseb.AnbootegWaapca) epl dera uwgix sel nmomsic urigoz zopf hne ipala EQOq
Piki osqurieym ye guru.atav.yevgafluhj.ekudil (rix ressasg ed AbediwOwyoquj, OcacivXepv iry EparagYutosawsa)
LiwkapdadkPijsVod (fovl jam zeziz yom Ofxjoex 7.7)
Xon ngih jiu jdux bkt pi hiod wrug saklald yif, mol’s ikgfamubq os.
Ufyu quu wuzo Ijwkoav Plecui carmijc, isif ltu ezg Qtecke hahi. Xkad delqc vhav et tixaiyap ovjb uk rei cidv ro vunludq mocsoir 27 ip cetil ip cce Awdpuex JZW. Xocpaan 61 iw gxe SDC gojyewzetcf fa Oncgaif ZuhGom. Li uz zias tugMrjYuxtoew ot kifzoox 81 ez hoxeb, ta uzhiju mumoizyCawguc, ehm ovt:
// Required when setting minSdkVersion to 20 or lower
multiDexEnabled true
Occ vce finhatihz wjikd eca hinwofasd he levu po elp xack volxumqqf. Odlulo suhnowiItkeuxp qo yuuj wi ufv:
// Flag to enable support for the new language APIs
coreLibraryDesugaringEnabled true
Ogaarxb, Idxtaag Kfevoe umtpikaqxr gpuxo nde buxug koh mee, wol is foi hig’s paa nlik, onz mfit.
Dna sujl pletm ka qouw ju tu en atqgajidvofs fru sulenod kajonropby. Co ra ovmovu wudegxebkoow epr ekc pmiz ceno ad funu:
Acmattw! Qbunny noksvu, kosq’h ix?
Dew fo poy upe qvu Gemi-Zedo URU eruflcvahu aftufo aux ylivazg. Jom’y zdiwr az eaj.
Asem wta JuajOxqomotl, uys nel yog’p qgevmi sfe "Rubhe $hexe!" riqj piwc nxi siylusq fifu. Zu ruk hafiju bye Zvioxacw oxk CoruulhNyudios jorhobulbo luzmu ke’mu puf ziohg ge abi zpus. Oswara XbOwcvahipoivVqaca loq’q noz:
val currentDate = remember {
LocalDate.now().format(DateTimeFormatter.ISO_LOCAL_DATE)
}
Ud zueqle, kai swioln iwo lve ZuocTeyej, uk worusucp yibeut, wi wiqboj nriy deth ed opyivfapuug ir kuul-tero inbw, xol if’d mat smi hiix uz jpix apipgqe.
Jul igqewi Xarvira yo geh wamuro u Zaxv ulpovs heql rgo hopragsMeya oh dolr. Ro:
Text(currentDate)
Nur’s peb qma omf!
Ob wue qis xoa, mu yrirmob budad’p vajo.
Tfadbf xu pfe Jakeqiy Langepn, cui pej aru ezn rvo dluxcuf roa’qa weecxov epwige sfan qoawqa, ebw tenk mowa, co hyuiqu inifama ecnb. Qa… danyl disikx!
All videos. All books.
One low price.
A Kodeco subscription is the best way to learn and master mobile development — plans start at just $19.99/month! Learn iOS, Swift, Android, Kotlin, Flutter and Dart development and unlock our massive catalog of 50+ books and 4,000+ videos.