notifly-sdk 3.2.0 → 3.4.0
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/android/build.gradle
CHANGED
|
@@ -88,7 +88,7 @@ dependencies {
|
|
|
88
88
|
//noinspection GradleDynamicVersion
|
|
89
89
|
implementation "com.facebook.react:react-native:+"
|
|
90
90
|
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
|
|
91
|
-
implementation "com.github.team-michael:notifly-android-sdk:1.
|
|
91
|
+
implementation "com.github.team-michael:notifly-android-sdk:1.6.0"
|
|
92
92
|
}
|
|
93
93
|
|
|
94
94
|
if (isNewArchitectureEnabled()) {
|
|
@@ -11,14 +11,14 @@ import com.facebook.react.bridge.Promise
|
|
|
11
11
|
import com.facebook.react.modules.core.DeviceEventManagerModule
|
|
12
12
|
|
|
13
13
|
import tech.notifly.Notifly
|
|
14
|
-
import tech.notifly.
|
|
15
|
-
import tech.notifly.
|
|
14
|
+
import tech.notifly.sdk.NotiflySdkControlToken
|
|
15
|
+
import tech.notifly.sdk.NotiflySdkWrapperType
|
|
16
16
|
import tech.notifly.push.interfaces.INotificationClickEvent
|
|
17
17
|
import tech.notifly.push.interfaces.INotificationClickListener
|
|
18
18
|
|
|
19
19
|
var isNativeNotificationClickListenerRegistered = false
|
|
20
20
|
|
|
21
|
-
class NotiflyControlTokenImpl :
|
|
21
|
+
class NotiflyControlTokenImpl : NotiflySdkControlToken
|
|
22
22
|
|
|
23
23
|
class NotiflySdkModule internal constructor(private val reactContext: ReactApplicationContext) :
|
|
24
24
|
NotiflySdkSpec(reactContext) {
|
|
@@ -32,10 +32,10 @@ class NotiflySdkModule internal constructor(private val reactContext: ReactAppli
|
|
|
32
32
|
try {
|
|
33
33
|
val context: Context = reactContext.currentActivity ?: reactContext.applicationContext
|
|
34
34
|
|
|
35
|
-
Notifly.setSdkType(NotiflyControlTokenImpl(),
|
|
35
|
+
Notifly.setSdkType(NotiflyControlTokenImpl(), NotiflySdkWrapperType.REACT_NATIVE)
|
|
36
36
|
Notifly.setSdkVersion(
|
|
37
37
|
NotiflyControlTokenImpl(),
|
|
38
|
-
"3.
|
|
38
|
+
"3.4.0"
|
|
39
39
|
)
|
|
40
40
|
|
|
41
41
|
Notifly.initialize(context, projectId, username, password)
|
package/ios/NotiflySdk.swift
CHANGED
|
@@ -6,7 +6,7 @@ class NotiflyReactNativeSdk: NSObject {
|
|
|
6
6
|
@objc(initialize:withUsername:withPassword:withResolver:withRejecter:)
|
|
7
7
|
func initialize(projectId: String, username: String, password: String, resolve: RCTPromiseResolveBlock, reject _: RCTPromiseRejectBlock) {
|
|
8
8
|
Notifly.setSdkType(type: "react_native")
|
|
9
|
-
Notifly.setSdkVersion(version: "3.
|
|
9
|
+
Notifly.setSdkVersion(version: "3.4.0") // TODO: get version from package.json
|
|
10
10
|
Notifly.initialize(projectId: projectId, username: username, password: password)
|
|
11
11
|
resolve(nil)
|
|
12
12
|
}
|
|
@@ -16,7 +16,7 @@ Pod::Spec.new do |s|
|
|
|
16
16
|
|
|
17
17
|
s.source_files = "ios/**/*.{h,m,mmm,swift}"
|
|
18
18
|
|
|
19
|
-
s.dependency "notifly_sdk", "1.
|
|
19
|
+
s.dependency "notifly_sdk", "1.7.0"
|
|
20
20
|
s.dependency "React-Core"
|
|
21
21
|
|
|
22
22
|
# Don't install the dependencies when we run `pod install` in the old architecture.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "notifly-sdk",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.4.0",
|
|
4
4
|
"description": "Notifly SDK for React Native",
|
|
5
5
|
"main": "lib/commonjs/index",
|
|
6
6
|
"module": "lib/module/index",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"lint": "eslint \"**/*.{js,ts,tsx}\"",
|
|
33
33
|
"prepack": "bob build",
|
|
34
34
|
"release": "release-it",
|
|
35
|
-
"example": "yarn --cwd example",
|
|
35
|
+
"example": "npx yarn --cwd example",
|
|
36
36
|
"bootstrap": "yarn example && yarn install && yarn example pods",
|
|
37
37
|
"clean": "del-cli android/build example/android/build example/android/app/build example/ios/build"
|
|
38
38
|
},
|