What's new Android Development IO18 APP DOJO

What's new Android Development IO18 APP DOJO

What's new Android Development from Google I/O 2018
https://events.withgoogle.com/app-dojo-may-2018-1st/

# Links

Modern Android development : Android Jetpack, Kotlin, and more
https://www.youtube.com/watch?v=IrMw7MEgADk

Android Jetpack: how to smartly use Fragments in your UI
https://www.youtube.com/watch?v=WVPH48lUzGY

Android Jetpack: what's new in Architecture Components
https://www.youtube.com/watch?v=pErTyQpA390

Android Jetpack: what's new in Android Support Library
https://www.youtube.com/watch?v=jdKUm8tGogw

Android Jetpack: easy background processing with Work Manager
https://www.youtube.com/watch?v=IrKoBFLwTN0

Android Jetpack : managing UI navigation with Navigation Controller
https://www.youtube.com/watch?v=8GCXtCjtg40

Android Jetpack: sweetening Kotlin development with Android KTX
https://www.youtube.com/watch?v=st1XVfkDWqk

Android Jetpack : managing infinite lists with RecyclerView & Paging
https://www.youtube.com/watch?v=BE5bsyGGLf4

How to Kotlin - from the Lead Kotlin Language Designer
https://www.youtube.com/watch?v=6P20npkvcb8

Build the new, modular Android App Bundle
https://www.youtube.com/watch?v=bViNOUeFuiQ

What's new with the Android build system
https://www.youtube.com/watch?v=N5xONyp69eU

What's new with ConstraintLayout and Android Studio desing tools
https://www.youtube.com/watch?v=ytZteMo4ETk

B0f8177e3259f29952640f98bf795965?s=128

satorufujiwara

May 15, 2018
Tweet

