๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ

๋นˆ ๊ตฌ๋ฉ ์ฑ„์šฐ๊ธฐ

[Android] LocalDate, LocalTime, LocaleDateTime ์“ฐ๊ณ  ์‹ถ์€๋ฐ Android API version์— ๊ฑธ๋ ค์„œ

๋‚ด ํ”„๋กœ์ ํŠธ์˜ minSdkVersion์ด 24์—ฌ์„œ ํŽธํ•˜๊ฒŒ LocalDate๋ฅผ ์“ฐ๊ธฐ์— ๋ฌด๋ฆฌ๊ฐ€ ์žˆ๋‹ค๋Š” ๊ฒƒ์„ ์•Œ์•˜๋‹ค. Joda-Time ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ๊ฐ€ ์“ฐ๊ธฐ์—๋Š” ๋ฌด๊ฑฐ์šด ๋“ฏํ•ด์„œ ๊ณ ๋ฏผํ•˜๋‹ค๊ฐ€ ๋ฌธ์ œ ํ•ด๊ฒฐ ๋ฐฉ๋ฒ•์„ ์ฐพ์•˜๋‹ค. 

 

https://developer.android.com/studio/write/java8-support#library-desugaring

 

์ž๋ฐ” 8 ์–ธ์–ด ๊ธฐ๋Šฅ ๋ฐ API ์‚ฌ์šฉ  |  Android ๊ฐœ๋ฐœ์ž  |  Android Developers

์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ๋Š” Java 8 ์–ธ์–ด ๊ธฐ๋Šฅ, ์ด๋Ÿฌํ•œ ๊ธฐ๋Šฅ์„ ์‚ฌ์šฉํ•  ํ”„๋กœ์ ํŠธ๋ฅผ ์˜ฌ๋ฐ”๋ฅด๊ฒŒ ๊ตฌ์„ฑํ•˜๋Š” ๋ฐฉ๋ฒ• ๋ฐ ๋ฐœ์ƒํ•  ์ˆ˜ ์žˆ๋Š” ์•Œ๋ ค์ง„ ๋ฌธ์ œ๋ฅผ ์•Œ์•„๋ด…๋‹ˆ๋‹ค.

developer.android.com

 

๋„ˆ๋ฌด ํŽธํ•˜๋‹ค.

 

๊ทธ๋Ÿฐ๋ฐ desugar๋Š” ๋ฌด์—‡์ธ๊ฐ€ 

>https://datalibrary.tistory.com/33

 

Syntactic Sugar๋Š” ๋ฌด์—‡์ผ๊นŒ?

์•ˆ๋…•ํ•˜์„ธ์š”. ํ”„๋กœ๊ทธ๋ž˜๋ฐ ๊ด€๋ จ๋œ ์ฑ…์„ ์ฝ๊ฑฐ๋‚˜ ๊ธฐ์ˆ  ๋ฌธ์„œ๋ฅผ ์ฐพ์•„ ๋ณด๋ฉด ๊ฐ„ํ˜น Syntactic Sugar๋ผ๋Š” ๋‹จ์–ด๋ฅผ ๋ฐœ๊ฒฌํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ์›์„œ๋กœ ๋˜์–ด ์žˆ๋Š” ๊ธ€์„ ์ฐพ์•„์„œ ์ฝ๋”๋ผ๋„ ๊ด€๋ จ ๋‚ด์šฉ๊ณผ๋Š” ์ „ํ˜€ ๋œฌ๊ธˆ์—†๋Š” Synt

datalibrary.tistory.com

> https://pyxispub.uzuki.live/?p=87 

 

Android Studio 3.0 – Java 8 language feature

2017๋…„ 3์›” 15์ผ, Android Studio ๋‚ด๋ถ€์—์„œ Java 8 language feature์„ ํ™œ์„ฑํ™”ํ•˜๊ธฐ ์œ„ํ•ด ์‚ฌ์šฉํ•˜๋˜ Jack compiler ๊ฐ€ Deprecated ๋˜์—ˆ๋‹ค. ์ฒ˜์Œ์—” Jack toolchain ์„ ํ†ตํ•ด Java 8 ์ง€์› ์ถ”๊ฐ€๋ฅผ ํ…Œ์ŠคํŠธํ•˜์˜€์œผ๋‚˜, ์‹œ๊ฐ„์ด ์ง€๋‚จ์—

pyxispub.uzuki.live