AndroidXに移行しようと`してみた`!

F94fd9d48c737d6d44a348aa3e37b1bc?s=47 takattata
August 02, 2018

 AndroidXに移行しようと`してみた`!

shibuya.apk #27

F94fd9d48c737d6d44a348aa3e37b1bc?s=128

takattata

August 02, 2018
Tweet

Transcript

  1. 1 AndroidXʹҠߦ͠Α͏ ͱ`ͯ͠Έͨ`ʂ Takasy
 @takattata @shibuya.apk #27

  2. 2 ˞஫ҙ˞  "OESPJE9΁ͷҠߦ͸Aະ׬ྃA  ׬શʹೋ൪ઝ͡ωλ
 IUUQTTQFBLFSEFDLDPNTZBSJIV
 BOESPJEYOJZJYJOHTVSVUBNFOJ

  3. 3 "OESPJE9 ࠷৽CFUB   ɾ4VQQPSU-JCSBSZ΍""$Λͻͬ͘ΔΊͨϥΠϒϥϦ ɾ4VQQPSU-JCSBSZҎ߱͸ग़ͳ͍ͷͰ͍ͣΕҠߦඞਢ https://developer.android.com/topic/libraries/support-library/androidx-rn https://youtu.be/7wuc5Btyr-E

  4. 4 ʮ··ͷͯʯͰҠߦͯ͠ΈΔ ɾDPNQJMF4EL7FSTJPO ɾDPNBOESPJEUPPMTCVJMEHSBEMF

  5. 5 .JHSBUFUP"OESPJE9 "OESPJE4UVEJP ࠷৽CFUB  ͔Β༻ҙ͞Ε͍ͯΔػೳ ˞$BOBSZ΋ग़͍ͯΔ ࣮ߦ͢ΔͨΊʹ͸
 DPNQJMF4EL7FSTJPO
 ʹ͢Δ

  6. 6 "OESPJE4UVEJPͰͷ࣮ߦ४උ ɾDPNBOESPJEUPPMTCVJMEHSBEMF ɹɹˠCFUB ࣗ෼ͷ؀ڥ͕CFUB  ɾ$SBTIMZUJDTQMVHJO JPGBCSJDUPPMTHSBEMF  ɹɹˠ

  7. 7 "OESPJE4UVEJPͰͷ࣮ߦ४උ ɾDPNBOESPJEUPPMTCVJMEHSBEMF ɹɹˠCFUB ࣗ෼ͷ؀ڥ͕CFUB  ɾ$SBTIMZUJDTQMVHJO JPGBCSJDUPPMTHSBEMF  ɹɹˠ

    ビルドして動くことを確認できた! いざ!Migrate to AndroidX!
  8. 8

  9. 9

  10. 10 ࣮ߦޙͷ%J⒎ ɾJNQMFNFOUBUJPO JNQPSU͢ΔϥΠϒϥϦ͕ "OESPJE9ͷϥΠϒϥϦʹࣗಈͰม׵͞ΕΔ
 ɾϨΠΞ΢τ .BOJGFTU YNM ಺΋ࣗಈͰม׵͞ΕΔ

  11. 11 ࣮ߦޙͷ%J⒎ ɾHSBEMFQSPQFSUJFTʹ௥ه͞ΕΔ

  12. 12 σόοά࣮ߦʂ

  13. 13 F<LBQU>"OFYDFQUJPOPDDVSSFE KBWBMBOH/P$MBTT%FG'PVOE&SSPSBOESPJE TVQQPSUBOOPUBUJPO/PO/VMM ʀЧʀA స͚ͨʂ

  14. 14 ݕࡧͯ͠ΈΔͱʜ https://github.com/grandstaish/paperparcel/issues/216

  15. 15 ݕࡧͯ͠ΈΔͱʜ https://github.com/grandstaish/paperparcel/issues/216 使ってます。

  16. 16 13͸ग़͍ͯΔ͕ະϚʔδ

  17. 17 ճආࡦ  1BQFS1BSDFMΛஔ͖׵͑Δ J !1BSDFMJ[F JJ 1BSDFMFS  1BQFS1BSDFMͷ13ͷϒϥϯνΛϥΠϒϥϦԽ

    ͯ͠ΈΔ
  18. 18 1BQFS1BSDFMΛஔ͖׵͑Δ J !1BSDFMJ[F
 ˠFYQFSJNFOUBMͳػೳΒ͍͠ͷͰҰ୴ஔ͘
 IUUQTLPUMJOMBOHPSHEPDTUVUPSJBMTBOESPJEQMVHJOIUNM ˞ϓϩμΫτಋೖ͍ͯ͠Δࣄྫͦͦ͋͜͜Γͦ͏ʁ
 IUUQTUFDINJTPDBKQFOUSZ JJ 1BSDFMFS


    ˠͦ΋ͦ΋1BSDFMBCMFͷཧղ͕௥͍͍͍ͭͯͳ ͯ͘ϥΠϒϥϦͷཧղ͕ग़དྷͳ͔ͬͨʂ
 IUUQTHJUIVCDPNKPIODBSMQBSDFMFS
  19. 19 1BQFS1BSDFMͷ13ͷϒϥϯνΛ
 ϥΠϒϥϦԽͯ͠ΈΔ ϥΠϒϥϦϞδϡʔϧΛ࡞੒ˠϓϩμΫτଆͰΠϯϙʔτ https://developer.android.com/studio/projects/android-library?hl=ja

  20. 20 1BQFS1BSDFMͷ13ͷϒϥϯνΛ
 ϥΠϒϥϦԽͯ͠ΈΔ https://developer.android.com/studio/projects/android-library?hl=ja ˠ!1BQFS1BSDFM࢖༻ΫϥεͰΤϥʔ͕ग़ͨ … Ϋϥε໊ ࣌ؒ੾ΕʂҰ୴อཹ

  21. 21 ·ͱΊ ͻͱ·ͣ.JHSBUFUP"OESPJE9Λࢼ͓ͯ͘͠ͱ
 ϥΠϒϥϦͷ֬ೝͳͲʹ΋ྑͦ͞͏ ΋ͪΖΜ࠷ޙ·ͰͪΌΜͱ
 ಈ͔ͤΔͷ͕ϕετʂ
 Ҿ͖ଓ͖ࢼ͠·͢