Slide 1

Slide 1 text

AKKEY / AKIO ITAYA Cyberagent, Inc. RxSwift, Codable, Moya API cookingʂ

Slide 2

Slide 2 text

໊લɿ൘୩ ߊྑɹ/ɹ͖͋ͬʔʢAKKEYʣ ৬छɿiOS ׆ಈɿ@AkkeyLab Ұݴɿప໷։ൃޙͷԾ຾தʹίʔσΟϯά͠·ͤΜʁ ࣗݾ঺հ ※ֶੜ࣌୅ͷݸਓ։ൃʹͯ

Slide 3

Slide 3 text

ֶੜ࣌୅ͷݸਓ։ൃ͕ݩͷ͓࿩ ʻ ஫ҙ ʼ

Slide 4

Slide 4 text

ٕज़બఆ • RxSwift ɹɹʔʼɹKVO ຣফܭըͰ΋ͬͱษڧ͍ͨ͠ͱࢥͬͨ • Codable ɹɹʔʼɹApple ७ਖ਼ʹऒ͔Εͯ • Moya ɹɹʔʼɹAlamofire Λར༻ͯ͠ Rx Ͱॻ͖͔ͨͬͨ

Slide 5

Slide 5 text

YouTube API Λͨͨ͘

Slide 6

Slide 6 text

TargetType protocol ڞ௨߲໨Λ extension Ͱఆٛ Codable

Slide 7

Slide 7 text

TargetType protocol ↓API ϦΫΤετͷ1ͭˣ Response Λ Codable Ͱࢦఆ

Slide 8

Slide 8 text

TargetType protocol - MultiTarget Singleton Ͱ provider ։์ʹΑΔ subscribe ෆՄΛ๷ࢭ Singleton

Slide 9

Slide 9 text

TargetType protocol - MultiTarget Singleton Ͱ provider ։์ʹΑΔ subscribe ෆՄΛ๷ࢭ Singleton TargetType ͷܕʹґଘ͠ͳ͍

Slide 10

Slide 10 text

TargetType protocol - MultiTarget Singleton Ͱ provider ։์ʹΑΔ subscribe ෆՄΛ๷ࢭ Response Λ subscribe Մೳ Singleton TargetType ͷܕʹґଘ͠ͳ͍

Slide 11

Slide 11 text

TargetType protocol - MultiTarget Singleton Ͱ provider ։์ʹΑΔ subscribe ෆՄΛ๷ࢭ Response ͷ Json ΛϚοϐϯά Response Λ subscribe Մೳ Singleton TargetType ͷܕʹґଘ͠ͳ͍

Slide 12

Slide 12 text

Codable ↓API ϦΫΤετͷ1ͭˣ

Slide 13

Slide 13 text

API ͷݺͼग़͠ Rx ͳॲཧͰγϯϓϧʹهड़Մ औಘ݅਺

Slide 14

Slide 14 text

API ͷݺͼग़͠ Rx ͳॲཧͰγϯϓϧʹهड़Մ औಘ݅਺ ֤छ஋Λར༻ͨ͠ݸਓతͳ࣮૷

Slide 15

Slide 15 text

Result YouTube ranking Top 50 !!

Slide 16

Slide 16 text

࠷ۙͷ͓ؾʹೖΓͰ͢ʢস

Slide 17

Slide 17 text

GitHub / Qiita : @AkkeyLab

Slide 18

Slide 18 text

Thank you !!