@getpara/react-native-wallet 1.0.1 → 1.0.2-dev.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/android/src/main/java/com/para/reactnativewallet/ParaSignerPackage.java +1 -1
- package/dist/AsyncStorage.js +0 -1
- package/dist/KeychainStorage.js +0 -1
- package/dist/config.js +3 -4
- package/dist/react-native/ParaMobile.d.ts +2 -0
- package/dist/react-native/ParaMobile.js +6 -0
- package/dist/react-native/ReactNativeUtils.js +0 -1
- package/ios/ParaSignerModule.h +1 -1
- package/package.json +2 -3
- package/src/AsyncStorage.ts +0 -2
- package/src/KeychainStorage.ts +0 -2
- package/src/config.ts +3 -5
- package/src/react-native/ParaMobile.ts +8 -0
- package/src/react-native/ReactNativeUtils.ts +0 -2
- /package/{capsule-react-native-wallet.podspec → para-react-native-wallet.podspec} +0 -0
|
@@ -8,7 +8,7 @@ import java.util.ArrayList;
|
|
|
8
8
|
import java.util.Collections;
|
|
9
9
|
import java.util.List;
|
|
10
10
|
|
|
11
|
-
public class
|
|
11
|
+
public class ParaSignerPackage implements ReactPackage {
|
|
12
12
|
|
|
13
13
|
@Override
|
|
14
14
|
public List<ViewManager> createViewManagers(
|
package/dist/AsyncStorage.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
// Copyright (c) Capsule Labs Inc. All rights reserved.
|
|
2
1
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
2
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
3
|
return new (P || (P = Promise))(function (resolve, reject) {
|
package/dist/KeychainStorage.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
// Copyright (c) Capsule Labs Inc. All rights reserved.
|
|
2
1
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
2
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
3
|
return new (P || (P = Promise))(function (resolve, reject) {
|
package/dist/config.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
// Copyright (c) Capsule Labs Inc. All rights reserved.
|
|
2
1
|
import { NativeModules } from 'react-native';
|
|
3
2
|
import { Environment } from '@getpara/web-sdk';
|
|
4
3
|
function getPortalBaseURL(env) {
|
|
@@ -52,10 +51,10 @@ export function setEnv(env) {
|
|
|
52
51
|
mpcNetworkWSServer = getBaseMPCNetworkWSUrl(env);
|
|
53
52
|
init();
|
|
54
53
|
}
|
|
55
|
-
const {
|
|
54
|
+
const { ParaSignerModule } = NativeModules;
|
|
56
55
|
export const DEBUG_MODE_ENABLED = false;
|
|
57
56
|
function init() {
|
|
58
|
-
|
|
59
|
-
|
|
57
|
+
ParaSignerModule.setServerUrl(userManagementServer);
|
|
58
|
+
ParaSignerModule.setWsServerUrl(mpcNetworkWSServer);
|
|
60
59
|
}
|
|
61
60
|
init();
|
|
@@ -46,4 +46,6 @@ export declare class ParaMobile extends ParaCore {
|
|
|
46
46
|
* @returns {Promise<Wallet[]>} An array of user wallets.
|
|
47
47
|
*/
|
|
48
48
|
login(email?: string, phone?: string, countryCode?: CountryCallingCode): Promise<void>;
|
|
49
|
+
protected isPortal(): boolean;
|
|
50
|
+
protected isParaConnect(): boolean;
|
|
49
51
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
// Copyright (c) Capsule Labs Inc. All rights reserved.
|
|
2
1
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
2
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
3
|
return new (P || (P = Promise))(function (resolve, reject) {
|
package/ios/ParaSignerModule.h
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@getpara/react-native-wallet",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2-dev.2",
|
|
4
4
|
"description": "Para Wallet for React Native",
|
|
5
5
|
"homepage": "https://getpara.com",
|
|
6
6
|
"author": "Para Team <hello@getpara.com> (https://getpara.com)",
|
|
@@ -58,6 +58,5 @@
|
|
|
58
58
|
},
|
|
59
59
|
"publishConfig": {
|
|
60
60
|
"access": "public"
|
|
61
|
-
}
|
|
62
|
-
"gitHead": "adab14d69316165076fb244001ae271847bc23cc"
|
|
61
|
+
}
|
|
63
62
|
}
|
package/src/AsyncStorage.ts
CHANGED
package/src/KeychainStorage.ts
CHANGED
package/src/config.ts
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
// Copyright (c) Capsule Labs Inc. All rights reserved.
|
|
2
|
-
|
|
3
1
|
import { NativeModules } from 'react-native';
|
|
4
2
|
import { Environment } from '@getpara/web-sdk';
|
|
5
3
|
|
|
@@ -59,12 +57,12 @@ export function setEnv(env: Environment) {
|
|
|
59
57
|
init();
|
|
60
58
|
}
|
|
61
59
|
|
|
62
|
-
const {
|
|
60
|
+
const { ParaSignerModule } = NativeModules;
|
|
63
61
|
export const DEBUG_MODE_ENABLED = false;
|
|
64
62
|
|
|
65
63
|
function init() {
|
|
66
|
-
|
|
67
|
-
|
|
64
|
+
ParaSignerModule.setServerUrl(userManagementServer);
|
|
65
|
+
ParaSignerModule.setWsServerUrl(mpcNetworkWSServer);
|
|
68
66
|
}
|
|
69
67
|
|
|
70
68
|
init();
|
|
File without changes
|