Slide 1

Slide 1 text

τϧςʹ͓͚Δ৽نANDROID
 ΞϓϦ։ൃͷٕज़બఆʹ͍ͭͯ ͔Θͷ @shaunkawano גࣜձࣾτϧς / Android Developer

Slide 2

Slide 2 text

No content

Slide 3

Slide 3 text

ɾ2016೥11݄ઃཱ ɾΧοϓϦϯάΞϓϦ։ൃ ɾCEO, Designer, Server, iOS, Android גࣜձࣾτϧς (2017/01/12࣌఺) IUUQTXXXDZCFSBHFOUDPKQOFXTJOGPJOGPEFUBJMJE

Slide 4

Slide 4 text

AndroidΞϓϦ։ൃΛ͢ΔͨΊ ʹɺͲΜͳٕज़Λબఆ͔ͨ͠

Slide 5

Slide 5 text

৮Εͳ͍͔΋ ɾબఆٕͨ͠ज़ͷৄࡉ΍αϯϓϧίʔυʹ͍ͭͯ ɾٕज़Ҏ֎ͷ͜ͱʹ͍ͭͯ ิ଍ ɾ2017/1/12࣌఺Ͱબఆٕͨ͠ज़΍πʔϧʹ͍ͭͯ঺հͯ͠͠·͢ ɾʮ͋ͬͪΑΓͬͪ͜ͷ΄͏͕༏Ε͍ͯΔʯͱ͍͏Θ͚Ͱ͸͋Γ·ͤΜ ɾ͝ҙݟɺΞυόΠεͳͲ͓଴͓ͪͯ͠Γ·͢ (ͥͻ௖͖͍ͨͰ͢) ಺༰ʹ͍ͭͯ

Slide 6

Slide 6 text

AndroidΞϓϦ։ൃΛ͢ΔͨΊ ʹɺͲΜͳٕज़Λબఆ͔ͨ͠

Slide 7

Slide 7 text

ٕज़બఆ ઃܭ CI ͦͷଞ ओཁϥΠϒϥϦ

Slide 8

Slide 8 text

ٕज़બఆ ઃܭ CI ͦͷଞ ओཁϥΠϒϥϦ

Slide 9

Slide 9 text

ઃܭ

Slide 10

Slide 10 text

ઃܭͰॏཁࢹͨ͜͠ͱ

Slide 11

Slide 11 text

1. ॳΊͯͰ΋ཧղ͠΍͍͢ 2. ߏ੒͕෼͔Γ΍͍͢ 3. εέʔϧ͠΍͍͢

Slide 12

Slide 12 text

'MVY IUUQTGBDFCPPLHJUIVCJPqVY

Slide 13

Slide 13 text

IUUQTGBDFCPPLHJUIVCJPqVY • σʔλͷྲྀΕΛҰํ޲ʹ੍ݶ • ঢ়ଶ؅ཧͷ൥Θ͔͠͞Βղ์ • Action, Dispatcher, Store, View Flux

Slide 14

Slide 14 text

Fluxͷߏ੒ͱσʔλͷྲྀΕ IUUQTGBDFCPPLHJUIVCJPqVYEPDTJOEFQUIPWFSWJFXIUNMTUSVDUVSFBOEEBUBqPX

Slide 15

Slide 15 text

AndroidΞϓϦ։ൃʹ͓͚ΔFluxͷৄࡉɾαϯϓϧΞϓϦ “flux de relax” IUUQTTQFBLFSEFDLDPNPHBDMFKBQBOqVYEFSFMBY

Slide 16

Slide 16 text

ٕज़બఆ ઃܭ: Flux ओཁϥΠϒϥϦ CI ͦͷଞ

Slide 17

Slide 17 text

ओཁϥΠϒϥϦ

Slide 18

Slide 18 text

