Multi-module+Navigation

 Multi-module+Navigation

E505897a79eede1a676f92740261e8f8?s=128

Masatoshi Kubode

June 18, 2019
Tweet

Transcript

  1. 8.
  2. 11.

    ©2019 Wantedly, Inc. w ಋೖલʹ࣮૷ྫΛௐࠪ w ৚݅ w ಉ͡Α͏ͳϞδϡʔϧߏ੒ w

    ϞδϡʔϧΛ·͍ͨͩભҠ͕ߟྀ͞Ε͍ͯΔ ࣮૷ྫΛௐ΂Δ
  3. 12.

    ©2019 Wantedly, Inc. w %SPJE,BJHJDPOGFSFODFBQQ • https://github.com/DroidKaigi/conference-app-2019 w /BWJHBUJPOJO.VMUJ.PEVMF1SPKFDUT •

    https://proandroiddev.com/navigation-in-multi-module-projects-9a5c53ad219 w +FUQBDL/BWJHBUJPO • https://events.google.com/io/schedule/events/2d0cb491-325a-48fb-8eea-6a9452f3b33b Link
  4. 13.

    ©2019 Wantedly, Inc. • ΞϓϦͰ1ͭͷXML • Լ૚ϞδϡʔϧʹXML • featureͰsafe-args͕࢖͑Δ •

    IDEαϙʔτ͕ͳ͍ • featureͷԼ૚ͳͷͰFragment͕ݟ͑ͳ͍ DroidKaigi2019
  5. 14.

    ©2019 Wantedly, Inc. • ProAndroidDevͷهࣄ • ΞϓϦͰ1ͭͷXML • ্૚ϞδϡʔϧʹXML •

    Լ૚ϞδϡʔϧʹΠϯλʔϑΣʔε • IDEαϙʔτ͋Γ • featureͰsafe-args͕࢖͑ͳ͍ • ΠϯλʔϑΣʔεͱ࣮૷ͷϝϯς • DI͕ඞཁ Navigation in Multi-Module Projects
  6. 15.

    ©2019 Wantedly, Inc. • Google I/O 2019ͷηογϣϯ • feature͝ͱʹ1ͭͷXML •

    ্૚ͷXMLͰfeatureͷXMLΛ͢΂ͯincludeͯ͠·ͱΊΔ • IDEαϙʔτ͋Γ • featureͰsafe-args͕࢖͑Δ • ભҠઌͷDeepLinkΛ஌Βͳ͍ͱ͍͚ͳ͍ Jetpack Navigation
  7. 19.

    ©2019 Wantedly, Inc. ࠾༻ͨ͠ख๏ sealed class MyDestination(path: String) { val

    deepLink = "my://$path".toUri() data class Feature1(val id: Int) : MyDestination("feature1/$id") data class Feature2(val id: Int) : MyDestination("feature2/$id") } fun onClick() { navController.navigate(MyDestination.Feature1(1).deepLink) }