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Ͱ

    View full-size slide

  2. ໊લɿ൘୩ ߊྑɹ/ɹ͖͋ͬʔ


    झຯɿۭؒσβΠϯ


    ׆ಈɿ@AkkeyLab





    ࣗݾ঺հ

    View full-size slide

  3. ໊લɿ൘୩ ߊྑɹ/ɹ͖͋ͬʔ


    झຯɿۭؒσβΠϯ


    ׆ಈɿ@AkkeyLab





    ࣗݾ঺հ
    AppBrew, Inc. Engineer
    AkkeyLab, Inc. CEO

    View full-size slide

  4. ໊લɿ൘୩ ߊྑɹ/ɹ͖͋ͬʔ


    झຯɿۭؒσβΠϯ


    ׆ಈɿ@AkkeyLab



    ࣗݾ঺հ
    AppBrew, Inc. Engineer
    AkkeyLab, Inc. CEO

    View full-size slide

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

    View full-size slide

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

    View full-size slide

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

    View full-size slide

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

    View full-size slide

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

    View full-size slide

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

    View full-size slide

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

    View full-size slide

  12. Kotlin Multiplatform Mobile

    View full-size slide

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

    View full-size slide

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

    View full-size slide

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

    2. มͳڍಈͨ͠Β୺຤ͱΩϟογϡΫϦΞ

    3. ϥΠϒϥϦ͸ KMM ΁ͷରԠ༗ແΛ֬ೝ
    ࣮૷ͯ͠෼͔ͬͨ Tips̏બʂ

    View full-size slide

  16. iOS, Android ͷ App Name ͸෼͚Α͏ʂ
    https://kotlinlang.org/docs/multiplatform-mobile-create-
    fi
    rst-app.html#create-the-project-from-a-template

    View full-size slide

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

    View full-size slide

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

    View full-size slide

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

    View full-size slide

  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 ͸෼͚Α͏ʂ

    View full-size slide

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

    2. มͳڍಈͨ͠Β୺຤ͱΩϟογϡΫϦΞ

    3. ϥΠϒϥϦ͸ KMM ΁ͷରԠ༗ແΛ֬ೝ
    ࣮૷ͯ͠෼͔ͬͨ Tips̏બʂ

    View full-size slide

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

    2. มͳڍಈͨ͠Β୺຤ͱΩϟογϡΫϦΞ

    3. ϥΠϒϥϦ͸ KMM ΁ͷରԠ༗ແΛ֬ೝ
    ࣮૷ͯ͠෼͔ͬͨ Tips̏બʂ

    View full-size slide

  23. มͳڍಈͨ͠Β୺຤ͱΩϟογϡΫϦΞ
    API ௨৴͕ແ൓ԠʹͳΔݱ৅ʹૺ۰ 🚧
    ୺຤ϦηοτͰղܾ

    View full-size slide

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

    View full-size slide

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

    2. มͳڍಈͨ͠Β୺຤ͱΩϟογϡΫϦΞ

    3. ϥΠϒϥϦ͸ KMM ΁ͷରԠ༗ແΛ֬ೝ
    ࣮૷ͯ͠෼͔ͬͨ Tips̏બʂ

    View full-size slide

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

    2. มͳڍಈͨ͠Β୺຤ͱΩϟογϡΫϦΞ

    3. ϥΠϒϥϦ͸ KMM ΁ͷରԠ༗ແΛ֬ೝ
    ࣮૷ͯ͠෼͔ͬͨ Tips̏બʂ

    View full-size slide

  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

    View full-size slide

  28. ϥΠϒϥϦ͸ KMM ΁ͷରԠ༗ແΛ֬ೝ
    A. API ௨৴͸ Ktor

    B. Ktor 2.2.X ܥͰ iOS Ϗϧυʹࣦഊ͢ΔͷͰ஫ҙ

    C. ؀ڥม਺؅ཧ͸ BuildKon
    fi
    g

    View full-size slide

  29. ϥΠϒϥϦ͸ KMM ΁ͷରԠ༗ແΛ֬ೝ
    A. API ௨৴͸ Ktor

    B. Ktor 2.2.X ܥͰ iOS Ϗϧυʹࣦഊ͢ΔͷͰ஫ҙ

    C. ؀ڥม਺؅ཧ͸ BuildKon
    fi
    g

    View full-size slide

  30. ࠃ੫ிެࣜAPIΛ࢖ͬͯΈͨʂ
    KMMͰ

    View full-size slide

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

    View full-size slide

  32. Thank you !!

    View full-size slide