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
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
Transcript
27 slides
メルカリアッテを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
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
260
ヌガー対応 potatotios #33
hi6484
0
85
Other Decks in Technology
See All in Technology
Terraform 0 to 100:100個以上のリポジトリを常に最新にし続けるための自動化
sue445
3
1.4k
AIエージェントのアーキテクチャ設計
nsatoh
0
560
AWS Blocksで AIエージェント作れるの知ってます?
kmiya84377
1
170
デザインシステムのフィードバックループをほぼ自動化した話
tongari07
0
530
成長するID管理基盤における運用もコストも犠牲にしないオブザーバビリティ向上の実践 / Improving Observability for a Growing Identity Platform Without Adding Operational Burden or Cost
kaminashi
1
130
共通基盤の実装に Kotlin - Quarkus を選定した理由と採用したアーキテクチャ
nealle
1
170
実測データからサービスの成長余力を測る。負荷シナリオ・テストデータ・限界値の設計
kazatohiei
1
180
「正しいデータ」の定義をAI エージェントとつくるGoogleADKによるデータ品質定義の実践
takaha4k
0
140
信頼性を犠牲にせず、PR マージからデプロイまで人の介入を完全にゼロにするまでの道のり
knwoop
4
2.2k
[NW-JAWS DAY]「うちのAWS、インターネット出られないんで」― AWS外の自社サービスをPrivateLinkでシュッと公開する方法
ykimi
3
930
IVRy における AI 時代のデータプロダクトと事業開発
ivry_presentationmaterials
0
120
個人ASを取得して、自宅Kubernetes上のVMをグローバルIPで公開した話
munenick
0
230
Featured
See All Featured
Java REST API Framework Comparison - PWX 2021
mraible
34
9.8k
Reality Check: Gamification 10 Years Later
codingconduct
0
2.4k
The SEO Collaboration Effect
kristinabergwall1
1
630
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.9k
Beyond borders and beyond the search box: How to win the global "messy middle" with AI-driven SEO
davidcarrasco
3
310
Code Reviewing Like a Champion
maltzj
529
40k
Designing for humans not robots
tammielis
254
26k
GraphQLの誤解/rethinking-graphql
sonatard
75
12k
Claude Code どこまでも/ Claude Code Everywhere
nwiizo
68
61k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
37
6.7k
A brief & incomplete history of UX Design for the World Wide Web: 1989–2019
jct
2
570
技術選定の審美眼(2025年版) / Understanding the Spiral of Technologies 2025 edition
twada
PRO
121
130k