Skip to content

Commit

Permalink
feat: new methods in swift
Browse files Browse the repository at this point in the history
  • Loading branch information
ganchoradkov committed Dec 19, 2024
1 parent a91a795 commit 3a553a9
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 15 deletions.
12 changes: 6 additions & 6 deletions wallets/rn_cli_wallet/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -940,7 +940,7 @@ PODS:
- React-Mapbuffer (0.74.3):
- glog
- React-debug
- react-native-compat (2.17.2-canary-ca-5):
- react-native-compat (2.17.2-canary-ca-9):
- DoubleConversion
- glog
- hermes-engine
Expand All @@ -961,7 +961,7 @@ PODS:
- ReactCommon/turbomodule/bridging
- ReactCommon/turbomodule/core
- Yoga
- YttriumWrapper (= 0.4.6)
- YttriumWrapper (= 0.4.10)
- react-native-config (1.5.2):
- react-native-config/App (= 1.5.2)
- react-native-config/App (1.5.2):
Expand Down Expand Up @@ -1332,7 +1332,7 @@ PODS:
- VisionCamera/React (4.5.0):
- React-Core
- Yoga (0.0.0)
- YttriumWrapper (0.4.6)
- YttriumWrapper (0.4.10)

DEPENDENCIES:
- boost (from `../node_modules/react-native/third-party-podspecs/boost.podspec`)
Expand Down Expand Up @@ -1601,7 +1601,7 @@ SPEC CHECKSUMS:
React-jsitracing: 6b3c8c98313642140530f93c46f5a6ca4530b446
React-logger: fa92ba4d3a5d39ac450f59be2a3cec7b099f0304
React-Mapbuffer: 9f68550e7c6839d01411ac8896aea5c868eff63a
react-native-compat: 6faa4d6dc830f46f8db20c8edee159c1981618fc
react-native-compat: c0c78ff8936889e53e11aad8312bf0ee02acae36
react-native-config: d7d8a0c65f7fa523197879f6b777997abbfc987e
react-native-get-random-values: 21325b2244dfa6b58878f51f9aa42821e7ba3d06
react-native-netinfo: 076df4f9b07f6670acf4ce9a75aac8d34c2e2ccc
Expand Down Expand Up @@ -1644,8 +1644,8 @@ SPEC CHECKSUMS:
SocketRocket: abac6f5de4d4d62d24e11868d7a2f427e0ef940d
VisionCamera: 412fec057156eb5fe84a44351e8ed71a072c1228
Yoga: 88480008ccacea6301ff7bf58726e27a72931c8d
YttriumWrapper: 7624df90692e87a3f7cdb6e1b6d9c069c7cb16c0
YttriumWrapper: 0b1c408cb83a8527ed5ccd8f7b6104327d82e2d2

PODFILE CHECKSUM: c71b4a1de1dcccdf71d8f7f0d4d9b3c37106456c

COCOAPODS: 1.15.2
COCOAPODS: 1.16.2
2 changes: 1 addition & 1 deletion wallets/rn_cli_wallet/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"@reown/walletkit": "1.1.1-canary-ca-10",
"@sentry/react-native": "5.32.0",
"@walletconnect/core": "2.17.2",
"@walletconnect/react-native-compat": "2.17.2-canary-ca-7",
"@walletconnect/react-native-compat": "2.17.2-canary-ca-9",
"dayjs": "1.11.11",
"ethers": "5.7.2",
"patch-package": "8.0.0",
Expand Down
13 changes: 10 additions & 3 deletions wallets/rn_cli_wallet/src/screens/Settings/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@ export default function Settings({navigation}: Props) {
console.log('Add new account', newMnemonic);
replaceMnemonic(newMnemonic)
.then(() => {
Alert.alert('Success', 'Mnemonic replaced, reloading the app...');
DevSettings.reload();
Alert.alert('Success', 'Please restart the app!');
})
.catch(e => {
Alert.alert('Error', e.message);
Expand Down Expand Up @@ -68,10 +67,18 @@ export default function Settings({navigation}: Props) {
/>

<TextInput
style={{borderColor: 'black'}}
style={{
borderColor: 'gray',
marginVertical: 10,
borderWidth: 1,
lineHeight: 40,
borderRadius: 10,
padding: 10,
}}
placeholder="Enter mnemonic or private key"
onChangeText={value => setNewMnemonic(value)}
/>

<Card title="Add new account" onPress={onAddNewAccount} />
</View>
<Text style={[styles.subtitle, {color: Theme['fg-100']}]}>Device</Text>
Expand Down
10 changes: 5 additions & 5 deletions wallets/rn_cli_wallet/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4431,9 +4431,9 @@ __metadata:
languageName: node
linkType: hard

"@walletconnect/react-native-compat@npm:2.17.2-canary-ca-7":
version: 2.17.2-canary-ca-7
resolution: "@walletconnect/react-native-compat@npm:2.17.2-canary-ca-7"
"@walletconnect/react-native-compat@npm:2.17.2-canary-ca-9":
version: 2.17.2-canary-ca-9
resolution: "@walletconnect/react-native-compat@npm:2.17.2-canary-ca-9"
dependencies:
events: 3.3.0
fast-text-encoding: 1.0.6
Expand All @@ -4447,7 +4447,7 @@ __metadata:
peerDependenciesMeta:
expo-application:
optional: true
checksum: 6557d927b15201c502e5b88b88b98b53d7e9aa882396874e57562ffc2c115f624ebce59b9f11f27bb7bd1e2361bbf3bfe2f118b8855011f131ecea8af37845b1
checksum: 97b3b430e6d44272f8cc7c0f1b9242c0fbc56c0eb58fa629afa45dcd157e181f99c43dab59579e0328c735fed6f4f79170cd07660f356023a6504ad11b7bc9df
languageName: node
linkType: hard

Expand Down Expand Up @@ -13311,7 +13311,7 @@ __metadata:
"@types/react": ^18.2.6
"@types/react-test-renderer": ^18.0.0
"@walletconnect/core": 2.17.2
"@walletconnect/react-native-compat": 2.17.2-canary-ca-7
"@walletconnect/react-native-compat": 2.17.2-canary-ca-9
babel-jest: ^29.6.3
babel-plugin-module-resolver: ^5.0.0
dayjs: 1.11.11
Expand Down

0 comments on commit 3a553a9

Please sign in to comment.