@qore-id/react-native-qoreid-sdk 1.2.5-rc → 2.0.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/LICENSE +1 -1
- package/README.md +6 -2
- package/RNQoreIdSdk.podspec +22 -0
- package/android/build.gradle +25 -46
- package/android/gradle.properties +5 -5
- package/android/src/main/AndroidManifest.xml +1 -2
- package/android/src/main/java/com/qoreid/reactnativeqoreidsdk/RNQoreIdSdkModule.kt +220 -0
- package/android/src/main/java/com/qoreid/reactnativeqoreidsdk/RNQoreIdSdkPackage.kt +33 -0
- package/ios/{QoreidSdk.swift → RCTRNQoreIdSdk.swift} +28 -15
- package/ios/RNQoreIdSdk.h +6 -0
- package/ios/RNQoreIdSdk.mm +41 -0
- package/lib/module/NativeRNQoreIdSdk.js +5 -0
- package/lib/module/NativeRNQoreIdSdk.js.map +1 -0
- package/lib/module/index.js +1 -0
- package/lib/module/index.js.map +1 -1
- package/lib/module/package.json +1 -0
- package/lib/module/qoreIdSdk.js +46 -28
- package/lib/module/qoreIdSdk.js.map +1 -1
- package/lib/module/types.js +2 -0
- package/lib/module/types.js.map +1 -0
- package/lib/module/utils.js.map +1 -1
- package/lib/typescript/package.json +1 -0
- package/lib/typescript/src/NativeRNQoreIdSdk.d.ts +8 -0
- package/lib/typescript/src/NativeRNQoreIdSdk.d.ts.map +1 -0
- package/lib/typescript/src/index.d.ts +1 -0
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/lib/typescript/src/qoreIdSdk.d.ts +9 -4
- package/lib/typescript/src/qoreIdSdk.d.ts.map +1 -1
- package/lib/typescript/src/types.d.ts +51 -0
- package/lib/typescript/src/types.d.ts.map +1 -0
- package/lib/typescript/src/utils.d.ts +5 -4
- package/lib/typescript/src/utils.d.ts.map +1 -1
- package/package.json +48 -66
- package/src/NativeRNQoreIdSdk.ts +12 -0
- package/src/index.tsx +1 -0
- package/src/qoreIdSdk.tsx +53 -45
- package/src/types.ts +60 -0
- package/src/utils.ts +7 -5
- package/android/src/main/java/com/qoreidsdk/QoreidSdkModule.kt +0 -241
- package/android/src/main/java/com/qoreidsdk/QoreidSdkPackage.kt +0 -17
- package/ios/QoreidSdk-Bridging-Header.h +0 -7
- package/ios/QoreidSdk.m +0 -12
- package/ios/QoreidSdk.xcodeproj/project.pbxproj +0 -292
- package/lib/commonjs/index.js +0 -28
- package/lib/commonjs/index.js.map +0 -1
- package/lib/commonjs/qoreIdSdk.js +0 -74
- package/lib/commonjs/qoreIdSdk.js.map +0 -1
- package/lib/commonjs/types.d.js +0 -13
- package/lib/commonjs/types.d.js.map +0 -1
- package/lib/commonjs/utils.js +0 -19
- package/lib/commonjs/utils.js.map +0 -1
- package/lib/module/types.d.js +0 -4
- package/lib/module/types.d.js.map +0 -1
- package/qore-id-react-native-qoreid-sdk.podspec +0 -42
- package/src/types.d.ts +0 -76
package/src/types.ts
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
export interface QoreIdData {
|
|
2
|
+
flowId?: number;
|
|
3
|
+
customerReference: string;
|
|
4
|
+
productCode: string;
|
|
5
|
+
clientId: string;
|
|
6
|
+
defaultIdType?: string;
|
|
7
|
+
applicantData?: ApplicantData;
|
|
8
|
+
addressData?: AddressData;
|
|
9
|
+
ocrAcceptedDocuments?: string[];
|
|
10
|
+
identityData?: IdentityData;
|
|
11
|
+
/** extra property is only usable for internal use only */
|
|
12
|
+
extraData?: ExtraData;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export interface ExtraData {
|
|
16
|
+
organisationId: string;
|
|
17
|
+
organisationName: string;
|
|
18
|
+
requestSource: string;
|
|
19
|
+
internalReferenceId: string;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export interface ApplicantData {
|
|
23
|
+
firstName?: string;
|
|
24
|
+
lastName?: string;
|
|
25
|
+
phoneNumber?: string;
|
|
26
|
+
email?: string;
|
|
27
|
+
dob?: string;
|
|
28
|
+
gender?: string;
|
|
29
|
+
middleName?: string;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export interface IdentityData {
|
|
33
|
+
idType?: string;
|
|
34
|
+
idNumber?: string;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export interface AddressData {
|
|
38
|
+
address?: string;
|
|
39
|
+
town?: string;
|
|
40
|
+
lga?: string;
|
|
41
|
+
city?: string;
|
|
42
|
+
state?: string;
|
|
43
|
+
region?: string;
|
|
44
|
+
district?: string;
|
|
45
|
+
virAddress?: string;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export type QoreIdSdkEvent =
|
|
49
|
+
| 'SESSION_RESULT'
|
|
50
|
+
| 'SUCCESS_RESULT'
|
|
51
|
+
| 'ERROR_RESULT';
|
|
52
|
+
|
|
53
|
+
export interface OnResult {
|
|
54
|
+
code: string;
|
|
55
|
+
data: Record<string, unknown> | string | number | null;
|
|
56
|
+
event: QoreIdSdkEvent;
|
|
57
|
+
message: string;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export type QoreIdSdkCallback = (result: OnResult) => void | Promise<void>;
|
package/src/utils.ts
CHANGED
|
@@ -4,7 +4,7 @@ const acceptedDocuments = {
|
|
|
4
4
|
'VOTERS_CARD_NGA',
|
|
5
5
|
'NIN_SLIP_NGA',
|
|
6
6
|
'PASSPORT_NGA',
|
|
7
|
-
],
|
|
7
|
+
] as const,
|
|
8
8
|
Ghana: [
|
|
9
9
|
'DRIVERS_LICENSE_GHA',
|
|
10
10
|
'NHIS_CARD_GHA',
|
|
@@ -13,14 +13,14 @@ const acceptedDocuments = {
|
|
|
13
13
|
'VOTERS_CARD_GHA',
|
|
14
14
|
'PASSPORT_GHA',
|
|
15
15
|
'GHANA_CARD_GHA',
|
|
16
|
-
],
|
|
16
|
+
] as const,
|
|
17
17
|
Kenya: [
|
|
18
18
|
'DRIVERS_LICENSE_KEN',
|
|
19
19
|
'NATIONAL_ID_KEN',
|
|
20
20
|
'REFUGEE_ID_KEN',
|
|
21
21
|
'PASSPORT_KEN',
|
|
22
|
-
],
|
|
23
|
-
};
|
|
22
|
+
] as const,
|
|
23
|
+
} as const;
|
|
24
24
|
|
|
25
25
|
const productCodes = [
|
|
26
26
|
'alien_card',
|
|
@@ -65,9 +65,11 @@ const productCodes = [
|
|
|
65
65
|
'verifind_4d',
|
|
66
66
|
'vin',
|
|
67
67
|
'virtual_nin',
|
|
68
|
-
];
|
|
68
|
+
] as const;
|
|
69
69
|
|
|
70
70
|
export const utils = {
|
|
71
71
|
productCodes,
|
|
72
72
|
acceptedDocuments,
|
|
73
73
|
};
|
|
74
|
+
|
|
75
|
+
export type Util = typeof utils;
|
|
@@ -1,241 +0,0 @@
|
|
|
1
|
-
package com.qoreidsdk
|
|
2
|
-
|
|
3
|
-
import com.facebook.react.bridge.ReactContextBaseJavaModule
|
|
4
|
-
import android.app.Activity
|
|
5
|
-
import android.content.Intent
|
|
6
|
-
import android.os.Build
|
|
7
|
-
import android.util.Log
|
|
8
|
-
import androidx.annotation.RequiresApi
|
|
9
|
-
import com.facebook.react.bridge.Arguments
|
|
10
|
-
import com.facebook.react.bridge.BaseActivityEventListener
|
|
11
|
-
import com.facebook.react.bridge.ReactApplicationContext
|
|
12
|
-
import com.facebook.react.bridge.ReactMethod
|
|
13
|
-
import com.facebook.react.bridge.ReadableMap
|
|
14
|
-
import com.facebook.react.bridge.WritableMap
|
|
15
|
-
import com.facebook.react.modules.core.DeviceEventManagerModule
|
|
16
|
-
import com.qoreid.sdk.core.OnFlowRequestIdCallback
|
|
17
|
-
import com.qoreid.sdk.core.QoreIDParams
|
|
18
|
-
import com.qoreid.sdk.core.QoreIDSdk
|
|
19
|
-
import com.qoreid.sdk.core.QoreIDSdk.QORE_ID_RESULT_CODE
|
|
20
|
-
import com.qoreid.sdk.core.QoreIDSdk.QORE_ID_RESULT_EXTRA_KEY
|
|
21
|
-
import com.qoreid.sdk.core.models.AddressData
|
|
22
|
-
import com.qoreid.sdk.core.models.ApplicantData
|
|
23
|
-
import com.qoreid.sdk.core.models.ErrorResult
|
|
24
|
-
import com.qoreid.sdk.core.models.IdentityData
|
|
25
|
-
import com.qoreid.sdk.core.models.QoreIDResult
|
|
26
|
-
import com.qoreid.sdk.core.models.ResultData
|
|
27
|
-
import com.qoreid.sdk.core.models.SuccessResult
|
|
28
|
-
import com.qoreid.sdk.core.models.VerificationExtraData
|
|
29
|
-
|
|
30
|
-
class QoreidSdkModule(context: ReactApplicationContext) :
|
|
31
|
-
ReactContextBaseJavaModule(context) {
|
|
32
|
-
|
|
33
|
-
override fun getName(): String {
|
|
34
|
-
return NAME
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
private var qoreIdResult: QoreIDResult? = null
|
|
38
|
-
|
|
39
|
-
private val activityEventListener =
|
|
40
|
-
object : BaseActivityEventListener() {
|
|
41
|
-
@RequiresApi(Build.VERSION_CODES.TIRAMISU)
|
|
42
|
-
override fun onActivityResult(
|
|
43
|
-
activity: Activity?,
|
|
44
|
-
requestCode: Int,
|
|
45
|
-
resultCode: Int,
|
|
46
|
-
intent: Intent?
|
|
47
|
-
) {
|
|
48
|
-
|
|
49
|
-
if (resultCode == QORE_ID_RESULT_CODE && intent != null) {
|
|
50
|
-
qoreIdResult =
|
|
51
|
-
if (Build.VERSION.SDK_INT < 33) {
|
|
52
|
-
intent.extras?.getSerializable(QORE_ID_RESULT_EXTRA_KEY) as
|
|
53
|
-
QoreIDResult
|
|
54
|
-
} else {
|
|
55
|
-
intent.extras?.getSerializable(
|
|
56
|
-
QORE_ID_RESULT_EXTRA_KEY,
|
|
57
|
-
QoreIDResult::class.java
|
|
58
|
-
)
|
|
59
|
-
}
|
|
60
|
-
processQoreIDResult(context, qoreIdResult!!)
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
init {
|
|
66
|
-
context.addActivityEventListener(activityEventListener)
|
|
67
|
-
|
|
68
|
-
QoreIDSdk.Callbacks.onFlowRequestId(object : OnFlowRequestIdCallback {
|
|
69
|
-
override fun onValue(flowRequestId: Long) {
|
|
70
|
-
Log.i("QORE_ID", flowRequestId.toString())
|
|
71
|
-
val event =
|
|
72
|
-
Arguments.createMap().apply {
|
|
73
|
-
putString("data", flowRequestId.toString())
|
|
74
|
-
putString("message", "QOREID SDK INITIALIZED")
|
|
75
|
-
putString("event", "SESSION_RESULT")
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
sendEvent(context, "onResult", event)
|
|
79
|
-
}
|
|
80
|
-
})
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
@ReactMethod
|
|
84
|
-
fun launchQoreidSdk(readableData: ReadableMap) {
|
|
85
|
-
val data = readableData.toHashMap()
|
|
86
|
-
|
|
87
|
-
if (currentActivity == null) {
|
|
88
|
-
Log.e("Error", "No current activity")
|
|
89
|
-
return
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
val config = data?.get("config") as? HashMap<*, *>
|
|
93
|
-
val apD = data?.get("applicantData") as? HashMap<*, *>
|
|
94
|
-
val applicantData =
|
|
95
|
-
ApplicantData(
|
|
96
|
-
apD?.get("firstName") as String,
|
|
97
|
-
apD?.get("lastName") as String,
|
|
98
|
-
apD?.get("phoneNumber") as String?,
|
|
99
|
-
apD?.get("middleName") as String?,
|
|
100
|
-
apD?.get("dob") as String?,
|
|
101
|
-
apD?.get("email") as String?,
|
|
102
|
-
apD?.get("gender") as String?
|
|
103
|
-
)
|
|
104
|
-
|
|
105
|
-
val adD = data?.get("addressData") as? HashMap<*, *>
|
|
106
|
-
val addressData =
|
|
107
|
-
AddressData(
|
|
108
|
-
adD?.get("address") as String?,
|
|
109
|
-
adD?.get("city") as String?,
|
|
110
|
-
adD?.get("lga") as String?,
|
|
111
|
-
adD?.get("state") as String?,
|
|
112
|
-
)
|
|
113
|
-
val flowId = config?.get("flowId") as? Double
|
|
114
|
-
|
|
115
|
-
val _identityData = data?.get("identityData") as? HashMap<*, *>
|
|
116
|
-
|
|
117
|
-
var identityData: IdentityData? = null
|
|
118
|
-
|
|
119
|
-
if(!_identityData.isNullOrEmpty()){
|
|
120
|
-
identityData = IdentityData(
|
|
121
|
-
_identityData?.get("idType") as String,
|
|
122
|
-
_identityData?.get("idNumber") as String
|
|
123
|
-
)
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
val _extraData = data?.get("extraData") as? HashMap<*, *>?
|
|
128
|
-
var extraData: VerificationExtraData? = null
|
|
129
|
-
|
|
130
|
-
if (!_extraData.isNullOrEmpty()) {
|
|
131
|
-
extraData = VerificationExtraData(
|
|
132
|
-
_extraData.get("organisationId") as String,
|
|
133
|
-
_extraData.get("organisationName") as String,
|
|
134
|
-
_extraData?.get("requestSource") as String,
|
|
135
|
-
_extraData?.get("internalReferenceId") as String
|
|
136
|
-
)
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
var acceptedDocuments: List<String>? = data?.get("acceptedDocuments") as? List<String>
|
|
140
|
-
|
|
141
|
-
if(acceptedDocuments.isNullOrEmpty()){
|
|
142
|
-
acceptedDocuments = emptyList()
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
val qoreIDParams =
|
|
146
|
-
if (flowId?.toLong() != 0L) {
|
|
147
|
-
QoreIDParams()
|
|
148
|
-
.clientId(config?.get("clientId") as String)
|
|
149
|
-
.customerReference(config?.get("customerReference") as String)
|
|
150
|
-
.inputData(applicantData, addressData, identityData, extraData)
|
|
151
|
-
.ocrAcceptedDocuments(acceptedDocuments)
|
|
152
|
-
.workflow(flowId!!.toLong())
|
|
153
|
-
.workflowDefaultIdentity(
|
|
154
|
-
config?.get("defaultIdType") as
|
|
155
|
-
String
|
|
156
|
-
)
|
|
157
|
-
} else {
|
|
158
|
-
QoreIDParams()
|
|
159
|
-
.clientId(config?.get("clientId") as String)
|
|
160
|
-
.customerReference(config?.get("customerReference") as String)
|
|
161
|
-
.inputData(applicantData, addressData, identityData, extraData)
|
|
162
|
-
.ocrAcceptedDocuments(acceptedDocuments)
|
|
163
|
-
.collection(config?.get("productCode") as String)
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
QoreIDSdk.s(BuildConfig.s)
|
|
167
|
-
QoreIDSdk.params(qoreIDParams)
|
|
168
|
-
QoreIDSdk.launch(requireNotNull(currentActivity))
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
fun processQoreIDResult(context: ReactApplicationContext, qoreIdResult: QoreIDResult) {
|
|
172
|
-
when (qoreIdResult) {
|
|
173
|
-
is ErrorResult -> {
|
|
174
|
-
// Handle error.
|
|
175
|
-
val event =
|
|
176
|
-
Arguments.createMap().apply {
|
|
177
|
-
putString("code", qoreIdResult.code.toString())
|
|
178
|
-
putMap("data", parseData(qoreIdResult.data))
|
|
179
|
-
putString("message", qoreIdResult.message)
|
|
180
|
-
putString("event", "ERROR_RESULT")
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
sendEvent(context, "onResult", event)
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
is SuccessResult -> {
|
|
187
|
-
// Handle success.
|
|
188
|
-
val event =
|
|
189
|
-
Arguments.createMap().apply {
|
|
190
|
-
putMap("data", parseData(qoreIdResult.data))
|
|
191
|
-
putString("message", qoreIdResult.message)
|
|
192
|
-
putString("event", "SUCCESS_RESULT")
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
sendEvent(context, "onResult", event)
|
|
196
|
-
}
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
private fun parseData(data: ResultData?): ReadableMap {
|
|
201
|
-
val dataMap = Arguments.createMap()
|
|
202
|
-
|
|
203
|
-
// Adding verification object
|
|
204
|
-
val verificationMap = Arguments.createMap().apply {
|
|
205
|
-
putString("id", data?.verification?.id.toString())
|
|
206
|
-
putString("status", data?.verification?.status?.state)
|
|
207
|
-
putString("state", data?.verification?.status?.state)
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
// Populating the main map
|
|
211
|
-
dataMap.apply {
|
|
212
|
-
putString("customerReference", data?.customerReference)
|
|
213
|
-
putString("productCode", data?.productCode)
|
|
214
|
-
putString("flowId", data?.flowId.toString())
|
|
215
|
-
putMap("verification", verificationMap) // Nested map
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
return dataMap
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
private fun sendEvent(
|
|
223
|
-
reactContext: ReactApplicationContext,
|
|
224
|
-
eventName: String,
|
|
225
|
-
params: WritableMap?
|
|
226
|
-
) {
|
|
227
|
-
reactContext
|
|
228
|
-
.getJSModule(DeviceEventManagerModule.RCTDeviceEventEmitter::class.java)
|
|
229
|
-
.emit(eventName, params)
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
companion object {
|
|
234
|
-
const val NAME = "QoreidSdk"
|
|
235
|
-
|
|
236
|
-
@JvmStatic
|
|
237
|
-
fun initialize(activity: Activity) {
|
|
238
|
-
QoreIDSdk.initialize(activity)
|
|
239
|
-
}
|
|
240
|
-
}
|
|
241
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
package com.qoreidsdk
|
|
2
|
-
|
|
3
|
-
import com.facebook.react.ReactPackage
|
|
4
|
-
import com.facebook.react.bridge.NativeModule
|
|
5
|
-
import com.facebook.react.bridge.ReactApplicationContext
|
|
6
|
-
import com.facebook.react.uimanager.ViewManager
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
class QoreidSdkPackage : ReactPackage {
|
|
10
|
-
override fun createNativeModules(reactContext: ReactApplicationContext): List<NativeModule> {
|
|
11
|
-
return listOf(QoreidSdkModule(reactContext))
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
override fun createViewManagers(reactContext: ReactApplicationContext): List<ViewManager<*, *>> {
|
|
15
|
-
return emptyList()
|
|
16
|
-
}
|
|
17
|
-
}
|
package/ios/QoreidSdk.m
DELETED
|
@@ -1,292 +0,0 @@
|
|
|
1
|
-
// !$*UTF8*$!
|
|
2
|
-
{
|
|
3
|
-
archiveVersion = 1;
|
|
4
|
-
classes = {
|
|
5
|
-
};
|
|
6
|
-
objectVersion = 46;
|
|
7
|
-
objects = {
|
|
8
|
-
|
|
9
|
-
/* Begin PBXBuildFile section */
|
|
10
|
-
2A18B1372AC6CA26005CB836 /* File.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2A18B1362AC6CA26005CB836 /* File.swift */; };
|
|
11
|
-
/* End PBXBuildFile section */
|
|
12
|
-
|
|
13
|
-
/* Begin PBXCopyFilesBuildPhase section */
|
|
14
|
-
58B511D91A9E6C8500147676 /* CopyFiles */ = {
|
|
15
|
-
isa = PBXCopyFilesBuildPhase;
|
|
16
|
-
buildActionMask = 2147483647;
|
|
17
|
-
dstPath = "include/$(PRODUCT_NAME)";
|
|
18
|
-
dstSubfolderSpec = 16;
|
|
19
|
-
files = (
|
|
20
|
-
);
|
|
21
|
-
runOnlyForDeploymentPostprocessing = 0;
|
|
22
|
-
};
|
|
23
|
-
/* End PBXCopyFilesBuildPhase section */
|
|
24
|
-
|
|
25
|
-
/* Begin PBXFileReference section */
|
|
26
|
-
134814201AA4EA6300B7C361 /* libQoreidSdk.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libQoreidSdk.a; sourceTree = BUILT_PRODUCTS_DIR; };
|
|
27
|
-
2A18B1352AC6CA25005CB836 /* QoreidSdk-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "QoreidSdk-Bridging-Header.h"; sourceTree = "<group>"; };
|
|
28
|
-
2A18B1362AC6CA26005CB836 /* File.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = File.swift; sourceTree = "<group>"; };
|
|
29
|
-
B3E7B5881CC2AC0600A0062D /* QoreidSdk.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = QoreidSdk.h; sourceTree = "<group>"; };
|
|
30
|
-
B3E7B5891CC2AC0600A0062D /* QoreidSdk.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = QoreidSdk.m; sourceTree = "<group>"; };
|
|
31
|
-
/* End PBXFileReference section */
|
|
32
|
-
|
|
33
|
-
/* Begin PBXFrameworksBuildPhase section */
|
|
34
|
-
58B511D81A9E6C8500147676 /* Frameworks */ = {
|
|
35
|
-
isa = PBXFrameworksBuildPhase;
|
|
36
|
-
buildActionMask = 2147483647;
|
|
37
|
-
files = (
|
|
38
|
-
);
|
|
39
|
-
runOnlyForDeploymentPostprocessing = 0;
|
|
40
|
-
};
|
|
41
|
-
/* End PBXFrameworksBuildPhase section */
|
|
42
|
-
|
|
43
|
-
/* Begin PBXGroup section */
|
|
44
|
-
134814211AA4EA7D00B7C361 /* Products */ = {
|
|
45
|
-
isa = PBXGroup;
|
|
46
|
-
children = (
|
|
47
|
-
134814201AA4EA6300B7C361 /* libQoreidSdk.a */,
|
|
48
|
-
);
|
|
49
|
-
name = Products;
|
|
50
|
-
sourceTree = "<group>";
|
|
51
|
-
};
|
|
52
|
-
58B511D21A9E6C8500147676 = {
|
|
53
|
-
isa = PBXGroup;
|
|
54
|
-
children = (
|
|
55
|
-
2A18B1362AC6CA26005CB836 /* File.swift */,
|
|
56
|
-
B3E7B5881CC2AC0600A0062D /* QoreidSdk.h */,
|
|
57
|
-
B3E7B5891CC2AC0600A0062D /* QoreidSdk.m */,
|
|
58
|
-
134814211AA4EA7D00B7C361 /* Products */,
|
|
59
|
-
2A18B1352AC6CA25005CB836 /* QoreidSdk-Bridging-Header.h */,
|
|
60
|
-
);
|
|
61
|
-
sourceTree = "<group>";
|
|
62
|
-
};
|
|
63
|
-
/* End PBXGroup section */
|
|
64
|
-
|
|
65
|
-
/* Begin PBXNativeTarget section */
|
|
66
|
-
58B511DA1A9E6C8500147676 /* QoreidSdk */ = {
|
|
67
|
-
isa = PBXNativeTarget;
|
|
68
|
-
buildConfigurationList = 58B511EF1A9E6C8500147676 /* Build configuration list for PBXNativeTarget "QoreidSdk" */;
|
|
69
|
-
buildPhases = (
|
|
70
|
-
58B511D71A9E6C8500147676 /* Sources */,
|
|
71
|
-
58B511D81A9E6C8500147676 /* Frameworks */,
|
|
72
|
-
58B511D91A9E6C8500147676 /* CopyFiles */,
|
|
73
|
-
);
|
|
74
|
-
buildRules = (
|
|
75
|
-
);
|
|
76
|
-
dependencies = (
|
|
77
|
-
);
|
|
78
|
-
name = QoreidSdk;
|
|
79
|
-
productName = RCTDataManager;
|
|
80
|
-
productReference = 134814201AA4EA6300B7C361 /* libQoreidSdk.a */;
|
|
81
|
-
productType = "com.apple.product-type.library.static";
|
|
82
|
-
};
|
|
83
|
-
/* End PBXNativeTarget section */
|
|
84
|
-
|
|
85
|
-
/* Begin PBXProject section */
|
|
86
|
-
58B511D31A9E6C8500147676 /* Project object */ = {
|
|
87
|
-
isa = PBXProject;
|
|
88
|
-
attributes = {
|
|
89
|
-
LastUpgradeCheck = 0920;
|
|
90
|
-
ORGANIZATIONNAME = Facebook;
|
|
91
|
-
TargetAttributes = {
|
|
92
|
-
58B511DA1A9E6C8500147676 = {
|
|
93
|
-
CreatedOnToolsVersion = 6.1.1;
|
|
94
|
-
LastSwiftMigration = 1500;
|
|
95
|
-
};
|
|
96
|
-
};
|
|
97
|
-
};
|
|
98
|
-
buildConfigurationList = 58B511D61A9E6C8500147676 /* Build configuration list for PBXProject "QoreidSdk" */;
|
|
99
|
-
compatibilityVersion = "Xcode 3.2";
|
|
100
|
-
developmentRegion = English;
|
|
101
|
-
hasScannedForEncodings = 0;
|
|
102
|
-
knownRegions = (
|
|
103
|
-
English,
|
|
104
|
-
en,
|
|
105
|
-
);
|
|
106
|
-
mainGroup = 58B511D21A9E6C8500147676;
|
|
107
|
-
productRefGroup = 58B511D21A9E6C8500147676;
|
|
108
|
-
projectDirPath = "";
|
|
109
|
-
projectRoot = "";
|
|
110
|
-
targets = (
|
|
111
|
-
58B511DA1A9E6C8500147676 /* QoreidSdk */,
|
|
112
|
-
);
|
|
113
|
-
};
|
|
114
|
-
/* End PBXProject section */
|
|
115
|
-
|
|
116
|
-
/* Begin PBXSourcesBuildPhase section */
|
|
117
|
-
58B511D71A9E6C8500147676 /* Sources */ = {
|
|
118
|
-
isa = PBXSourcesBuildPhase;
|
|
119
|
-
buildActionMask = 2147483647;
|
|
120
|
-
files = (
|
|
121
|
-
2A18B1372AC6CA26005CB836 /* File.swift in Sources */,
|
|
122
|
-
);
|
|
123
|
-
runOnlyForDeploymentPostprocessing = 0;
|
|
124
|
-
};
|
|
125
|
-
/* End PBXSourcesBuildPhase section */
|
|
126
|
-
|
|
127
|
-
/* Begin XCBuildConfiguration section */
|
|
128
|
-
58B511ED1A9E6C8500147676 /* Debug */ = {
|
|
129
|
-
isa = XCBuildConfiguration;
|
|
130
|
-
buildSettings = {
|
|
131
|
-
ALWAYS_SEARCH_USER_PATHS = NO;
|
|
132
|
-
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
|
|
133
|
-
CLANG_CXX_LIBRARY = "libc++";
|
|
134
|
-
CLANG_ENABLE_MODULES = YES;
|
|
135
|
-
CLANG_ENABLE_OBJC_ARC = YES;
|
|
136
|
-
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
|
|
137
|
-
CLANG_WARN_BOOL_CONVERSION = YES;
|
|
138
|
-
CLANG_WARN_COMMA = YES;
|
|
139
|
-
CLANG_WARN_CONSTANT_CONVERSION = YES;
|
|
140
|
-
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
|
|
141
|
-
CLANG_WARN_EMPTY_BODY = YES;
|
|
142
|
-
CLANG_WARN_ENUM_CONVERSION = YES;
|
|
143
|
-
CLANG_WARN_INFINITE_RECURSION = YES;
|
|
144
|
-
CLANG_WARN_INT_CONVERSION = YES;
|
|
145
|
-
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
|
|
146
|
-
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
|
|
147
|
-
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
|
|
148
|
-
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
|
|
149
|
-
CLANG_WARN_STRICT_PROTOTYPES = YES;
|
|
150
|
-
CLANG_WARN_SUSPICIOUS_MOVE = YES;
|
|
151
|
-
CLANG_WARN_UNREACHABLE_CODE = YES;
|
|
152
|
-
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
|
|
153
|
-
COPY_PHASE_STRIP = NO;
|
|
154
|
-
ENABLE_STRICT_OBJC_MSGSEND = YES;
|
|
155
|
-
ENABLE_TESTABILITY = YES;
|
|
156
|
-
"EXCLUDED_ARCHS[sdk=*]" = arm64;
|
|
157
|
-
GCC_C_LANGUAGE_STANDARD = gnu99;
|
|
158
|
-
GCC_DYNAMIC_NO_PIC = NO;
|
|
159
|
-
GCC_NO_COMMON_BLOCKS = YES;
|
|
160
|
-
GCC_OPTIMIZATION_LEVEL = 0;
|
|
161
|
-
GCC_PREPROCESSOR_DEFINITIONS = (
|
|
162
|
-
"DEBUG=1",
|
|
163
|
-
"$(inherited)",
|
|
164
|
-
);
|
|
165
|
-
GCC_SYMBOLS_PRIVATE_EXTERN = NO;
|
|
166
|
-
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
|
|
167
|
-
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
|
|
168
|
-
GCC_WARN_UNDECLARED_SELECTOR = YES;
|
|
169
|
-
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
|
170
|
-
GCC_WARN_UNUSED_FUNCTION = YES;
|
|
171
|
-
GCC_WARN_UNUSED_VARIABLE = YES;
|
|
172
|
-
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
|
|
173
|
-
MTL_ENABLE_DEBUG_INFO = YES;
|
|
174
|
-
ONLY_ACTIVE_ARCH = YES;
|
|
175
|
-
SDKROOT = iphoneos;
|
|
176
|
-
};
|
|
177
|
-
name = Debug;
|
|
178
|
-
};
|
|
179
|
-
58B511EE1A9E6C8500147676 /* Release */ = {
|
|
180
|
-
isa = XCBuildConfiguration;
|
|
181
|
-
buildSettings = {
|
|
182
|
-
ALWAYS_SEARCH_USER_PATHS = NO;
|
|
183
|
-
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
|
|
184
|
-
CLANG_CXX_LIBRARY = "libc++";
|
|
185
|
-
CLANG_ENABLE_MODULES = YES;
|
|
186
|
-
CLANG_ENABLE_OBJC_ARC = YES;
|
|
187
|
-
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
|
|
188
|
-
CLANG_WARN_BOOL_CONVERSION = YES;
|
|
189
|
-
CLANG_WARN_COMMA = YES;
|
|
190
|
-
CLANG_WARN_CONSTANT_CONVERSION = YES;
|
|
191
|
-
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
|
|
192
|
-
CLANG_WARN_EMPTY_BODY = YES;
|
|
193
|
-
CLANG_WARN_ENUM_CONVERSION = YES;
|
|
194
|
-
CLANG_WARN_INFINITE_RECURSION = YES;
|
|
195
|
-
CLANG_WARN_INT_CONVERSION = YES;
|
|
196
|
-
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
|
|
197
|
-
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
|
|
198
|
-
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
|
|
199
|
-
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
|
|
200
|
-
CLANG_WARN_STRICT_PROTOTYPES = YES;
|
|
201
|
-
CLANG_WARN_SUSPICIOUS_MOVE = YES;
|
|
202
|
-
CLANG_WARN_UNREACHABLE_CODE = YES;
|
|
203
|
-
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
|
|
204
|
-
COPY_PHASE_STRIP = YES;
|
|
205
|
-
ENABLE_NS_ASSERTIONS = NO;
|
|
206
|
-
ENABLE_STRICT_OBJC_MSGSEND = YES;
|
|
207
|
-
"EXCLUDED_ARCHS[sdk=*]" = arm64;
|
|
208
|
-
GCC_C_LANGUAGE_STANDARD = gnu99;
|
|
209
|
-
GCC_NO_COMMON_BLOCKS = YES;
|
|
210
|
-
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
|
|
211
|
-
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
|
|
212
|
-
GCC_WARN_UNDECLARED_SELECTOR = YES;
|
|
213
|
-
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
|
214
|
-
GCC_WARN_UNUSED_FUNCTION = YES;
|
|
215
|
-
GCC_WARN_UNUSED_VARIABLE = YES;
|
|
216
|
-
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
|
|
217
|
-
MTL_ENABLE_DEBUG_INFO = NO;
|
|
218
|
-
SDKROOT = iphoneos;
|
|
219
|
-
VALIDATE_PRODUCT = YES;
|
|
220
|
-
};
|
|
221
|
-
name = Release;
|
|
222
|
-
};
|
|
223
|
-
58B511F01A9E6C8500147676 /* Debug */ = {
|
|
224
|
-
isa = XCBuildConfiguration;
|
|
225
|
-
buildSettings = {
|
|
226
|
-
CLANG_ENABLE_MODULES = YES;
|
|
227
|
-
HEADER_SEARCH_PATHS = (
|
|
228
|
-
"$(inherited)",
|
|
229
|
-
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
|
|
230
|
-
"$(SRCROOT)/../../../React/**",
|
|
231
|
-
"$(SRCROOT)/../../react-native/React/**",
|
|
232
|
-
);
|
|
233
|
-
LIBRARY_SEARCH_PATHS = "$(inherited)";
|
|
234
|
-
OTHER_LDFLAGS = (
|
|
235
|
-
"-ObjC",
|
|
236
|
-
"$(inherit)",
|
|
237
|
-
);
|
|
238
|
-
PRODUCT_NAME = QoreidSdk;
|
|
239
|
-
SKIP_INSTALL = YES;
|
|
240
|
-
SWIFT_OBJC_BRIDGING_HEADER = "QoreidSdk-Bridging-Header.h";
|
|
241
|
-
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
|
|
242
|
-
SWIFT_VERSION = 5.0;
|
|
243
|
-
};
|
|
244
|
-
name = Debug;
|
|
245
|
-
};
|
|
246
|
-
58B511F11A9E6C8500147676 /* Release */ = {
|
|
247
|
-
isa = XCBuildConfiguration;
|
|
248
|
-
buildSettings = {
|
|
249
|
-
CLANG_ENABLE_MODULES = YES;
|
|
250
|
-
HEADER_SEARCH_PATHS = (
|
|
251
|
-
"$(inherited)",
|
|
252
|
-
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
|
|
253
|
-
"$(SRCROOT)/../../../React/**",
|
|
254
|
-
"$(SRCROOT)/../../react-native/React/**",
|
|
255
|
-
);
|
|
256
|
-
LIBRARY_SEARCH_PATHS = "$(inherited)";
|
|
257
|
-
OTHER_LDFLAGS = (
|
|
258
|
-
"-ObjC",
|
|
259
|
-
"$(inherit)",
|
|
260
|
-
);
|
|
261
|
-
PRODUCT_NAME = QoreidSdk;
|
|
262
|
-
SKIP_INSTALL = YES;
|
|
263
|
-
SWIFT_OBJC_BRIDGING_HEADER = "QoreidSdk-Bridging-Header.h";
|
|
264
|
-
SWIFT_VERSION = 5.0;
|
|
265
|
-
};
|
|
266
|
-
name = Release;
|
|
267
|
-
};
|
|
268
|
-
/* End XCBuildConfiguration section */
|
|
269
|
-
|
|
270
|
-
/* Begin XCConfigurationList section */
|
|
271
|
-
58B511D61A9E6C8500147676 /* Build configuration list for PBXProject "QoreidSdk" */ = {
|
|
272
|
-
isa = XCConfigurationList;
|
|
273
|
-
buildConfigurations = (
|
|
274
|
-
58B511ED1A9E6C8500147676 /* Debug */,
|
|
275
|
-
58B511EE1A9E6C8500147676 /* Release */,
|
|
276
|
-
);
|
|
277
|
-
defaultConfigurationIsVisible = 0;
|
|
278
|
-
defaultConfigurationName = Release;
|
|
279
|
-
};
|
|
280
|
-
58B511EF1A9E6C8500147676 /* Build configuration list for PBXNativeTarget "QoreidSdk" */ = {
|
|
281
|
-
isa = XCConfigurationList;
|
|
282
|
-
buildConfigurations = (
|
|
283
|
-
58B511F01A9E6C8500147676 /* Debug */,
|
|
284
|
-
58B511F11A9E6C8500147676 /* Release */,
|
|
285
|
-
);
|
|
286
|
-
defaultConfigurationIsVisible = 0;
|
|
287
|
-
defaultConfigurationName = Release;
|
|
288
|
-
};
|
|
289
|
-
/* End XCConfigurationList section */
|
|
290
|
-
};
|
|
291
|
-
rootObject = 58B511D31A9E6C8500147676 /* Project object */;
|
|
292
|
-
}
|
package/lib/commonjs/index.js
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
var _qoreIdSdk = require("./qoreIdSdk.js");
|
|
7
|
-
Object.keys(_qoreIdSdk).forEach(function (key) {
|
|
8
|
-
if (key === "default" || key === "__esModule") return;
|
|
9
|
-
if (key in exports && exports[key] === _qoreIdSdk[key]) return;
|
|
10
|
-
Object.defineProperty(exports, key, {
|
|
11
|
-
enumerable: true,
|
|
12
|
-
get: function () {
|
|
13
|
-
return _qoreIdSdk[key];
|
|
14
|
-
}
|
|
15
|
-
});
|
|
16
|
-
});
|
|
17
|
-
var _utils = require("./utils.js");
|
|
18
|
-
Object.keys(_utils).forEach(function (key) {
|
|
19
|
-
if (key === "default" || key === "__esModule") return;
|
|
20
|
-
if (key in exports && exports[key] === _utils[key]) return;
|
|
21
|
-
Object.defineProperty(exports, key, {
|
|
22
|
-
enumerable: true,
|
|
23
|
-
get: function () {
|
|
24
|
-
return _utils[key];
|
|
25
|
-
}
|
|
26
|
-
});
|
|
27
|
-
});
|
|
28
|
-
//# sourceMappingURL=index.js.map
|