Your SlideShare is downloading. ×
0
Simon Stewart, Facebook engineer - Building Facebook for Android
Simon Stewart, Facebook engineer - Building Facebook for Android
Simon Stewart, Facebook engineer - Building Facebook for Android
Simon Stewart, Facebook engineer - Building Facebook for Android
Simon Stewart, Facebook engineer - Building Facebook for Android
Simon Stewart, Facebook engineer - Building Facebook for Android
Simon Stewart, Facebook engineer - Building Facebook for Android
Simon Stewart, Facebook engineer - Building Facebook for Android
Simon Stewart, Facebook engineer - Building Facebook for Android
Simon Stewart, Facebook engineer - Building Facebook for Android
Simon Stewart, Facebook engineer - Building Facebook for Android
Simon Stewart, Facebook engineer - Building Facebook for Android
Simon Stewart, Facebook engineer - Building Facebook for Android
Simon Stewart, Facebook engineer - Building Facebook for Android
Simon Stewart, Facebook engineer - Building Facebook for Android
Simon Stewart, Facebook engineer - Building Facebook for Android
Simon Stewart, Facebook engineer - Building Facebook for Android
Simon Stewart, Facebook engineer - Building Facebook for Android
Simon Stewart, Facebook engineer - Building Facebook for Android
Simon Stewart, Facebook engineer - Building Facebook for Android
Simon Stewart, Facebook engineer - Building Facebook for Android
Simon Stewart, Facebook engineer - Building Facebook for Android
Simon Stewart, Facebook engineer - Building Facebook for Android
Simon Stewart, Facebook engineer - Building Facebook for Android
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Simon Stewart, Facebook engineer - Building Facebook for Android

227

Published on

How does Facebook build its Android app? How are they working to improve the quality, speed and stability? In this talk, we'll cover everything Facebook's Android team does from source control, …

How does Facebook build its Android app? How are they working to improve the quality, speed and stability? In this talk, we'll cover everything Facebook's Android team does from source control, builds, testing and release, and show you how you can do the same.

More details on: http://2013.howtoweb.co/

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
227
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
1
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. Move Fast and Build Things Simon Stewart simons@fb.com github.com/shs96c @shs96c
  • 2. The Challenge >150,000 files >100,000 commits >300
  • 3. There is no Android team
  • 4. How do we “move fast”?
  • 5. Build fast
  • 6. The working copy ▪ We use git for source control ▪ Two branches we care about day-to-day: ▪ master ▪ stable
  • 7. How the code is organized Text http://www.flickr.com/photos/darwinbell/3030214710/
  • 8. Code review
  • 9. Image macros QuickTime™ and a GIF decompressor are needed to see this picture.
  • 10. Dependency injection http://www.flickr.com/photos/31246066@N04/5253179784/
  • 11. We needed a better tool ▪ Minimal ▪ Keep ▪ IDE overhead in creating a module boilerplate out of the codebase friendly ▪ Faster clean builds ▪ Faster incremental builds ▪ Support ad-hoc build steps
  • 12. Buck: an Android build system ▪ build rule procedure for producing output files from input files ▪ build file file (named BUCK) where build rules are declared ▪ build target string identifier for a build rule
  • 13. Build Target //java/com/facebook/share:ui Root of the repository Directory where the build file can be found Name of the build rule
  • 14. Build Rule android_library( name = 'ui', srcs = glob(['**/*.java']), deps = [ '//android_res/com/facebook/share:res', '//java/com/facebook/base:base', '//thirdparty/java/guava:guava', ], visibility = [ 'PUBLIC' ],) )
  • 15. Dependency Graph AB GR AB AL AL GR AL AL AL AL AR AR AR
  • 16. Dependency Graph AB GR AB AL AL GR AL AL AL AL AR AR AR
  • 17. Buck is Open Source! ▪ Available on GitHub: https://github.com/facebook/buck/ ▪ Documentation ▪ Apache ▪ Written ▪ Works galore: http://facebook.github.com/buck/ 2.0 License in Java and a smattering of Python on OS X and Linux
  • 18. Test fast
  • 19. Developers write tests
  • 20. Unit tests http://www.flickr.com/photos/aracelota/4773084433/
  • 21. Larger tests http://www.flickr.com/photos/amphalon/6510474165/
  • 22. Deploy fast
  • 23. Dogfood, Alpha and Beta
  • 24. Questions?

×