react-native-moengage-inbox 2.3.0 → 2.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ReactNativeMoEngageInbox.podspec +2 -2
- package/android/build.gradle +5 -5
- package/package.json +5 -2
- package/src/model/MoEAction.ts +3 -3
- package/src/model/MoEInboxMessage.ts +4 -4
- package/src/model/MoENavigationAction.ts +1 -1
- package/src/model/MoETextContent.ts +2 -2
- package/src/utils/MoEInboxParser.ts +0 -1
|
@@ -10,12 +10,12 @@ Pod::Spec.new do |s|
|
|
|
10
10
|
s.license = package['license']
|
|
11
11
|
s.authors = package["author"]
|
|
12
12
|
|
|
13
|
-
s.platforms = { :ios => "
|
|
13
|
+
s.platforms = { :ios => "11.0" }
|
|
14
14
|
s.source = { :git => "https://github.com/moengage/React-Native.git", :tag => "#{s.version}" }
|
|
15
15
|
|
|
16
16
|
s.source_files = "ios/**/*.{h,m,mm,swift}"
|
|
17
17
|
|
|
18
18
|
s.dependency "React-Core"
|
|
19
|
-
s.dependency "MoEngagePluginInbox",'>= 2.
|
|
19
|
+
s.dependency "MoEngagePluginInbox",'>= 2.2.0','< 2.3.0'
|
|
20
20
|
|
|
21
21
|
end
|
package/android/build.gradle
CHANGED
|
@@ -17,11 +17,11 @@ apply plugin: 'com.android.library'
|
|
|
17
17
|
apply plugin: 'kotlin-android'
|
|
18
18
|
|
|
19
19
|
android {
|
|
20
|
-
compileSdkVersion
|
|
20
|
+
compileSdkVersion 33
|
|
21
21
|
|
|
22
22
|
defaultConfig {
|
|
23
23
|
minSdkVersion 21
|
|
24
|
-
targetSdkVersion
|
|
24
|
+
targetSdkVersion 33
|
|
25
25
|
versionCode 1
|
|
26
26
|
versionName "1.0"
|
|
27
27
|
}
|
|
@@ -50,7 +50,7 @@ dependencies {
|
|
|
50
50
|
// noinspection GradleDynamicVersion
|
|
51
51
|
api 'com.facebook.react:react-native:+'
|
|
52
52
|
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlinVersion"
|
|
53
|
-
compileOnly("com.moengage:moe-android-sdk:12.
|
|
54
|
-
|
|
55
|
-
implementation("com.moengage:plugin-base-inbox:3.
|
|
53
|
+
compileOnly("com.moengage:moe-android-sdk:12.8.00")
|
|
54
|
+
compileOnly("com.moengage:inbox-core:2.4.0")
|
|
55
|
+
implementation("com.moengage:plugin-base-inbox:3.2.0")
|
|
56
56
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-moengage-inbox",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.4.1",
|
|
4
4
|
"description": "Inbox Module for the MoEngage Platform",
|
|
5
5
|
"main": "src/index.ts",
|
|
6
6
|
"files": [
|
|
@@ -29,7 +29,10 @@
|
|
|
29
29
|
"publishConfig": {
|
|
30
30
|
"registry": "https://registry.npmjs.org/"
|
|
31
31
|
},
|
|
32
|
+
"peerDependencies": {
|
|
33
|
+
"react-native-moengage": ">8.5.0"
|
|
34
|
+
},
|
|
32
35
|
"devDependencies": {
|
|
33
36
|
"@types/react-native": "^0.69.3"
|
|
34
37
|
}
|
|
35
|
-
}
|
|
38
|
+
}
|
package/src/model/MoEAction.ts
CHANGED
|
@@ -4,11 +4,11 @@ export default class MoEAction {
|
|
|
4
4
|
actionType: MoEActionType;
|
|
5
5
|
navigationType: string;
|
|
6
6
|
value: string;
|
|
7
|
-
kvPair?: Map<String, Object
|
|
7
|
+
kvPair?: Map<String, Object> | undefined;
|
|
8
8
|
constructor(actionType: MoEActionType, navigationType: string, value: string, kvPair: Map<String, Object> | undefined) {
|
|
9
9
|
this.actionType = actionType
|
|
10
10
|
this.navigationType = navigationType;
|
|
11
11
|
this.value = value;
|
|
12
|
-
this.kvPair = kvPair;
|
|
12
|
+
this.kvPair = kvPair;
|
|
13
13
|
}
|
|
14
|
-
}
|
|
14
|
+
}
|
|
@@ -3,13 +3,13 @@ import MoEMedia from "./MoEMedia"
|
|
|
3
3
|
import MoEAction from "./MoEAction"
|
|
4
4
|
|
|
5
5
|
export default class MoEInboxMessage {
|
|
6
|
-
id?: number;
|
|
6
|
+
id?: number | undefined;
|
|
7
7
|
campaignId: string;
|
|
8
8
|
text: MoETextContent;
|
|
9
9
|
isClicked: boolean;
|
|
10
|
-
media?: MoEMedia;
|
|
11
|
-
action?: Array<MoEAction
|
|
12
|
-
tag?: string;
|
|
10
|
+
media?: MoEMedia | undefined;
|
|
11
|
+
action?: Array<MoEAction> | undefined;
|
|
12
|
+
tag?: string | undefined;
|
|
13
13
|
receivedTime: string;
|
|
14
14
|
expiry: string;
|
|
15
15
|
payload: Map<String, Object>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export default class MoENavigationAction {
|
|
2
2
|
navigationType: string;
|
|
3
3
|
value: string;
|
|
4
|
-
kvPair?: Map<String, Object
|
|
4
|
+
kvPair?: Map<String, Object> | undefined;
|
|
5
5
|
constructor(navigationType: string, value: string, kvPair: Map<String, Object> | undefined) {
|
|
6
6
|
this.navigationType = navigationType;
|
|
7
7
|
this.value = value;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export default class MoETextContent {
|
|
2
2
|
title: string;
|
|
3
3
|
message: string;
|
|
4
|
-
summary?: string;
|
|
5
|
-
subtitle?: string;
|
|
4
|
+
summary?: string | undefined;
|
|
5
|
+
subtitle?: string | undefined;
|
|
6
6
|
constructor(title: string, message: string, summary: string | undefined, subtitle: string | undefined) {
|
|
7
7
|
this.title = title;
|
|
8
8
|
this.message = message;
|
|
@@ -8,7 +8,6 @@ import * as InboxConstants from "../utils/MoEInboxConstants"
|
|
|
8
8
|
import { isValidObject, isValidString, isValidNumber } from "../utils/MoEInboxHelper";
|
|
9
9
|
import { MoEPlatform } from "../model/MoEPlatform";
|
|
10
10
|
import { MOE_DATA } from "../utils/MoEInboxConstants"
|
|
11
|
-
import { MoEMediaType } from "../model/MoEMediaType";
|
|
12
11
|
const PLATFORM = 'platform'
|
|
13
12
|
const UNCLICKED_COUNT = 'unClickedCount'
|
|
14
13
|
|