Skip to content

Commit

Permalink
update to 2.0.9
Browse files Browse the repository at this point in the history
  • Loading branch information
pwilkniss committed Mar 15, 2016
1 parent ce76a3a commit 6bbe245
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 9 deletions.
Binary file modified CleverTapAndroidSDK.jar
Binary file not shown.
12 changes: 8 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,18 @@ For more information check out our [website](https://clevertap.com "CleverTap")
We publish the sdk to jcenter and mavenCentral as an `aar` file. Just declare it as dependency in your `build.gradle` file.

dependencies {
compile 'com.clevertap.android:clevertap-android-sdk:2.0.5'
compile 'com.clevertap.android:clevertap-android-sdk:2.0.9'
}

Then add the Google Play Services and Android Support Library v4 depencies to your Module `build.gradle` file.
Then add the below Google Play Services libraries and Android Support Library v4 as dependencies to your Module `build.gradle` file.

dependencies {
compile 'com.clevertap.android:clevertap-android-sdk:2.0.5'
compile 'com.google.android.gms:play-services:8.4.0'
compile 'com.clevertap.android:clevertap-android-sdk:2.0.9'
compile 'com.google.android.gms:play-services-base:8.4.0'
compile 'com.google.android.gms:play-services-ads:8.4.0'
compile 'com.google.android.gms:play-services-gcm:8.4.0'
compile 'com.google.android.gms:play-services-location:8.4.0'
compile 'com.google.android.gms:play-services-plus:8.4.0'
compile 'com.android.support:support-v4:23.1.1'
}

Expand Down
8 changes: 6 additions & 2 deletions StarterProject/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,13 @@ android {
}

dependencies {
compile 'com.clevertap.android:clevertap-android-sdk:2.0.5'
compile 'com.clevertap.android:clevertap-android-sdk:2.0.9'
//compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.google.android.gms:play-services:8.4.0'
compile 'com.google.android.gms:play-services-base:8.4.0'
compile 'com.google.android.gms:play-services-ads:8.4.0'
compile 'com.google.android.gms:play-services-gcm:8.4.0'
compile 'com.google.android.gms:play-services-location:8.4.0'
compile 'com.google.android.gms:play-services-plus:8.4.0'
compile 'com.android.support:support-v4:23.1.1'
compile 'com.android.support:appcompat-v7:23.1.1'
}
Expand Down
Binary file modified StarterProject/app/libs/CleverTapAndroidSDK.jar
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
import com.clevertap.android.sdk.exceptions.CleverTapMetaDataNotFoundException;
import com.clevertap.android.sdk.exceptions.CleverTapPermissionsNotSatisfied;

import java.util.Date;
import java.util.HashMap;

import org.json.JSONObject;

public class MainActivity extends Activity implements SyncListener {
Expand Down Expand Up @@ -58,8 +61,7 @@ protected void onCreate(Bundle savedInstanceState) {
profileUpdate.put("Name", "Jack Montana"); // String
profileUpdate.put("Identity", "6541182"); // String or number
profileUpdate.put("Email", "[email protected]"); // Email address of the user
profileUpdate.put("Phone", 4155551234); // Phone(without the country
code)
profileUpdate.put("Phone", "4155551234"); // Phone(without the countrycode)
profileUpdate.put("Gender", "M"); // Can be either M or F
profileUpdate.put("Employed", "Y"); // Can be either Y or N
profileUpdate.put("DOB", new Date()); // set the Date object to the appropriate value first
Expand All @@ -70,12 +72,20 @@ protected void onCreate(Bundle savedInstanceState) {
ct.profile.push(profileUpdate);
*/


// create CleverTap event for a User Action
//ct.event.push("Video played");

//String email = (String ) ct.profile.getProperty("Email");
//Log.d("EMAIL", email);
}

// SyncListener
public void profileDataUpdated(JSONObject updates) {
Log.d("PR_UPDATES", updates.toString());
}

public void profileDidInitialize(String cleverTapID) {
Log.d("CLEVERTAP_ID", cleverTapID);
}
}
2 changes: 1 addition & 1 deletion StarterProject/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ buildscript {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.0.0-alpha3'
classpath 'com.android.tools.build:gradle:1.5.0'
classpath 'com.google.gms:google-services:2.0.0-alpha3'

// NOTE: Do not place your application dependencies here; they belong
Expand Down

0 comments on commit 6bbe245

Please sign in to comment.