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

How to hide the key

Akio Itaya
February 27, 2023

How to hide the key

集まれSwift好き!Swift愛好会 vol.72 @ オンライン

Akio Itaya

February 27, 2023
Tweet

More Decks by Akio Itaya

Other Decks in Programming

Transcript

  1. AKKEY / AKIO ITAYA
    How to hide the key 🔑
    SwiftѪ޷ձ vol.72

    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. 1. KMM ͷ৔߹

    2. Native iOS ͷ৔߹

    3. Xcode Cloud ରԠ
    Agenda

    View full-size slide

  6. KMM
    Kotlin Multiplatform Mobile

    View full-size slide

  7. KMM
    BuildKon
    fi
    g
    BuildCon
    fi
    g for Kotlin Multiplatform Project.
    It currently supports embedding values from gradle
    fi
    le.
    https://github.com/yshrsmz/BuildKon
    fi
    g

    View full-size slide

  8. KMM
    Shell ଆͰ؀ڥม਺ఆٛ

    View full-size slide

  9. KMM
    Shell ଆͰ؀ڥม਺ఆٛ
    BuildKon
    fi
    g ଆͰऔಘ

    View full-size slide

  10. KMM
    Shell ଆͰ؀ڥม਺ఆٛ
    BuildKon
    fi
    g ଆͰऔಘ
    iOS Ͱར༻ Android Ͱར༻

    View full-size slide

  11. KMM
    Shell
    Kotlin
    https://developer.android.com/reference/kotlin/java/lang/System#getenv

    View full-size slide

  12. KMM
    build.gradle.kts

    View full-size slide

  13. KMM
    build.gradle.kts

    View full-size slide

  14. KMM
    build.gradle.kts
    type: name: value:

    View full-size slide

  15. KMM
    build.gradle.kts
    type: name: value:

    View full-size slide

  16. KMM
    build.gradle.kts
    type: name: value:
    type: name: value:

    View full-size slide

  17. KMM
    KMM sample
    c-search
    This is an app to search corporate info
    https://github.com/AkkeyLab/c-search

    View full-size slide

  18. Native iOS
    Keychain Access Ͱ key Λอଘ

    View full-size slide

  19. Native iOS
    Keychain Access Ͱ key Λอଘ
    info.plist ʹॻ͖ࠐΈ

    View full-size slide

  20. Native iOS
    Keychain Access Ͱ key Λอଘ
    info.plist ʹॻ͖ࠐΈ
    iOS Ͱར༻

    View full-size slide

  21. Native iOS
    Shell

    View full-size slide

  22. Native iOS
    Shell

    View full-size slide

  23. Native iOS
    Shell

    View full-size slide

  24. Native iOS
    Shell
    Shell

    View full-size slide

  25. info.plist
    Native iOS

    View full-size slide

  26. info.plist
    Native iOS
    Build Phases: Shell

    View full-size slide

  27. info.plist
    Native iOS
    Build Phases: Shell

    View full-size slide

  28. info.plist
    Native iOS
    Build Phases: Shell

    View full-size slide

  29. info.plist
    Native iOS
    Build Phases: Shell

    View full-size slide

  30. info.plist
    Native iOS
    Build Phases: Shell

    View full-size slide

  31. info.plist
    Native iOS
    Build Phases: Shell
    Point !

    View full-size slide

  32. Native iOS
    Point !

    View full-size slide

  33. Swift
    info.plist
    Native iOS

    View full-size slide

  34. Swift
    info.plist
    Native iOS

    View full-size slide

  35. Native iOS
    ࢀߟจݙ
    ϋʔυίʔυΛڐ͞Εͳ͍ม਺Λ

    Ͳ͏ͯ͠΋Xcode ϓϩδΣΫτͷ Info.plist ʹࠩ͠ࠐΈ͍ͨ
    https://nnsnodnb.hatenablog.jp/entry/use-env-val-info-plist-from-machine

    View full-size slide

  36. Native iOS
    iOS sample
    c-search
    This is an app to search corporate info
    https://github.com/AkkeyLab/c-search-tca

    View full-size slide

  37. Support Xcode Cloud

    View full-size slide

  38. Work
    fl
    ow ຖʹ؀ڥม਺Λઃఆ͢Δ͚ͩʂ

    View full-size slide

  39. Native iOS
    Shell
    Point !

    View full-size slide

  40. 1. KMM ͷ৔߹͸ BuildKon
    fi
    g

    2. Native iOS ͷ৔߹͸ info.plist
    3. Xcode Cloud ͸؀ڥม਺ઃఆ
    Summary

    View full-size slide

  41. Thank you !!

    View full-size slide