From 8b465aabcc76b97dc0d8522e54f989c56790cd27 Mon Sep 17 00:00:00 2001 From: Janne Koschinski <janne@kuschku.de> Date: Fri, 5 Feb 2016 00:01:48 +0100 Subject: [PATCH] Updated install instructions --- INSTALL.md | 28 ---------------------------- README.md | 41 ++++++++++++++++------------------------- install.sh | 7 +++++++ 3 files changed, 23 insertions(+), 53 deletions(-) delete mode 100644 INSTALL.md diff --git a/INSTALL.md b/INSTALL.md deleted file mode 100644 index b1e6c65d2..000000000 --- a/INSTALL.md +++ /dev/null @@ -1,28 +0,0 @@ -Build Guide -=========== - -First build libraries: - -``` -cd AndroidSlidingUpPanel -gradle build -``` - -``` -cd aspm -gradle shadowJar -``` - -Then copy or link the files at the appropriate places: - -``` -cp aspm/annotations/build/libs/annotations.jar app/libs/ -cp aspm/compiler/build/libs/compiler-all.jar app/libs/ -cp AndroidSlidingUpPanel/library/build/outputs/aar/library-release.aar app/libs/ -``` - -Then invoke gradle for the main project: - -``` -gradle assembleRelease -``` diff --git a/README.md b/README.md index 46dcb29d2..6592d0b3b 100644 --- a/README.md +++ b/README.md @@ -50,31 +50,22 @@ downloaded from maven central): ##Building -The build process uses gradle. Run `gradle tasks` to see possible tasks, -`gradle assembleRelease` to assemble a release build and `gradle installDebug` -to install a debug build on a device connected via `adb`. - -To sign your releases, [generate a keypair]() and create a file named -`signing.gradle` in the `app/` folder with the following content to let gradle -automatically sign your builds - -```groovy -android { - signingConfigs { - release { - storeFile file("/path/to/your/keystore/here.keystore") - storePassword "passwordofyourkeystorehere" - keyAlias "nameofyourkeyhere" - keyPassword "passwordofyourkeyhere" - } - } - - buildTypes { - release { - signingConfig signingConfigs.release - } - } -} +The build process uses gradle, and requires it to be available as command +"gradle". Use the `install.sh` script to pull and build the dependencies. + +Run `gradle tasks` to see possible tasks, `gradle assembleRelease` to assemble a +release build and `gradle installDebug` to install a debug build on a device +connected via `adb`. + +To sign your releases, [generate a keypair](http://developer.android.com/tools/publishing/app-signing.html) +and create a file named `signing.gradle` in the `app/` folder with the following +content to let gradle automatically sign your builds. + +``` + storeFile=/path/to/your/keystore/here.keystore + storePassword=passwordofyourkeystorehere + keyAlias=nameofyourkeyhere + keyPassword=passwordofyourkeyhere ``` ##Note diff --git a/install.sh b/install.sh index a6c020e40..b557d2f79 100755 --- a/install.sh +++ b/install.sh @@ -1,7 +1,12 @@ #!/bin/sh +# Update submodules +git submodule update --init + +# Create directories mkdir -p app/libs/ +# Build AndroidSlidingUpPanel echo sdk.dir=$ANDROID_HOME > AndroidSlidingUpPanel/local.properties cd AndroidSlidingUpPanel gradle build @@ -9,6 +14,7 @@ cd .. cp AndroidSlidingUpPanel/library/build/outputs/aar/library-release.aar app/libs/library-release.aar rm AndroidSlidingUpPanel/local.properties +# Build aspm echo sdk.dir=$ANDROID_HOME > aspm/local.properties cd aspm gradle build jar shadowJar @@ -17,6 +23,7 @@ cp aspm/annotations/build/libs/annotations.jar app/libs/annotations.jar cp aspm/compiler/build/libs/compiler-all.jar app/libs/compiler-all.jar rm aspm/local.properties +# Build QuasselDroidNG echo sdk.dir=$ANDROID_HOME > local.properties gradle assembleRelease -x lintVitalRelease rm local.properties \ No newline at end of file -- GitLab