Skip to content

Commit

Permalink
Prepare 7.1.x cordova release (#55)
Browse files Browse the repository at this point in the history
  • Loading branch information
troach-sf authored and billmote committed Mar 4, 2020
1 parent 7ec29a3 commit b3cb1b4
Show file tree
Hide file tree
Showing 9 changed files with 260 additions and 262 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
Change Log
==========

### Version 7.1.0
* Updated to the 7.1.x versions of the Android and iOS Marketing Cloud SDK.

### Version 7.0.0
* Updated to the 7.0.x versions of the Android and iOS Marketing Cloud SDK.

Expand Down
38 changes: 19 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ Follow [these instructions](./ios_push.md) to enable push for iOS.
The current state of the pushEnabled flag in the native Marketing Cloud
SDK.

**Kind**: static method of <code>[MCCordovaPlugin](#module_MCCordovaPlugin)</code>
**Kind**: static method of [<code>MCCordovaPlugin</code>](#module_MCCordovaPlugin)
**See**

- [Android Docs](https://salesforce-marketingcloud.github.io/MarketingCloudSDK-Android/javadocs/6.0/reference/com/salesforce/marketingcloud/messages/push/PushMessageManager.html#isPushEnabled())
Expand All @@ -113,7 +113,7 @@ SDK.
### MCCordovaPlugin.enablePush([successCallback], [errorCallback])
Enables push messaging in the native Marketing Cloud SDK.

**Kind**: static method of <code>[MCCordovaPlugin](#module_MCCordovaPlugin)</code>
**Kind**: static method of [<code>MCCordovaPlugin</code>](#module_MCCordovaPlugin)
**See**

- [Android Docs](https://salesforce-marketingcloud.github.io/MarketingCloudSDK-Android/javadocs/6.0/reference/com/salesforce/marketingcloud/messages/push/PushMessageManager.html#enablePush())
Expand All @@ -130,7 +130,7 @@ Enables push messaging in the native Marketing Cloud SDK.
### MCCordovaPlugin.disablePush([successCallback], [errorCallback])
Disables push messaging in the native Marketing Cloud SDK.

**Kind**: static method of <code>[MCCordovaPlugin](#module_MCCordovaPlugin)</code>
**Kind**: static method of [<code>MCCordovaPlugin</code>](#module_MCCordovaPlugin)
**See**

- [Android Docs](https://salesforce-marketingcloud.github.io/MarketingCloudSDK-Android/javadocs/6.0/reference/com/salesforce/marketingcloud/messages/push/PushMessageManager.html#disablePush())
Expand All @@ -148,7 +148,7 @@ Disables push messaging in the native Marketing Cloud SDK.
Returns the token used by the Marketing Cloud to send push messages to
the device.

**Kind**: static method of <code>[MCCordovaPlugin](#module_MCCordovaPlugin)</code>
**Kind**: static method of [<code>MCCordovaPlugin</code>](#module_MCCordovaPlugin)
**See**

- [Android Docs](https://salesforce-marketingcloud.github.io/MarketingCloudSDK-Android/javadocs/6.0/reference/com/salesforce/marketingcloud/messages/push/PushMessageManager.html#getPushToken())
Expand All @@ -166,7 +166,7 @@ the device.
### MCCordovaPlugin.getAttributes(successCallback, [errorCallback])
Returns the maps of attributes set in the registration.

**Kind**: static method of <code>[MCCordovaPlugin](#module_MCCordovaPlugin)</code>
**Kind**: static method of [<code>MCCordovaPlugin</code>](#module_MCCordovaPlugin)
**See**

- [Android Docs](https://salesforce-marketingcloud.github.io/MarketingCloudSDK-Android/javadocs/6.0/reference/com/salesforce/marketingcloud/registration/RegistrationManager.html#getAttributes())
Expand All @@ -184,7 +184,7 @@ Returns the maps of attributes set in the registration.
### MCCordovaPlugin.setAttribute(key, value, [successCallback], [errorCallback])
Sets the value of an attribute in the registration.

**Kind**: static method of <code>[MCCordovaPlugin](#module_MCCordovaPlugin)</code>
**Kind**: static method of [<code>MCCordovaPlugin</code>](#module_MCCordovaPlugin)
**See**

- [Android Docs](https://salesforce-marketingcloud.github.io/MarketingCloudSDK-Android/javadocs/6.0/reference/com/salesforce/marketingcloud/registration/RegistrationManager.Editor.html#setAttribute(java.lang.String,%20java.lang.String))
Expand All @@ -204,7 +204,7 @@ Sets the value of an attribute in the registration.
### MCCordovaPlugin.clearAttribute(key, [successCallback], [errorCallback])
Clears the value of an attribute in the registration.

**Kind**: static method of <code>[MCCordovaPlugin](#module_MCCordovaPlugin)</code>
**Kind**: static method of [<code>MCCordovaPlugin</code>](#module_MCCordovaPlugin)
**See**

- [Android Docs](https://salesforce-marketingcloud.github.io/MarketingCloudSDK-Android/javadocs/6.0/reference/com/salesforce/marketingcloud/registration/RegistrationManager.Editor.html#clearAttribute(java.lang.String))
Expand All @@ -221,7 +221,7 @@ Clears the value of an attribute in the registration.
<a name="module_MCCordovaPlugin.addTag"></a>

### MCCordovaPlugin.addTag(tag, [successCallback], [errorCallback])
**Kind**: static method of <code>[MCCordovaPlugin](#module_MCCordovaPlugin)</code>
**Kind**: static method of [<code>MCCordovaPlugin</code>](#module_MCCordovaPlugin)
**See**

- [Android Docs](https://salesforce-marketingcloud.github.io/MarketingCloudSDK-Android/javadocs/6.0/reference/com/salesforce/marketingcloud/registration/RegistrationManager.Editor.html#addTag(java.lang.String))
Expand All @@ -238,7 +238,7 @@ Clears the value of an attribute in the registration.
<a name="module_MCCordovaPlugin.removeTag"></a>

### MCCordovaPlugin.removeTag(tag, [successCallback], [errorCallback])
**Kind**: static method of <code>[MCCordovaPlugin](#module_MCCordovaPlugin)</code>
**Kind**: static method of [<code>MCCordovaPlugin</code>](#module_MCCordovaPlugin)
**See**

- [Android Docs](https://salesforce-marketingcloud.github.io/MarketingCloudSDK-Android/javadocs/6.0/reference/com/salesforce/marketingcloud/registration/RegistrationManager.Editor.html#removeTag(java.lang.String))
Expand All @@ -257,7 +257,7 @@ Clears the value of an attribute in the registration.
### MCCordovaPlugin.getTags(successCallback, [errorCallback])
Returns the tags currently set on the device.

**Kind**: static method of <code>[MCCordovaPlugin](#module_MCCordovaPlugin)</code>
**Kind**: static method of [<code>MCCordovaPlugin</code>](#module_MCCordovaPlugin)
**See**

- [Android Docs](https://salesforce-marketingcloud.github.io/MarketingCloudSDK-Android/javadocs/6.0/reference/com/salesforce/marketingcloud/registration/RegistrationManager.html#getTags())
Expand All @@ -275,7 +275,7 @@ Returns the tags currently set on the device.
### MCCordovaPlugin.setContactKey(contactKey, [successCallback], [errorCallback])
Sets the contact key for the device's user.

**Kind**: static method of <code>[MCCordovaPlugin](#module_MCCordovaPlugin)</code>
**Kind**: static method of [<code>MCCordovaPlugin</code>](#module_MCCordovaPlugin)
**See**

- [Android Docs](https://salesforce-marketingcloud.github.io/MarketingCloudSDK-Android/javadocs/6.0/reference/com/salesforce/marketingcloud/registration/RegistrationManager.Editor.html#setContactKey(java.lang.String))
Expand All @@ -294,7 +294,7 @@ Sets the contact key for the device's user.
### MCCordovaPlugin.getContactKey(successCallback, [errorCallback])
Returns the contact key currently set on the device.

**Kind**: static method of <code>[MCCordovaPlugin](#module_MCCordovaPlugin)</code>
**Kind**: static method of [<code>MCCordovaPlugin</code>](#module_MCCordovaPlugin)
**See**

- [Android Docs](https://salesforce-marketingcloud.github.io/MarketingCloudSDK-Android/javadocs/6.0/reference/com/salesforce/marketingcloud/registration/RegistrationManager.html#getContactKey())
Expand All @@ -312,7 +312,7 @@ Returns the contact key currently set on the device.
### MCCordovaPlugin.enableVerboseLogging([successCallback], [errorCallback])
Enables verbose logging within the native Marketing Cloud SDK.

**Kind**: static method of <code>[MCCordovaPlugin](#module_MCCordovaPlugin)</code>
**Kind**: static method of [<code>MCCordovaPlugin</code>](#module_MCCordovaPlugin)
**See**

- [Android Docs](https://salesforce-marketingcloud.github.io/MarketingCloudSDK-Android/javadocs/6.0/reference/com/salesforce/marketingcloud/MarketingCloudSdk.html#setLogLevel(int))
Expand All @@ -329,7 +329,7 @@ Enables verbose logging within the native Marketing Cloud SDK.
### MCCordovaPlugin.disableVerboseLogging([successCallback], [errorCallback])
Disables verbose logging within the native Marketing Cloud SDK.

**Kind**: static method of <code>[MCCordovaPlugin](#module_MCCordovaPlugin)</code>
**Kind**: static method of [<code>MCCordovaPlugin</code>](#module_MCCordovaPlugin)
**See**

- [Android Docs](https://salesforce-marketingcloud.github.io/MarketingCloudSDK-Android/javadocs/6.0/reference/com/salesforce/marketingcloud/MarketingCloudSdk.html#setLogLevel(int))
Expand All @@ -344,7 +344,7 @@ Disables verbose logging within the native Marketing Cloud SDK.
<a name="module_MCCordovaPlugin.setOnNotificationOpenedListener"></a>

### MCCordovaPlugin.setOnNotificationOpenedListener(notificationOpenedListener)
**Kind**: static method of <code>[MCCordovaPlugin](#module_MCCordovaPlugin)</code>
**Kind**: static method of [<code>MCCordovaPlugin</code>](#module_MCCordovaPlugin)
**Since**: 6.1.0

| Param | Type |
Expand All @@ -355,7 +355,7 @@ Disables verbose logging within the native Marketing Cloud SDK.
<a name="module_MCCordovaPlugin.setOnUrlActionListener"></a>

### MCCordovaPlugin.setOnUrlActionListener(urlActionListener)
**Kind**: static method of <code>[MCCordovaPlugin](#module_MCCordovaPlugin)</code>
**Kind**: static method of [<code>MCCordovaPlugin</code>](#module_MCCordovaPlugin)
**Since**: 6.3.0

| Param | Type |
Expand All @@ -370,7 +370,7 @@ Instructs the native SDK to log the SDK state to the native logging system (Logc
Android and Xcode/Console.app for iOS). This content can help diagnose most issues within
the SDK and will be requested by the Marketing Cloud support team.

**Kind**: static method of <code>[MCCordovaPlugin](#module_MCCordovaPlugin)</code>
**Kind**: static method of [<code>MCCordovaPlugin</code>](#module_MCCordovaPlugin)
**Since**: 6.3.1

| Param | Type |
Expand All @@ -381,7 +381,7 @@ the SDK and will be requested by the Marketing Cloud support team.
<a name="module_MCCordovaPlugin..notificationOpenedCallback"></a>

### MCCordovaPlugin~notificationOpenedCallback : <code>function</code>
**Kind**: inner typedef of <code>[MCCordovaPlugin](#module_MCCordovaPlugin)</code>
**Kind**: inner typedef of [<code>MCCordovaPlugin</code>](#module_MCCordovaPlugin)

| Param | Type | Description |
| --- | --- | --- |
Expand All @@ -395,7 +395,7 @@ the SDK and will be requested by the Marketing Cloud support team.
<a name="module_MCCordovaPlugin..urlActionCallback"></a>

### MCCordovaPlugin~urlActionCallback : <code>function</code>
**Kind**: inner typedef of <code>[MCCordovaPlugin](#module_MCCordovaPlugin)</code>
**Kind**: inner typedef of [<code>MCCordovaPlugin</code>](#module_MCCordovaPlugin)

| Param | Type | Description |
| --- | --- | --- |
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cordova-plugin-marketingcloudsdk",
"version": "7.0.0",
"version": "7.1.0",
"description": "A Cordova Plugin to access the native Salesforce Marketing Cloud MobilePush SDKs",
"author": "Salesforce Marketing Cloud",
"license": "BSD-3-Clause",
Expand Down Expand Up @@ -29,10 +29,10 @@
"gen-docs": "jsdoc2md --template \"jsdoc2md/TEMPLATE.md\" \"www/**/*.js\" --plugin \"dmd-plugin-cordova-plugin\" > README.md",
"test": "npm run eslint",
"eslint": "node node_modules/eslint/bin/eslint www && node node_modules/eslint/bin/eslint src",
"format": "clang-format -i -style=file src/android/MCCordovaPlugin.java src/android/MCInitProvider.java src/android/MCSdkConfig.java src/ios/AppDelegate+MCCordovaPlugin.h src/ios/AppDelegate+MCCordovaPlugin.m src/ios/MCCordovaPlugin.h src/ios/MCCordovaPlugin.m tests/ios/MCCordovaPluginLib/MCCordovaPluginLibTests/MCCordovaPluginLibTests.m www/MCCordovaPlugin.js"
"format": "clang-format -i -style=file src/android/MCCordovaPlugin.java src/android/MCInitProvider.java src/android/MCSdkConfig.java src/ios/AppDelegate+MCCordovaPlugin.h src/ios/AppDelegate+MCCordovaPlugin.m src/ios/MCCordovaPlugin.h src/ios/MCCordovaPlugin.m tests/ios/MCCordovaPluginLib/Tests/Tests.m www/MCCordovaPlugin.js"
},
"devDependencies": {
"clang-format": "^1.2.4",
"clang-format": "^1.4.0",
"dmd-plugin-cordova-plugin": "^0.1.0",
"eslint": "^4.3.0",
"eslint-config-semistandard": "^11.0.0",
Expand All @@ -42,6 +42,6 @@
"eslint-plugin-promise": "^3.5.0",
"eslint-plugin-standard": "^3.0.1",
"husky": "^0.10.1",
"jsdoc-to-markdown": "^1.2.0"
"jsdoc-to-markdown": "^5.0.3"
}
}
4 changes: 2 additions & 2 deletions plugin.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version='1.0' encoding='utf-8'?>
<plugin id="cordova-plugin-marketingcloudsdk" version="7.0.0"
<plugin id="cordova-plugin-marketingcloudsdk" version="7.1.0"
xmlns="http://apache.org/cordova/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android">

Expand Down Expand Up @@ -64,7 +64,7 @@
<source url="https://github.com/CocoaPods/Specs.git"/>
</config>
<pods use-frameworks="true">
<pod name="MarketingCloudSDK" spec="~> 7.0" />
<pod name="MarketingCloudSDK" spec="~> 7.1" />
</pods>
</podspec>
<framework src="CoreLocation.framework/" />
Expand Down
11 changes: 4 additions & 7 deletions src/android/MCCordovaPlugin.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,16 @@
import android.app.PendingIntent;
import android.content.Context;
import android.content.Intent;
import androidx.annotation.Nullable;
import androidx.annotation.NonNull;
import android.util.Log;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import com.salesforce.marketingcloud.MCLogListener;
import com.salesforce.marketingcloud.MarketingCloudSdk;
import com.salesforce.marketingcloud.UrlHandler;
import com.salesforce.marketingcloud.notifications.NotificationManager;
import com.salesforce.marketingcloud.notifications.NotificationMessage;

import java.util.Collection;
import java.util.Map;
import org.apache.cordova.CallbackContext;
import org.apache.cordova.CordovaInterface;
import org.apache.cordova.CordovaPlugin;
Expand All @@ -47,9 +47,6 @@
import org.json.JSONException;
import org.json.JSONObject;

import java.util.Collection;
import java.util.Map;

public class MCCordovaPlugin extends CordovaPlugin implements UrlHandler {
static final String TAG = "~!MCCordova";

Expand Down
2 changes: 1 addition & 1 deletion src/android/MCInitProvider.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
import android.content.Context;
import android.database.Cursor;
import android.net.Uri;
import androidx.annotation.Nullable;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import com.salesforce.marketingcloud.InitializationStatus;
import com.salesforce.marketingcloud.MCLogListener;
import com.salesforce.marketingcloud.MarketingCloudConfig;
Expand Down
11 changes: 5 additions & 6 deletions src/android/MCSdkConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,21 +25,20 @@
*/
package com.salesforce.marketingcloud.cordova;

import static com.salesforce.marketingcloud.cordova.MCCordovaPlugin.TAG;

import android.content.Context;
import android.content.res.Resources;
import android.content.res.XmlResourceParser;
import androidx.annotation.Nullable;
import android.util.Log;
import androidx.annotation.Nullable;
import com.google.firebase.FirebaseApp;
import com.salesforce.marketingcloud.MarketingCloudConfig;
import com.salesforce.marketingcloud.notifications.NotificationCustomizationOptions;
import org.xmlpull.v1.XmlPullParser;
import org.xmlpull.v1.XmlPullParserException;

import java.io.IOException;
import java.util.Locale;

import static com.salesforce.marketingcloud.cordova.MCCordovaPlugin.TAG;
import org.xmlpull.v1.XmlPullParser;
import org.xmlpull.v1.XmlPullParserException;

public class MCSdkConfig {
private static final String CONFIG_PREFIX = "com.salesforce.marketingcloud.";
Expand Down
2 changes: 1 addition & 1 deletion src/android/build/marketingcloudsdk.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ repositories {
}

dependencies {
implementation("com.salesforce.marketingcloud:marketingcloudsdk:7.0.+")
implementation("com.salesforce.marketingcloud:marketingcloudsdk:7.1.+")
}

ext.cdvPluginPostBuildExtras += {
Expand Down
Loading

0 comments on commit b3cb1b4

Please sign in to comment.