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

Firebase crashの実践的導入

Firebase crashの実践的導入

2016/07/08(金)に行われた、神泉Firebase勉強会 #1で発表した内容の資料です

Ad37f739bffa0e38c8461e452cb3a489?s=128

yamacraft

July 08, 2016
Tweet

Transcript

  1. Firebase crash ͷ ࣮ફతಋೖ @yamacraft

  2. profile • @yamacraft (Wataru Yamada) • LeadingMark, inc / team

    Y.G.E. • Mobile Application Engineer
  3. https://www.recme.jp/

  4. Androidʹ͓͚Δ Firebase crashͷ࿩Λ͠·͢

  5. What’s Firebase crash? • ΫϥογϡϨϙʔτऩूػೳ • ແྉͰ࢖͑Δʢॏཁʣ • AndroidͳΒdependenciesʹ௥Ճͤ͞Δ͚ͩ Ͱಈ࡞͢Δʢॏཁʣ

  6. AndroidͰͷಋೖํ๏ • app/build.gradleʹҎԼΛهड़ ˞DPSF͸͍Βͳ͍͔΋ʜ

  7. ΞϓϦΫϥογϡ௚ޙͷLogCat

  8. ίϯιʔϧը໘

  9. ίϯιʔϧը໘

  10. ίϯιʔϧը໘

  11. ίϯιʔϧը໘

  12. ॾ஫ҙ • CrashlyticsͷΑ͏ͳΫϥελClose؅ཧػೳ͕ͳ͍ • Google Play Service͕ೖ͍ͬͯͳ͍୺຤ͩͱ࢖͑ͳ͍ • FirebaseCrashSenderServiceͰcom.google.gmsύοέʔδͷΫ ϥεΛ࢖͍ͬͯΔͨΊ

    • ͳΜ͔ApplicationΫϥε͕ϚϧνϓϩηεͰ࣮ߦ͞ΕΔՄೳੑ͕͋ ΔΒ͍͠ʢະݕূʣ • https://firebase.google.com/docs/crash/android#known-issues
  13. QɿCrashlyticsʹൺ΂Δͱ ͪΐͬͱඍົ͡Όͳ͍ʁ ʢҠߦ͢Δ΄Ͳ͡Όͳ͍ʁʣ

  14. Aɿͦ͏ࢥ͏

  15. Aɿ࢖͏ͳΒʢCrashlytics ͱʣซ༻͕͍͍͔΋

  16. ࣮ફฤ

  17. ࣮຿ʹ࢖͏্Ͱߟྀ͍ͨ͜͠ͱ • ΫϥογϡҎ֎Ͱ΋ΫϥογϡϨϙʔτΛૹ Γ͍ͨʢϩάΛஷΊ͍ͨʣ • Crashlyticsͷcore.log()΍ core.logException()ͱಉ౳ͷػೳ • ೉ಡԽΛ͔͚ͯ΋ΩνϯͱΤϥʔՕॴ͕ಛఆ Ͱ͖ΔΑ͏ʹ͢Δ

  18. ΫϥογϡҎ֎Ͱ΋ϩάૹ৴ • FirebaseCrash.log(String message) • ϩάΛஷΊΔ • ͜ͷ࣌఺Ͱ͸ૹ৴͠ͳ͍ʢΫϥογϡϨϙʔτ ͷૹ৴࣌ʹ߹ΘͤͯૹΒΕΔʣ •

    FirebaseCrash.report(Throwable throwable) • ʮඇக໋తΤϥʔʯͱͯ͠ૹ৴͢Δ
  19. ྫɿTimber.TreeͰରԠ

  20. proguardରԠ • crashlyticsͱಉ༷ͷઃఆͰOK • ϚοϐϯάϑΝΠϧ͸ίϯιʔϧʹૹΔͨΊ ʹ࢖͏

  21. ίϯιʔϧը໘

  22. ·ͱΊ • Google Play Service͕ೖ͍ͬͯͳ͍୺຤Ͱͷར༻΋ߟྀ͍ͯ͠Δ ৔߹͸Φεεϝ͠ͳ͍ • Kindleͱ͔ɺத՚λϒϨοτܥͱ͔ • CrashlyticsͰ΍ΕΔ͜ͱ͸େମͰ͖ͦ͏ʢίϯιʔϧը໘Λআ͘ʣ

    • ಛԽͨ͠ϝϦοτ͸ਖ਼௚ݟ౰ͨΒͳ͍ɻࠓޙʹظ଴ɻ • iOS/Android/WebΛҰͭͷϓϩδΣΫτͰ·ͱΊΒΕΔͷ͸ɺ ͍͍͜ͱͳͷ͔΋͠Εͳ͍ʢσϝϦοτʹ΋ͳΓ͑ͦ͏ʣ
  23. ͓·͚

  24. iOSΞϓϦʹFirebase crashೖΕ·ͨ͠˞

  25. iOS൛ͷΫϥογϡϨϙʔτ͸ Ͳ͏΍ͬͯૹΒΕΔͷ͔ʁ • Ϋϥογϡ࣌ʹϩάΛอଘ͠ɺ࣍ճىಈ࣌ʹ ૹ৴͢ΔΑ͏ͳܗͰ࣮૷͞Ε͍ͯΔͬΆ͍ • ͭ·ΓΫϥογϡͯ͠ೋ౓ͱىಈͯ͘͠Εͳ ͍ͱ৘ใ͕ͱΕͳ͍

  26. iOS൛ͷ࣮૷࣌ͷ஫ҙ • ParseCrashReportͱॏෳΤϥʔ͕ൃੜ͢Δ • GoogleʮnotificationʹҠߦ͠Ζʯ

  27. ͓͠·͍ • [Qiita]Firebase crashͷಋೖTipsʢAndroidฤʣ • http://qiita.com/yamacraft/items/ bc224ea7003c763f7118 • [Qiita]Firebase crashͱParseCrashReportingͰduplicate

    symbolΤϥʔ͕ൃੜ͢Δ • http://qiita.com/yamacraft/items/ 7bd6b45d7d08b5cbaeec