Transcript

  1. What’s new in Android Development from Google I/O 2018 2018.05.15

    APP DOJO @satorufujiwara
  2. About me Satoru Fujiwara (@satorufujiwara) Android Engineer @CyberAgent ,Inc Organizer

    of Shibuya.apk ༁ॻ : Kotlin ΠϯɾΞΫγϣϯ ஶॻ : Android ΞϓϦઃܭύλʔϯೖ໳
  3. ࠓ೔࿩͢͜ͱ • Android Jetpack • AndroidX • Android App Bundle

  4. Android Jetpack

  5. ը૾ : https://android-developers.googleblog.com/2018/05/use-android-jetpack-to-accelerate-your.html

  6. Android Jetpackͱ͸ • ྑ͍ΞϓϦΛૣ͘؆୯ʹͭ͘ΔͨΊͷɺϥΠϒϥϦ΍πʔϧ΍ ઃܭࢦ਑ • Foundation (جຊ)ɺArchitecture (ΞϓϦઃܭ)ɺBehavior (ಈ

    ࡞)ɺUIͷ4ͭʹ෼ྨ͞Ε͍ͯΔ • Support Library΍Architecture Components΋ؚ·ΕΔ ը૾ : https://developer.android.com/jetpack/
  7. What’s new in Android Jetpack • WorkManager • Navigation •

    Paging • Slices • Android KTX ը૾ : https://android-developers.googleblog.com/2018/05/use-android-jetpack-to-accelerate-your.html
  8. What’s new in Android Jetpack • WorkManager • Navigation •

    Paging • Slices • Android KTX
  9. WorkManager • όοΫάϥ΢ϯυॲཧΛߦ͏ͨΊͷϥΠϒϥϦ • ը૾ͷΞοϓϩʔυͷΑ͏ͳɺΞϓϦΛऴྃͯ͠΋ܧଓ͍ͨ͠ ॲཧʹ࢖͏ • ΞϓϦΛऴྃͨ͠৔߹ʹதஅ͍ͨ͠ॲཧʹ͸ThreadPool΋͘͠ ͸RxJavaΛ࢖͏

  10. WorkManager • ಺෦తʹ͸JobScheduler or Firebase JobDispatcher or AlarmManager͕࢖ΘΕΔ ը૾ :

    https://www.youtube.com/watch?v=IrKoBFLwTN0
  11. WorkManagerͷ࣮ߦྫ

  12. What’s new in Android Jetpack • WorkManager • Navigation •

    Paging • Slices • Android KTX
  13. Navigation • ୯ҰActivity಺ͷFragmentͷը໘ભҠ (Fragment Transaction)Λ ߦ͏ϑϨʔϜϫʔΫ • ม਺(Bundle)ͷड͚౉͠Up/Backͷ੍ޚ΍Deep Links΋ఆٛ͢Δ ͜ͱ͕Ͱ͖Δ

    • Android Studio 3.2 ͔Βಋೖ͞ΕͨNavigation EditorΛ࢖͍ฤू ͢Δ
  14. Navigation Editor ը૾ : https://android-developers.googleblog.com/2018/05/use-android-jetpack-to-accelerate-your.html

  15. Navigation Editor • ฤू݁Ռ͸XMLͰอଘ͞ΕΔ

  16. Navigation • ίʔυ͔Β͸NavigationControllerͳͲΛ༻͍ͯભҠΛݺͼग़͢

  17. What’s new in Android Jetpack • WorkManager • Navigation •

    Paging • Slices • Android KTX
  18. Paging • Architecture ComponentsͷPagingͷStableόʔδϣϯ͕ग़ͨ • RecyclerViewʹද͍ࣔͯ͠Δσʔλͷʮଓ͖ΛಡΈࠐΉʯϥΠϒ ϥϦ • ಡΈࠐΈઌ͸ωοτϫʔΫɺσʔλϕʔεɺ·ͨ͸ͦͷ྆ํ

  19. What’s new in Android Jetpack • WorkManager • Navigation •

    Paging • Slices • Android KTX
  20. Slices • Googleݕࡧ(ࠓޙ͸GoogleΞγελϯτͳͲʹ΋)ʹΞϓϦͷί ϯςϯπΛදࣔ͢ΔͨΊͷUIςϯϓϨʔτ • Android 4.4(API 19)Ҏ߱Ͱ࢖͑Δ

  21. Slicesͷྫ ը૾ : https://www.youtube.com/watch?v=a7IVH5aNwwc

  22. What’s new in Android Jetpack • WorkManager • Navigation •

    Paging • Slices • Android KTX
  23. Android-KTX • AndroidͷAPIΛKotlin͔Β࢖͍΍͘͢͢ΔͨΊͷKotlinͷ֦ுؔ ਺܈ • طʹόʔδϣϯ0.3.0͕ެ։͞Ε͍͕ͯͨɺ1.0.0-alpha1͕ެ։͞ Εͨ • Android FrameworkҎ֎ͷϥΠϒϥϦʹରԠ֦ͨ͠ுؔ਺͕ଟ

    ͘௥Ճ͞Ε͍ͯΔ
  24. Android KTX 1.0.0-alpha1 ը૾ : https://www.youtube.com/watch?v=st1XVfkDWqk

  25. Android KTXͷྫ

  26. BTW : Kotlinʹ͍ͭͯ • KotlinΛ࢖ͬͨPlayStore্ͷΞϓϦ͸ࡢ೥ൺͰ6ഒʹ • σΟϕϩούʔͷ35ˋ͕KotlinΛ࢖͓ͬͯΓɺຖ݄૿Ճ͍ͯ͠Δ • Android DevelopersͷυΩϡϝϯτ΋KotlinରԠ൛͕ఏڙ͞ΕΔ

    Α͏ʹͳͬͨ
  27. • Modern Android development : Android Jetpack, Kotlin, and more

    • https://www.youtube.com/watch?v=IrMw7MEgADk • Android Jetpack: how to smartly use Fragments in your UI • https://www.youtube.com/watch?v=WVPH48lUzGY • Android Jetpack: what's new in Architecture Components • https://www.youtube.com/watch?v=pErTyQpA390 • Android Jetpack: what's new in Android Support Library • https://www.youtube.com/watch?v=jdKUm8tGogw • Android Jetpack: easy background processing with Work Manager • https://www.youtube.com/watch?v=IrKoBFLwTN0 • Android Jetpack : managing UI navigation with Navigation Controller • https://www.youtube.com/watch?v=8GCXtCjtg40 • Android Jetpack: sweetening Kotlin development with Android KTX • https://www.youtube.com/watch?v=st1XVfkDWqk • Android Jetpack : managing infinite lists with RecyclerView & Paging • https://www.youtube.com/watch?v=BE5bsyGGLf4
  28. AndroidX

  29. AndroidX • ৽͍͠AndroidͷόʔδϣϯͰ͸͋Γ·ͤΜ :-) • Support LibraryͳͲͷύοέʔδΛϦϑΝΫλϦϯάͨ͠΋ͷ • OSʹόϯυϧ͞Εͳ͍Androidͷ֦ுϥΠϒϥϦ •

    Jetpackʹؚ·ΕΔ΋ͷ΋ؚ·Εͳ͍΋ͷ΋͋Δ
  30. AndroidX ͷϦϑΝΫλϦϯά • ύοέʔδΛϦϑΝΫλϦϯά • com.android.support.** → androidx.** • android.databinding.**

    → androidx.databinding.** • android.arch.** → androidx.arch.core.** • v4΍v7ͳͲͷදه͕ফ͑Δ • όʔδϣϯ͕28.0.0͔Β1.0.0ʹϦηοτ͞ΕΔ • ؅ཧ΋ݫີʹ (ϝδϟʔόʔδϣϯ͕ಉ͡ͳΒޓ׵ੑ͋Γ)
  31. AndroidX΁ͷҠߦ • Android StudioʹϦϑΝΫλϦϯάπʔϧ͕ఏ ڙ͞ΕΔ • ࢖͍ͬͯΔϥΠϒϥϦͷJAR/AARΛม׵͢Δ Jetifierͱ͍͏πʔϧ΋ఏڙ͞ΕΔ ը૾ :

    https://android-developers.googleblog.com/2018/05/hello-world-androidx.html
  32. Android App Bundle

  33. Android App Bundle • apkʹ୅ΘΔ৽͍͠ΞϓϦެ։ͷϑΥʔϚοτ • Google Play Dynamic Deliveryͱ૊Έ߹ΘͤΔ͜ͱͰɺݴޠ΍ղ

    ૾౓ͳͲɺ୺຤ʹඞཁͳ෦෼͚ͩΛapkԽͯ͠഑৴͠ɺΞϓϦα ΠζΛݮΒ͢͜ͱ͕Ͱ͖Δ • ΞϓϦαΠζ͕ݮΕ͹ɺΠϯετʔϧ཰͸্͕Δ
  34. App Bundle + Dynamic Delivery ը૾ : https://android-developers.googleblog.com/2018/05/google-io-2018-whats-new-in-android.html

  35. Android App Bundle • ಛఆͷػೳ͚ͩΛಛఆͷϢʔβʹ͚ͩ഑৴͢Δ͜ͱ΋Ͱ͖Δ (Dynamic feature) • Build the

    new, modular Android App Bundle • https://www.youtube.com/watch?v=bViNOUeFuiQ • What's new with the Android build system • https://www.youtube.com/watch?v=N5xONyp69eU
  36. One more thing

  37. MotionLayout • ConstraintLayout 2.2 ͔Βಋೖ͞ΕΔConstraintLayoutͷαϒΫϥ ε • Viewͷঢ়ଶ(ConstraintSet)ؒΛΞχϝʔγϣϯΛ࢖ͬͯಈ͔͢͜ ͱ͕Ͱ͖Δ •

    What's new with ConstraintLayout and Android Studio desing tools • https://www.youtube.com/watch?v=ytZteMo4ETk
  38. Motion Editor ը૾ : https://www.youtube.com/watch?v=ytZteMo4ETk

  39. Thank you!