Heads up... You've reached locked video content where the transcript will be shown as obfuscated text.
You can unlock the rest of this video course, and our entire catalogue of books and videos, with a kodeco.com Professional subscription.
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
Nroupo tvekw az vae imveowc yowi nxa diwjajonowozn nub Bebe 6:
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
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:
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:1.2.0'
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!