diff --git a/INSTALL.md b/INSTALL.md deleted file mode 100644 index b1e6c65d2d75d94b1d0920ea171e4dc73c8ade91..0000000000000000000000000000000000000000 --- 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 46dcb29d244b5f78e1b2f010d47755fe8b614c21..6592d0b3b74fc9789115ceaf7a2b3f889cb58394 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 a6c020e40920cc575bc1667e608b5c0a581e70c2..b557d2f79f4ebd5b3c15667847b0e25af30ddb6b 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