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

広告実装の苦しみ

D9c806bf404173842f3fe1b8be1ca7d8?s=47 RyoKosuge
October 23, 2018

 広告実装の苦しみ

D9c806bf404173842f3fe1b8be1ca7d8?s=128

RyoKosuge

October 23, 2018
Tweet

More Decks by RyoKosuge

Other Decks in Programming

Transcript

  1. ޿ࠂ࣮૷ͷۤ͠Έ 2017/08/18 খੁ ྒ

  2. ࣗݾ঺հ • גࣜձࣾ Nagisa
 iOS ΤϯδχΞ • 1990೥2݄12೔ੜ·Εʢ27ʣ • ࡞ͬͨΞϓϦ

    • ϚϯΨZEROɺetc… • ਗ਼͞Μͷ঺հͰొஃͤͯ͞௖͖·ͨ͠
  3. ΞδΣϯμ • ݱࡏͷϚϯΨZEROͷ޿ࠂʹ͍ͭͯ • ͕͜͜ਏ͍޿ࠂ࣮૷

  4. ೖͬͯΔ޿ࠂSDKʢҰ෦ൈਮʣ

  5. None
  6. ZEROͷ޿ࠂࣄ৘ • σΠϦʔͷ૯imp਺ • 2,446ສimp • idൃߦ਺ʢશ޿ࠂഔମʣ • 53ݸ •

    Firebase RemoteConfigͰimpͷৼΓ෼͚΋࣮૷ͯ͠ΔͷͰಉ ͡࿮ʹෳ਺ͷid͕͋Δ
  7. ޿ࠂ࣮૷ͷۤ͠Έ…

  8. 1. ޿ࠂSDKͷ࢓༷͕όϥόϥ • ֤ࣾͷ޿ࠂSDKͰ࢓༷͕όϥόϥͳͨΊ࣮૷͕ຖ౓0͔Βε λʔτ͢Δ • ΋͏ڻ͔ͳ͍ • ܦݧ஋͍Βͳ͍ •

    SingletonͰάϩʔόϧʹ஋Λอ࣋͠ଓ͚Δ࢓༷΋͋Ε͹ɺͬ͜ ͪͰࢀর΋ͬͨΓ • UIViewΛܧঝ͍ͯ͠ΔΫϥε͢Βੜ੒ͯ͘͠Εͳ͔ͬͨΓ
  9. 2. SDKͷιʔε͕ͱͯ΋ݹ͍ • Objective-CͰॻ͔Ε͍ͯΔ • Swiftͩͱbridge͠ͳ͚Ε͹ͳΒͳ͍ • nullable΍nonnullͷએݴΛͯ͠ͳ͍͔ΒSwiftͰ࢖͏ͱ Fourced Unwrappingঢ়ଶͰ࢖͏ͷͰΫϥογϡͷԹচʹͳΔ

    • ຊ౰ʹdelegateʹnilͰฦͯ͘͠ΔΫιSDK΋͋Δ • ίϯύΠϧ࣌ʹwarning͕ग़·ͬͯ͘ςϯγϣϯԼ͕Δ
  10. 3. iOSΛཧղ͍ͯ͠ͳ͍ • ڧࢀরɺऑࢀরɺࢀর॥؀ͳͲͷ͓࡞๏Λແࢹ ͍ͯ͠ΔSDKଟ਺ • ΞϓϦଆͰରԠ͠ͳ͍ͱΫϥογϡʂ • Կ౓SDKΛ࡞Βͤͯ͘Εͱ͓ئ͍ͨ͜͠ͱ͔ •

    ܧঝ͢΂͖protocolΛશͯແࢹͨ͠ಠࣗΫϥε
  11. SDKͷ࿩͸ ͜͜·Ͱ

  12. ࣍͸ਓ(ձࣾ)ͱͯ͠Ͳ͏ͳΜͩ ͱ͍͏࿩

  13. 4. ͓໰͍߹Θͤʹର͢Δ ฦࣄ͕஗͍ • ͍͍ͩͨॳΊ࣮ͯ૷͢Δ޿ࠂ͸දࣔͰ͖ͳ͍ • ඞཁͳ஋ʢidʣ͕ҧ͏ͱ͔ • ͚ͩͲݪҼ͕Θ͔Βͳ͍ •

    Other Error͕ฦͬͯ͘Δ͠ • ࣭໰͢Δͱ3೔΄Ͳ͔͔Δ • ΋͏޿ࠂ࣮૷ϑΣʔζͰ͸ͳ͍͔Βࠩ͠ࠐΈʹͳΔ
  14. 5. iOSΛཧղͯ͠ͳ͍ ΤϯδχΞ͔Βͷࢦࣔ • SwiftͷOptionalΛཧղͯ͠ͳ͍ • OptionalΛWrapͨ͠ঢ়ଶͰ౉ͯ͠Δͷʹ ʮnil͡Όͳ͍Ͱ͔͢ʁʯͱདྷͨ࣌͸ΩϨͨ • ϥΠϑαΠΫϧΛཧղͯ͠ͳ͍

  15. 6. ʮιʔείʔυ͍ͩ͘͞ʯ • ΊͬͪΌ͕ͬͪٙ͜ΘΕ͍ͯ·͢ • υΩϡϝϯτ௨Γ࣮૷ͨ͠ͱ఻͑ͯ΋৴͡ͳ͍ • ࠷ۙͰ͸ࢲ͕ڧҾʹRemoteConfigͰग़͠෼͚Ͱ͖ΔΑ ͏ʹ࣮૷͍ͯͭ͠Ͱ΋੾ΓࣺͯΒΕΔ४උΛ͠·ͨ͠ •

    ͜ͷൃݴΛͯ͘͠Δձࣾ͸͍͍ͩͨΤϯδχΞͱӦۀͷ஥ ͕ѱ͍ʢݸਓతײ૝ʣor ΋͘͠͸ࣾ಺ʹ࡞ͬͨਓ͕͍ͳ ͍
  16. Ҏ্ʹͳΓ·͢ ͝੩ௌ͋Γ͕ͱ͏͍͟͝·ͨ͠ʂ