FlutterでAAB配信

 FlutterでAAB配信

494a2760dceccc31c4bcdb689041c614?s=128

Koji Wakamiya

March 26, 2019
Tweet

Transcript

  1. FlutterͰAAB഑৴ Koji Wakamiya / Studyplus Inc.
 2019.03.26 @Flutter Meetup Tokyo

    #8
 1
  2. ࣗݾ঺հ Name : Koji Wakamiya
 Work : Studyplus, inc.
 Github

    : @koji-1009
 Twitter : @D_R_1009 Android։ൃϝΠϯͰ΍ͬͯ·͢ 2
  3. MISSION ʮֶͿتͼΛ͢΂ͯͷਓ΁ʯ ଟ͘ͷਓ͕StudyplusΛ௨ֶͯ͡शͷ͖͔͚ͬΛݟ͚ͭɺ ֶशΛָ͘͠ܧଓͰ͖Δ͜ͱΛ࣮ݱ͢Δɻ 3

  4. Flutter 1.2 Release 4

  5. # 2018೥5݄23೔ issue͕࡞੒͞ΕΔ Flutter #17829 # 2018೥11݄17೔ PR͕࡞੒͞ΕΔ Flutter #24440

    # 2018೥12݄21೔ PR͕Ϛʔδ͞ΕΔ # 2019೥2݄27೔ Flutter 1.2 Release! # 2019೥3݄26೔ Flutter Meetup Tokyo #8 5 ࣌ܥྻ
  6. Flutter 1.2͔ΒAAB͕ਖ਼ࣜαϙʔτ 6 https://developers.googleblog.com/2019/02/launching-flutter-12-at-mobile-world.html

  7. ิɿAABͱ͸ # Android App Bundle ◦ ΞϓϦ಺ϦιʔεΛ
 ඞཁͳ͚ͩ഑৴͢Δ࢓૊Έ ◦ ΞϓϦαΠζͷ࡟ݮ

    ◦ Dynamic Feature Module
 ʹΑΔϞδϡʔϧ͝ͱͷ഑৴ͳͲ 7
  8. ࣮ࡍʹΞϓϦ͸খ͘͞ͳΔͷ͔
 8

  9. ࢼͯ͠Έͨ # WebViewCheckerΞϓϦ ◦ https://github.com/koji-1009/webview_checker ◦ ࣾ಺ͷαʔόʔΤϯδχΞ޲͚ʹ࡞ͬͨWebViewͷνΣοΫΞϓϦ ▪ WebViewϓϥάΠϯͷΈ ▪

    minSDK 16, targetSDK 27 9
  10. 10

  11. 11

  12. ࢼͯ͠Έͨ 12 APK build AAB build minSDK 16 5.46MB 5.40~5.42MB

    minSDK 21 5.47MB 5.43~5.46MB
  13. ΄ͱΜͲখ͘͞ͳΒͳ͍ # PNGը૾Λར༻͍ͯ͠ͳ͍͔Βʁ ◦ Flutter Material Icon͸FontͷඳըͳͷͰΞϓϦతʹը૾͸ΞϓϦΞΠίϯը૾͚ͩ # ωΠςΟϒϥΠϒϥϦΛར༻͍ͯ͠ͳ͍͔Βʁ ◦

    FlutterͷSDKΛΈΔݶΓNDK͸ར༻͍ͯ͠ͳ͍ ◦ Method Channelܦ༝Ͱར༻͍ͯ͠Δ৔߹ʹ͸ޮՌ͕େ͖ͦ͏ # ϦιʔεϑΝΠϧ͕গͳ͍ʁ ◦ ݴޠϑΝΠϧࣗମ͸ͦ͜·Ͱେ͖͘ͳ͍ ◦ ը໘αΠζ͝ͱʹxmlΛ੾Δ͜ͱ΋΄΅ͳ͍͸ͣ 13
  14. 14 Flutter͸Dynamic feature modules ͷເΛݟΔͷ͔