-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #22 from kissmetrics/kh/javadocs
Javadoc and Jar Automation
- Loading branch information
Showing
12 changed files
with
120 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
# Releasing | ||
|
||
### 1. Make sure the tests run | ||
|
||
An important step many may forget: | ||
|
||
```sh | ||
gradle connectedAndroidTest | ||
``` | ||
|
||
You will need an Android emulator running to run the tests. | ||
|
||
### 2. Bump Version Number | ||
|
||
The version number needs to be increased. If it is a feature addition/change | ||
bump the second number (i.e. 2.X.0). If it is a patch/bug fix bump the last | ||
number (i.e. 2.0.X). | ||
|
||
In the `build.gradle` file also bump the `versionCode` number by 1. This is an | ||
Android thing. | ||
|
||
The version number lives in: | ||
|
||
1. `Connection.java` under `com.kissmetrics.sdk`. It's in the constant `USER_AGENT` | ||
2. `build.gradle` file at the root. | ||
|
||
### 3. Merge and Tag | ||
|
||
Get your changes into the `master` branch. Then create a tag with the version: | ||
|
||
### 4. Build Artifacts | ||
|
||
You can build everything you need with this command line and Gradle 2.3+: | ||
|
||
```sh | ||
gradle clean build compileReleaseSources javadocs javadocsJar sourcesJar | ||
``` | ||
|
||
It will create the following files: | ||
|
||
``` | ||
build/libs/KISSmetricsSDK-javadoc.jar | ||
build/libs/KISSmetricsSDK-sources.jar | ||
build/libs/KISSmetricsSDK.jar | ||
build/outputs/aar/KISSmetricsSDK-debug.aar | ||
build/outputs/aar/KISSmetricsSDK-release.aar | ||
``` | ||
|
||
### 5. Release | ||
|
||
Create the Release on GitHub. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
/** | ||
* | ||
*/ | ||
package com.kissmetrics.sdk; |