Skip to content
Snippets Groups Projects
Commit 8b465aab authored by Janne Mareike Koschinski's avatar Janne Mareike Koschinski
Browse files

Updated install instructions

parent d5340757
Branches
Tags
No related merge requests found
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
```
...@@ -50,31 +50,22 @@ downloaded from maven central): ...@@ -50,31 +50,22 @@ downloaded from maven central):
##Building ##Building
The build process uses gradle. Run `gradle tasks` to see possible tasks, The build process uses gradle, and requires it to be available as command
`gradle assembleRelease` to assemble a release build and `gradle installDebug` "gradle". Use the `install.sh` script to pull and build the dependencies.
to install a debug build on a device connected via `adb`.
Run `gradle tasks` to see possible tasks, `gradle assembleRelease` to assemble a
To sign your releases, [generate a keypair]() and create a file named release build and `gradle installDebug` to install a debug build on a device
`signing.gradle` in the `app/` folder with the following content to let gradle connected via `adb`.
automatically sign your builds
To sign your releases, [generate a keypair](http://developer.android.com/tools/publishing/app-signing.html)
```groovy and create a file named `signing.gradle` in the `app/` folder with the following
android { content to let gradle automatically sign your builds.
signingConfigs {
release { ```
storeFile file("/path/to/your/keystore/here.keystore") storeFile=/path/to/your/keystore/here.keystore
storePassword "passwordofyourkeystorehere" storePassword=passwordofyourkeystorehere
keyAlias "nameofyourkeyhere" keyAlias=nameofyourkeyhere
keyPassword "passwordofyourkeyhere" keyPassword=passwordofyourkeyhere
}
}
buildTypes {
release {
signingConfig signingConfigs.release
}
}
}
``` ```
##Note ##Note
......
#!/bin/sh #!/bin/sh
# Update submodules
git submodule update --init
# Create directories
mkdir -p app/libs/ mkdir -p app/libs/
# Build AndroidSlidingUpPanel
echo sdk.dir=$ANDROID_HOME > AndroidSlidingUpPanel/local.properties echo sdk.dir=$ANDROID_HOME > AndroidSlidingUpPanel/local.properties
cd AndroidSlidingUpPanel cd AndroidSlidingUpPanel
gradle build gradle build
...@@ -9,6 +14,7 @@ cd .. ...@@ -9,6 +14,7 @@ cd ..
cp AndroidSlidingUpPanel/library/build/outputs/aar/library-release.aar app/libs/library-release.aar cp AndroidSlidingUpPanel/library/build/outputs/aar/library-release.aar app/libs/library-release.aar
rm AndroidSlidingUpPanel/local.properties rm AndroidSlidingUpPanel/local.properties
# Build aspm
echo sdk.dir=$ANDROID_HOME > aspm/local.properties echo sdk.dir=$ANDROID_HOME > aspm/local.properties
cd aspm cd aspm
gradle build jar shadowJar gradle build jar shadowJar
...@@ -17,6 +23,7 @@ cp aspm/annotations/build/libs/annotations.jar app/libs/annotations.jar ...@@ -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 cp aspm/compiler/build/libs/compiler-all.jar app/libs/compiler-all.jar
rm aspm/local.properties rm aspm/local.properties
# Build QuasselDroidNG
echo sdk.dir=$ANDROID_HOME > local.properties echo sdk.dir=$ANDROID_HOME > local.properties
gradle assembleRelease -x lintVitalRelease gradle assembleRelease -x lintVitalRelease
rm local.properties rm local.properties
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment