From 626a05fb6fdf89e13bcbe02f4a15ee5f92938df8 Mon Sep 17 00:00:00 2001 From: Pascal Hartig Date: Thu, 11 May 2017 05:16:37 -0700 Subject: [PATCH] Update docs for SNAPSHOTs Summary: Also bumped the version number for the existing dependency examples. Reviewed By: emilsjolander Differential Revision: D5044190 fbshipit-source-id: 4199ab114450a256efaa30a811822923beafb378 --- docs/_docs/api/android.md | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/docs/_docs/api/android.md b/docs/_docs/api/android.md index cc69244b..7f81efd7 100644 --- a/docs/_docs/api/android.md +++ b/docs/_docs/api/android.md @@ -8,7 +8,7 @@ permalink: /docs/api/android/ To include the java bindings and `.so` libraries, add to your build: ```java -compile 'com.facebook.yoga:yoga:1.2.0' +compile 'com.facebook.yoga:yoga:1.5.0' ``` There is an easy interface to Yoga called `YogaLayout`. This is a view group that lays out its children using Yoga. We recommend looking at the sample app for details on its usage. However, as an overview you can simply define XML layouts such as: @@ -54,7 +54,26 @@ Note that there are some caveats, such as requiring the custom `YogaLayoutViewFa To include this in your project, add to your build: ```java -compile 'com.facebook.yoga.android:yoga-layout:1.2.0' +compile 'com.facebook.yoga.android:yoga-layout:1.5.0' +``` + +## Snapshot releases + +> IMPORTANT: This will break and may set your house on fire. Snapshots are unsigned and automatically published by our CI system. Use them for testing purposes only. + +If you want to live on the bleeding edge, you can use the SNAPSHOT releases +which represent the most recent commit on `master` by adding these targets to +your gradle config: + +```gradle +repositories { + maven { url "https://oss.sonatype.org/content/repositories/snapshots/" } +} + +dependencies { + compile 'com.facebook.yoga:yoga:1.5.1-SNAPSHOT' + compile 'com.facebook.yoga.android:yoga-layout:1.5.1-SNAPSHOT' +} ``` ## layout\_width and layout\_height