Skip to content

Commit 51cae22

Browse files
committed
Preparations for 17.09.2 release.
1 parent 30455c4 commit 51cae22

File tree

3 files changed

+35
-6
lines changed

3 files changed

+35
-6
lines changed

sdk-messaging/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ android {
1818
minSdkVersion 9
1919
targetSdkVersion 25
2020
versionCode 1
21-
versionName "17.09.1"
21+
versionName "17.09.2"
2222
}
2323
buildTypes {
2424
release {
@@ -36,14 +36,14 @@ dependencies {
3636
compile fileTree(dir: 'libs', include: ['*.jar'])
3737
compile 'com.google.android.gms:play-services-gcm:10.0.1'
3838
compile project(':sdk')
39-
// compile 'ly.count:sdk-android:17.09.1'
39+
// compile 'ly.count:sdk-android:17.09.2'
4040
}
4141

4242
publish {
4343
userOrg = 'countly'
4444
groupId = 'ly.count.android'
4545
artifactId = 'sdk-messaging'
46-
version = '17.09.1'
46+
version = '17.09.2'
4747
description = 'Countly Android SDK with GCM Support'
4848
website = 'https://github.com/Countly/countly-sdk-android'
4949
}

sdk/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ android {
1818
minSdkVersion 9
1919
targetSdkVersion 25
2020
versionCode 1
21-
versionName "17.09.1"
21+
versionName "17.09.2"
2222

2323
testInstrumentationRunner 'ly.count.android.sdk.test.InstrumentationTestRunner'
2424
testHandleProfiling true
@@ -55,7 +55,7 @@ publish {
5555
userOrg = 'countly'
5656
groupId = 'ly.count.android'
5757
artifactId = 'sdk'
58-
version = '17.09.1'
58+
version = '17.09.2'
5959
description = 'Android SDK for Countly mobile analytics'
6060
website = 'https://github.com/Countly/countly-sdk-android'
6161
}

sdk/src/main/java/ly/count/android/sdk/Countly.java

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public class Countly {
5252
/**
5353
* Current version of the Count.ly Android SDK as a displayable string.
5454
*/
55-
public static final String COUNTLY_SDK_VERSION_STRING = "17.09.1";
55+
public static final String COUNTLY_SDK_VERSION_STRING = "17.09.2";
5656
/**
5757
* Used as request meta data on every request
5858
*/
@@ -332,6 +332,20 @@ public Countly initMessaging(Activity activity, Class<? extends Activity> activi
332332
return initMessaging(activity, activityClass, projectID, null, mode, false, -1);
333333
}
334334

335+
/**
336+
* Initializes the Countly MessagingSDK. Call from your main Activity's onCreate() method.
337+
* @param activity application activity which acts as a final destination for notifications
338+
* @param activityClass application activity class which acts as a final destination for notifications
339+
* @param projectID ProjectID for this app from Google API Console
340+
* @param mode whether this app installation is a test release or production
341+
* @param customIconResId res id for custom icon override
342+
* @return Countly instance for easy method chaining
343+
* @throws IllegalStateException if no CountlyMessaging class is found (you need to use countly-messaging-sdk-android library instead of countly-sdk-android)
344+
*/
345+
public Countly initMessaging(Activity activity, Class<? extends Activity> activityClass, String projectID, Countly.CountlyMessagingMode mode, int customIconResId) {
346+
return initMessaging(activity, activityClass, projectID, null, mode, false, customIconResId);
347+
}
348+
335349
/**
336350
* Initializes the Countly MessagingSDK. Call from your main Activity's onCreate() method.
337351
* @param activity application activity which acts as a final destination for notifications
@@ -359,6 +373,21 @@ public synchronized Countly initMessaging(Activity activity, Class<? extends Act
359373
return initMessaging(activity, activityClass, projectID, null, mode, false, -1);
360374
}
361375

376+
/**
377+
* Initializes the Countly MessagingSDK. Call from your main Activity's onCreate() method.
378+
* @param activity application activity which acts as a final destination for notifications
379+
* @param activityClass application activity class which acts as a final destination for notifications
380+
* @param projectID ProjectID for this app from Google API Console
381+
* @param buttonNames Strings to use when displaying Dialogs (uses new String[]{"Open", "Review"} by default)
382+
* @param mode whether this app installation is a test release or production
383+
* @param disableUI don't display dialogs & notifications when receiving push notification
384+
* @return Countly instance for easy method chaining
385+
* @throws IllegalStateException if no CountlyMessaging class is found (you need to use countly-messaging-sdk-android library instead of countly-sdk-android)
386+
*/
387+
public synchronized Countly initMessaging(Activity activity, Class<? extends Activity> activityClass, String projectID, String[] buttonNames, Countly.CountlyMessagingMode mode, boolean disableUI) {
388+
return initMessaging(activity, activityClass, projectID, buttonNames, mode, disableUI, -1);
389+
}
390+
362391
/**
363392
* Initializes the Countly MessagingSDK. Call from your main Activity's onCreate() method.
364393
* @param activity application activity which acts as a final destination for notifications

0 commit comments

Comments
 (0)