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

CocoaPods の Plugin を作った話

CocoaPods の Plugin を作った話

2014/02/01 Conference With Developers 2

Toshihiro Morimoto

February 01, 2014
Tweet

More Decks by Toshihiro Morimoto

Other Decks in Technology

Transcript

  1. CocoaPods ͷ Plugin Λ࡞ͬͨ࿩
    2014/02/01 Conference With Developers 2
    @dealforest
    Toshihro Morimoto

    View full-size slide

  2. ࣗݾ঺հ
    http://about.me/dealforest

    !
    !
    iOS App / Web Application(perl, ruby)

    @dealforest
    Toshihro Morimoto

    View full-size slide

  3. Ͳ͏΍ͬͯϥΠϒϥϦΛ୳͠·͔͢ʁ

    View full-size slide

  4. cocoapods-browser

    https://github.com/dealforest/cocoapods-browser

    View full-size slide

  5. Install
    $ gem install cocoapods-browser

    View full-size slide

  6. ver 0.1.1


    ͍͖ͭͬ͞Ξοϓσʔτͨ͠ͷͰόάͬͯͨΒ(ry

    View full-size slide

  7. $ pod browse AFNetworking

    View full-size slide

  8. $ pod browse AFNetworking
    https://github.com/AFNetworking/AFNetworking

    View full-size slide

  9. $ pod browse AFNetwork

    View full-size slide

  10. $ pod browse AFNetwork

    View full-size slide

  11. $ pod browse AFNetworking --spec

    View full-size slide

  12. $ pod browse AFNetworking --spec
    .../AFNetworking/blob/master/AFNetworking.podspec

    View full-size slide

  13. $ pod browse AFNetworking --release

    View full-size slide

  14. $ pod browse AFNetworking --release
    .../AFNetworking/releases

    View full-size slide

  15. lib

    ᵓᴷᴷ cocoapods_plugin.rb

    ᵋᴷᴷ pod

    ᵋᴷᴷ command

    ᵋᴷᴷ browse.rb
    gem ͷߏ੒

    View full-size slide

  16. lib

    ᵓᴷᴷ cocoapods_plugin.rb

    ᵋᴷᴷ pod

    ᵋᴷᴷ command

    ᵋᴷᴷ browse.rb
    gem ͷߏ੒

    View full-size slide

  17. OS ʹಛԽͨ͠

    ίʔυΛॻ͍ͯ΋େৎ෉

    View full-size slide

  18. ࡞Γํ͸ޙͰϒϩάʹ·ͱΊ·͢

    View full-size slide

  19. ͝ਗ਼ௌ͋Γ͕ͱ͏͍͟͝·ͨ͠

    View full-size slide