Skip to content
This repository has been archived by the owner on Apr 4, 2023. It is now read-only.

Commit

Permalink
SDK-373 : SDK Release 20.11.1 (#86)
Browse files Browse the repository at this point in the history
* setLoggingEnabled function fixes.

* SDK release changes:
— SDK version increased to 20.11.1
— Changelog updated
— Underlying SDK versions updated

* Updated underlying iOS SDK to 20.11.2

* Update CHANGELOG.md

* Update LICENSE

* Update README.md

* Update README.md

Co-authored-by: ArtursKadikis <[email protected]>
  • Loading branch information
ijunaid and ArtursKadikis authored Jul 14, 2021
1 parent af6cf67 commit e3346c7
Show file tree
Hide file tree
Showing 31 changed files with 719 additions and 191 deletions.
2 changes: 1 addition & 1 deletion .versions
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
countly:[email protected].0
countly:[email protected].1
[email protected]
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 20.11.1
* "setLoggingEnabled" call issues fixed.
* Updated underlying android SDK to 20.11.8
* Underlying iOS SDK version is 20.11.1

## 20.11.0
* !! Due to cocoapods issue with Xcode 12, we have added the iOS SDK as source code instead of Pod. Due to that change you may need to remove the ios platform and add it again.
* !! Consent change !! To use remote config, you now need to give "remote-config" consent
Expand Down
16 changes: 13 additions & 3 deletions Countly.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ Countly = {};
Countly.serverUrl = "";
Countly.appKey = "";
Countly.ready = false;
Countly.version = "20.11.0";
Countly.version = "20.11.1";
Countly.isDebug = false;
Countly.isInitCalled = false;
if (window.cordova.platformId == "android") {
Countly.isAndroid = true;
Countly.messagingMode = {"TEST": "2", "PRODUCTION": "0"};
Expand All @@ -24,6 +25,8 @@ Countly.init = function(serverUrl,appKey, deviceId){
args.push(deviceId || "");
};

Countly.isInitCalled = true;

return new Promise((resolve,reject) => {
cordova.exec(resolve,reject,"CountlyCordova","init",args);
});
Expand Down Expand Up @@ -59,9 +62,16 @@ Countly.recordView = function(recordView, segments){
* Set to true if you want to enable countly internal debugging logs
* Should be call before Countly init
*/
Countly.setLoggingEnabled = function(isDebug){
Countly.setLoggingEnabled = function(isDebug = true){
isDebug = isDebug.toString() == "true" ? true : false;
if(this.isInitCalled) {
if(Countly.isDebug){
console.warn("setLoggingEnabled, should be call before init");
}
return;
}
Countly.isDebug = isDebug;
var args = [isDebug?"true": "false"];
var args = [isDebug.toString()];
cordova.exec(Countly.onSuccess,Countly.onError,"CountlyCordova","setLoggingEnabled",args);
}

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ For more information about how to use this SDK inside your mobile app, [click th

Security is very important to us. If you discover any issue regarding security, please disclose the information responsibly by sending an email to [email protected] and **not by creating a GitHub issue**.

## Acknowledgements
## Acknowledgements

This SDK was initially written by Panteon Technologies ([email protected]).<br>
It's now maintained by Trinisoft Technologies ([email protected]).
From 2014 to 2020 it was maintained by Trinisoft Technologies developers ([email protected]).

## Badges

Expand Down
2 changes: 1 addition & 1 deletion package.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package.describe({
name: 'countly:countly-sdk-js',
version: '20.11.0',
version: '20.11.1',
summary: 'Countly is an innovative, real-time, open source mobile analytics and push notifications platform. It collects data from mobile devices, and visualizes this information to analyze mobile application usage and end-user behavior. There are two parts of Countly: the server that collects and analyzes data, and mobile SDK that sends this data. Both parts are open source with different licensing terms.',
git: 'https://github.com/Countly/countly-sdk-cordova.git',
documentation: 'README.md'
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "countly-sdk-js",
"version": "20.11.0",
"version": "20.11.1",
"description": "Countly is an innovative, real-time, open source mobile analytics and push notifications platform. It collects data from mobile devices, and visualizes this information to analyze mobile application usage and end-user behavior. There are two parts of Countly: the server that collects and analyzes data, and mobile SDK that sends this data. Both parts are open source with different licensing terms.",
"cordova": {
"id": "countly-sdk-js",
Expand Down
10 changes: 5 additions & 5 deletions plugin.xml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android" id="countly-sdk-cordova" version="20.11.0">
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android" id="countly-sdk-cordova" version="20.11.1">

<name>Countly</name>
<name>Countly Cordova SDK</name>

<description>
Countly is an innovative, real-time, open source mobile analytics and push notifications platform. It collects data from mobile devices, and visualizes this information to analyze mobile application usage and end-user behavior. There are two parts of Countly: the server that collects and analyzes data, and mobile SDK that sends this data. Both parts are open source with different licensing terms.
</description>

<author>Trinisoft Technologies Pvt. Ltd.</author>
<author>Countly</author>

<license>Open source with different licensing terms.</license>
<license>MIT</license>

<keywords>Event, Mobile analytical</keywords>

Expand Down Expand Up @@ -141,7 +141,7 @@

<source-file src="src/android/CountlyCordova.java" target-dir="src/ly/count/android/sdk"/>
<source-file src="src/android/CountlyNative.java" target-dir="src/ly/count/android/sdk"/>
<framework src="ly.count.android:sdk:20.11.2" />
<framework src="ly.count.android:sdk:20.11.8" />

<!-- Push notification -->
<config-file target="AndroidManifest.xml" parent="/manifest/application">
Expand Down
2 changes: 1 addition & 1 deletion src/android/CountlyNative.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
public class CountlyNative {

public static final String TAG = "CountlyCordovaPlugin";
private String COUNTLY_CORDOVA_SDK_VERSION_STRING = "20.11.0";
private String COUNTLY_CORDOVA_SDK_VERSION_STRING = "20.11.1";
private String COUNTLY_CORDOVA_SDK_NAME = "js-cordovab-android";

private Countly.CountlyMessagingMode pushTokenTypeVariable = Countly.CountlyMessagingMode.PRODUCTION;
Expand Down
2 changes: 1 addition & 1 deletion src/ios/CountlyNative.m
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
Boolean isInitialized = false;
NSString *const pushPluginApplicationDidBecomeActiveNotification = @"pushPluginApplicationDidBecomeActiveNotification";

NSString* const kCountlyCordovaSDKVersion = @"20.11.0";
NSString* const kCountlyCordovaSDKVersion = @"20.11.1";
NSString* const kCountlyCordovaSDKName = @"js-cordovab-ios";

@interface CountlyFeedbackWidget ()
Expand Down
9 changes: 8 additions & 1 deletion src/ios/CountlyiOS/Countly.h
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,13 @@ NS_ASSUME_NONNULL_BEGIN
*/
- (void)recordCrashLog:(NSString *)log;

/**
* Clears all custom crash logs.
* @discussion Custom crash logs recorded using @c recordCrashLog: method so far will be cleared.
*/
- (void)clearCrashLogs;


/**
* @c crashLog: method is deprecated. Please use @c recordCrashLog: method instead.
* @discussion Be advised, parameter type changed to plain @c NSString from string format, for better Swift compatibility.
Expand Down Expand Up @@ -478,7 +485,7 @@ NS_ASSUME_NONNULL_BEGIN
*/
- (void)recordView:(NSString *)viewName segmentation:(NSDictionary<NSString *, NSString *> *)segmentation;

#if (TARGET_OS_IOS)
#if (TARGET_OS_IOS || TARGET_OS_TV)
/**
* Adds exception for AutoViewTracking.
* @discussion @c UIViewControllers with specified title or class name will be ignored by AutoViewTracking and their appearances and disappearances will not be recorded.
Expand Down
Loading

0 comments on commit e3346c7

Please sign in to comment.