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

Dive into AndroidX

Dive into AndroidX

AndroidX is a replacement / refactoring of Android Support Library. It was announced at Google I/O 2018 as alpha, and recently the stable version of it was officially released. Since Android Support Library v28 is the last version as a target to be maintained and afterward all the feature additions and bug fixes will be added to AndroidX, it is crucial for Android developers to migrate from Support Library to AndroidX.

In this talk, I have talked briefly about what AndroidX is, why Support Library needed to be refactored and re-polished as AndroidX, and finally how we can migrate to AndroidX.

Shohei Kawano

October 07, 2018
Tweet

More Decks by Shohei Kawano

Other Decks in Technology

Transcript

  1. %JWFJOUP"OESPJE9
    4IPIFJ,BXBOP
    !TIBVOLBXBOP

    View full-size slide

  2. "OESPJE9
    w l"OESPJE&YUFOTJPO-JCSBSJFTz
    w "OOPVODFEJO(PPHMF*0
    w 3FQMBDFNFOU 3FGBDUPSJOH
    PGUIFl4VQQPSU-JCSBSZz

    View full-size slide

  3. 4VQQPSU-JCSBSZ

    View full-size slide

  4. 4VQQPSU-JCSBSZ
    w "DPMMFDUJPOPGMJCSBSJFTUPTVQQPSU"OESPJE
    BQQMJDBUJPOEFWFMPQNFOU
    w #BDLXBSEDPNQBUJCMFWFSTJPOPGUIF"1*T
    JOUSPEVDFEPOOFX"OESPJE4%,WFSTJPO
    w 6*DPNQPOFOUTUIBUBSFOPUJODMVEFEJOUIF
    "OESPJE'SBNFXPSL
    w 6UJMJUZDMBTTFT

    View full-size slide

  5. implementation "com.android.support:support-v4:$supportLibVersion"
    implementation "com.android.support:appcompat-v7:$supportLibVersion"
    implementation "com.android.support:design:$supportLibVersion"

    View full-size slide

  6. *TTVFTXJUI4VQQPSU
    -JCSBSZ

    View full-size slide

  7. "SUJGBDU/BNFT

    View full-size slide

  8. .BEFUPXPSLGPSUIPTF"1*-FWFMT

    View full-size slide

  9. implementation "com.android.support:support-v4:$supportLibVersion"
    implementation "com.android.support:appcompat-v7:$supportLibVersion"
    implementation "com.android.support:design:$supportLibVersion"

    View full-size slide

  10. implementation “com.android.support:support-v4:28.0.0”
    implementation "com.android.support:appcompat-v7:28.0.0"
    implementation "com.android.support:design:28.0.0"

    View full-size slide

  11. implementation “com.android.support:support-v4:28.0.0”
    implementation "com.android.support:appcompat-v7:28.0.0"
    implementation "com.android.support:design:28.0.0"

    View full-size slide

  12. implementation “com.android.support:support-v4:28.0.0”
    implementation "com.android.support:appcompat-v7:28.0.0"
    implementation "com.android.support:design:28.0.0"
    .BKPSWFSTJPOHPFTVQPOFWFSZ(PPHMF*0
    "MMPGUIFMJCSBSJFTBSFFYQFDUFEUPTQFDJGZFYBDUMZUIFTBNFWFSTJPO
    .JOPSWFSTJPOCVNQNBZJODMVEFCSFBLJOHDIBOHFT

    View full-size slide

  13. "OESPJE9
    w "OOPVODFEJO(PPHMF*0
    w l"OESPJE&YUFOTJPO-JCSBSJFTz
    w 3FQMBDFNFOU 3FGBDUPSJOH
    PGUIFl4VQQPSU-JCSBSZz

    View full-size slide

  14. "OESPJE9
    w 3FTFUGSPN
    w 4FNBOUJD7FSTJPOJOH
    w .BKPSWFSTJPOCJOBSZDPNQBUJCJMJUZ
    w .JOPSGFBUVSFSFMFBTF
    w #VHpY
    w 1FSBSUJGBDUSFMFBTFBOEWFSTJPOJOH

    View full-size slide

  15. .JHSBUFUP"OESPJE9

    View full-size slide

  16. com.android.support:appcompat-v7 -> androidx.appcompat:appcompat
    com.android.support:design -> com.google.android.material:material

    View full-size slide

  17. w SEQBSUZMJCSBSJFTNBZDPOUBJOTVQQPSUMJCSBSZ
    EFQFOEFODJFT
    w +FUJpFSDIFDLTMJCSBSJFT`""3+"3pMFTBOENJHSBUFT
    UIFNUP"OESPJE9
    +FUJpFS

    View full-size slide

  18. IUUQTEFWFMPQFSBOESPJEDPNKFUQBDLBOESPJEYNJHSBUF

    View full-size slide

  19. "OESPJE+FUQBDLXIBUTOFXJO"OESPJE4VQQPSU-JCSBSZ:PV5VCF

    IUUQTXXXZPVUVCFDPNXBUDI WKE,6NU(PHX
    .JHSBUJOHUP"OESPJE9

    IUUQTEFWFMPQFSBOESPJEDPNKFUQBDLBOESPJEYNJHSBUF
    -JOLT

    View full-size slide

  20. %JWFJOUP"OESPJE9
    4IPIFJ,BXBOP
    !TIBVOLBXBOP
    pO

    View full-size slide