From 3afc546037639d74eb24afe83176d090132339c8 Mon Sep 17 00:00:00 2001 From: Space Cowboy Date: Wed, 2 Apr 2014 02:22:20 +0200 Subject: [PATCH] Update readme with maven info Adding info on how to use MavenCentral. Fixes #3 --- README.org | 34 ++++++++++++++++++++++------------ 1 file changed, 22 insertions(+), 12 deletions(-) diff --git a/README.org b/README.org index e54be1f6..2189b3d0 100644 --- a/README.org +++ b/README.org @@ -42,25 +42,35 @@ full screen on small screens and as a dialog on large screens. It does this through the theme system, so it is very important for the activity to use the correct theme. -** How to include in your project (from MavenCentral) +** How to include in your project (with Gradle) -Coming in a day or so. +Just add the dependency to your /build.gradle/: +#+begin_src groovy +repositories { + mavenCentral() + mavenLocal() +} -** How to include in your project (from source) -#+begin_src sh -cd MyProjectRoot -git clone https://github.com/spacecowboy/NoNonsense-FilePicker.git -echo "include ':NoNonsense-FilePicker:library'" >> settings.gradle +dependencies { + compile 'com.nononsenseapps:filepicker:+' +} #+end_src -Then in your /build.gradle/ add this line in the dependency section: +That will make sure you are using the latest version at all times. -#+begin_src groovy -compile project(':NoNonsense-FilePicker:library') +** How to include with Maven: +Something like this should work: + +#+begin_src xml + + com.nononsenseapps + filepicker + 1.1.1-SNAPSHOT + aar + #+end_src -Have a look at the sample app for detailed usage, short instructions -for the included file picker: +** What next? *** Include permission in your manifest #+begin_src xml