Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
CA.swift #8 Protect against unauthorized use wi...
Search
Akio Itaya
March 06, 2019
Technology
1
1.4k
CA.swift #8 Protect against unauthorized use with RxSwift
RxSwift を用いた設計で、配信コンテンツを不正利用から守る
Akio Itaya
March 06, 2019
Tweet
Share
More Decks by Akio Itaya
See All by Akio Itaya
How to build visionOS apps using Windows
akkeylab
0
100
How to build visionOS apps using Persona
akkeylab
1
180
Summary - Introducing enterprise APls for visionOS
akkeylab
0
400
Apple Vision Pro trial session
akkeylab
0
220
How to support Privacy Manifest
akkeylab
0
360
Let's make it compatible with visionOS!
akkeylab
0
200
Let's Join the Android community!
akkeylab
0
130
顔写真メイクアップアプリの開発におけるプライバシー保護とコスト削減のための手法
akkeylab
1
350
How to hide the key
akkeylab
0
290
Other Decks in Technology
See All in Technology
Creating Intuitive Developer Tool in Swift
giginet
PRO
0
600
DFTの実践的基礎理論
pfn
PRO
2
110
TinyMLの技術動向
kyotomon
2
270
Vueで Webコンポーネントを作って Reactで使う / 20241030-cloudsign-vuefes_after_night
bengo4com
3
2.3k
Java x Spring Boot Warm up
kazu_kichi_67
2
440
品質の高い機能を”早く”提供するために技術的な面でチームでやったこと、やりたいこと
sansantech
PRO
2
270
ネット広告に未来はあるか?「3rd Party Cookie廃止とPrivacy Sandboxの効果検証の裏側」 / third-party-cookie-privacy
cyberagentdevelopers
PRO
1
100
ガバメントクラウド単独利用方式におけるIaC活用
techniczna
3
210
Nix入門パラダイム編
asa1984
2
170
生成AIとAWS CDKで実現! 自社ブログレビューの効率化
ymae
2
200
チームを主語にしてみる / Making "Team" the Subject
ar_tama
2
230
Tokyo dbt Meetup #10 dbt Cloudユーザー会 & パネルディスカッション
dbttokyo
1
180
Featured
See All Featured
Measuring & Analyzing Core Web Vitals
bluesmoon
0
34
Building Better People: How to give real-time feedback that sticks.
wjessup
363
19k
How GitHub (no longer) Works
holman
311
140k
Product Roadmaps are Hard
iamctodd
PRO
48
10k
Stop Working from a Prison Cell
hatefulcrawdad
267
20k
Teambox: Starting and Learning
jrom
132
8.7k
Statistics for Hackers
jakevdp
796
220k
The MySQL Ecosystem @ GitHub 2015
samlambert
250
12k
Faster Mobile Websites
deanohume
304
30k
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
5
140
Thoughts on Productivity
jonyablonski
67
4.3k
Mobile First: as difficult as doing things right
swwweet
222
8.9k
Transcript
৴ίϯςϯπΛෆਖ਼ར༻͔ΒकΔ AKKEY / AKIO ITAYA MatchingAgent, Inc. RxSwiftΛ༻͍ͨઃܭͰ
໊લɿ൘୩ ߊྑɹ/ɹ͖͋ͬʔ झຯɿυϥΠϒ ׆ಈɿ@AkkeyLab Cyberagent, Inc. MatchingAgent, Inc. େֶೖֶޙϓϩάϥϛϯάʹҰࠍΕɺ18৽ଔ iOS
ΤϯδχΞ ࣗݾհ
None
ࡐ
None
ࡐ ◆ ಈըࢹௌϓϥοτϑΥʔϜ ◆ ެ։લ ݸਓ։ൃΞϓϦ ◆ ࠓճαʔόଆʹ৮Ε·ͤΜ
ಋೖٕज़
ಋೖٕज़ʢClient onlyʣ RxSwift VueFlux Moya Realm Travis CI CodeCov GitHub
Architecture
Architecture State Computed VC Actions Mutations VM
State Computed VC API Request Actions Mutations VM Architecture
State Computed VC API Request Response Routing Actions Mutations VM
Architecture
State Computed VC API Request Response Routing Actions Mutations VM
Implement some properties Architecture
State Computed VC API Request Response Routing Actions Mutations VM
Output Observable Implement some properties Architecture
State Computed VC API Request Response Routing Actions Mutations VM
Output Observable Input / Output Logic Implement some properties Architecture
State Computed VC API Request Response Routing Actions Mutations VM
Output Observable Input / Output Logic Implement some properties Architecture
State Computed VC API Request Response Routing Actions Mutations VM
Output Observable Input / Output Logic Implement some properties Architecture
State Computed VC API Request Response Routing Actions Mutations VM
Output Observable Input / Output Logic Implement some properties Architecture
લఏ݅
લఏ݅ ◆ API Response 1. ݅ͷಈըใΛऔಘ
લఏ݅ ◆ API Response ෆมͷID 1. ݅ͷಈըใΛऔಘ
લఏ݅ ◆ API Response ෆมͷID 2. IDΛPrimaryKeyͱͯ͠VideoLinkΛऔಘ 1. ݅ͷಈըใΛऔಘ
State Computed VC API Request Response Routing Actions Mutations VM
Output Observable Input / Output Logic Implement some properties ಈը࠶ੜ·Ͱʹ ̎ϧʔϓͯ͠Δ ʢॳճʹݶΓʣ Architecture
ಈըίϯςϯπͷอޢ
ಈըίϯςϯπͷอޢ URL ͕όϨΔͱෆਖ਼ Download ͷՄೳੑ
ಈըίϯςϯπͷอޢ ◆ ఆظత URL มߋ ◆ IP ΞυϨε੍ݶ ◆ ҉߸Խ
ಈըίϯςϯπͷอޢ ◆ ఆظత URL มߋ ◆ IP ΞυϨε੍ݶ ◆ ҉߸Խ
ಈըίϯςϯπͷอޢ ຖ࣌ ݕࡧ A B C D 1 2 3
4 1A 1B 4C 4D ߋ৽ ◆ ఆظత URL มߋ
ಈըίϯςϯπͷอޢ A B C D 1 1A 1B 4C 4D
ຖ࣌ ݕࡧ ߋ৽ ◆ ఆظత URL มߋ 2 3 4
ಈըίϯςϯπͷอޢ A B C D 1 1A 1B 4C 4D
ຖ࣌ ݕࡧ ߋ৽ ◆ ఆظత URL มߋ 2 3 4
ಈըίϯςϯπͷอޢ ◆ ఆظత URL มߋ A B C D 1
1A 1B 4C 4D ຖ࣌ ݕࡧ ߋ৽ 2 3 4
ಈըίϯςϯπͷอޢ A B C D 1 1A 1B 4C 4D
ຖ࣌ ݕࡧ ߋ৽ ◆ ఆظత URL มߋ 2 3 4
withLatestFrom
ఆظతURLมߋ ຖ࣌ ݕࡧ A B C D 1 1A 1B
4C 4D ߋ৽ ◆ withLatestFrom 2 3 4
ఆظతURLมߋ
ఆظతURLมߋ
ఆظతURLมߋ
ఆظతURLมߋ
ಈըίϯςϯπͷอޢ ◆ ఆظత URL มߋ ϥάͰݟΕͳ͍Մೳੑ͋Γ ൺֱత؆୯ͳ࣮
ಈըίϯςϯπͷอޢ ◆ ఆظత URL มߋ ◆ IP ΞυϨε੍ݶ ◆ ҉߸Խ
ಈըίϯςϯπͷอޢ IPมԽ ݕࡧ A B C D 1 2 3
4 1B 3C 4D ߋ৽ ◆ IP ΞυϨε੍ݶ
ಈըίϯςϯπͷอޢ IPมԽ ݕࡧ A B C D 1 2 3
4 1B 3C 4D ߋ৽ ◆ IP ΞυϨε੍ݶ
ಈըίϯςϯπͷอޢ IPมԽ ݕࡧ A B C D 1 2 3
4 1B 3C 4D ߋ৽ ◆ IP ΞυϨε੍ݶ
ಈըίϯςϯπͷอޢ IPมԽ ݕࡧ A B C D 1 2 3
4 1B 3C 4D ߋ৽ ◆ IP ΞυϨε੍ݶ
withLatestFrom
IPΞυϨε੍ݶ ◆ withLatestFrom IPมԽ ݕࡧ A B C D 1
2 3 4 1B 3C 4D ߋ৽
IPΞυϨε੍ݶ
ಈըίϯςϯπͷอޢ ◆ IP ΞυϨε੍ݶ IPมԽݕͷਫ਼ʹࠨӈ͞ΕΔ ൺֱత࣮༻తͳͷͰʁ
ؒΛ͝հ
ؒΛ͝հ ຖ࣌ ݕࡧ A B C D 1 1A 1B
4C 4D ߋ৽ ◆ combineLatest 2B 3B 2 3 4
ؒΛ͝հ ຖ࣌ ݕࡧ A B C D 1 1A 1B
4C 4D ߋ৽ ◆ combineLatest 2B 3B 2 3 4
combineLatest
combineLatest
combineLatest
ಈըίϯςϯπͷอޢ ◆ ఆظత URL มߋ ◆ IP ΞυϨε੍ݶ ◆ ҉߸Խ
ಈըίϯςϯπͷอޢ ◆ ҉߸Խ https://akkeylab.com/s=&…
ಈըίϯςϯπͷอޢ ◆ ҉߸Խ ղಡ๏͋ΔͷͰ݁ہᴟͬ͜͝ ڧྗͰ࣮༻త https://akkeylab.com/s=&… ͍ͨͪ
ຊͷొਓ ◆ withLatestFrom ◆ combineLatest
ຊͷొਓ ◆ withLatestFrom ◆ combineLatest ◆ tapple
Thank you !!