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

JetpackCompose 導入半年で感じた 改善点

sobaya
June 30, 2022

JetpackCompose 導入半年で感じた 改善点

sobaya

June 30, 2022
Tweet

More Decks by sobaya

Other Decks in Programming

Transcript

  1. +FUQBDL$PNQPTF
    ಋೖ൒೥Ͱײͨ͡
    վળ఺

    View full-size slide

  2. w !TPCBZB5XJUUFS
    w !TPCBZB(JUIVC
    w TPCZB;FOO
    ʙ͓͍͍݈͠߁ʹೖࣾ
    Ϟδϡʔϧ෼ׂͨ͠Γɺ'MPX΍+FUQBDL$PNQPTFͷ
    ಋೖ ४උؚΉ
    Λͨ͠ΓɺञҿΜͩΓͯ͠·͢ɻ
    ৭ΜͳΤϯδχΞٸื

    View full-size slide

  3. ͓඼ॻ͖
    "UPNJD%FTJHO
    ͷ


    4UBUF
    ؅

    ͷ




    ʹ


    ͠
    ͨ
    ը


    ޙ
    ʹ

    View full-size slide

  4. ࠓ೔ͷ಺༰͸ฐࣾͷ։ൃମ੍΍։ൃ
    ͷํ๏Ͱ͸͜͏ͩͬͨͱݴ͏͓࿩͠
    ͳͷͰɺଞͷ؀ڥͰ͸ҙݟ͕શ͘ม
    ΘΔͱࢥ͍·͢ɻ

    View full-size slide

  5. "UPNJD%FTJHOͷಋೖ

    View full-size slide

  6. એݴత6*͸࠶ར༻͕ڧ͍ʂ
    ΞτϛοΫσβΠϯ࠷ߴʂ
    +FUQBDL$PNQPTFͳΒ

    "UPNJD%FTJHOͩʂʂ

    View full-size slide

  7. IUUQTEFWFMPQFSBOESPJEDPNKFUQBDLDPNQPTFMBZPVUTCBTJDTTMPUCBTFEMBZPVUT

    View full-size slide

  8. ΞτϛοΫσβΠϯಋೖ͍ͨͬ͢͠
    0,ʂࠓͪΐ͏ͲͦΜͳײ͡ͷݕ౼ͯͨ͠ʙ
    ͕͢͞ʂ༏लʂʂ

    View full-size slide

  9. σβΠφʔ͞Μ๩͍͠
    ԕྀͯ͠ίϛϡχέʔγϣϯ͞΅ͬͨ
    ΤϯδχΞ͚ͩͰ΋෼ׂ͓ͯ͜͠͏

    View full-size slide

  10. σβΠϯϕʔεͰܾΊͯͳ͍͔Β
    ਓʹΑͬͯײ͕֮ͣΕΔ

    View full-size slide

  11. ࡞Δ࣌΋೰Ή
    13ͷϨϏϡʔ΋೰Ή

    View full-size slide

  12. ͦ΋ͦ΋ɾɾɾ

    View full-size slide

  13. ͚͖ͬΐ͘Ͳ͏͢Δͷʁ

    View full-size slide

  14. ࢀߟ
    IUUQTXXXZPVUVCFDPNXBUDI WMX(UQ:S1&

    View full-size slide

  15. ɾσβΠφʔ։ൃऀ͕ΈΜͳͰଉΛ߹Θͤͯ"UPNJD%FTJHOͰ͍͜͏ʂͬͯͳΒͳ͍ͳΒແཧ͠ͳ
    ͍
    ɾͦ΋ͦ΋ΞϓϦશମͰσβΠϯ͕ڞ௨Խ͞Ε͍ͯΔ͔΋ߟ͑Δ
    ɾڞ௨Խ͢ΔͳΒطଘͷ$PNQPTBCMFΛ୳͠΍͍͢Α͏ʹ͠ͳ͍ͱ৽͘͠࡞ͬͨํ͕ૣ͍ʹͳͬͯഁ
    ୼͢Δ͔΋
    w $PNQPTBCMFΛ෼ׂ͠ͳ͍ͰίʔυΛॻ͘ͱՄಡੑ͕མͪΔͷͱɺকདྷ΍ͬͺΓ࠶ར༻͍ͨ͠ͱ
    ͳͬͨ࣌ʹਏ͍ͷͰ෼ׂ͸͓ͯ͘͠ 4MPUCBTFEMBZPVUT΋࢖͑Δ

    View full-size slide

  16. 4UBUF؅ཧͷྺ࢙

    View full-size slide

  17. w"1*͔Βड͚औͬͨҰཡΛදࣔ͢Δ
    wνΣοΫͷ0/0''
    wങ͍෺׬ྃͷϘλϯ
    ௨৴த
    ௨৴׬ྃ
    ௨৴Τϥʔ
    Ϧετ͕ଘࡏ͢Δ
    Ϧετ͕ଘࡏ͠ͳ͍

    View full-size slide

  18. 3PPN͔Β৘ใऔಛ
    "1*͔Β৘ใऔಛ
    ΞϨϧΪʔ
    ͓೰Έ
    ͦͷଞɾɾɾ

    View full-size slide

  19. IUUQTEFWFMPQFSBOESPJEDPNUPQJDBSDIJUFDUVSFVJMBZFS IMFO

    View full-size slide

  20. w࣮૷࣌΍ϨϏϡʔ࣌ʹݸਓͷײ֮Ͱෳࡶͳը໘͔γϯϓϧͳը໘͔෼͔ΕΔ͜ͱΛආ͚͍ͨ
    w࠷ॳ͸γϯϓϧʹ࡞͍ͬͯͯ΋ػೳ௥Ճ࣌ʹπϥ͘ͳΔՄೳੑΛͳΔ΂͘ආ͚͍ͨ
    wը໘ʹΑ࣮ͬͯ૷ํ๏͕ҧ͏ͱ৽͘͠ೖࣾͯ͘͠Εͨਓ͕ࠞཚͦ͠͏
    wެࣜͷ6*ϨΠϠ6*ঢ়ଶΛఆٛ͢ΔͰ΋EBUBDMBTTΛ࢖͍ͬͯΔͷͰେ͖ͳ໰୊͸ແ͍͸ͣ
    IUUQTEFWFMPQFSBOESPJEDPNKFUQBDLHVJEFVJMBZFS IMKBEF
    fi
    OFVJTUBUF

    View full-size slide

  21. ಋೖʹࣦഊͨ͠ը໘

    View full-size slide

  22. 7JFX1BHFS಺ʹ-B[Z$PMVNO

    View full-size slide

  23. $PMVNOͰԾ࣮૷ͯ͠Δ࣌͸
    ໰୊ແ͠
    -B[Z$PMVNOͰ
    JUFN
    ΛԿ౓΋ݺΜͩ࣌΋
    ໰୊ແ͠
    -B[Z$PMVNOͰ
    JUFNT
    Λ࢖͏ͱύϑΥʔϚϯε
    ྼԽ
    1BHJOHΛ࢖͍͍ͨͷͰ
    ఘΊΔ͔͠ແ͔ͬͨʜ

    View full-size slide

  24. wJUFN
    ͱJUFNT
    ͰύϑΥʔϚϯεʹ͕ࠩग़Δͱ૝ఆ͍ͯ͠ͳ͔ͬͨ
    wதͷ࣮૷ΛݟΔ༨༟͕͋Ε͹͍͍͚ͲɺৗʹݟΕΔ෺Ͱ΋ແ͍
    wͲ͜·Ͱ΍ΕΔ͔೉͍͚͠Ͳɺ࠷ऴతʹ࢖͏ؔ਺Λ࢖͏Α͏ʹ͓͍ͯͨ͠ํ͕ແ೉

    View full-size slide

  25. ը໘ͷҰ෦
    ը໘ͷେ෦෼
    ը໘શ෦

    View full-size slide

  26. Ұ൪৽͍͠ϝϯόʔ
    Ұ൪৽͍͠ϝϯόʔ

    View full-size slide