andorid: from code to store

16
Android: From Code to Store Rom Shiri

Upload: rom-shiri

Post on 19-Jan-2017

111 views

Category:

Engineering


0 download

TRANSCRIPT

Page 1: Andorid: From Code to Store

Android: From Code to Store

Rom Shiri

Page 2: Andorid: From Code to Store

Agenda

‣ Introduction to Android Libraries

‣ Networking

‣ Image Loading

‣ Dependency Injection

‣ Event Bus

‣ Debugging

‣ What’s Next?

Page 3: Andorid: From Code to Store

Where is my standard library?!

Page 4: Andorid: From Code to Store

“If you find yourself doing something by yourself, you’re probably doing it in the wrong way”

- Somebody at Google’s Android team

Page 5: Andorid: From Code to Store

Networking‣ The standard way:

Page 6: Andorid: From Code to Store
Page 7: Andorid: From Code to Store

Retrofit by Square

‣ Turns your HTTP API into a Java interface

‣ Using GSON as JSON parser

‣ Stupidly easy to use

http://square.github.io/retrofit/

Page 8: Andorid: From Code to Store

Image Loading

‣ Images are not trivial:

‣ Memory consumption

‣ Network

‣ Main players:

‣ Picasso (Square)

‣ Glide

‣ Fresco (Facebook)

‣ UIImageLoader

Page 9: Andorid: From Code to Store

Source: http://stackoverflow.com/questions/29363321/picasso-v-s-imageloader-v-s-fresco-vs-glide

Page 10: Andorid: From Code to Store

Picasso by Square

‣ Lightweight

‣ Fluent API

http://square.github.io/picasso/

Page 11: Andorid: From Code to Store

Dagger by Square & Google

‣ Dependency Injection library

‣ Adopted by Google (Dagger vs Guice)

‣ Dagger 2

‣ simple, traceable and performant

http://google.github.io/dagger/

Page 12: Andorid: From Code to Store

ButterKnife by Jake Wharton ‣ View binding framework

‣ Less boilerplate code

With ButterKnife

with

without

http://jakewharton.github.io/butterknife/

Page 13: Andorid: From Code to Store

Otto by Square

‣ An enhanced event bus with emphasis on Android support

‣ Forked from Guava (Google’s Java Library)

http://square.github.io/otto/

Page 14: Andorid: From Code to Store

Stetho by Facebook ‣ A debug bridge for Android applications via

Chrome Developer Tools

‣ Network Inspection

‣ View Hierarchy

‣ Database Inspection

‣ Javascript Console

http://facebook.github.io/stetho/

Page 15: Andorid: From Code to Store

What’s Next?‣ Check out Square Open Source

‣ square.github.io

‣ “Must have libraries” on GitHub:

‣ https://github.com/codepath/android_guides/wiki/Must-Have-Libraries

‣ Mobile Device Lab Stash

‣ https://stash.sears.co.il/projects/MDL

Page 16: Andorid: From Code to Store

Happy Android Developing!