Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
メルカリアッテをRxjava2に 載せ換えて。。
Search
Hiroshi Hashimoto
August 25, 2017
Technology
1.7k
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
メルカリアッテをRxjava2に 載せ換えて。。
Hiroshi Hashimoto
August 25, 2017
More Decks by Hiroshi Hashimoto
See All by Hiroshi Hashimoto
Biometric Prompt
hi6484
1
440
What's new in Android
hi6484
1
1.6k
Google I/O Extended Tokyo 2017
hi6484
0
240
ヌガー対応 potatotios #33
hi6484
0
83
Other Decks in Technology
See All in Technology
Getting Started with Google Antigravity
glaforge
0
310
V8のArray.prototype.flatを最大約20倍速くするまでと、巨大OSSへの大規模コミットの道のり
riyaamemiya
0
300
日本語に強いオープンな大規模言語モデル「LLM-jp」
odashi
5
1.1k
エンタメ企業のM&Aを支えるデータ基盤 ― 統合から店舗のリアルタイム分析まで / Data Engineering Summit 2026
genda
0
190
20261017福岡devIO 「AIは"良いダッシュボード"を作れるか?
jtakeda
0
170
PHPカンファレンス関西の招待状 / Invitation to PHP Conference Kansai
ykanoh
0
150
AI導入は済んだ。次は統制を作り替える番だ_AI×開発組織 Summit 2026
techtekt
PRO
0
300
M5Stackで作る BLEマウス GPSログの世界
tomokusaba
PRO
0
430
「事実」を「計測」して、「解釈」する 〜AWS Lambdaのメモリ最適解の見つけ方〜
maimyyym
0
170
遠藤な_めぐろLT #38 「社内のAI活用推進」@麻布台_20261009
endonanana
0
140
AIにシークレットを見せない、WSL2で安全な開発環境
yazm
0
310
しろおびから始める!ログ活用の第一歩
shumei_ito
0
950
Featured
See All Featured
Introduction to Domain-Driven Design and Collaborative software design
baasie
1
1k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
194
17k
DBのスキルで生き残る技術 - AI時代におけるテーブル設計の勘所
soudai
PRO
68
58k
Conquering PDFs: document understanding beyond plain text
inesmontani
PRO
4
3.2k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
32
3.1k
WCS-LA-2024
lcolladotor
0
890
ReactJS: Keep Simple. Everything can be a component!
pedronauck
666
130k
What’s in a name? Adding method to the madness
productmarketing
PRO
24
4.2k
HU Berlin: Industrial-Strength Natural Language Processing with spaCy and Prodigy
inesmontani
PRO
0
750
Visual Storytelling: How to be a Superhuman Communicator
reverentgeek
2
710
Measuring & Analyzing Core Web Vitals
bluesmoon
9
1k
From π to Pie charts
rasagy
1
400
Transcript
メルカリアッテをRxjava2に 載せ換えて。。 Souzoh Android Talk
Souzoh confidential and proprietary 自己紹介 2 橋本 泰(@hi6484) Android Developer メルカリ
アッテ担当 Shibuya.apk運営
Souzoh confidential and proprietary 3
Souzoh confidential and proprietary Rxjava2に載せ替える 4
Souzoh confidential and proprietary なぜ載せ替えるのか? 5
Souzoh confidential and proprietary ってことで、登壇タイトルに設定して 対応することに。 6
Souzoh confidential and proprietary まず先に 7
Souzoh confidential and proprietary 全て終わりませんでした。 8
Souzoh confidential and proprietary アッテで大変そうなところ Subject.onNext(null);ってのが大量にある。。。 ComposoteSubcriptionもたくさん使っているなぁ 色々とあるんだろうな 9
Souzoh confidential and proprietary compile 'io.reactivex.rxjava2:rxjava:2.1.2' compile 'io.reactivex.rxjava2:rxandroid:2.0.1' compile "com.jakewharton.rxbinding2:rxbinding:${rx_binding}"
compile "com.squareup.retrofit2:adapter-rxjava2:${retrofit_version}" とりあえずapp/build.gradle 10 Rxjavaさようなら。今までありがとう。
Souzoh confidential and proprietary buildしてみる 11
Souzoh confidential and proprietary buildしてみる 12 ←101 errors(ファイル数)
Souzoh confidential and proprietary 対応箇所エラー 13
Souzoh confidential and proprietary 対応箇所 import rx.android.schedulers.AndroidSchedulers; import rx.schedulers.Schedulers; import
rx.subjects.PublishSubject; import rx.subscriptions.CompositeSubscription; import io.reactivex.android.schedulers.AndroidSchedulers; import io.reactivex.disposables.CompositeDisposable; import io.reactivex.subjects.PublishSubject; import io.reactivex.schedulers.Schedulers; 14 とりあえず、rx.xxxをio.reactivex.xxxに置き換える
Souzoh confidential and proprietary 対応箇所 private final CompositeSubscription compositeSubscription =
new CompositeSubscription(); compositeSubscription.unsubscribe(); private final CompositeDisposable compositeDisposable = new CompositeDisposable(); compositeDisposable.dispose(); 15 CompositeSubscriptionをCompositeDisposable
Souzoh confidential and proprietary 対応箇所 loadingRequest.onNext(true); ApiCient apiClient = new
ApiClient(); apiClient.responseFrom(new Offer(id)) .doOnTerminate(() -> loadingRequest.onNext(false)) .subscribe(); loadingRequest.onNext(true); ApiCient apiClient = new ApiClient(); apiClient.responseFrom(new Offer(id)) .doAfterTerminate(() -> loadingRequest.onNext(false)) .subscribe(); 16 doOnTerminate()をdoAfterTerminate()
Souzoh confidential and proprietary アッテで大変そうなところ Subject.onNext(null);ってのが大量にある。。。 ComposoteSubcriptionもたくさん使っているなぁ 色々とあるんだろうな 17
Souzoh confidential and proprietary アッテで大変そうなところ Subject.onNext(null);ってのが大量にある。。。 ComposoteSubcriptionもたくさん使っているなぁ 色々とあるんだろうな 18
Souzoh confidential and proprietary アッテで大変そうなところ Subject.onNext(null);ってのが大量にある。。。 →NullPointerException になるだけ。。。 19 http://qiita.com/kubode/items/aebef4593e42a3b367be
Souzoh confidential and proprietary 対応箇所 http://in.fablic.co.jp/entry/2017/04/27/110000 20
Souzoh confidential and proprietary 黒川さん神!! 21
Souzoh confidential and proprietary 対応箇所 22
Souzoh confidential and proprietary 対応箇所 23 ↑162 matches
Souzoh confidential and proprietary 地道に修正してく 24
Souzoh confidential and proprietary 大変だけど。。 25
Souzoh confidential and proprietary Rxjava2 これから宜しくお願い致します 26
Souzoh confidential and proprietary ご静聴ありがとうございました 27