notifly-sdk 2.2.6 → 2.3.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/README.md +9 -26
- package/android/build.gradle +100 -0
- package/android/gradle.properties +5 -0
- package/android/src/main/AndroidManifest.xml +4 -0
- package/android/src/main/java/com/notiflysdk/NotiflySdkModule.kt +105 -0
- package/android/src/main/java/com/notiflysdk/NotiflySdkPackage.kt +35 -0
- package/android/src/newarch/NotiflySdkSpec.kt +7 -0
- package/android/src/oldarch/NotiflySdkSpec.kt +24 -0
- package/ios/NotiflySdk-Bridging-Header.h +2 -0
- package/ios/NotiflySdk.m +22 -0
- package/ios/NotiflySdk.swift +39 -0
- package/ios/NotiflySdk.xcodeproj/project.pbxproj +273 -0
- package/ios/NotiflySdk.xcodeproj/project.xcworkspace/contents.xcworkspacedata +4 -0
- package/lib/commonjs/NativeNotiflySdk.js +10 -0
- package/lib/commonjs/NativeNotiflySdk.js.map +1 -0
- package/lib/commonjs/index.js +85 -0
- package/lib/commonjs/index.js.map +1 -0
- package/lib/commonjs/types.js +2 -0
- package/lib/commonjs/types.js.map +1 -0
- package/lib/module/NativeNotiflySdk.js +3 -0
- package/lib/module/NativeNotiflySdk.js.map +1 -0
- package/lib/module/index.js +70 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/types.js +2 -0
- package/lib/module/types.js.map +1 -0
- package/lib/typescript/NativeNotiflySdk.d.ts +15 -0
- package/lib/typescript/NativeNotiflySdk.d.ts.map +1 -0
- package/lib/typescript/index.d.ts +26 -0
- package/lib/typescript/index.d.ts.map +1 -0
- package/lib/typescript/types.d.ts +7 -0
- package/lib/typescript/types.d.ts.map +1 -0
- package/notifly_react_native_sdk.podspec +36 -0
- package/package.json +158 -28
- package/src/NativeNotiflySdk.ts +25 -0
- package/src/index.tsx +105 -0
- package/src/types.ts +7 -0
- package/.eslintrc.cjs +0 -40
- package/.prettierrc.yml +0 -14
- package/index.js +0 -190
- package/src/auth.js +0 -42
- package/src/constant.js +0 -8
- package/src/in_app_message.js +0 -258
- package/src/log_event.js +0 -185
- package/src/user.js +0 -51
- package/src/utils.js +0 -145
package/README.md
CHANGED
|
@@ -1,33 +1,16 @@
|
|
|
1
|
-
#
|
|
1
|
+
# notifly-sdk
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-

|
|
3
|
+
Work in progress - built with https://github.com/callstack/react-native-builder-bob
|
|
5
4
|
|
|
6
|
-
|
|
5
|
+
Notifly React Native SDK
|
|
7
6
|
|
|
7
|
+

|
|
8
|
+

