notifly-sdk 2.3.0 → 2.3.2

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/README.md CHANGED
@@ -1,16 +1,27 @@
1
- # notifly-sdk
1
+ # Notifly React Native SDK
2
2
 
3
- Work in progress - built with https://github.com/callstack/react-native-builder-bob
3
+ ![npm](https://img.shields.io/npm/v/notifly-sdk)
4
+ ![Downloads](https://img.shields.io/npm/dt/notifly-sdk)
4
5
 
5
- Notifly React Native SDK
6
+ _Notifly SDK for React Native_ is an easy-to-use package for integrating Notifly with your React Native applications. It supports both Android and iOS platforms.
6
7
 
7
- ![Generic badge](https://img.shields.io/badge/npm-2.3.0-green.svg)
8
- ![Generic badge](https://img.shields.io/badge/license-MIT-blue.svg)
9
8
  ## Installation
10
-
11
- ```sh
12
- npm install notifly-sdk@latest
9
+
10
+ To install the package, run the following command:
11
+
12
+ ```
13
+ npm install notifly-sdk@latest --save
14
+ ```
15
+
16
+ or
17
+
18
+ ```
19
+ yarn add notifly-sdk@latest
13
20
  ```
14
21
 
15
22
  ## Usage
16
- [Notifly 개발자 문서](https://docs.notifly.tech/ko/developer-guide/client-sdk/react-native-sdk)를 참고해주세요.
23
+
24
+ Please refer to our official documentation:
25
+
26
+ * [English documentation](https://docs.notifly.tech/developer-guide/client-sdk/react-native-sdk)
27
+ * [Korean documentation](https://docs.notifly.tech/ko/developer-guide/client-sdk/react-native-sdk)
@@ -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.0.3"
91
+ implementation "com.github.team-michael:notifly-android-sdk:1.0.4"
92
92
  }
93
93
 
94
94
  if (isNewArchitectureEnabled()) {
@@ -28,11 +28,10 @@ class NotiflySdkModule internal constructor(private val reactContext: ReactAppli
28
28
  @ReactMethod
29
29
  override fun initialize(projectId: String, username: String, password: String, promise: Promise) {
30
30
  try {
31
- Log.d("NotiflySdkModule", "Notifly initialize call")
32
31
  Notifly.setSdkType(NotiflyControlTokenImpl(), NotiflySdkType.REACT_NATIVE)
33
32
  Notifly.setSdkVersion(
34
33
  NotiflyControlTokenImpl(),
35
- "2.3.0-beta.1"
34
+ "2.3.2"
36
35
  ) // TODO: get version from package.json
37
36
  Notifly.initialize(reactContext, projectId, username, password)
38
37
  promise.resolve(null)
@@ -44,7 +43,6 @@ class NotiflySdkModule internal constructor(private val reactContext: ReactAppli
44
43
  @ReactMethod
45
44
  override fun setUserId(userId: String?, promise: Promise) {
46
45
  try {
47
- Log.d("NotiflySdkModule", "Notifly setUserId call")
48
46
  Notifly.setUserId(reactContext, userId)
49
47
  promise.resolve(null)
50
48
  } catch (e: Exception) {
@@ -55,7 +53,6 @@ class NotiflySdkModule internal constructor(private val reactContext: ReactAppli
55
53
  @ReactMethod
56
54
  override fun setUserProperties(params: ReadableMap, promise: Promise) {
57
55
  try {
58
- Log.d("NotiflySdkModule", "Notifly setUserProperties call")
59
56
  val mapParams = params.toHashMap()
60
57
  Notifly.setUserProperties(reactContext, mapParams)
61
58
  promise.resolve(null)
@@ -72,7 +69,6 @@ class NotiflySdkModule internal constructor(private val reactContext: ReactAppli
72
69
  promise: Promise
73
70
  ) {
74
71
  try {
75
- Log.d("NotiflySdkModule", "Notifly trackEvent call")
76
72
  val mapParams = eventParams?.toHashMap() ?: emptyMap<String, Any?>()
77
73
  val listKeys = segmentationEventParamKeys?.toArrayList()?.map { it.toString() }
78
74
  Notifly.trackEvent(
@@ -91,7 +87,6 @@ class NotiflySdkModule internal constructor(private val reactContext: ReactAppli
91
87
  @ReactMethod
92
88
  override fun setLogLevel(logLevel: Int, promise: Promise) {
93
89
  try {
94
- Log.d("NotiflySdkModule", "Notifly setLogLevel call")
95
90
  Notifly.setLogLevel(logLevel)
96
91
  promise.resolve(null)
97
92
  } catch (e: Exception) {
@@ -12,7 +12,7 @@ class NotiflySdk: NSObject {
12
12
  @objc(initialize:withUsername:withPassword:withResolver:withRejecter:)
13
13
  func initialize(projectId: String, username: String, password: String, resolve:RCTPromiseResolveBlock, reject:RCTPromiseRejectBlock) -> Void {
14
14
  Notifly.setSdkType(type: "react_native")
15
- Notifly.setSdkVersion(version: "1.0.0") // TODO: get version from package.json
15
+ Notifly.setSdkVersion(version: "2.3.2") // TODO: get version from package.json
16
16
  Notifly.initialize(projectId: projectId, username: username, password: password)
17
17
  resolve(nil)
18
18
  }
@@ -1,4 +1,7 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
2
  <Workspace
3
3
  version = "1.0">
4
+ <FileRef
5
+ location = "self:">
6
+ </FileRef>
4
7
  </Workspace>
@@ -0,0 +1,8 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
+ <plist version="1.0">
4
+ <dict>
5
+ <key>IDEDidComputeMac32BitWarning</key>
6
+ <true/>
7
+ </dict>
8
+ </plist>
@@ -0,0 +1,14 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
+ <plist version="1.0">
4
+ <dict>
5
+ <key>SchemeUserState</key>
6
+ <dict>
7
+ <key>NotiflySdk.xcscheme_^#shared#^_</key>
8
+ <dict>
9
+ <key>orderHint</key>
10
+ <integer>0</integer>
11
+ </dict>
12
+ </dict>
13
+ </dict>
14
+ </plist>
@@ -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.0.2"
19
+ s.dependency "notifly_sdk", "1.0.1"
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": "2.3.0",
3
+ "version": "2.3.2",
4
4
  "description": "test",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",