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

Use KMM to call the API of the National Tax Agency

Akio Itaya
December 20, 2022

Use KMM to call the API of the National Tax Agency

potatotips #80 iOS/Android開発Tips共有会
https://potatotips.connpass.com/event/267635

Akio Itaya

December 20, 2022
Tweet

More Decks by Akio Itaya

Other Decks in Programming

Transcript

  1. AKKEY / AKIO ITAYA ࠃ੫ிެࣜAPIΛ࢖ͬͯΈͨʂ potatotips #80 KMMͰ

  2. ໊લɿ൘୩ ߊྑɹ/ɹ͖͋ͬʔ झຯɿۭؒσβΠϯ ׆ಈɿ@AkkeyLab 
 
 
 ࣗݾ঺հ

  3. ໊લɿ൘୩ ߊྑɹ/ɹ͖͋ͬʔ झຯɿۭؒσβΠϯ ׆ಈɿ@AkkeyLab 
 
 
 ࣗݾ঺հ AppBrew, Inc.

    Engineer AkkeyLab, Inc. CEO
  4. ໊લɿ൘୩ ߊྑɹ/ɹ͖͋ͬʔ झຯɿۭؒσβΠϯ ׆ಈɿ@AkkeyLab 
 ࣗݾ঺հ AppBrew, Inc. Engineer AkkeyLab,

    Inc. CEO
  5. ๏ਓొهͬͯͲΜͳΠϝʔδʁ

  6. ๏ਓొهͬͯͲΜͳΠϝʔδʁ 🎉 ͓ॕ͍ʂ🍻ͬͯΠϝʔδͷਓڍखʂ🙋

  7. ॻྨग़͚ͩ͢ʂ ๏຿ہͰ1෼🍜

  8. ొه׬ྃ͸ڭ͑ͯ͘Εͳ͍ ※ ๏ਓ൪߸ࢦఆ௨஌ॻͷ౸ணͰ׬͕ྃ෼͔Δ͕ϥά͕͋Δ

  9. ௐ΂Δ͜ͱ͸Ͱ͖Δʂ

  10. ๏ਓ൪߸ެදαΠτ https://www.houjin-bangou.nta.go.jp/

  11. ๏ਓ൪߸ެදαΠτ https://www.houjin-bangou.nta.go.jp/

  12. Kotlin Multiplatform Mobile

  13. KMM Λ࢝ΊΑ͏ʂ ެࣜυΩϡϝϯτ͕ॆ࣮ https://kotlinlang.org/docs/home.html

  14. ࣮૷ͯ͠෼͔ͬͨ Tips̏બʂ

  15. 1. iOS, Android ͷ App Name ͸෼͚Α͏ʂ 2. มͳڍಈͨ͠Β୺຤ͱΩϟογϡΫϦΞ 3.

    ϥΠϒϥϦ͸ KMM ΁ͷରԠ༗ແΛ֬ೝ ࣮૷ͯ͠෼͔ͬͨ Tips̏બʂ
  16. iOS, Android ͷ App Name ͸෼͚Α͏ʂ https://kotlinlang.org/docs/multiplatform-mobile-create- fi rst-app.html#create-the-project-from-a-template

  17. Android Android iOS, Android ͷ App Name ͸෼͚Α͏ʂ

  18. Android Android iOS iOS, Android ͷ App Name ͸෼͚Α͏ʂ

  19. ̍ͭͷσΟϨΫτϦʹ·ͱΊΒΕͯ͠·͏ Android Android iOS iOS, Android ͷ App Name ͸෼͚Α͏ʂ

  20. ̍ͭͷσΟϨΫτϦʹ·ͱΊΒΕͯ͠·͏ Android Android iOS https://kotlinlang.org/docs/multiplatform-mobile-create- fi rst-app.html#create-the-project-from-a-template ֘౰νϡʔτϦΞϧ Create your

    fi rst cross-platform app iOS, Android ͷ App Name ͸෼͚Α͏ʂ
  21. 1. iOS, Android ͷ App Name ͸෼͚Α͏ʂ 2. มͳڍಈͨ͠Β୺຤ͱΩϟογϡΫϦΞ 3.

    ϥΠϒϥϦ͸ KMM ΁ͷରԠ༗ແΛ֬ೝ ࣮૷ͯ͠෼͔ͬͨ Tips̏બʂ
  22. 1. iOS, Android ͷ App Name ͸෼͚Α͏ʂ 2. มͳڍಈͨ͠Β୺຤ͱΩϟογϡΫϦΞ 3.

    ϥΠϒϥϦ͸ KMM ΁ͷରԠ༗ແΛ֬ೝ ࣮૷ͯ͠෼͔ͬͨ Tips̏બʂ
  23. มͳڍಈͨ͠Β୺຤ͱΩϟογϡΫϦΞ API ௨৴͕ແ൓ԠʹͳΔݱ৅ʹૺ۰ 🚧 ୺຤ϦηοτͰղܾ

  24. มͳڍಈͨ͠Β୺຤ͱΩϟογϡΫϦΞ Ϗϧυ͕ਖ਼͘͠௨Βͳ͘ͳΔݱ৅ʹૺ۰🚧 ΩϟογϡΫϦΞͰղܾ

  25. 1. iOS, Android ͷ App Name ͸෼͚Α͏ʂ 2. มͳڍಈͨ͠Β୺຤ͱΩϟογϡΫϦΞ 3.

    ϥΠϒϥϦ͸ KMM ΁ͷରԠ༗ແΛ֬ೝ ࣮૷ͯ͠෼͔ͬͨ Tips̏બʂ
  26. 1. iOS, Android ͷ App Name ͸෼͚Α͏ʂ 2. มͳڍಈͨ͠Β୺຤ͱΩϟογϡΫϦΞ 3.

    ϥΠϒϥϦ͸ KMM ΁ͷରԠ༗ແΛ֬ೝ ࣮૷ͯ͠෼͔ͬͨ Tips̏બʂ
  27. A. API ௨৴͸ Ktor B. Ktor 2.2.X ܥͰ iOS Ϗϧυʹࣦഊ͢ΔͷͰ஫ҙ

    C. ؀ڥม਺؅ཧ͸ BuildKon fi g ϥΠϒϥϦ͸ KMM ΁ͷରԠ༗ແΛ֬ೝ ެࣜυΩϡϝϯτ͕ॆ࣮ https://ktor.io/docs/getting-started-ktor-client-multiplatform-mobile.html#coroutines
  28. ϥΠϒϥϦ͸ KMM ΁ͷରԠ༗ແΛ֬ೝ A. API ௨৴͸ Ktor B. Ktor 2.2.X

    ܥͰ iOS Ϗϧυʹࣦഊ͢ΔͷͰ஫ҙ C. ؀ڥม਺؅ཧ͸ BuildKon fi g
  29. ϥΠϒϥϦ͸ KMM ΁ͷରԠ༗ແΛ֬ೝ A. API ௨৴͸ Ktor B. Ktor 2.2.X

    ܥͰ iOS Ϗϧυʹࣦഊ͢ΔͷͰ஫ҙ C. ؀ڥม਺؅ཧ͸ BuildKon fi g
  30. ࠃ੫ிެࣜAPIΛ࢖ͬͯΈͨʂ KMMͰ

  31. None
  32. ެ։தʂ https://github.com/AkkeyLab/c-search

  33. Thank you !!