@circle-fin/w3s-pw-react-native-sdk 1.0.4 → 1.0.6
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/{COPYRIGHT.md → COPYRIGHT} +1 -1
- package/LICENSE +190 -0
- package/android/build.gradle +3 -1
- package/android/gradle.properties +3 -1
- package/android/src/main/AndroidManifest.xml +3 -1
- package/android/src/main/AndroidManifestNew.xml +3 -1
- package/android/src/main/java/com/circlefin/programmablewalletrnsdk/BridgeHelper.kt +3 -1
- package/android/src/main/java/com/circlefin/programmablewalletrnsdk/ProgrammablewalletRnSdkModule.kt +4 -2
- package/android/src/main/java/com/circlefin/programmablewalletrnsdk/ProgrammablewalletRnSdkPackage.kt +3 -1
- package/android/src/main/java/com/circlefin/programmablewalletrnsdk/PromiseCallback.kt +3 -1
- package/android/src/main/java/com/circlefin/programmablewalletrnsdk/TestHelper.kt +3 -1
- package/android/src/main/java/com/circlefin/programmablewalletrnsdk/pwcustom/RnImageSetter.kt +3 -1
- package/android/src/main/java/com/circlefin/programmablewalletrnsdk/pwcustom/RnLayoutProvider.kt +3 -1
- package/android/src/main/java/com/circlefin/programmablewalletrnsdk/pwcustom/RnViewSetterProvider.kt +3 -1
- package/android/src/newarch/ProgrammablewalletRnSdkSpec.kt +3 -1
- package/android/src/oldarch/ProgrammablewalletRnSdkSpec.kt +3 -1
- package/ios/Array+Extension.swift +3 -1
- package/ios/BridgeHelper.swift +3 -1
- package/ios/EventEmitter.swift +3 -1
- package/ios/ProgrammablewalletRnSdk.h +3 -1
- package/ios/ProgrammablewalletRnSdk.mm +6 -3
- package/ios/ReactNativeEventEmitter.m +3 -1
- package/ios/ReactNativeEventEmitter.swift +3 -1
- package/ios/RnWalletSdk+CustomizeAdapter.swift +3 -1
- package/ios/RnWalletSdk.swift +3 -1
- package/ios/TextConfig.swift +3 -1
- package/ios/TextKey.swift +3 -1
- package/ios/UIApplication+Extension.swift +3 -1
- package/ios/UIColor+Extension.swift +3 -1
- package/ios/UIView+Extension.swift +3 -1
- package/ios/programmablewallet-rn-sdk-Bridging-Header.h +3 -1
- package/lib/commonjs/NativeProgrammablewalletRnSdk.js +3 -1
- package/lib/commonjs/NativeProgrammablewalletRnSdk.js.map +1 -1
- package/lib/commonjs/ProgrammablewalletRnSdkModule.js +3 -1
- package/lib/commonjs/ProgrammablewalletRnSdkModule.js.map +1 -1
- package/lib/commonjs/WalletSdk.js +11 -7
- package/lib/commonjs/WalletSdk.js.map +1 -1
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/types.js +3 -1
- package/lib/commonjs/types.js.map +1 -1
- package/lib/module/NativeProgrammablewalletRnSdk.js +3 -1
- package/lib/module/NativeProgrammablewalletRnSdk.js.map +1 -1
- package/lib/module/ProgrammablewalletRnSdkModule.js +3 -1
- package/lib/module/ProgrammablewalletRnSdkModule.js.map +1 -1
- package/lib/module/WalletSdk.js +11 -7
- package/lib/module/WalletSdk.js.map +1 -1
- package/lib/module/index.js +3 -1
- package/lib/module/index.js.map +1 -1
- package/lib/module/types.js +3 -1
- package/lib/module/types.js.map +1 -1
- package/lib/typescript/src/NativeProgrammablewalletRnSdk.d.ts.map +1 -1
- package/lib/typescript/src/ProgrammablewalletRnSdkModule.d.ts.map +1 -1
- package/lib/typescript/src/WalletSdk.d.ts.map +1 -1
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/lib/typescript/src/types.d.ts.map +1 -1
- package/package.json +7 -17
- package/src/NativeProgrammablewalletRnSdk.ts +3 -1
- package/src/ProgrammablewalletRnSdkModule.ts +3 -1
- package/src/WalletSdk.ts +12 -7
- package/src/index.tsx +3 -1
- package/src/types.ts +3 -1
- package/LICENSE.md +0 -7
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
Copyright (c) 2024, Circle
|
|
1
|
+
Copyright (c) 2024, Circle Internet Financial, LTD. All rights reserved.
|
|
2
2
|
|
|
3
3
|
This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
4
4
|
you may not use this file except in compliance with the License. You may obtain a copy
|
package/LICENSE
ADDED
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
© 2024, Circle Internet Financial, LTD. All rights reserved.
|
|
179
|
+
|
|
180
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
181
|
+
you may not use this file except in compliance with the License.
|
|
182
|
+
You may obtain a copy of the License at
|
|
183
|
+
|
|
184
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
185
|
+
|
|
186
|
+
Unless required by applicable law or agreed to in writing, software
|
|
187
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
188
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
189
|
+
See the License for the specific language governing permissions and
|
|
190
|
+
limitations under the License.
|
package/android/build.gradle
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
// Copyright (c) 2024, Circle
|
|
1
|
+
// Copyright (c) 2024, Circle Internet Financial, LTD. All rights reserved.
|
|
2
|
+
//
|
|
3
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
2
4
|
//
|
|
3
5
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
6
|
// you may not use this file except in compliance with the License.
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
# Copyright (c) 2024, Circle
|
|
1
|
+
# Copyright (c) 2024, Circle Internet Financial, LTD. All rights reserved.
|
|
2
|
+
#
|
|
3
|
+
# SPDX-License-Identifier: Apache-2.0
|
|
2
4
|
#
|
|
3
5
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
6
|
# you may not use this file except in compliance with the License.
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
<!--
|
|
2
|
-
Copyright (c) 2024, Circle
|
|
2
|
+
Copyright (c) 2024, Circle Internet Financial, LTD. All rights reserved.
|
|
3
|
+
|
|
4
|
+
SPDX-License-Identifier: Apache-2.0
|
|
3
5
|
|
|
4
6
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
7
|
you may not use this file except in compliance with the License.
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
<!--
|
|
2
|
-
Copyright (c) 2024, Circle
|
|
2
|
+
Copyright (c) 2024, Circle Internet Financial, LTD. All rights reserved.
|
|
3
|
+
|
|
4
|
+
SPDX-License-Identifier: Apache-2.0
|
|
3
5
|
|
|
4
6
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
7
|
you may not use this file except in compliance with the License.
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
// Copyright (c) 2024, Circle
|
|
1
|
+
// Copyright (c) 2024, Circle Internet Financial, LTD. All rights reserved.
|
|
2
|
+
//
|
|
3
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
2
4
|
//
|
|
3
5
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
6
|
// you may not use this file except in compliance with the License.
|
package/android/src/main/java/com/circlefin/programmablewalletrnsdk/ProgrammablewalletRnSdkModule.kt
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
// Copyright (c) 2024, Circle
|
|
1
|
+
// Copyright (c) 2024, Circle Internet Financial, LTD. All rights reserved.
|
|
2
|
+
//
|
|
3
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
2
4
|
//
|
|
3
5
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
6
|
// you may not use this file except in compliance with the License.
|
|
@@ -154,7 +156,7 @@ class ProgrammablewalletRnSdkModule internal constructor(context: ReactApplicati
|
|
|
154
156
|
|
|
155
157
|
@ReactMethod
|
|
156
158
|
override fun getDeviceId(): String {
|
|
157
|
-
return WalletSdk.getDeviceId(reactContext) ?: "
|
|
159
|
+
return WalletSdk.getDeviceId(reactContext) ?: ""
|
|
158
160
|
}
|
|
159
161
|
@ReactMethod
|
|
160
162
|
override fun execute(
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
// Copyright (c) 2024, Circle
|
|
1
|
+
// Copyright (c) 2024, Circle Internet Financial, LTD. All rights reserved.
|
|
2
|
+
//
|
|
3
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
2
4
|
//
|
|
3
5
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
6
|
// you may not use this file except in compliance with the License.
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
// Copyright (c) 2024, Circle
|
|
1
|
+
// Copyright (c) 2024, Circle Internet Financial, LTD. All rights reserved.
|
|
2
|
+
//
|
|
3
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
2
4
|
//
|
|
3
5
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
6
|
// you may not use this file except in compliance with the License.
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
// Copyright (c) 2024, Circle
|
|
1
|
+
// Copyright (c) 2024, Circle Internet Financial, LTD. All rights reserved.
|
|
2
|
+
//
|
|
3
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
2
4
|
//
|
|
3
5
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
6
|
// you may not use this file except in compliance with the License.
|
package/android/src/main/java/com/circlefin/programmablewalletrnsdk/pwcustom/RnImageSetter.kt
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
// Copyright (c) 2024, Circle
|
|
1
|
+
// Copyright (c) 2024, Circle Internet Financial, LTD. All rights reserved.
|
|
2
|
+
//
|
|
3
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
2
4
|
//
|
|
3
5
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
6
|
// you may not use this file except in compliance with the License.
|
package/android/src/main/java/com/circlefin/programmablewalletrnsdk/pwcustom/RnLayoutProvider.kt
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
// Copyright (c) 2024, Circle
|
|
1
|
+
// Copyright (c) 2024, Circle Internet Financial, LTD. All rights reserved.
|
|
2
|
+
//
|
|
3
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
2
4
|
//
|
|
3
5
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
6
|
// you may not use this file except in compliance with the License.
|
package/android/src/main/java/com/circlefin/programmablewalletrnsdk/pwcustom/RnViewSetterProvider.kt
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
// Copyright (c) 2024, Circle
|
|
1
|
+
// Copyright (c) 2024, Circle Internet Financial, LTD. All rights reserved.
|
|
2
|
+
//
|
|
3
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
2
4
|
//
|
|
3
5
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
6
|
// you may not use this file except in compliance with the License.
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
// Copyright (c) 2024, Circle
|
|
1
|
+
// Copyright (c) 2024, Circle Internet Financial, LTD. All rights reserved.
|
|
2
|
+
//
|
|
3
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
2
4
|
//
|
|
3
5
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
6
|
// you may not use this file except in compliance with the License.
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
// Copyright (c) 2024, Circle
|
|
1
|
+
// Copyright (c) 2024, Circle Internet Financial, LTD. All rights reserved.
|
|
2
|
+
//
|
|
3
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
2
4
|
//
|
|
3
5
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
6
|
// you may not use this file except in compliance with the License.
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
// Copyright (c) 2024, Circle
|
|
1
|
+
// Copyright (c) 2024, Circle Internet Financial, LTD. All rights reserved.
|
|
2
|
+
//
|
|
3
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
2
4
|
//
|
|
3
5
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
6
|
// you may not use this file except in compliance with the License.
|
package/ios/BridgeHelper.swift
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
// Copyright (c) 2024, Circle
|
|
1
|
+
// Copyright (c) 2024, Circle Internet Financial, LTD. All rights reserved.
|
|
2
|
+
//
|
|
3
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
2
4
|
//
|
|
3
5
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
6
|
// you may not use this file except in compliance with the License.
|
package/ios/EventEmitter.swift
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
// Copyright (c) 2024, Circle
|
|
1
|
+
// Copyright (c) 2024, Circle Internet Financial, LTD. All rights reserved.
|
|
2
|
+
//
|
|
3
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
2
4
|
//
|
|
3
5
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
6
|
// you may not use this file except in compliance with the License.
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
// Copyright (c) 2024, Circle
|
|
1
|
+
// Copyright (c) 2024, Circle Internet Financial, LTD. All rights reserved.
|
|
2
|
+
//
|
|
3
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
2
4
|
//
|
|
3
5
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
6
|
// you may not use this file except in compliance with the License.
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
// Copyright (c) 2024, Circle
|
|
1
|
+
// Copyright (c) 2024, Circle Internet Financial, LTD. All rights reserved.
|
|
2
|
+
//
|
|
3
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
2
4
|
//
|
|
3
5
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
6
|
// you may not use this file except in compliance with the License.
|
|
@@ -118,12 +120,13 @@ RCT_EXPORT_METHOD(getDeviceId)
|
|
|
118
120
|
|
|
119
121
|
- (NSDictionary *)getConstants
|
|
120
122
|
{
|
|
121
|
-
return @{ @"sdkVersion": [sdk sdkVersion]
|
|
123
|
+
return @{ @"sdkVersion": [sdk sdkVersion],
|
|
124
|
+
@"deviceId": [sdk getDeviceId]};
|
|
122
125
|
}
|
|
123
126
|
- (NSDictionary *)constantsToExport
|
|
124
127
|
{
|
|
125
128
|
return @{ @"sdkVersion": [sdk sdkVersion],
|
|
126
|
-
@"deviceId": [sdk getDeviceId]
|
|
129
|
+
@"deviceId": [sdk getDeviceId]};
|
|
127
130
|
}
|
|
128
131
|
+ (BOOL)requiresMainQueueSetup
|
|
129
132
|
{
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
// Copyright (c) 2024, Circle
|
|
1
|
+
// Copyright (c) 2024, Circle Internet Financial, LTD. All rights reserved.
|
|
2
|
+
//
|
|
3
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
2
4
|
//
|
|
3
5
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
6
|
// you may not use this file except in compliance with the License.
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
// Copyright (c) 2024, Circle
|
|
1
|
+
// Copyright (c) 2024, Circle Internet Financial, LTD. All rights reserved.
|
|
2
|
+
//
|
|
3
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
2
4
|
//
|
|
3
5
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
6
|
// you may not use this file except in compliance with the License.
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
// Copyright (c) 2024, Circle
|
|
1
|
+
// Copyright (c) 2024, Circle Internet Financial, LTD. All rights reserved.
|
|
2
|
+
//
|
|
3
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
2
4
|
//
|
|
3
5
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
6
|
// you may not use this file except in compliance with the License.
|
package/ios/RnWalletSdk.swift
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
// Copyright (c) 2024, Circle
|
|
1
|
+
// Copyright (c) 2024, Circle Internet Financial, LTD. All rights reserved.
|
|
2
|
+
//
|
|
3
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
2
4
|
//
|
|
3
5
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
6
|
// you may not use this file except in compliance with the License.
|
package/ios/TextConfig.swift
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
// Copyright (c) 2024, Circle
|
|
1
|
+
// Copyright (c) 2024, Circle Internet Financial, LTD. All rights reserved.
|
|
2
|
+
//
|
|
3
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
2
4
|
//
|
|
3
5
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
6
|
// you may not use this file except in compliance with the License.
|
package/ios/TextKey.swift
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
// Copyright (c) 2024, Circle
|
|
1
|
+
// Copyright (c) 2024, Circle Internet Financial, LTD. All rights reserved.
|
|
2
|
+
//
|
|
3
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
2
4
|
//
|
|
3
5
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
6
|
// you may not use this file except in compliance with the License.
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
// Copyright (c) 2024, Circle
|
|
1
|
+
// Copyright (c) 2024, Circle Internet Financial, LTD. All rights reserved.
|
|
2
|
+
//
|
|
3
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
2
4
|
//
|
|
3
5
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
6
|
// you may not use this file except in compliance with the License.
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
// Copyright (c) 2024, Circle
|
|
1
|
+
// Copyright (c) 2024, Circle Internet Financial, LTD. All rights reserved.
|
|
2
|
+
//
|
|
3
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
2
4
|
//
|
|
3
5
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
6
|
// you may not use this file except in compliance with the License.
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
// Copyright (c) 2024, Circle
|
|
1
|
+
// Copyright (c) 2024, Circle Internet Financial, LTD. All rights reserved.
|
|
2
|
+
//
|
|
3
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
2
4
|
//
|
|
3
5
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
6
|
// you may not use this file except in compliance with the License.
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
// Copyright (c) 2024, Circle
|
|
1
|
+
// Copyright (c) 2024, Circle Internet Financial, LTD. All rights reserved.
|
|
2
|
+
//
|
|
3
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
2
4
|
//
|
|
3
5
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
6
|
// you may not use this file except in compliance with the License.
|
|
@@ -5,7 +5,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _reactNative = require("react-native");
|
|
8
|
-
// Copyright (c) 2024, Circle
|
|
8
|
+
// Copyright (c) 2024, Circle Internet Financial, LTD. All rights reserved.
|
|
9
|
+
//
|
|
10
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
9
11
|
//
|
|
10
12
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
11
13
|
// you may not use this file except in compliance with the License.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNative","require","_default","exports","default","TurboModuleRegistry","getEnforcing"],"sourceRoot":"../../src","sources":["NativeProgrammablewalletRnSdk.ts"],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_default","exports","default","TurboModuleRegistry","getEnforcing"],"sourceRoot":"../../src","sources":["NativeProgrammablewalletRnSdk.ts"],"mappings":";;;;;;AAgBA,IAAAA,YAAA,GAAAC,OAAA;AAhBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAmDeC,gCAAmB,CAACC,YAAY,CAC7C,yBACF,CAAC","ignoreList":[]}
|
|
@@ -5,7 +5,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _reactNative = require("react-native");
|
|
8
|
-
// Copyright (c) 2024, Circle
|
|
8
|
+
// Copyright (c) 2024, Circle Internet Financial, LTD. All rights reserved.
|
|
9
|
+
//
|
|
10
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
9
11
|
//
|
|
10
12
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
11
13
|
// you may not use this file except in compliance with the License.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNative","require","LINKING_ERROR","Platform","select","ios","default","isTurboModuleEnabled","global","__turboModuleProxy","programmablewalletRnSdkModule","NativeModules","ProgrammablewalletRnSdk","WalletSdkModule","Proxy","get","Error","_default","exports"],"sourceRoot":"../../src","sources":["ProgrammablewalletRnSdkModule.ts"],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"names":["_reactNative","require","LINKING_ERROR","Platform","select","ios","default","isTurboModuleEnabled","global","__turboModuleProxy","programmablewalletRnSdkModule","NativeModules","ProgrammablewalletRnSdk","WalletSdkModule","Proxy","get","Error","_default","exports"],"sourceRoot":"../../src","sources":["ProgrammablewalletRnSdkModule.ts"],"mappings":";;;;;;AAeA,IAAAA,YAAA,GAAAC,OAAA;AAfA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAGA,MAAMC,aAAa,GAChB,8FAA6F,GAC9FC,qBAAQ,CAACC,MAAM,CAAC;EAAEC,GAAG,EAAE,kCAAkC;EAAEC,OAAO,EAAE;AAAG,CAAC,CAAC,GACzE,sDAAsD,GACtD,+BAA+B;;AAEjC;AACA,MAAMC,oBAAoB,GAAGC,MAAM,CAACC,kBAAkB,IAAI,IAAI;AAE9D,MAAMC,6BAA6B,GAAGH,oBAAoB,GACtDN,OAAO,CAAC,iCAAiC,CAAC,CAACK,OAAO,GAClDK,0BAAa,CAACC,uBAAuB;AAEzC,MAAMC,eAAe,GAAGH,6BAA6B,GACjDA,6BAA6B,GAC7B,IAAII,KAAK,CACT,CAAC,CAAC,EACF;EACEC,GAAGA,CAAA,EAAG;IACJ,MAAM,IAAIC,KAAK,CAACd,aAAa,CAAC;EAChC;AACF,CACF,CAAC;AAAA,IAAAe,QAAA,GAAAC,OAAA,CAAAZ,OAAA,GACYO,eAAe","ignoreList":[]}
|
|
@@ -8,7 +8,9 @@ var _ProgrammablewalletRnSdkModule = _interopRequireDefault(require("./Programma
|
|
|
8
8
|
var _reactNative = require("react-native");
|
|
9
9
|
var _package = _interopRequireDefault(require("../package.json"));
|
|
10
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
-
// Copyright (c) 2024, Circle
|
|
11
|
+
// Copyright (c) 2024, Circle Internet Financial, LTD. All rights reserved.
|
|
12
|
+
//
|
|
13
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
12
14
|
//
|
|
13
15
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
14
16
|
// you may not use this file except in compliance with the License.
|
|
@@ -32,16 +34,20 @@ const emitter = _reactNative.Platform.OS === 'ios' ? new _reactNative.NativeEven
|
|
|
32
34
|
const EVENT_NAME_ON_EVENT = 'CirclePwOnEvent';
|
|
33
35
|
const EVENT_NAME_ON_SUCCESS = 'CirclePwOnSuccess';
|
|
34
36
|
const EVENT_NAME_ON_ERROR = 'CirclePwOnError';
|
|
37
|
+
const USER_AGENT_RN = 'Circle-Programmable-Wallet-SDK-RN';
|
|
35
38
|
const WalletSdk = exports.WalletSdk = (() => {
|
|
36
39
|
const constants = _ProgrammablewalletRnSdkModule.default.getConstants();
|
|
40
|
+
const defaultUserAgentRn = USER_AGENT_RN + '/' + _package.default.version;
|
|
37
41
|
return {
|
|
38
42
|
sdkVersion: {
|
|
39
43
|
native: constants.sdkVersion,
|
|
40
44
|
rn: _package.default.version
|
|
41
45
|
},
|
|
42
|
-
deviceId: _ProgrammablewalletRnSdkModule.default.getDeviceId() ?? constants.deviceId,
|
|
46
|
+
deviceId: _reactNative.Platform.OS === 'ios' ? constants.deviceId : _ProgrammablewalletRnSdkModule.default.getDeviceId() ?? constants.deviceId,
|
|
43
47
|
init(configuration) {
|
|
44
|
-
|
|
48
|
+
const promise = _ProgrammablewalletRnSdkModule.default.initSdk(configuration);
|
|
49
|
+
_ProgrammablewalletRnSdkModule.default.setCustomUserAgent(defaultUserAgentRn);
|
|
50
|
+
return promise;
|
|
45
51
|
},
|
|
46
52
|
setSecurityQuestions(securityQuestions) {
|
|
47
53
|
_ProgrammablewalletRnSdkModule.default.setSecurityQuestions(securityQuestions);
|
|
@@ -53,7 +59,7 @@ const WalletSdk = exports.WalletSdk = (() => {
|
|
|
53
59
|
emitter.removeAllListeners(EVENT_NAME_ON_EVENT);
|
|
54
60
|
},
|
|
55
61
|
getDeviceId() {
|
|
56
|
-
return _ProgrammablewalletRnSdkModule.default.getDeviceId();
|
|
62
|
+
return _reactNative.Platform.OS === 'ios' ? constants.deviceId : _ProgrammablewalletRnSdkModule.default.getDeviceId() ?? constants.deviceId;
|
|
57
63
|
},
|
|
58
64
|
execute(userToken, encryptionKey, challengeIds, successCallback, errorCallback) {
|
|
59
65
|
emitter.addListener(EVENT_NAME_ON_SUCCESS, successCallback);
|
|
@@ -126,7 +132,6 @@ const WalletSdk = exports.WalletSdk = (() => {
|
|
|
126
132
|
// @ts-ignore
|
|
127
133
|
map[key] = newConfigs;
|
|
128
134
|
}
|
|
129
|
-
console.log('IconTextConfigs_map:' + JSON.stringify(map));
|
|
130
135
|
_ProgrammablewalletRnSdkModule.default.setIconTextConfigsMap(map);
|
|
131
136
|
} catch (e) {
|
|
132
137
|
console.error(e);
|
|
@@ -151,7 +156,6 @@ const WalletSdk = exports.WalletSdk = (() => {
|
|
|
151
156
|
// @ts-ignore
|
|
152
157
|
map[key] = url;
|
|
153
158
|
}
|
|
154
|
-
console.log('Image_map:' + JSON.stringify(map));
|
|
155
159
|
_ProgrammablewalletRnSdkModule.default.setImageMap(map);
|
|
156
160
|
} catch (e) {
|
|
157
161
|
console.error(e);
|
|
@@ -164,7 +168,7 @@ const WalletSdk = exports.WalletSdk = (() => {
|
|
|
164
168
|
_ProgrammablewalletRnSdkModule.default.setDebugging(debugging);
|
|
165
169
|
},
|
|
166
170
|
setCustomUserAgent(userAgent) {
|
|
167
|
-
_ProgrammablewalletRnSdkModule.default.setCustomUserAgent(userAgent);
|
|
171
|
+
_ProgrammablewalletRnSdkModule.default.setCustomUserAgent(defaultUserAgentRn + ' | ' + userAgent);
|
|
168
172
|
},
|
|
169
173
|
setErrorStringMap(map) {
|
|
170
174
|
try {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_ProgrammablewalletRnSdkModule","_interopRequireDefault","require","_reactNative","_package","obj","__esModule","default","ReactNativeEventEmitter","NativeModules","WalletSdkModule","Error","emitter","Platform","OS","NativeEventEmitter","DeviceEventEmitter","EVENT_NAME_ON_EVENT","EVENT_NAME_ON_SUCCESS","EVENT_NAME_ON_ERROR","WalletSdk","exports","constants","getConstants","
|
|
1
|
+
{"version":3,"names":["_ProgrammablewalletRnSdkModule","_interopRequireDefault","require","_reactNative","_package","obj","__esModule","default","ReactNativeEventEmitter","NativeModules","WalletSdkModule","Error","emitter","Platform","OS","NativeEventEmitter","DeviceEventEmitter","EVENT_NAME_ON_EVENT","EVENT_NAME_ON_SUCCESS","EVENT_NAME_ON_ERROR","USER_AGENT_RN","WalletSdk","exports","constants","getConstants","defaultUserAgentRn","packageJson","version","sdkVersion","native","rn","deviceId","getDeviceId","init","configuration","promise","initSdk","setCustomUserAgent","setSecurityQuestions","securityQuestions","addListener","listener","removeAllListeners","execute","userToken","encryptionKey","challengeIds","successCallback","errorCallback","then","successResult","catch","e","finally","executeWithUserSecret","userSecret","setBiometricsPin","setDismissOnCallbackMap","map","Object","fromEntries","console","error","moveTaskToFront","moveRnTaskToFront","setTextConfigsMap","setIconTextConfigsMap","rawMap","key","configs","newConfigs","config","url","getImageUrl","image","push","textConfig","setTextConfigMap","setImageMap","value","setDateFormat","format","setDebugging","debugging","userAgent","setErrorStringMap","source","resolved","Image","resolveAssetSource","uri"],"sourceRoot":"../../src","sources":["WalletSdk.ts"],"mappings":";;;;;;AAeA,IAAAA,8BAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,IAAAC,YAAA,GAAAD,OAAA;AAwBA,IAAAE,QAAA,GAAAH,sBAAA,CAAAC,OAAA;AAAyC,SAAAD,uBAAAI,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAzCzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AA6BA,MAAM;EAAEG;AAAwB,CAAC,GAAGC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
|
-
{"version":3,"names":["_WalletSdk","require","_types"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"names":["_WalletSdk","require","_types"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAeA,IAAAA,UAAA,GAAAC,OAAA;AAEA,IAAAC,MAAA,GAAAD,OAAA","ignoreList":[]}
|
package/lib/commonjs/types.js
CHANGED
|
@@ -4,7 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.TextsKey = exports.TextKey = exports.TextConfig = exports.SecurityQuestion = exports.InputType = exports.ImageKey = exports.IconTextsKey = exports.IconTextConfig = exports.ExecuteResultType = exports.ExecuteResultStatus = exports.ExecuteEvent = exports.ErrorCode = exports.DateFormat = void 0;
|
|
7
|
-
// Copyright (c) 2024, Circle
|
|
7
|
+
// Copyright (c) 2024, Circle Internet Financial, LTD. All rights reserved.
|
|
8
|
+
//
|
|
9
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
8
10
|
//
|
|
9
11
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
10
12
|
// you may not use this file except in compliance with the License.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["TextsKey","exports","IconTextsKey","TextKey","ImageKey","DateFormat","ErrorCode","SecurityQuestion","constructor","title","inputType","IconTextConfig","image","textConfig","TextConfig","text","gradientColorsOrTextColor","font","Array","isArray","gradientColors","textColor","ExecuteResultStatus","ExecuteEvent","ExecuteResultType","InputType"],"sourceRoot":"../../src","sources":["types.ts"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA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AmB;AAAA;AAAA,IASnBC,YAAY,GAAAtB,OAAA,CAAAsB,YAAA,0BAAZA,YAAY;EAAZA,YAAY;EAAA,OAAZA,YAAY;AAAA;AAAA,IAIZC,iBAAiB,GAAAvB,OAAA,CAAAuB,iBAAA,0BAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAA,OAAjBA,iBAAiB;AAAA;AAAA,IAejBC,SAAS,GAAAxB,OAAA,CAAAwB,SAAA,0BAATA,SAAS;EAATA,SAAS;EAATA,SAAS;EAAA,OAATA,SAAS;AAAA","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["TextsKey","exports","IconTextsKey","TextKey","ImageKey","DateFormat","ErrorCode","SecurityQuestion","constructor","title","inputType","IconTextConfig","image","textConfig","TextConfig","text","gradientColorsOrTextColor","font","Array","isArray","gradientColors","textColor","ExecuteResultStatus","ExecuteEvent","ExecuteResultType","InputType"],"sourceRoot":"../../src","sources":["types.ts"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA,IA+CYA,QAAQ,GAAAC,OAAA,CAAAD,QAAA,0BAARA,QAAQ;EAARA,QAAQ;EAARA,QAAQ;EAARA,QAAQ;EAARA,QAAQ;EAARA,QAAQ;EAARA,QAAQ;EAARA,QAAQ;EAAA,OAARA,QAAQ;AAAA;AAAA,IAURE,YAAY,GAAAD,OAAA,CAAAC,YAAA,0BAAZA,YAAY;EAAZA,YAAY;EAAA,OAAZA,YAAY;AAAA;AAAA,IAIZC,OAAO,GAAAF,OAAA,CAAAE,OAAA,0BAAPA,OAAO;EAAPA,OAAO;EAAPA,OAAO;EAAPA,OAAO;EA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B;EAAA,OAAjBA,iBAAiB;AAAA;AAAA,IAejBC,SAAS,GAAAxB,OAAA,CAAAwB,SAAA,0BAATA,SAAS;EAATA,SAAS;EAATA,SAAS;EAAA,OAATA,SAAS;AAAA","ignoreList":[]}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
// Copyright (c) 2024, Circle
|
|
1
|
+
// Copyright (c) 2024, Circle Internet Financial, LTD. All rights reserved.
|
|
2
|
+
//
|
|
3
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
2
4
|
//
|
|
3
5
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
6
|
// you may not use this file except in compliance with the License.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["TurboModuleRegistry","getEnforcing"],"sourceRoot":"../../src","sources":["NativeProgrammablewalletRnSdk.ts"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,mBAAmB,QAAQ,cAAc;AAiDlD,eAAeA,mBAAmB,CAACC,YAAY,CAC7C,yBACF,CAAC","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["TurboModuleRegistry","getEnforcing"],"sourceRoot":"../../src","sources":["NativeProgrammablewalletRnSdk.ts"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,mBAAmB,QAAQ,cAAc;AAiDlD,eAAeA,mBAAmB,CAACC,YAAY,CAC7C,yBACF,CAAC","ignoreList":[]}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
// Copyright (c) 2024, Circle
|
|
1
|
+
// Copyright (c) 2024, Circle Internet Financial, LTD. All rights reserved.
|
|
2
|
+
//
|
|
3
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
2
4
|
//
|
|
3
5
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
6
|
// you may not use this file except in compliance with the License.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["NativeModules","Platform","LINKING_ERROR","select","ios","default","isTurboModuleEnabled","global","__turboModuleProxy","programmablewalletRnSdkModule","require","ProgrammablewalletRnSdk","WalletSdkModule","Proxy","get","Error"],"sourceRoot":"../../src","sources":["ProgrammablewalletRnSdkModule.ts"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASA,aAAa,EAAEC,QAAQ,QAAQ,cAAc;AAEtD,MAAMC,aAAa,GAChB,8FAA6F,GAC9FD,QAAQ,CAACE,MAAM,CAAC;EAAEC,GAAG,EAAE,kCAAkC;EAAEC,OAAO,EAAE;AAAG,CAAC,CAAC,GACzE,sDAAsD,GACtD,+BAA+B;;AAEjC;AACA,MAAMC,oBAAoB,GAAGC,MAAM,CAACC,kBAAkB,IAAI,IAAI;AAE9D,MAAMC,6BAA6B,GAAGH,oBAAoB,GACtDI,OAAO,CAAC,iCAAiC,CAAC,CAACL,OAAO,GAClDL,aAAa,CAACW,uBAAuB;AAEzC,MAAMC,eAAe,GAAGH,6BAA6B,GACjDA,6BAA6B,GAC7B,IAAII,KAAK,CACT,CAAC,CAAC,EACF;EACEC,GAAGA,CAAA,EAAG;IACJ,MAAM,IAAIC,KAAK,CAACb,aAAa,CAAC;EAChC;AACF,CACF,CAAC;AACH,eAAeU,eAAe","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["NativeModules","Platform","LINKING_ERROR","select","ios","default","isTurboModuleEnabled","global","__turboModuleProxy","programmablewalletRnSdkModule","require","ProgrammablewalletRnSdk","WalletSdkModule","Proxy","get","Error"],"sourceRoot":"../../src","sources":["ProgrammablewalletRnSdkModule.ts"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASA,aAAa,EAAEC,QAAQ,QAAQ,cAAc;AAEtD,MAAMC,aAAa,GAChB,8FAA6F,GAC9FD,QAAQ,CAACE,MAAM,CAAC;EAAEC,GAAG,EAAE,kCAAkC;EAAEC,OAAO,EAAE;AAAG,CAAC,CAAC,GACzE,sDAAsD,GACtD,+BAA+B;;AAEjC;AACA,MAAMC,oBAAoB,GAAGC,MAAM,CAACC,kBAAkB,IAAI,IAAI;AAE9D,MAAMC,6BAA6B,GAAGH,oBAAoB,GACtDI,OAAO,CAAC,iCAAiC,CAAC,CAACL,OAAO,GAClDL,aAAa,CAACW,uBAAuB;AAEzC,MAAMC,eAAe,GAAGH,6BAA6B,GACjDA,6BAA6B,GAC7B,IAAII,KAAK,CACT,CAAC,CAAC,EACF;EACEC,GAAGA,CAAA,EAAG;IACJ,MAAM,IAAIC,KAAK,CAACb,aAAa,CAAC;EAChC;AACF,CACF,CAAC;AACH,eAAeU,eAAe","ignoreList":[]}
|
package/lib/module/WalletSdk.js
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
// Copyright (c) 2024, Circle
|
|
1
|
+
// Copyright (c) 2024, Circle Internet Financial, LTD. All rights reserved.
|
|
2
|
+
//
|
|
3
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
2
4
|
//
|
|
3
5
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
6
|
// you may not use this file except in compliance with the License.
|
|
@@ -24,16 +26,20 @@ const emitter = Platform.OS === 'ios' ? new NativeEventEmitter(ReactNativeEventE
|
|
|
24
26
|
const EVENT_NAME_ON_EVENT = 'CirclePwOnEvent';
|
|
25
27
|
const EVENT_NAME_ON_SUCCESS = 'CirclePwOnSuccess';
|
|
26
28
|
const EVENT_NAME_ON_ERROR = 'CirclePwOnError';
|
|
29
|
+
const USER_AGENT_RN = 'Circle-Programmable-Wallet-SDK-RN';
|
|
27
30
|
export const WalletSdk = (() => {
|
|
28
31
|
const constants = WalletSdkModule.getConstants();
|
|
32
|
+
const defaultUserAgentRn = USER_AGENT_RN + '/' + packageJson.version;
|
|
29
33
|
return {
|
|
30
34
|
sdkVersion: {
|
|
31
35
|
native: constants.sdkVersion,
|
|
32
36
|
rn: packageJson.version
|
|
33
37
|
},
|
|
34
|
-
deviceId: WalletSdkModule.getDeviceId() ?? constants.deviceId,
|
|
38
|
+
deviceId: Platform.OS === 'ios' ? constants.deviceId : WalletSdkModule.getDeviceId() ?? constants.deviceId,
|
|
35
39
|
init(configuration) {
|
|
36
|
-
|
|
40
|
+
const promise = WalletSdkModule.initSdk(configuration);
|
|
41
|
+
WalletSdkModule.setCustomUserAgent(defaultUserAgentRn);
|
|
42
|
+
return promise;
|
|
37
43
|
},
|
|
38
44
|
setSecurityQuestions(securityQuestions) {
|
|
39
45
|
WalletSdkModule.setSecurityQuestions(securityQuestions);
|
|
@@ -45,7 +51,7 @@ export const WalletSdk = (() => {
|
|
|
45
51
|
emitter.removeAllListeners(EVENT_NAME_ON_EVENT);
|
|
46
52
|
},
|
|
47
53
|
getDeviceId() {
|
|
48
|
-
return WalletSdkModule.getDeviceId();
|
|
54
|
+
return Platform.OS === 'ios' ? constants.deviceId : WalletSdkModule.getDeviceId() ?? constants.deviceId;
|
|
49
55
|
},
|
|
50
56
|
execute(userToken, encryptionKey, challengeIds, successCallback, errorCallback) {
|
|
51
57
|
emitter.addListener(EVENT_NAME_ON_SUCCESS, successCallback);
|
|
@@ -118,7 +124,6 @@ export const WalletSdk = (() => {
|
|
|
118
124
|
// @ts-ignore
|
|
119
125
|
map[key] = newConfigs;
|
|
120
126
|
}
|
|
121
|
-
console.log('IconTextConfigs_map:' + JSON.stringify(map));
|
|
122
127
|
WalletSdkModule.setIconTextConfigsMap(map);
|
|
123
128
|
} catch (e) {
|
|
124
129
|
console.error(e);
|
|
@@ -143,7 +148,6 @@ export const WalletSdk = (() => {
|
|
|
143
148
|
// @ts-ignore
|
|
144
149
|
map[key] = url;
|
|
145
150
|
}
|
|
146
|
-
console.log('Image_map:' + JSON.stringify(map));
|
|
147
151
|
WalletSdkModule.setImageMap(map);
|
|
148
152
|
} catch (e) {
|
|
149
153
|
console.error(e);
|
|
@@ -156,7 +160,7 @@ export const WalletSdk = (() => {
|
|
|
156
160
|
WalletSdkModule.setDebugging(debugging);
|
|
157
161
|
},
|
|
158
162
|
setCustomUserAgent(userAgent) {
|
|
159
|
-
WalletSdkModule.setCustomUserAgent(userAgent);
|
|
163
|
+
WalletSdkModule.setCustomUserAgent(defaultUserAgentRn + ' | ' + userAgent);
|
|
160
164
|
},
|
|
161
165
|
setErrorStringMap(map) {
|
|
162
166
|
try {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["WalletSdkModule","DeviceEventEmitter","Image","NativeEventEmitter","NativeModules","Platform","packageJson","ReactNativeEventEmitter","Error","emitter","OS","EVENT_NAME_ON_EVENT","EVENT_NAME_ON_SUCCESS","EVENT_NAME_ON_ERROR","WalletSdk","constants","getConstants","sdkVersion","native","rn","
|
|
1
|
+
{"version":3,"names":["WalletSdkModule","DeviceEventEmitter","Image","NativeEventEmitter","NativeModules","Platform","packageJson","ReactNativeEventEmitter","Error","emitter","OS","EVENT_NAME_ON_EVENT","EVENT_NAME_ON_SUCCESS","EVENT_NAME_ON_ERROR","USER_AGENT_RN","WalletSdk","constants","getConstants","defaultUserAgentRn","version","sdkVersion","native","rn","deviceId","getDeviceId","init","configuration","promise","initSdk","setCustomUserAgent","setSecurityQuestions","securityQuestions","addListener","listener","removeAllListeners","execute","userToken","encryptionKey","challengeIds","successCallback","errorCallback","then","successResult","catch","e","finally","executeWithUserSecret","userSecret","setBiometricsPin","setDismissOnCallbackMap","map","Object","fromEntries","console","error","moveTaskToFront","moveRnTaskToFront","setTextConfigsMap","setIconTextConfigsMap","rawMap","key","configs","newConfigs","config","url","getImageUrl","image","push","textConfig","setTextConfigMap","setImageMap","value","setDateFormat","format","setDebugging","debugging","userAgent","setErrorStringMap","source","resolved","resolveAssetSource","uri"],"sourceRoot":"../../src","sources":["WalletSdk.ts"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;A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AAI,CAACA,QAAQ,CAACE,GAAG,EAAE;IAC9B,OAAO,IAAI;EACb;EACA;EACA,OAAOF,QAAQ,CAACE,GAAG;AACrB","ignoreList":[]}
|
package/lib/module/index.js
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
// Copyright (c) 2024, Circle
|
|
1
|
+
// Copyright (c) 2024, Circle Internet Financial, LTD. All rights reserved.
|
|
2
|
+
//
|
|
3
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
2
4
|
//
|
|
3
5
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
6
|
// you may not use this file except in compliance with the License.
|
package/lib/module/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["WalletSdk","InputType","ErrorCode","IconTextConfig","IconTextsKey","ImageKey","TextConfig","TextsKey","TextKey","SecurityQuestion","DateFormat"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASA,SAAS,QAAQ,aAAa;AAEvC,SACEC,SAAS,EACTC,SAAS,EACTC,cAAc,EACdC,YAAY,EACZC,QAAQ,EACRC,UAAU,EACVC,QAAQ,EACRC,OAAO,EACPC,gBAAgB,EAChBC,UAAU,QACL,SAAS","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["WalletSdk","InputType","ErrorCode","IconTextConfig","IconTextsKey","ImageKey","TextConfig","TextsKey","TextKey","SecurityQuestion","DateFormat"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASA,SAAS,QAAQ,aAAa;AAEvC,SACEC,SAAS,EACTC,SAAS,EACTC,cAAc,EACdC,YAAY,EACZC,QAAQ,EACRC,UAAU,EACVC,QAAQ,EACRC,OAAO,EACPC,gBAAgB,EAChBC,UAAU,QACL,SAAS","ignoreList":[]}
|
package/lib/module/types.js
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
// Copyright (c) 2024, Circle
|
|
1
|
+
// Copyright (c) 2024, Circle Internet Financial, LTD. All rights reserved.
|
|
2
|
+
//
|
|
3
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
2
4
|
//
|
|
3
5
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
6
|
// you may not use this file except in compliance with the License.
|
package/lib/module/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["TextsKey","IconTextsKey","TextKey","ImageKey","DateFormat","ErrorCode","SecurityQuestion","constructor","title","inputType","IconTextConfig","image","textConfig","TextConfig","text","gradientColorsOrTextColor","font","Array","isArray","gradientColors","textColor","ExecuteResultStatus","ExecuteEvent","ExecuteResultType","InputType"],"sourceRoot":"../../src","sources":["types.ts"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AA+CA,WAAYA,QAAQ,0BAARA,QAAQ;EAARA,QAAQ;EAARA,QAAQ;EAARA,QAAQ;EAARA,QAAQ;EAARA,QAAQ;EAARA,QAAQ;EAARA,QAAQ;EAAA,OAARA,QAAQ;AAAA;AAUpB,WAAYC,YAAY,0BAAZA,YAAY;EAAZA,YAAY;EAAA,OAAZA,YAAY;AAAA;AAIxB,WAAYC,OAAO,0BAAPA,OAAO;EAAPA,OAAO;EAAPA,OAAO;EAAPA,OAAO;EAAPA,OAAO;EAAPA,OAAO;EAAPA,OAAO;EAAPA,OAAO;EAAPA,OAAO;EAAPA,OAAO;EAAPA,OAAO;EAAPA,OAAO;EAAPA,OAAO;EAAPA,OAAO;EAAPA,OAAO;EAAPA,OAAO;EAAPA,OAAO;EAAPA,OAAO;EAAPA,OAAO;EAAPA,OAAO;EAAPA,OAAO;EAAPA,OAAO;EAAPA,OAAO;EAAPA,OAAO;EAAPA,OAAO;EAAPA,OAAO;EAAPA,OAAO;EAAP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ACH,yBAAyB,CAAC,EAAC;MAC1C,IAAI,CAACI,cAAc,GAAGJ,yBAAyB;IACjD,CAAC,MAAM;MACL,IAAI,CAACK,SAAS,GAAGL,yBAAyB;IAC5C;IACA,IAAI,CAACC,IAAI,GAAGA,IAAI;EAClB;AACF;AAEA,WAAYK,mBAAmB,0BAAnBA,mBAAmB;EAAnBA,mBAAmB;EAAnBA,mBAAmB;EAAnBA,mBAAmB;EAAnBA,mBAAmB;EAAnBA,mBAAmB;EAAnBA,mBAAmB;EAAA,OAAnBA,mBAAmB;AAAA;AAS/B,WAAYC,YAAY,0BAAZA,YAAY;EAAZA,YAAY;EAAA,OAAZA,YAAY;AAAA;AAIxB,WAAYC,iBAAiB,0BAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAA,OAAjBA,iBAAiB;AAAA;AAe7B,WAAYC,SAAS,0BAATA,SAAS;EAATA,SAAS;EAATA,SAAS;EAAA,OAATA,SAAS;AAAA","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["TextsKey","IconTextsKey","TextKey","ImageKey","DateFormat","ErrorCode","SecurityQuestion","constructor","title","inputType","IconTextConfig","image","textConfig","TextConfig","text","gradientColorsOrTextColor","font","Array","isArray","gradientColors","textColor","ExecuteResultStatus","ExecuteEvent","ExecuteResultType","InputType"],"sourceRoot":"../../src","sources":["types.ts"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AA+CA,WAAYA,QAAQ,0BAARA,QAAQ;EAARA,QAAQ;EAARA,QAAQ;EAARA,QAAQ;EAARA,QAAQ;EAARA,QAAQ;EAARA,QAAQ;EAARA,QAAQ;EAAA,OA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ATA,SAAS;AAAA","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NativeProgrammablewalletRnSdk.d.ts","sourceRoot":"","sources":["../../../src/NativeProgrammablewalletRnSdk.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"NativeProgrammablewalletRnSdk.d.ts","sourceRoot":"","sources":["../../../src/NativeProgrammablewalletRnSdk.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAA;AAG/C,MAAM,WAAW,IAAK,SAAQ,WAAW;IACvC,YAAY,IAAI;QAAE,UAAU,EAAE,MAAM,CAAA;KAAE,CAAC;IAEvC,OAAO,CAAC,aAAa,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAEhD,oBAAoB,CAAC,SAAS,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;IAEhD,OAAO,CACL,SAAS,EAAE,MAAM,EACjB,aAAa,EAAE,MAAM,EACrB,YAAY,EAAE,MAAM,EAAE,GACrB,OAAO,CAAC,MAAM,CAAC,CAAC;IAEnB,qBAAqB,CACnB,SAAS,EAAE,MAAM,EACjB,aAAa,EAAE,MAAM,EACrB,UAAU,EAAE,MAAM,EAClB,YAAY,EAAE,MAAM,EAAE,GACrB,OAAO,CAAC,MAAM,CAAC,CAAC;IAEnB,WAAW,IAAI,MAAM,CAAC;IAEtB,gBAAgB,CAAC,SAAS,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAE5E,uBAAuB,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IAE3C,eAAe,IAAI,IAAI,CAAC;IAExB,iBAAiB,IAAI,IAAI,CAAC;IAE1B,iBAAiB,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IAErC,qBAAqB,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IAEzC,gBAAgB,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IAEpC,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IAE/B,aAAa,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IAEpC,YAAY,CAAC,SAAS,EAAE,OAAO,GAAG,IAAI,CAAC;IAEvC,kBAAkB,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IAE5C,iBAAiB,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;CACtC;;AAED,wBAEC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProgrammablewalletRnSdkModule.d.ts","sourceRoot":"","sources":["../../../src/ProgrammablewalletRnSdkModule.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ProgrammablewalletRnSdkModule.d.ts","sourceRoot":"","sources":["../../../src/ProgrammablewalletRnSdkModule.ts"],"names":[],"mappings":"AA8BA,QAAA,MAAM,eAAe,KASlB,CAAA;AACH,eAAe,eAAe,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WalletSdk.d.ts","sourceRoot":"","sources":["../../../src/WalletSdk.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"WalletSdk.d.ts","sourceRoot":"","sources":["../../../src/WalletSdk.ts"],"names":[],"mappings":"AAyBA,OAAO,EAOL,KAAK,UAAU,EAQhB,MAAM,SAAS,CAAA;AAiBhB,eAAO,MAAM,SAAS,YAkKlB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.tsx"],"names":[],"mappings":"AAeA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AACvC,YAAY,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AACpC,OAAO,EACL,SAAS,EACT,SAAS,EACT,cAAc,EACd,YAAY,EACZ,QAAQ,EACR,UAAU,EACV,QAAQ,EACR,OAAO,EACP,gBAAgB,EAChB,UAAU,EACX,MAAM,SAAS,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/types.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAA;AAE7E,MAAM,WAAW,UAAU;IACzB,UAAU,EAAE,UAAU,CAAC;IACvB,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,CAAC,aAAa,EAAE,aAAa,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACtD,oBAAoB,EAAE,CAAC,iBAAiB,EAAE,gBAAgB,EAAE,KAAK,IAAI,CAAC;IACtE,WAAW,EAAE,CAAC,QAAQ,EAAE,aAAa,KAAK,IAAI,CAAC;IAC/C,kBAAkB,EAAE,MAAM,IAAI,CAAC;IAC/B,WAAW,EAAE,MAAM,MAAM,CAAC;IAC1B,OAAO,EAAE,CACP,SAAS,EAAE,MAAM,EACjB,aAAa,EAAE,MAAM,EACrB,YAAY,EAAE,MAAM,EAAE,EACtB,eAAe,EAAE,eAAe,EAChC,aAAa,EAAE,aAAa,KACzB,IAAI,CAAC;IACV,qBAAqB,EAAE,CACrB,SAAS,EAAE,MAAM,EACjB,aAAa,EAAE,MAAM,EACrB,UAAU,EAAE,MAAM,EAClB,YAAY,EAAE,MAAM,EAAE,EACtB,eAAe,EAAE,eAAe,EAChC,aAAa,EAAE,aAAa,KACzB,IAAI,CAAC;IACV,gBAAgB,EAAE,CAChB,SAAS,EAAE,MAAM,EACjB,aAAa,EAAE,MAAM,EACrB,eAAe,EAAE,eAAe,EAChC,aAAa,EAAE,aAAa,KACzB,IAAI,CAAC;IACV,uBA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BAAa,UAAU;IACrB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,cAAc,CAAC,EAAE,MAAM,EAAE,CAAA;IACzB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,IAAI,CAAC,EAAE,MAAM,CAAA;gBAEX,IAAI,EAAE,MAAM,EACZ,yBAAyB,EAAE,MAAM,EAAE,GAAG,MAAM,EAC5C,IAAI,CAAC,EAAE,MAAM;CAUhB;AAED,oBAAY,mBAAmB;IAC7B,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,WAAW,gBAAgB;IAC3B,QAAQ,aAAa;IACrB,MAAM,WAAW;IACjB,OAAO,YAAY;CACpB;AAED,oBAAY,YAAY;IACtB,SAAS,cAAc;CACxB;AAED,oBAAY,iBAAiB;IAC3B,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,WAAW,gBAAgB;IAC3B,sBAAsB,2BAA2B;IACjD,aAAa,kBAAkB;IAC/B,kBAAkB,uBAAuB;IACzC,sBAAsB,2BAA2B;IACjD,kBAAkB,uBAAuB;IACzC,kBAAkB,uBAAuB;IACzC,YAAY,iBAAiB;IAC7B,cAAc,mBAAmB;IACjC,kBAAkB,uBAAuB;CAC1C;AAED,oBAAY,SAAS;IACnB,IAAI,SAAS;IACb,UAAU,eAAe;CAC1B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@circle-fin/w3s-pw-react-native-sdk",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.6",
|
|
4
4
|
"description": "React Native SDK for Circle Programmable Wallet",
|
|
5
5
|
"main": "lib/commonjs/index",
|
|
6
6
|
"module": "lib/module/index",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"android",
|
|
14
14
|
"ios",
|
|
15
15
|
"*.podspec",
|
|
16
|
-
"COPYRIGHT
|
|
16
|
+
"COPYRIGHT",
|
|
17
17
|
"!ios/build",
|
|
18
18
|
"!android/build",
|
|
19
19
|
"!android/gradle",
|
|
@@ -28,14 +28,13 @@
|
|
|
28
28
|
"scripts": {
|
|
29
29
|
"example": "yarn workspace @circle-fin/w3s-pw-react-native-sdk-example",
|
|
30
30
|
"test": "jest",
|
|
31
|
-
"npm": "npm",
|
|
32
31
|
"typecheck": "tsc --noEmit",
|
|
33
32
|
"lint": "eslint \"**/*.{js,ts,tsx}\"",
|
|
34
33
|
"clean": "del-cli android/build example/android/build example/android/app/build example/ios/build lib",
|
|
35
34
|
"prepare": "bob build",
|
|
36
35
|
"release": "release-it",
|
|
37
36
|
"pod-install-new": "RCT_NEW_ARCH_ENABLED=1 bundle exec pod install",
|
|
38
|
-
"publish:sdk": "npm publish"
|
|
37
|
+
"publish:sdk": "npm publish --registry https://registry.npmjs.org/"
|
|
39
38
|
},
|
|
40
39
|
"keywords": [
|
|
41
40
|
"circle",
|
|
@@ -49,14 +48,13 @@
|
|
|
49
48
|
"ios",
|
|
50
49
|
"android"
|
|
51
50
|
],
|
|
52
|
-
"author": "Circle
|
|
51
|
+
"author": "Circle Internet Financial, LTD.",
|
|
53
52
|
"license": "Apache-2.0",
|
|
54
53
|
"bugs": {
|
|
55
54
|
"url": "https://github.com/circlefin/w3s-react-native-sdk/issues"
|
|
56
55
|
},
|
|
57
56
|
"homepage": "https://github.com/circlefin/w3s-react-native-sdk#readme",
|
|
58
57
|
"publishConfig": {
|
|
59
|
-
"access": "public",
|
|
60
58
|
"registry": "https://registry.npmjs.org/"
|
|
61
59
|
},
|
|
62
60
|
"devDependencies": {
|
|
@@ -108,26 +106,18 @@
|
|
|
108
106
|
"release-it": {
|
|
109
107
|
"git": {
|
|
110
108
|
"commitMessage": "chore: release ${version}",
|
|
111
|
-
"tagName": "v${version}"
|
|
112
|
-
"requireCleanWorkingDir": false,
|
|
113
|
-
"push": false,
|
|
114
|
-
"commit": false,
|
|
115
|
-
"tag": false
|
|
109
|
+
"tagName": "v${version}"
|
|
116
110
|
},
|
|
117
111
|
"npm": {
|
|
118
|
-
"publish":
|
|
119
|
-
"skipChecks": true
|
|
112
|
+
"publish": true
|
|
120
113
|
},
|
|
121
114
|
"github": {
|
|
122
|
-
"release":
|
|
115
|
+
"release": true
|
|
123
116
|
},
|
|
124
117
|
"plugins": {
|
|
125
118
|
"@release-it/conventional-changelog": {
|
|
126
119
|
"preset": "angular"
|
|
127
120
|
}
|
|
128
|
-
},
|
|
129
|
-
"publishConfig": {
|
|
130
|
-
"registry": "https://registry.npmjs.org"
|
|
131
121
|
}
|
|
132
122
|
},
|
|
133
123
|
"eslintConfig": {
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
// Copyright (c) 2024, Circle
|
|
1
|
+
// Copyright (c) 2024, Circle Internet Financial, LTD. All rights reserved.
|
|
2
|
+
//
|
|
3
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
2
4
|
//
|
|
3
5
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
6
|
// you may not use this file except in compliance with the License.
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
// Copyright (c) 2024, Circle
|
|
1
|
+
// Copyright (c) 2024, Circle Internet Financial, LTD. All rights reserved.
|
|
2
|
+
//
|
|
3
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
2
4
|
//
|
|
3
5
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
6
|
// you may not use this file except in compliance with the License.
|
package/src/WalletSdk.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
// Copyright (c) 2024, Circle
|
|
1
|
+
// Copyright (c) 2024, Circle Internet Financial, LTD. All rights reserved.
|
|
2
|
+
//
|
|
3
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
2
4
|
//
|
|
3
5
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
6
|
// you may not use this file except in compliance with the License.
|
|
@@ -51,16 +53,21 @@ const emitter =
|
|
|
51
53
|
const EVENT_NAME_ON_EVENT = 'CirclePwOnEvent'
|
|
52
54
|
const EVENT_NAME_ON_SUCCESS = 'CirclePwOnSuccess'
|
|
53
55
|
const EVENT_NAME_ON_ERROR = 'CirclePwOnError'
|
|
56
|
+
const USER_AGENT_RN = 'Circle-Programmable-Wallet-SDK-RN'
|
|
57
|
+
|
|
54
58
|
export const WalletSdk = ((): IWalletSdk => {
|
|
55
59
|
const constants = WalletSdkModule.getConstants()
|
|
60
|
+
const defaultUserAgentRn = USER_AGENT_RN + '/' + packageJson.version
|
|
56
61
|
return {
|
|
57
62
|
sdkVersion: {
|
|
58
63
|
native: constants.sdkVersion,
|
|
59
64
|
rn: packageJson.version,
|
|
60
65
|
},
|
|
61
|
-
deviceId: WalletSdkModule.getDeviceId() ?? constants.deviceId,
|
|
66
|
+
deviceId: Platform.OS === 'ios' ? constants.deviceId : (WalletSdkModule.getDeviceId() ?? constants.deviceId),
|
|
62
67
|
init(configuration: Configuration): Promise<void> {
|
|
63
|
-
|
|
68
|
+
const promise = WalletSdkModule.initSdk(configuration)
|
|
69
|
+
WalletSdkModule.setCustomUserAgent(defaultUserAgentRn)
|
|
70
|
+
return promise
|
|
64
71
|
},
|
|
65
72
|
setSecurityQuestions(securityQuestions: SecurityQuestion[]): void {
|
|
66
73
|
WalletSdkModule.setSecurityQuestions(securityQuestions)
|
|
@@ -72,7 +79,7 @@ export const WalletSdk = ((): IWalletSdk => {
|
|
|
72
79
|
emitter.removeAllListeners(EVENT_NAME_ON_EVENT)
|
|
73
80
|
},
|
|
74
81
|
getDeviceId(): string {
|
|
75
|
-
return WalletSdkModule.getDeviceId()
|
|
82
|
+
return Platform.OS === 'ios' ? constants.deviceId : (WalletSdkModule.getDeviceId() ?? constants.deviceId)
|
|
76
83
|
},
|
|
77
84
|
execute(
|
|
78
85
|
userToken: string,
|
|
@@ -164,7 +171,6 @@ export const WalletSdk = ((): IWalletSdk => {
|
|
|
164
171
|
// @ts-ignore
|
|
165
172
|
map[key] = newConfigs
|
|
166
173
|
}
|
|
167
|
-
console.log('IconTextConfigs_map:' + JSON.stringify(map))
|
|
168
174
|
WalletSdkModule.setIconTextConfigsMap(map)
|
|
169
175
|
} catch (e) {
|
|
170
176
|
console.error(e)
|
|
@@ -189,7 +195,6 @@ export const WalletSdk = ((): IWalletSdk => {
|
|
|
189
195
|
// @ts-ignore
|
|
190
196
|
map[key] = url
|
|
191
197
|
}
|
|
192
|
-
console.log('Image_map:' + JSON.stringify(map))
|
|
193
198
|
WalletSdkModule.setImageMap(map)
|
|
194
199
|
} catch (e) {
|
|
195
200
|
console.error(e)
|
|
@@ -202,7 +207,7 @@ export const WalletSdk = ((): IWalletSdk => {
|
|
|
202
207
|
WalletSdkModule.setDebugging(debugging)
|
|
203
208
|
},
|
|
204
209
|
setCustomUserAgent(userAgent: string): void {
|
|
205
|
-
WalletSdkModule.setCustomUserAgent(userAgent)
|
|
210
|
+
WalletSdkModule.setCustomUserAgent(defaultUserAgentRn + ' | ' + userAgent)
|
|
206
211
|
},
|
|
207
212
|
setErrorStringMap(map: Map<ErrorCode, string>): void {
|
|
208
213
|
try {
|
package/src/index.tsx
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
// Copyright (c) 2024, Circle
|
|
1
|
+
// Copyright (c) 2024, Circle Internet Financial, LTD. All rights reserved.
|
|
2
|
+
//
|
|
3
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
2
4
|
//
|
|
3
5
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
6
|
// you may not use this file except in compliance with the License.
|
package/src/types.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
// Copyright (c) 2024, Circle
|
|
1
|
+
// Copyright (c) 2024, Circle Internet Financial, LTD. All rights reserved.
|
|
2
|
+
//
|
|
3
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
2
4
|
//
|
|
3
5
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
6
|
// you may not use this file except in compliance with the License.
|
package/LICENSE.md
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
# Copyright (c) 2024, Circle Technologies, LLC. All rights reserved
|
|
2
|
-
|
|
3
|
-
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
|
|
4
|
-
|
|
5
|
-
[Apache 2.0 License](http://www.apache.org/licenses/LICENSE-2.0)
|
|
6
|
-
|
|
7
|
-
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
|