Skip to content

Commit

Permalink
Version 2.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
djih committed Oct 20, 2015
1 parent e7e0f3c commit 9c8aaac
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 7 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
## Unreleased

## 2.2.0 (October 20, 2015)

* Removed all references to Apache HTTPClient to support Android M.
* Handle exceptions when fetching last known location from LocationManager.
* Add ability to set custom deviceId.
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,22 @@ A [demo application](https://github.com/amplitude/Android-Demo) is available to
# Setup #
1. If you haven't already, go to https://amplitude.com/signup and register for an account. Then, add an app. You will receive an API Key.

2. [Download the jar](https://github.com/amplitude/Amplitude-Android/raw/master/amplitude-android-2.1.0-with-dependencies.jar) and copy it into the "libs" folder in your Android project in Eclipse. If you're using an older build of Android, you may need to [add the jar file to your build path](http://stackoverflow.com/questions/3280353/how-to-import-a-jar-in-eclipse).
2. [Download the jar](https://github.com/amplitude/Amplitude-Android/raw/master/amplitude-android-2.2.0-with-dependencies.jar) and copy it into the "libs" folder in your Android project in Eclipse. If you're using an older build of Android, you may need to [add the jar file to your build path](http://stackoverflow.com/questions/3280353/how-to-import-a-jar-in-eclipse).

Alternatively, if you are using Maven in your project, the jar is available on [Maven Central](http://search.maven.org/#artifactdetails%7Ccom.amplitude%7Candroid-sdk%7C2.1.0%7Cjar) using the following configuration in your pom.xml:
Alternatively, if you are using Maven in your project, the jar is available on [Maven Central](http://search.maven.org/#artifactdetails%7Ccom.amplitude%7Candroid-sdk%7C2.2.0%7Cjar) using the following configuration in your pom.xml:

```
<dependency>
<groupId>com.amplitude</groupId>
<artifactId>android-sdk</artifactId>
<version>2.1.0</version>
<version>2.2.0</version>
</dependency>
```

Or if you are using gradle in your project, include in your build.gradle file:

```
compile 'com.amplitude:android-sdk:2.1.0'
compile 'com.amplitude:android-sdk:2.2.0'
```

4. In every file that uses analytics, import com.amplitude.api.Amplitude at the top:
Expand Down
Binary file removed amplitude-android-2.1.0.jar
Binary file not shown.
Binary file not shown.
Binary file added amplitude-android-2.2.0.jar
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

<property name="groupId" value="com.amplitude" />
<property name="artifactId" value="amplitude-android" />
<property name="version" value="2.1.0" />
<property name="version" value="2.2.0" />

<property name="jar" value="${dist}/lib/${artifactId}-${version}.jar" />
<property name="uberjar" value="${dist}/lib/${artifactId}-${version}-with-dependencies.jar" />
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.amplitude</groupId>
<artifactId>android-sdk</artifactId>
<version>2.1.0</version>
<version>2.2.0</version>
<packaging>jar</packaging>

<name>Amplitude Android SDK</name>
Expand Down
2 changes: 1 addition & 1 deletion src/com/amplitude/api/Constants.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ public class Constants {

public static final String LIBRARY = "amplitude-android";
public static final String PLATFORM = "Android";
public static final String VERSION = "2.1.0";
public static final String VERSION = "2.2.0";

public static final String EVENT_LOG_URL = "https://api.amplitude.com/";

Expand Down

0 comments on commit 9c8aaac

Please sign in to comment.