Upgrade to Pro — share decks privately, control downloads, hide ads and more …

I/O Extended Android in Korea 2024 ~ Whats new ...

I/O Extended Android in Korea 2024 ~ Whats new in Android development tools

I/O Extended Android in Korea 2024에서 발표한 "Whats new in Android development tools" 발표자료입니다.

pluulove (노현석)

July 20, 2024
Tweet

More Decks by pluulove (노현석)

Other Decks in Programming

Transcript

  1. 2024.1.1 Patch 1 Koala 01 2024.1.2 Beta 1 Koala Feature

    Drop 02 Android Studio Ladybug 03 2024.1.3 Canary 1
  2. Code suggestions Device Streaming ࢎਊ оמೠ ױ݈ 20ѐ ੉࢚ नӏ

    ୶о • Samsung Galaxy Fold5 • Samsung Galaxy S23 Ultra • Google Pixel 8a
  3. Code suggestions USB ா੉࠶ ࣘب х૑ • ؊ ࡅܲ USB

    ா੉࠶۽ োѾ • ӝӝ ࢿמਸ ӓ؀ച ઁউ • জ ࢸ஖ दрਸ ୭੸ച • Debugger ࢎਊद ૑ো दрਸ ୭ࣗച USB ா੉࠶ ࣘب https://developer.android.com/studio/preview/features#usb-check
  4. Code suggestions USB ா੉࠶ ࣘب х૑ •Pixel 3a •USB 3.1

    ೲ࠳ / USB 2 ா੉࠶ ఠ޷օীࢲ ഛੋ оמ • MAC : system_profiler SPUSBDataType • Linux : lsusb -vvv పझ౟ ജ҃ https://developer.android.com/studio/preview/features#usb-check
  5. Code suggestions Device UI setting ߸҃ оמೠ UI ࢸ੿ •

    ׮௼ ప݃ • ಪ౟ ௼ӝ • ചݶ ௼ӝ • জ ঱য • TalkBack API 33 ੉࢚ ӝӝࠗఠ ࢎਊ оמ https://developer.android.com/studio/preview/features#device-ui-setting-shortcuts
  6. Code suggestions Wear OS tiles preview Jetpack Tiles library 1.4

    or higher https://developer.android.com/training/wearables/tiles/preview
  7. Compose Preview Screenshot Testing tool • Compose UI పझ౟ •

    UI੄ ߸҃ ࢎ೦ਸ दп੸ਵ۽ х૑ • HTML ࠁҊࢲ ࢤࢿ https://developer.android.com/studio/preview/compose-screenshot-testing Compose Testing
  8. • Android Gradle 8.5.0-beta01 or higher • Kotlin 1.9.20 or

    higher పझ౟ ೙ਃ ઑѤ https://developer.android.com/studio/preview/compose-screenshot-testing Compose Testing
  9. libs.versions.toml [versions] agp = “8.5.1" kotlin = "1.9.20" ... screenshot

    = “0.0.1-alpha02" [libraries] ... androidx-compose-ui-tooling = { group = "androidx.compose.ui", name = “ui-tooling" } [plugins] ... screenshot = { id = "com.android.compose.screenshot", version.ref = “screenshot" }
  10. plugins { ... alias(libs.plugins.screenshot) } android { ... experimentalProperties["android.experimental.enableScreenshotTest"] =

    true } dependencies { ... screenshotTestImplementation(libs.androidx.compose.ui.tooling) } build.gradle.kts (module-level)
  11. झ௼ܽࢫ పझ౟ ௏٘ class Screenshots { @Preview(showBackground = true) @Composable

    fun SelectTopicButtonPreviewTemplate() { JetnewsTheme { SelectTopicButton( modifier = Modifier.padding(32.dp), selected = true ) } } } Run gradle task ./gradlew updateDebugScreenshotTest
  12. • https://developer.android.com/studio/releases • https://developer.android.com/studio/preview/features • I/O ’24 ~ What’s new

    in Android development tools • https://www.youtube.com/watch?v=2wOfYgIMf-A ଵҊ ੗ܐ ETC