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

モバイルアプリでのFeatureFlagの導入

tinpay
September 20, 2019

 モバイルアプリでのFeatureFlagの導入

モバイルアプリでFeature_Flagを導入したお話

tinpay

September 20, 2019
Tweet

More Decks by tinpay

Other Decks in Programming

Transcript

  1. © Chatwork ࣮૷Πϝʔδ͸͜Μͳײ͡ !8 struct Feature { var isEnabled: Bool

    var name: String } public final class FeatureFlag { static let shared = FeatureFlag() let featureA = Feature(isEnabled: true, name: "ػೳA") let featureB = Feature(isEnabled: true, name: "ػೳB") let featureC = Feature(isEnabled: true, name: "ػೳC") } class DemoViewModel { var message: Message? func delete(){ if FeatureFlag.shared.featureA.isEnabled { // ػೳA͕༗ޮͳ৔߹ displayAlert { self.message?.delete() } } else { self.message?.delete() } } }
  2. © Chatwork ࣮ࡍʹ΍ͬͯΈͨײ૝ !19 w ৽ػೳͷ࣮૷͕ͲΜͲΜϚʔδ͞ΕΔΑ͏ʹͳͬͨ w ଞͷػೳ࣮૷ͷϦϦʔεΛ଴ͭඞཁ͕ͳ͘ͳͬͨ w 13͕খ͘͞ͳͬͨ

    w ίϯϑϦΫτ͕ൃੜ͠ʹ͘͘ͳͬͨ w ػೳϦϦʔεΛίϯτϩʔϧͰ͖ΔΑ͏ʹͳͬͨ w ࣾ಺ϝϯόʔʹ͚ͩػೳΛ༗ޮʹ͢Δͱ͍͏Α͏ͳϑϩʔ͕؆୯ʹ࣮ݱͰ͖Δ w ΍Γ͗͢ΔͱϦδΣΫτର৅ʹͳΔͷͰؾΛ͚ͭΔඞཁ͸͋Γ
  3. © Chatwork ·ͱΊ !22 'FBUVSF'MBHͷϝϦοτ w ͍ͭͰ΋EFWFMPQʹ13ΛϚʔδͰ͖ΔΑ͏ʹͳͬͨ w ϦϦʔε൛ΞϓϦΛར༻ͯ͠ɺ৽ػೳΛૣ͘ఏڙͰ͖Δ 'FBUVSF'MBHΛ࢖ͬͯࢥͬͨ͜ͱ

    w 4UPSZCPBSEͰͷར༻͸೉͍͠ɺେ͖͗͢Δमਖ਼ʹ޲͍ͯͳ͍ w ϑϥάʹΑΔ෼ذͷ࣮૷͸Ҋ֎γϯϓϧͳͷͰɺ·ͣ͸΍ͬͯ ΈͯΑ͔ͬͨ