• Dagger 2 • OkHttp 3 / Retrofit 2 • Databinding • RxJava 2 / RxAndroid • RxLifecycle • Firebase • EventBus • Lightweight-Stream-API • Retrolambda • Moshi • Fresco ओཁϥΠϒϥϦ (TPO -PHBO4RVBSF 4UBUJD(TPO (MJEF 1JDBTTP

Slide 19

Slide 19 text

• Dagger 2 • OkHttp 3 / Retrofit 2 • Databinding • RxJava 2 / RxAndroid • RxLifecycle • Firebase • EventBus • Lightweight-Stream-API • Retrolambda • Moshi • Fresco ओཁϥΠϒϥϦ (TPO -PHBO4RVBSF 4UBUJD(TPO (MJEF 1JDBTTP

Slide 20

Slide 20 text

Moshi IUUQTHJUIVCDPNTRVBSFNPTIJ • Android / Java༻JSONϥΠϒϥϦ • ࢖͍ํ͸Gsonͱ΄ͱΜͲಉ͡ • ઃఆͰ͖Δ͜ͱ͸GsonΑΓ΋গͳ͍ • OkHttp, Retrofitಉ༷okioΛ಺෦Ͱ࢖͍ͬͯΔ

Slide 21

Slide 21 text

Fresco IUUQGSFTDPMJCPSH • XMLͰͷը૾Ճ޻ػೳ͕๛෋ • 1ϲ݄΄Ͳલv1.0.0͕ϦϦʔε • ଞϥΠϒϥϦʹൺ΂ͯ༰ྔେ͖Ί͔΋

Slide 22

Slide 22 text

Fresco SimpleDrawee XML ࢦఆՄೳϓϩύςΟҰཡ IUUQGSFTDPMJCPSHEPDTVTJOHESBXFFTYNMIUNM

Slide 23

Slide 23 text

ٕज़બఆ ઃܭ: Flux CI ͦͷଞ ओཁϥΠϒϥϦ

Slide 24

Slide 24 text

CI

Slide 25

Slide 25 text

Bitrise IUUQEFWDFOUFSCJUSJTFJP IUUQTHJUIVCDPNGBTUMBOFGBTUMBOF +

Slide 26

Slide 26 text

ʮJenkins? Circle CI? Wercker?ʯ ʮBitriseͱ͍͏ϞόΠϧΞϓϦ։ൃ޲͚ͷ αʔϏε͕͋ΔΒ͍͠ʯ ʮ࢖ͬͯΈ·͠ΐ͏ʯ CIπʔϧɾαʔϏε

Slide 27

Slide 27 text

Bitrise ɾϞόΠϧΞϓϦ։ൃ޲͚CI/CD PaaS ɾiOS, Android, Xamarin ɾϑϦʔϓϥϯ͕͋Γɺ͓ࢼ͠ಋೖ͠΍͍͢ 10෼/Ϗϧυ, 200Ϗϧυ/݄ IUUQEFWDFOUFSCJUSJTFJP

Slide 28

Slide 28 text

Bitrise༗ྉϓϥϯྉۚද IUUQTXXXCJUSJTFJPQSJDJOH +1ฒྻϏϧυ௥Ճʹ͖ͭ+$50

Slide 29

Slide 29 text

Bitrise ɾϏϧυɾϦϦʔε࡞ۀΛࣗಈԽ͢Δπʔϧ ɾςετͷ࣮ߦɺAPK഑෍ɺSlack௨஌ɺ PlayStore༻εΫϦʔϯγϣοτը૾ੜ੒ͳͲ ɾࠓͷͱ͜Ζ͸ςετ࣮ߦͱSlack௨஌ͷΈར༻ IUUQTHJUIVCDPNGBTUMBOFGBTUMBOF

Slide 30

Slide 30 text

ٕज़બఆ CI: Bitrise × fastlane ઃܭ: Flux ओཁϥΠϒϥϦ ͦͷଞ

Slide 31

Slide 31 text

ݴޠ

Slide 32

Slide 32 text

IUUQMPHPEBUBCBTFTDPNKBWBMPHPIUNMKBWBJDPO

Slide 33

Slide 33 text

ςετ

Slide 34

Slide 34 text

ςετ Robolectric IUUQTJUFNPDLJUPPSH IUUQSPCPMFDUSJDPSH

Slide 35

Slide 35 text

σʔλϕʔε

Slide 36

Slide 36 text

σʔλϕʔε • Orma • SqlBrite • SqlDelight • StorIO • Realm ະఆ

Slide 37

Slide 37 text

APIυΩϡϝϯτ

Slide 38

Slide 38 text

• APIυΩϡϝϯτ • αʔόʔ։ൃதϞοΫAPIΛୟ͚Δ؀ڥ • ϞοΫAPIͷ໭Γ஋Λมߋ͠΍͍͢؀ڥ ΄͍͠΋ͷ

Slide 39

Slide 39 text

Apiary IUUQTBQJBSZJP

Slide 40

Slide 40 text

• APIυΩϡϝϯτ࡞੒πʔϧ • υΩϡϝϯτԽͨ͠APIΛ͙͢ʹୟ͘͜ͱ ͕Ͱ͖Δ • υΩϡϝϯτ͸API BlueprintͰهड़
 Apiary

Slide 41

Slide 41 text

τϧςʹ͓͚Δ৽نAndroidΞϓϦ։ൃͷٕज़બఆʹ͍ͭͯ CI: Bitrise × fastlane ઃܭ: Flux ओཁϥΠϒϥϦ: େମͦΜͳײͩ͡ΑͶ Java, Robolectric, Mockito, Apiary

Slide 42

Slide 42 text

·ͱΊ

Slide 43

Slide 43 text

• ࣭ͱ֦ுੑͷߴ͍ΞϓϦΛͰ͖Δͩ ͚ૣ͘࡞ΔͨΊͷखஈͷҰͭ • νʔϜ΍ձࣾʹΑͬͯબఆํ๏͸ҧ͏ • νʔϜͰ࿩͠߹͏ʴ৭Μͳਓ͔Βҙ ݟΛ௖͖ͳ͕Βબఆ͍ͨ͠ ٕज़બఆ

Slide 44

Slide 44 text

THANK YOU ! ͔Θͷ @shaunkawano גࣜձࣾτϧς / Android Developer