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

Firebase crash reportの実践的導入

Firebase crash reportの実践的導入

2016/07/13(水)に開催されたOtemachi Firebase#1にて使用した資料です

Ad37f739bffa0e38c8461e452cb3a489?s=128

yamacraft

July 13, 2016
Tweet

Transcript

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

  2. ਆઘFirebaseษڧձ #1ͱ ʢ΄΅ʣಉ͡಺༰Ͱ͢

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

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

  5. Androidʹ͓͚Δ Firebase crash reportͷ ࿩Λ͠·͢ʢ˞ʣ

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

    Ͱಈ࡞͢Δʢॏཁʣ
  7. ྨࣅαʔϏεʢൺֱର৅ʣ

  8. AndroidͰͷಋೖํ๏ • {project_root}/build.gradleʹҎԼΛهड़

  9. AndroidͰͷಋೖํ๏ • app/build.gradleʹҎԼΛهड़

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

  11. ίϯιʔϧը໘

  12. ίϯιʔϧը໘

  13. ίϯιʔϧը໘

  14. ίϯιʔϧը໘

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

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

  17. Aɿͦ͏ࢥ͏

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

  19. ࣮ફฤ

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

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

    FirebaseCrash.report(Throwable throwable) • ʮඇக໋తΤϥʔʯͱͯ͠ૹ৴͢Δ
  22. ίϯιʔϧը໘

  23. ྫɿTimber.TreeͰରԠ

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

  25. ίϯιʔϧը໘

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

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

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

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

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

  31. ͓͠·͍ • https://firebase.google.com/docs/crash/ • [Qiita]Firebase crashͷಋೖTipsʢAndroidฤʣ • http://qiita.com/yamacraft/items/bc224ea7003c763f7118 • [Qiita]Firebase

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