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
メルカリアッテをRxjava2に 載せ換えて。。
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
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
430
What's new in Android
hi6484
1
1.5k
Google I/O Extended Tokyo 2017
hi6484
0
240
ヌガー対応 potatotios #33
hi6484
0
77
Other Decks in Technology
See All in Technology
ご挨拶「10周年を迎える共創ラボのこれまでとこれから」
iotcomjpadmin
0
150
4人目のSREはAgent
tanimuyk
0
280
When Platform Engineering Meets GenAI
sucitw
0
200
自作お家AIエージェントスタックチャンFWで困っている所紹介
74th
0
130
Why is RC4 still being used?
tamaiyutaro
0
100
攻撃者がいなくてもAIエージェントはインシデントを起こす
nomizone
0
130
5分でわかるDuckDB Quack
chanyou0311
4
260
クラウドファンディング版StackChan 3体(4体)をインタラクティブな体験型作品にして展示もした話 / スタックチャンお誕生日会2026
you
PRO
0
220
toB プロダクトから見たWAF
tokai235
0
250
アラート調査向けAIエージェントの本番導入とその後/AI Agents for Alert Investigation: Production Deployment and After
taddy_919
1
250
テスト設計の本質を改めて考えてみる~生成AIを活用する時代だからこそ、作ったテストの説明性を高めよう~
yamasaki696
1
140
[チョークトーク資料]AWS DevOps Agent を使いこなす / AWS Dev Ops Agent Chalk Talk AWS Summit Japan 2026
kinunori
4
800
Featured
See All Featured
Agile Actions for Facilitating Distributed Teams - ADO2019
mkilby
0
210
HTML-Aware ERB: The Path to Reactive Rendering @ RubyCon 2026, Rimini, Italy
marcoroth
2
250
Claude Code どこまでも/ Claude Code Everywhere
nwiizo
65
56k
Believing is Seeing
oripsolob
1
150
ReactJS: Keep Simple. Everything can be a component!
pedronauck
666
130k
Beyond borders and beyond the search box: How to win the global "messy middle" with AI-driven SEO
davidcarrasco
3
170
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
234
17k
We Have a Design System, Now What?
morganepeng
55
8.2k
Everyday Curiosity
cassininazir
0
240
Faster Mobile Websites
deanohume
310
32k
Building Better People: How to give real-time feedback that sticks.
wjessup
370
20k
Embracing the Ebb and Flow
colly
88
5.1k
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