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

fastlane 奮闘記

6e8aca910e7ee095397d3b90acb25f6c?s=47 Watson
January 26, 2018

fastlane 奮闘記

6e8aca910e7ee095397d3b90acb25f6c?s=128

Watson

January 26, 2018
Tweet

Transcript

  1. GBTUMBOFฃಆه 4IJ[VP'VKJUB

  2. w ॴଐɿגࣜձࣾϢϏϨδ w 5XJUUFSɿ!XBUTPO

  3. GBTUMBOFͱ͸ʁ w J04"OESPJEΞϓϦͷϦϦʔε࡞ۀΛࣗಈԽ͢Δπʔϧ w 3VCZ੡ w SBLFΈ͍ͨͳ΋ͷ w ༗ࢤʹΑΔେྔͷϓϥάΠϯ w

    IUUQTEPDTGBTUMBOFUPPMTQMVHJOTBWBJMBCMFQMVHJOT
  4. GBTUMBOFىಈ஗͍

  5. w SBLF UJNFCVOEMFFYFDSBLFIEFWOVMM CVOEMFFYFDSBLFIEFWOVMMTVTFSTTZTUFNDQVUPUBM UJNFCVOEMFFYFDGBTUMBOFIEFWOVMM CVOEMFFYFDGBTUMBOFIEFWOVMMTVTFSTTZTUFNDQVUPUBM w GBTUMBOF TFDWTTFD

  6. w 3VCZඪ४ϥΠϒϥϦ QSPpMF require 'profiler' RubyVM::InstructionSequence.compile_option = { :trace_instruction =>

    true, :specialized_instruction => false } Profiler__::start_profile ௐ͍ࠪͨ͠ίʔυ Profiler__::print_profile(STDERR) Profiler__::stop_profile
  7. QSPpMF݁Ռ $ bundle exec fastlane -h > /dev/null % cumulative

    self self total time seconds seconds calls ms/call ms/call name 50.48 0.53 0.53 953 0.56 5.38 Kernel#require 29.52 0.84 0.31 4 77.50 77.50 IO.select 6.67 0.91 0.07 2 35.00 35.00 Socket.getaddrinfo 6.67 0.98 0.07 427 0.16 0.49 Spaceship::Base.attr 2.86 1.01 0.03 2 15.00 15.00 OpenSSL::X509::Store 2.86 1.04 0.03 1215 0.02 0.03 Module#define_method 1.90 1.06 0.02 1 20.00 20.00 IO.read 1.90 1.08 0.02 1725 0.01 0.01 Symbol#to_s 1.90 1.10 0.02 321 0.06 2.52 Array#each 1.90 1.12 0.02 423 0.05 0.07 Module#class_eval 1.90 1.14 0.02 933 0.02 0.11 nil# 1.90 1.16 0.02 8160 0.00 0.00 Module#method_added 0.95 1.17 0.01 4 2.50 2.50 Range#each 0.95 1.18 0.01 15 0.67 1.33 Kernel#eval 0.95 1.19 0.01 183 0.05 0.05 Array#hash 0.95 1.20 0.01 66 0.15 0.15 Array#inspect 0.95 1.21 0.01 36 0.28 0.28 Forwardable._delegat 0.95 1.22 0.01 159 0.06 0.06 Module#private 0.95 1.23 0.01 387 0.03 0.03 Hash#[]=
  8. ,FSOFMSFRVJSF  ϩʔυ͢ΔϑΝΠϧͷύεΛऔಘ  ϑΝΠϧΛಡΈࠐΉ  QBSTF͠ߏจ໦ੜ੒  3VCZ*OTUSVDUJPO4FRVFODFੜ੒ 

    Ϋϥεɺϝιουఆٛ
  9. None
  10. CPPUTOBQͱ͸ʁ w SFRVJSF࣌ʹ͕͔͔࣌ؒΔ΋ͷΛDBDIF͢ΔϥΠϒϥϦ w SFRVJSF͢ΔϑΝΠϧύε w 3VCZ*OTUSVDUJPO4FRVFODF

  11. #VOEMFSͱີʹґଘͯͯ͠ɺCVOEMFS࢖Θͳ͍৔߹ʹྫ֎ى͜ ͯͨ͠ɻ௚͚ͨ͠Ͳ͞ ɾТɾ

  12. GBTUMBOFͲ͏ͳͬͨʁ w #FGPSF UJNFCVOEMFFYFDGBTUMBOFIEFWOVMM CVOEMFFYFDGBTUMBOFIEFWOVMMTVTFSTTZTUFNDQVUPUBM UJNFCVOEMFFYFDGBTUMBOFIEFWOVMM CVOEMFFYFDGBTUMBOFIEFWOVMMTVTFSTTZTUFNDQVUPUBM w "GUFS TFDˠTFD

  13. None
  14. ໊લۭؒͳ͍

  15. ΄͔ͬͨ͠΋ͷ platform :ios do namespace :update do lane :build_number do

    ... end lane :version do ... end end end $ bundle exec fastlane update:version
  16. None
  17. ଥڠͨ͠ lane :"update:build_number" do ... end lane :”update:version" do ...

    end
  18. ࢦఆͨ͠λεΫ͕ೝࣝ͞ΕͣɺλεΫҰཡ͕දࣔ͞Εͨ

  19. Ҿ਺ΛίϩϯͰ෼ׂ͢ΔṖͷίʔυ ɾТɾʆ

  20. ͜Μͳͷαϙʔτͯͨ͠ platform :ios do lane :hogehoge do |arg| # key:value

    ͕ {:key=>"value"} ͱͯ͠ arg ʹ౉͞ΕΔ p arg end end $ bundle exec fastlane hogehoge key:value
  21. ϓϥοτϑΥʔϜͱλεΫ໊Λ෼ׂ͠ͳ͍Ͱ ɾТɾʆ

  22. ఏڙ גࣜձࣾϢϏϨδ