|
|
8
9
|
## Installation
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
```
|
|
13
|
-
npm install notifly-sdk@latest --save
|
|
14
|
-
```
|
|
15
|
-
|
|
16
|
-
or
|
|
17
|
-
|
|
18
|
-
```
|
|
19
|
-
yarn add notifly-sdk@latest
|
|
20
|
-
```
|
|
21
|
-
|
|
22
|
-
Also, please install the peer dependencies manually:
|
|
23
|
-
|
|
24
|
-
```
|
|
25
|
-
npm install @react-native-async-storage/async-storage@^1.17.11 @react-native-firebase/app@^16.4.3 @react-native-firebase/messaging@^16.4.3 react-native-device-info@^8.1.4 react-native-modal@^13.0.1 react-native-root-siblings@^4.1.1 react-native-webview@^11.26.1 uuid@^8.3.0
|
|
10
|
+
|
|
11
|
+
```sh
|
|
12
|
+
npm install notifly-sdk@latest
|
|
26
13
|
```
|
|
27
14
|
|
|
28
15
|
## Usage
|
|
29
|
-
|
|
30
|
-
Please refer to our official documentation:
|
|
31
|
-
|
|
32
|
-
* [English documentation](https://docs.notifly.tech/client-sdk/react-native)
|
|
33
|
-
* [Korean documentation](https://docs.notifly.tech/ko/client-sdk/react-native)
|
|
16
|
+
[Notifly 개발자 문서](https://docs.notifly.tech/ko/developer-guide/client-sdk/react-native-sdk)를 참고해주세요.
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
buildscript {
|
|
2
|
+
// Buildscript is evaluated before everything else so we can't use getExtOrDefault
|
|
3
|
+
def kotlin_version = rootProject.ext.has("kotlinVersion") ? rootProject.ext.get("kotlinVersion") : project.properties["NotiflySdk_kotlinVersion"]
|
|
4
|
+
|
|
5
|
+
repositories {
|
|
6
|
+
google()
|
|
7
|
+
mavenCentral()
|
|
8
|
+
maven { url 'https://jitpack.io' }
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
dependencies {
|
|
12
|
+
classpath "com.android.tools.build:gradle:7.2.2"
|
|
13
|
+
// noinspection DifferentKotlinGradleVersion
|
|
14
|
+
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
def isNewArchitectureEnabled() {
|
|
19
|
+
return rootProject.hasProperty("newArchEnabled") && rootProject.getProperty("newArchEnabled") == "true"
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
apply plugin: "com.android.library"
|
|
23
|
+
apply plugin: "kotlin-android"
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
def appProject = rootProject.allprojects.find { it.plugins.hasPlugin('com.android.application') }
|
|
27
|
+
|
|
28
|
+
if (isNewArchitectureEnabled()) {
|
|
29
|
+
apply plugin: "com.facebook.react"
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
def getExtOrDefault(name) {
|
|
33
|
+
return rootProject.ext.has(name) ? rootProject.ext.get(name) : project.properties["NotiflySdk_" + name]
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
def getExtOrIntegerDefault(name) {
|
|
37
|
+
return rootProject.ext.has(name) ? rootProject.ext.get(name) : (project.properties["NotiflySdk_" + name]).toInteger()
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
android {
|
|
41
|
+
compileSdkVersion getExtOrIntegerDefault("compileSdkVersion")
|
|
42
|
+
|
|
43
|
+
defaultConfig {
|
|
44
|
+
minSdkVersion getExtOrIntegerDefault("minSdkVersion")
|
|
45
|
+
targetSdkVersion getExtOrIntegerDefault("targetSdkVersion")
|
|
46
|
+
buildConfigField "boolean", "IS_NEW_ARCHITECTURE_ENABLED", isNewArchitectureEnabled().toString()
|
|
47
|
+
}
|
|
48
|
+
buildTypes {
|
|
49
|
+
release {
|
|
50
|
+
minifyEnabled false
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
lintOptions {
|
|
55
|
+
disable "GradleCompatible"
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
compileOptions {
|
|
59
|
+
sourceCompatibility JavaVersion.VERSION_1_8
|
|
60
|
+
targetCompatibility JavaVersion.VERSION_1_8
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
sourceSets {
|
|
64
|
+
main {
|
|
65
|
+
if (isNewArchitectureEnabled()) {
|
|
66
|
+
java.srcDirs += [
|
|
67
|
+
"src/newarch",
|
|
68
|
+
// This is needed to build Kotlin project with NewArch enabled
|
|
69
|
+
"${project.buildDir}/generated/source/codegen/java"
|
|
70
|
+
]
|
|
71
|
+
} else {
|
|
72
|
+
java.srcDirs += ["src/oldarch"]
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
repositories {
|
|
79
|
+
mavenCentral()
|
|
80
|
+
google()
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
def kotlin_version = getExtOrDefault("kotlinVersion")
|
|
84
|
+
|
|
85
|
+
dependencies {
|
|
86
|
+
// For < 0.71, this will be from the local maven repo
|
|
87
|
+
// For > 0.71, this will be replaced by `com.facebook.react:react-android:$version` by react gradle plugin
|
|
88
|
+
//noinspection GradleDynamicVersion
|
|
89
|
+
implementation "com.facebook.react:react-native:+"
|
|
90
|
+
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
|
|
91
|
+
implementation "com.github.team-michael:notifly-android-sdk:1.0.3"
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
if (isNewArchitectureEnabled()) {
|
|
95
|
+
react {
|
|
96
|
+
jsRootDir = file("../src/")
|
|
97
|
+
libraryName = "NotiflySdk"
|
|
98
|
+
codegenJavaPackageName = "com.notiflysdk"
|
|
99
|
+
}
|
|
100
|
+
}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
package com.notiflysdk
|
|
2
|
+
|
|
3
|
+
import android.util.Log
|
|
4
|
+
import com.facebook.react.bridge.ReactApplicationContext
|
|
5
|
+
import com.facebook.react.bridge.ReactMethod
|
|
6
|
+
import com.facebook.react.bridge.ReadableArray
|
|
7
|
+
import com.facebook.react.bridge.ReadableMap
|
|
8
|
+
import com.facebook.react.bridge.Promise
|
|
9
|
+
import tech.notifly.Notifly
|
|
10
|
+
import tech.notifly.utils.NotiflyControlToken
|
|
11
|
+
import tech.notifly.utils.NotiflySdkType
|
|
12
|
+
|
|
13
|
+
class NotiflyControlTokenImpl : NotiflyControlToken
|
|
14
|
+
class NotiflySdkModule internal constructor(private val reactContext: ReactApplicationContext) :
|
|
15
|
+
NotiflySdkSpec(reactContext) {
|
|
16
|
+
|
|
17
|
+
override fun getName(): String {
|
|
18
|
+
return NAME
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
// Example method
|
|
22
|
+
// See https://reactnative.dev/docs/native-modules-android
|
|
23
|
+
@ReactMethod
|
|
24
|
+
override fun multiply(a: Double, b: Double, promise: Promise) {
|
|
25
|
+
promise.resolve(a * b)
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
@ReactMethod
|
|
29
|
+
override fun initialize(projectId: String, username: String, password: String, promise: Promise) {
|
|
30
|
+
try {
|
|
31
|
+
Log.d("NotiflySdkModule", "Notifly initialize call")
|
|
32
|
+
Notifly.setSdkType(NotiflyControlTokenImpl(), NotiflySdkType.REACT_NATIVE)
|
|
33
|
+
Notifly.setSdkVersion(
|
|
34
|
+
NotiflyControlTokenImpl(),
|
|
35
|
+
"2.3.0-beta.1"
|
|
36
|
+
) // TODO: get version from package.json
|
|
37
|
+
Notifly.initialize(reactContext, projectId, username, password)
|
|
38
|
+
promise.resolve(null)
|
|
39
|
+
} catch (e: Exception) {
|
|
40
|
+
promise.reject(e)
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
@ReactMethod
|
|
45
|
+
override fun setUserId(userId: String?, promise: Promise) {
|
|
46
|
+
try {
|
|
47
|
+
Log.d("NotiflySdkModule", "Notifly setUserId call")
|
|
48
|
+
Notifly.setUserId(reactContext, userId)
|
|
49
|
+
promise.resolve(null)
|
|
50
|
+
} catch (e: Exception) {
|
|
51
|
+
promise.reject(e)
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
@ReactMethod
|
|
56
|
+
override fun setUserProperties(params: ReadableMap, promise: Promise) {
|
|
57
|
+
try {
|
|
58
|
+
Log.d("NotiflySdkModule", "Notifly setUserProperties call")
|
|
59
|
+
val mapParams = params.toHashMap()
|
|
60
|
+
Notifly.setUserProperties(reactContext, mapParams)
|
|
61
|
+
promise.resolve(null)
|
|
62
|
+
} catch (e: Exception) {
|
|
63
|
+
promise.reject(e)
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
@ReactMethod
|
|
68
|
+
override fun trackEvent(
|
|
69
|
+
eventName: String,
|
|
70
|
+
eventParams: ReadableMap?,
|
|
71
|
+
segmentationEventParamKeys: ReadableArray?,
|
|
72
|
+
promise: Promise
|
|
73
|
+
) {
|
|
74
|
+
try {
|
|
75
|
+
Log.d("NotiflySdkModule", "Notifly trackEvent call")
|
|
76
|
+
val mapParams = eventParams?.toHashMap() ?: emptyMap<String, Any?>()
|
|
77
|
+
val listKeys = segmentationEventParamKeys?.toArrayList()?.map { it.toString() }
|
|
78
|
+
Notifly.trackEvent(
|
|
79
|
+
reactContext,
|
|
80
|
+
eventName,
|
|
81
|
+
mapParams,
|
|
82
|
+
listKeys,
|
|
83
|
+
)
|
|
84
|
+
promise.resolve(null)
|
|
85
|
+
} catch (e: Exception) {
|
|
86
|
+
promise.reject(e)
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
@ReactMethod
|
|
92
|
+
override fun setLogLevel(logLevel: Int, promise: Promise) {
|
|
93
|
+
try {
|
|
94
|
+
Log.d("NotiflySdkModule", "Notifly setLogLevel call")
|
|
95
|
+
Notifly.setLogLevel(logLevel)
|
|
96
|
+
promise.resolve(null)
|
|
97
|
+
} catch (e: Exception) {
|
|
98
|
+
promise.reject(e)
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
companion object {
|
|
103
|
+
const val NAME = "NotiflySdk"
|
|
104
|
+
}
|
|
105
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
package com.notiflysdk
|
|
2
|
+
|
|
3
|
+
import com.facebook.react.TurboReactPackage
|
|
4
|
+
import com.facebook.react.bridge.ReactApplicationContext
|
|
5
|
+
import com.facebook.react.bridge.NativeModule
|
|
6
|
+
import com.facebook.react.module.model.ReactModuleInfoProvider
|
|
7
|
+
import com.facebook.react.module.model.ReactModuleInfo
|
|
8
|
+
import java.util.HashMap
|
|
9
|
+
|
|
10
|
+
class NotiflySdkPackage : TurboReactPackage() {
|
|
11
|
+
override fun getModule(name: String, reactContext: ReactApplicationContext): NativeModule? {
|
|
12
|
+
return if (name == NotiflySdkModule.NAME) {
|
|
13
|
+
NotiflySdkModule(reactContext)
|
|
14
|
+
} else {
|
|
15
|
+
null
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
override fun getReactModuleInfoProvider(): ReactModuleInfoProvider {
|
|
20
|
+
return ReactModuleInfoProvider {
|
|
21
|
+
val moduleInfos: MutableMap<String, ReactModuleInfo> = HashMap()
|
|
22
|
+
val isTurboModule: Boolean = BuildConfig.IS_NEW_ARCHITECTURE_ENABLED
|
|
23
|
+
moduleInfos[NotiflySdkModule.NAME] = ReactModuleInfo(
|
|
24
|
+
NotiflySdkModule.NAME,
|
|
25
|
+
NotiflySdkModule.NAME,
|
|
26
|
+
false, // canOverrideExistingModule
|
|
27
|
+
false, // needsEagerInit
|
|
28
|
+
true, // hasConstants
|
|
29
|
+
false, // isCxxModule
|
|
30
|
+
isTurboModule // isTurboModule
|
|
31
|
+
)
|
|
32
|
+
moduleInfos
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
package com.notiflysdk
|
|
2
|
+
|
|
3
|
+
import android.content.Context
|
|
4
|
+
import com.facebook.react.bridge.ReactApplicationContext
|
|
5
|
+
import com.facebook.react.bridge.ReactContextBaseJavaModule
|
|
6
|
+
import com.facebook.react.bridge.ReadableArray
|
|
7
|
+
import com.facebook.react.bridge.ReadableMap
|
|
8
|
+
import com.facebook.react.bridge.Promise
|
|
9
|
+
|
|
10
|
+
abstract class NotiflySdkSpec internal constructor(context: ReactApplicationContext) :
|
|
11
|
+
ReactContextBaseJavaModule(context) {
|
|
12
|
+
|
|
13
|
+
abstract fun multiply(a: Double, b: Double, promise: Promise)
|
|
14
|
+
abstract fun initialize(projectId: String, username: String, password: String, promise: Promise)
|
|
15
|
+
abstract fun setUserId(userId: String?, promise: Promise)
|
|
16
|
+
abstract fun setUserProperties(params: ReadableMap, promise: Promise)
|
|
17
|
+
abstract fun trackEvent(
|
|
18
|
+
eventName: String,
|
|
19
|
+
params: ReadableMap?,
|
|
20
|
+
segmentationEventParamKeys: ReadableArray?,
|
|
21
|
+
promise: Promise,
|
|
22
|
+
)
|
|
23
|
+
abstract fun setLogLevel(logLevel: Int, promise: Promise)
|
|
24
|
+
}
|
package/ios/NotiflySdk.m
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
#import <React/RCTBridgeModule.h>
|
|
2
|
+
|
|
3
|
+
@interface RCT_EXTERN_MODULE(NotiflySdk, NSObject)
|
|
4
|
+
|
|
5
|
+
RCT_EXTERN_METHOD(multiply:(float)a withB:(float)b
|
|
6
|
+
withResolver:(RCTPromiseResolveBlock)resolve
|
|
7
|
+
withRejecter:(RCTPromiseRejectBlock)reject)
|
|
8
|
+
|
|
9
|
+
RCT_EXTERN_METHOD(initialize:(NSString)projectId withUsername:(NSString)username withPassword:(NSString)password withResolver:(RCTPromiseResolveBlock)resolve withRejecter:(RCTPromiseRejectBlock)reject)
|
|
10
|
+
|
|
11
|
+
RCT_EXTERN_METHOD(setUserId:(NSString _Nullable)userId withResolver:(RCTPromiseResolveBlock)resolve withRejecter:(RCTPromiseRejectBlock)reject)
|
|
12
|
+
|
|
13
|
+
RCT_EXTERN_METHOD(setUserProperties:(NSDictionary)userProperties withResolver:(RCTPromiseResolveBlock)resolve withRejecter:(RCTPromiseRejectBlock)reject)
|
|
14
|
+
|
|
15
|
+
RCT_EXTERN_METHOD(trackEvent:(NSString)eventName withEventParams:(NSDictionary _Nullable)eventParams withSegmentationEventParamKeys:(NSArray _Nullable)segmentationEventParamKeys withResolver:(RCTPromiseResolveBlock)resolve withRejecter:(RCTPromiseRejectBlock)reject)
|
|
16
|
+
|
|
17
|
+
+ (BOOL)requiresMainQueueSetup
|
|
18
|
+
{
|
|
19
|
+
return NO;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
@end
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import Foundation
|
|
2
|
+
import notifly_sdk
|
|
3
|
+
|
|
4
|
+
@objc(NotiflySdk)
|
|
5
|
+
class NotiflySdk: NSObject {
|
|
6
|
+
@objc(multiply:withB:withResolver:withRejecter:)
|
|
7
|
+
func multiply(a: Float, b: Float, resolve:RCTPromiseResolveBlock,reject:RCTPromiseRejectBlock) -> Void {
|
|
8
|
+
resolve(a*b)
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
@objc(initialize:withUsername:withPassword:withResolver:withRejecter:)
|
|
13
|
+
func initialize(projectId: String, username: String, password: String, resolve:RCTPromiseResolveBlock, reject:RCTPromiseRejectBlock) -> Void {
|
|
14
|
+
Notifly.setSdkType(type: "react_native")
|
|
15
|
+
Notifly.setSdkVersion(version: "1.0.0") // TODO: get version from package.json
|
|
16
|
+
Notifly.initialize(projectId: projectId, username: username, password: password)
|
|
17
|
+
resolve(nil)
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
@objc(setUserId:withResolver:withRejecter:)
|
|
21
|
+
func setUserId(userId: String?, resolve:RCTPromiseResolveBlock, reject:RCTPromiseRejectBlock) {
|
|
22
|
+
Notifly.setUserId(userId: userId)
|
|
23
|
+
resolve(nil)
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
@objc(setUserProperties:withResolver:withRejecter:)
|
|
27
|
+
func setUserProperties(userProperties: [String: Any], resolve:RCTPromiseResolveBlock, reject:RCTPromiseRejectBlock) {
|
|
28
|
+
Notifly.setUserProperties(userProperties: userProperties)
|
|
29
|
+
resolve(nil)
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
@objc(trackEvent:withEventParams:withSegmentationEventParamKeys:withResolver:withRejecter:)
|
|
33
|
+
func trackEvent(eventName: String,
|
|
34
|
+
eventParams: [String: Any]?, segmentationEventParamKeys: [String]?,
|
|
35
|
+
resolve:RCTPromiseResolveBlock, reject:RCTPromiseRejectBlock) {
|
|
36
|
+
Notifly.trackEvent(eventName: eventName, eventParams: eventParams, segmentationEventParamKeys: segmentationEventParamKeys)
|
|
37
|
+
resolve(nil)
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -0,0 +1,273 @@
|
|
|
1
|
+
// !$*UTF8*$!
|
|
2
|
+
{
|
|
3
|
+
archiveVersion = 1;
|
|
4
|
+
classes = {
|
|
5
|
+
};
|
|
6
|
+
objectVersion = 46;
|
|
7
|
+
objects = {
|
|
8
|
+
|
|
9
|
+
/* Begin PBXCopyFilesBuildPhase section */
|
|
10
|
+
58B511D91A9E6C8500147676 /* CopyFiles */ = {
|
|
11
|
+
isa = PBXCopyFilesBuildPhase;
|
|
12
|
+
buildActionMask = 2147483647;
|
|
13
|
+
dstPath = "include/$(PRODUCT_NAME)";
|
|
14
|
+
dstSubfolderSpec = 16;
|
|
15
|
+
files = (
|
|
16
|
+
);
|
|
17
|
+
runOnlyForDeploymentPostprocessing = 0;
|
|
18
|
+
};
|
|
19
|
+
/* End PBXCopyFilesBuildPhase section */
|
|
20
|
+
|
|
21
|
+
/* Begin PBXFileReference section */
|
|
22
|
+
134814201AA4EA6300B7C361 /* libNotiflySdk.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libNotiflySdk.a; sourceTree = BUILT_PRODUCTS_DIR; };
|
|
23
|
+
B3E7B5881CC2AC0600A0062D /* NotiflySdk.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = NotiflySdk.h; sourceTree = "<group>"; };
|
|
24
|
+
F2465FF22A29E3CC000648F6 /* NotiflySdk.mm */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.objcpp; path = NotiflySdk.mm; sourceTree = "<group>"; };
|
|
25
|
+
F2465FF42A29E3E9000648F6 /* NotiflySdk.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NotiflySdk.swift; sourceTree = "<group>"; };
|
|
26
|
+
F2465FF52A29E4BA000648F6 /* NotiflySdk-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "NotiflySdk-Bridging-Header.h"; sourceTree = "<group>"; };
|
|
27
|
+
/* End PBXFileReference section */
|
|
28
|
+
|
|
29
|
+
/* Begin PBXFrameworksBuildPhase section */
|
|
30
|
+
58B511D81A9E6C8500147676 /* Frameworks */ = {
|
|
31
|
+
isa = PBXFrameworksBuildPhase;
|
|
32
|
+
buildActionMask = 2147483647;
|
|
33
|
+
files = (
|
|
34
|
+
);
|
|
35
|
+
runOnlyForDeploymentPostprocessing = 0;
|
|
36
|
+
};
|
|
37
|
+
/* End PBXFrameworksBuildPhase section */
|
|
38
|
+
|
|
39
|
+
/* Begin PBXGroup section */
|
|
40
|
+
134814211AA4EA7D00B7C361 /* Products */ = {
|
|
41
|
+
isa = PBXGroup;
|
|
42
|
+
children = (
|
|
43
|
+
134814201AA4EA6300B7C361 /* libNotiflySdk.a */,
|
|
44
|
+
);
|
|
45
|
+
name = Products;
|
|
46
|
+
sourceTree = "<group>";
|
|
47
|
+
};
|
|
48
|
+
58B511D21A9E6C8500147676 = {
|
|
49
|
+
isa = PBXGroup;
|
|
50
|
+
children = (
|
|
51
|
+
F2465FF52A29E4BA000648F6 /* NotiflySdk-Bridging-Header.h */,
|
|
52
|
+
F2465FF42A29E3E9000648F6 /* NotiflySdk.swift */,
|
|
53
|
+
F2465FF22A29E3CC000648F6 /* NotiflySdk.mm */,
|
|
54
|
+
B3E7B5881CC2AC0600A0062D /* NotiflySdk.h */,
|
|
55
|
+
134814211AA4EA7D00B7C361 /* Products */,
|
|
56
|
+
);
|
|
57
|
+
sourceTree = "<group>";
|
|
58
|
+
};
|
|
59
|
+
/* End PBXGroup section */
|
|
60
|
+
|
|
61
|
+
/* Begin PBXNativeTarget section */
|
|
62
|
+
58B511DA1A9E6C8500147676 /* NotiflySdk */ = {
|
|
63
|
+
isa = PBXNativeTarget;
|
|
64
|
+
buildConfigurationList = 58B511EF1A9E6C8500147676 /* Build configuration list for PBXNativeTarget "NotiflySdk" */;
|
|
65
|
+
buildPhases = (
|
|
66
|
+
58B511D71A9E6C8500147676 /* Sources */,
|
|
67
|
+
58B511D81A9E6C8500147676 /* Frameworks */,
|
|
68
|
+
58B511D91A9E6C8500147676 /* CopyFiles */,
|
|
69
|
+
);
|
|
70
|
+
buildRules = (
|
|
71
|
+
);
|
|
72
|
+
dependencies = (
|
|
73
|
+
);
|
|
74
|
+
name = NotiflySdk;
|
|
75
|
+
productName = RCTDataManager;
|
|
76
|
+
productReference = 134814201AA4EA6300B7C361 /* libNotiflySdk.a */;
|
|
77
|
+
productType = "com.apple.product-type.library.static";
|
|
78
|
+
};
|
|
79
|
+
/* End PBXNativeTarget section */
|
|
80
|
+
|
|
81
|
+
/* Begin PBXProject section */
|
|
82
|
+
58B511D31A9E6C8500147676 /* Project object */ = {
|
|
83
|
+
isa = PBXProject;
|
|
84
|
+
attributes = {
|
|
85
|
+
LastUpgradeCheck = 0920;
|
|
86
|
+
ORGANIZATIONNAME = Facebook;
|
|
87
|
+
TargetAttributes = {
|
|
88
|
+
58B511DA1A9E6C8500147676 = {
|
|
89
|
+
CreatedOnToolsVersion = 6.1.1;
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
buildConfigurationList = 58B511D61A9E6C8500147676 /* Build configuration list for PBXProject "NotiflySdk" */;
|
|
94
|
+
compatibilityVersion = "Xcode 3.2";
|
|
95
|
+
developmentRegion = English;
|
|
96
|
+
hasScannedForEncodings = 0;
|
|
97
|
+
knownRegions = (
|
|
98
|
+
English,
|
|
99
|
+
en,
|
|
100
|
+
);
|
|
101
|
+
mainGroup = 58B511D21A9E6C8500147676;
|
|
102
|
+
productRefGroup = 58B511D21A9E6C8500147676;
|
|
103
|
+
projectDirPath = "";
|
|
104
|
+
projectRoot = "";
|
|
105
|
+
targets = (
|
|
106
|
+
58B511DA1A9E6C8500147676 /* NotiflySdk */,
|
|
107
|
+
);
|
|
108
|
+
};
|
|
109
|
+
/* End PBXProject section */
|
|
110
|
+
|
|
111
|
+
/* Begin PBXSourcesBuildPhase section */
|
|
112
|
+
58B511D71A9E6C8500147676 /* Sources */ = {
|
|
113
|
+
isa = PBXSourcesBuildPhase;
|
|
114
|
+
buildActionMask = 2147483647;
|
|
115
|
+
files = (
|
|
116
|
+
);
|
|
117
|
+
runOnlyForDeploymentPostprocessing = 0;
|
|
118
|
+
};
|
|
119
|
+
/* End PBXSourcesBuildPhase section */
|
|
120
|
+
|
|
121
|
+
/* Begin XCBuildConfiguration section */
|
|
122
|
+
58B511ED1A9E6C8500147676 /* Debug */ = {
|
|
123
|
+
isa = XCBuildConfiguration;
|
|
124
|
+
buildSettings = {
|
|
125
|
+
ALWAYS_SEARCH_USER_PATHS = NO;
|
|
126
|
+
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
|
|
127
|
+
CLANG_CXX_LIBRARY = "libc++";
|
|
128
|
+
CLANG_ENABLE_MODULES = YES;
|
|
129
|
+
CLANG_ENABLE_OBJC_ARC = YES;
|
|
130
|
+
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
|
|
131
|
+
CLANG_WARN_BOOL_CONVERSION = YES;
|
|
132
|
+
CLANG_WARN_COMMA = YES;
|
|
133
|
+
CLANG_WARN_CONSTANT_CONVERSION = YES;
|
|
134
|
+
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
|
|
135
|
+
CLANG_WARN_EMPTY_BODY = YES;
|
|
136
|
+
CLANG_WARN_ENUM_CONVERSION = YES;
|
|
137
|
+
CLANG_WARN_INFINITE_RECURSION = YES;
|
|
138
|
+
CLANG_WARN_INT_CONVERSION = YES;
|
|
139
|
+
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
|
|
140
|
+
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
|
|
141
|
+
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
|
|
142
|
+
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
|
|
143
|
+
CLANG_WARN_STRICT_PROTOTYPES = YES;
|
|
144
|
+
CLANG_WARN_SUSPICIOUS_MOVE = YES;
|
|
145
|
+
CLANG_WARN_UNREACHABLE_CODE = YES;
|
|
146
|
+
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
|
|
147
|
+
COPY_PHASE_STRIP = NO;
|
|
148
|
+
ENABLE_STRICT_OBJC_MSGSEND = YES;
|
|
149
|
+
ENABLE_TESTABILITY = YES;
|
|
150
|
+
"EXCLUDED_ARCHS[sdk=*]" = arm64;
|
|
151
|
+
GCC_C_LANGUAGE_STANDARD = gnu99;
|
|
152
|
+
GCC_DYNAMIC_NO_PIC = NO;
|
|
153
|
+
GCC_NO_COMMON_BLOCKS = YES;
|
|
154
|
+
GCC_OPTIMIZATION_LEVEL = 0;
|
|
155
|
+
GCC_PREPROCESSOR_DEFINITIONS = (
|
|
156
|
+
"DEBUG=1",
|
|
157
|
+
"$(inherited)",
|
|
158
|
+
);
|
|
159
|
+
GCC_SYMBOLS_PRIVATE_EXTERN = NO;
|
|
160
|
+
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
|
|
161
|
+
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
|
|
162
|
+
GCC_WARN_UNDECLARED_SELECTOR = YES;
|
|
163
|
+
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
|
164
|
+
GCC_WARN_UNUSED_FUNCTION = YES;
|
|
165
|
+
GCC_WARN_UNUSED_VARIABLE = YES;
|
|
166
|
+
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
|
|
167
|
+
MTL_ENABLE_DEBUG_INFO = YES;
|
|
168
|
+
ONLY_ACTIVE_ARCH = YES;
|
|
169
|
+
SDKROOT = iphoneos;
|
|
170
|
+
};
|
|
171
|
+
name = Debug;
|
|
172
|
+
};
|
|
173
|
+
58B511EE1A9E6C8500147676 /* Release */ = {
|
|
174
|
+
isa = XCBuildConfiguration;
|
|
175
|
+
buildSettings = {
|
|
176
|
+
ALWAYS_SEARCH_USER_PATHS = NO;
|
|
177
|
+
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
|
|
178
|
+
CLANG_CXX_LIBRARY = "libc++";
|
|
179
|
+
CLANG_ENABLE_MODULES = YES;
|
|
180
|
+
CLANG_ENABLE_OBJC_ARC = YES;
|
|
181
|
+
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
|
|
182
|
+
CLANG_WARN_BOOL_CONVERSION = YES;
|
|
183
|
+
CLANG_WARN_COMMA = YES;
|
|
184
|
+
CLANG_WARN_CONSTANT_CONVERSION = YES;
|
|
185
|
+
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
|
|
186
|
+
CLANG_WARN_EMPTY_BODY = YES;
|
|
187
|
+
CLANG_WARN_ENUM_CONVERSION = YES;
|
|
188
|
+
CLANG_WARN_INFINITE_RECURSION = YES;
|
|
189
|
+
CLANG_WARN_INT_CONVERSION = YES;
|
|
190
|
+
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
|
|
191
|
+
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
|
|
192
|
+
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
|
|
193
|
+
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
|
|
194
|
+
CLANG_WARN_STRICT_PROTOTYPES = YES;
|
|
195
|
+
CLANG_WARN_SUSPICIOUS_MOVE = YES;
|
|
196
|
+
CLANG_WARN_UNREACHABLE_CODE = YES;
|
|
197
|
+
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
|
|
198
|
+
COPY_PHASE_STRIP = YES;
|
|
199
|
+
ENABLE_NS_ASSERTIONS = NO;
|
|
200
|
+
ENABLE_STRICT_OBJC_MSGSEND = YES;
|
|
201
|
+
"EXCLUDED_ARCHS[sdk=*]" = arm64;
|
|
202
|
+
GCC_C_LANGUAGE_STANDARD = gnu99;
|
|
203
|
+
GCC_NO_COMMON_BLOCKS = YES;
|
|
204
|
+
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
|
|
205
|
+
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
|
|
206
|
+
GCC_WARN_UNDECLARED_SELECTOR = YES;
|
|
207
|
+
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
|
208
|
+
GCC_WARN_UNUSED_FUNCTION = YES;
|
|
209
|
+
GCC_WARN_UNUSED_VARIABLE = YES;
|
|
210
|
+
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
|
|
211
|
+
MTL_ENABLE_DEBUG_INFO = NO;
|
|
212
|
+
SDKROOT = iphoneos;
|
|
213
|
+
VALIDATE_PRODUCT = YES;
|
|
214
|
+
};
|
|
215
|
+
name = Release;
|
|
216
|
+
};
|
|
217
|
+
58B511F01A9E6C8500147676 /* Debug */ = {
|
|
218
|
+
isa = XCBuildConfiguration;
|
|
219
|
+
buildSettings = {
|
|
220
|
+
HEADER_SEARCH_PATHS = (
|
|
221
|
+
"$(inherited)",
|
|
222
|
+
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
|
|
223
|
+
"$(SRCROOT)/../../../React/**",
|
|
224
|
+
"$(SRCROOT)/../../react-native/React/**",
|
|
225
|
+
);
|
|
226
|
+
LIBRARY_SEARCH_PATHS = "$(inherited)";
|
|
227
|
+
OTHER_LDFLAGS = "-ObjC";
|
|
228
|
+
PRODUCT_NAME = NotiflySdk;
|
|
229
|
+
SKIP_INSTALL = YES;
|
|
230
|
+
};
|
|
231
|
+
name = Debug;
|
|
232
|
+
};
|
|
233
|
+
58B511F11A9E6C8500147676 /* Release */ = {
|
|
234
|
+
isa = XCBuildConfiguration;
|
|
235
|
+
buildSettings = {
|
|
236
|
+
HEADER_SEARCH_PATHS = (
|
|
237
|
+
"$(inherited)",
|
|
238
|
+
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
|
|
239
|
+
"$(SRCROOT)/../../../React/**",
|
|
240
|
+
"$(SRCROOT)/../../react-native/React/**",
|
|
241
|
+
);
|
|
242
|
+
LIBRARY_SEARCH_PATHS = "$(inherited)";
|
|
243
|
+
OTHER_LDFLAGS = "-ObjC";
|
|
244
|
+
PRODUCT_NAME = NotiflySdk;
|
|
245
|
+
SKIP_INSTALL = YES;
|
|
246
|
+
};
|
|
247
|
+
name = Release;
|
|
248
|
+
};
|
|
249
|
+
/* End XCBuildConfiguration section */
|
|
250
|
+
|
|
251
|
+
/* Begin XCConfigurationList section */
|
|
252
|
+
58B511D61A9E6C8500147676 /* Build configuration list for PBXProject "NotiflySdk" */ = {
|
|
253
|
+
isa = XCConfigurationList;
|
|
254
|
+
buildConfigurations = (
|
|
255
|
+
58B511ED1A9E6C8500147676 /* Debug */,
|
|
256
|
+
58B511EE1A9E6C8500147676 /* Release */,
|
|
257
|
+
);
|
|
258
|
+
defaultConfigurationIsVisible = 0;
|
|
259
|
+
defaultConfigurationName = Release;
|
|
260
|
+
};
|
|
261
|
+
58B511EF1A9E6C8500147676 /* Build configuration list for PBXNativeTarget "NotiflySdk" */ = {
|
|
262
|
+
isa = XCConfigurationList;
|
|
263
|
+
buildConfigurations = (
|
|
264
|
+
58B511F01A9E6C8500147676 /* Debug */,
|
|
265
|
+
58B511F11A9E6C8500147676 /* Release */,
|
|
266
|
+
);
|
|
267
|
+
defaultConfigurationIsVisible = 0;
|
|
268
|
+
defaultConfigurationName = Release;
|
|
269
|
+
};
|
|
270
|
+
/* End XCConfigurationList section */
|
|
271
|
+
};
|
|
272
|
+
rootObject = 58B511D31A9E6C8500147676 /* Project object */;
|
|
273
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _reactNative = require("react-native");
|
|
8
|
+
var _default = _reactNative.TurboModuleRegistry.getEnforcing('NotiflySdk');
|
|
9
|
+
exports.default = _default;
|
|
10
|
+
//# sourceMappingURL=NativeNotiflySdk.js.map
|