Skip to content

Commit

Permalink
2.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
pwilkniss committed Dec 9, 2015
1 parent 2fe9420 commit d1a803c
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 17 deletions.
Binary file modified CleverTapAndroidSDK.jar
Binary file not shown.
12 changes: 5 additions & 7 deletions StarterProject/app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
apply plugin: 'com.android.application'
apply plugin: 'com.google.gms.google-services'

android {
compileSdkVersion 22
buildToolsVersion "22.0.1"
compileSdkVersion 23
buildToolsVersion "23.0.2"

defaultConfig {
applicationId "com.clevertap.starter"
minSdkVersion 15
targetSdkVersion 22
targetSdkVersion 23
versionCode 1
versionName "1.0"
}
Expand All @@ -23,6 +22,5 @@ android {
dependencies {
//compile fileTree(dir: 'libs', include: ['*.jar'])
compile files('libs/CleverTapAndroidSDK.jar')
compile 'com.android.support:appcompat-v7:22.2.0'
compile 'com.google.android.gms:play-services:7.8.0'
}
compile 'com.android.support:appcompat-v7:23.1.1'
compile 'com.google.android.gms:play-services:8.3.0'}
Binary file modified StarterProject/app/libs/CleverTapAndroidSDK.jar
Binary file not shown.
12 changes: 6 additions & 6 deletions StarterProject/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,17 @@
<!-- CleverTap permissions -->

<!-- Required to retrieve a unique identifier for the device, see note below -->
<uses-permission android:name="android.permission.READ_PHONE_STATE"/>
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<!-- Required to allow the app to send events -->
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.INTERNET" />
<!-- Recommended so that we can be smart about when to send the data -->
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<!-- Recommended so that we can get the user's primary e-mail address -->
<uses-permission android:name="android.permission.GET_ACCOUNTS"/>
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
<!-- Recommended so that we can get the user's location -->
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<!-- Recommended -->
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />

<!--Note: The READ_PHONE_STATE permission is optional, but recommended. This is required to read the
IMEI number of the device to identify the user. If this permission is not requested, the CleverTap SDK
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,13 @@
import android.util.Log;

import com.clevertap.android.sdk.CleverTapAPI;
import com.clevertap.android.sdk.SyncListener;
import com.clevertap.android.sdk.exceptions.CleverTapMetaDataNotFoundException;
import com.clevertap.android.sdk.exceptions.CleverTapPermissionsNotSatisfied;

// import java.util.HashMap;
import org.json.JSONObject;

public class MainActivity extends Activity {
public class MainActivity extends Activity implements SyncListener {

private CleverTapAPI ct = null;

Expand All @@ -28,6 +29,7 @@ protected void onCreate(Bundle savedInstanceState) {
ct = CleverTapAPI.getInstance(getApplicationContext());

ct.enablePersonalization(); // optional
ct.setSyncListener(this); // optional

} catch (CleverTapMetaDataNotFoundException e) {
// handle appropriately
Expand Down Expand Up @@ -72,4 +74,8 @@ protected void onCreate(Bundle savedInstanceState) {
//ct.event.push("Video played");
}

// SyncListener
public void profileDataUpdated(JSONObject updates) {
Log.d("PR_UPDATES", updates.toString());
}
}
4 changes: 2 additions & 2 deletions StarterProject/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ buildscript {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.2.3'
classpath 'com.google.gms:google-services:1.3.0-beta1'
classpath 'com.android.tools.build:gradle:1.3.0'


// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
Expand Down

0 comments on commit d1a803c

Please sign in to comment.