Skip to content

Commit

Permalink
Merge pull request #147 from Unshut-Labs/ar/sdk-bump-17
Browse files Browse the repository at this point in the history
fix: Bump SDK
  • Loading branch information
alexrisch authored Jun 25, 2024
2 parents 7e60010 + f18a860 commit 6e29b0d
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 34 deletions.
2 changes: 1 addition & 1 deletion data/store/chatStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export type XmtpGroupConversation = XmtpConversationShared & {
groupMembers: string[];
groupAdmins: string[];
groupSuperAdmins: string[];
groupPermissionLevel: "all_members" | "admin_only";
groupPermissionLevel: "all_members" | "admin_only" | "custom_policy";
groupName?: string;
};

Expand Down
2 changes: 1 addition & 1 deletion ios/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ install! 'cocoapods',

# Version must match version from XMTP Podspec (matching @xmtp/react-native-sdk from package.json)
# https://github.com/xmtp/xmtp-react-native/blob/v1.34.0-beta.5/ios/XMTPReactNative.podspec#L29
$xmtpVersion = '0.12.2'
$xmtpVersion = '0.12.4'

# Pinning MMKV to 1.3.3 that has included that fix https://github.com/Tencent/MMKV/pull/1222#issuecomment-1905164314
$mmkvVersion = '1.3.3'
Expand Down
20 changes: 10 additions & 10 deletions ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ PODS:
- libwebp/sharpyuv (1.3.2)
- libwebp/webp (1.3.2):
- libwebp/sharpyuv
- LibXMTP (0.5.3-beta0)
- LibXMTP (0.5.3-beta2)
- Logging (1.0.0)
- MessagePacker (0.4.7)
- MMKV (1.3.3):
Expand Down Expand Up @@ -1337,16 +1337,16 @@ PODS:
- GenericJSON (~> 2.0)
- Logging (~> 1.0.0)
- secp256k1.swift (~> 0.1)
- XMTP (0.12.2):
- XMTP (0.12.4):
- Connect-Swift (= 0.12.0)
- GzipSwift
- LibXMTP (= 0.5.3-beta0)
- LibXMTP (= 0.5.3-beta2)
- web3.swift
- XMTPReactNative (1.34.0-beta.15):
- XMTPReactNative (1.34.0-beta.17):
- ExpoModulesCore
- MessagePacker
- secp256k1.swift
- XMTP (= 0.12.2)
- XMTP (= 0.12.4)
- Yoga (1.14.0)

DEPENDENCIES:
Expand Down Expand Up @@ -1468,7 +1468,7 @@ DEPENDENCIES:
- Sentry/HybridSDK (= 8.29.1)
- SQLite.swift
- UMAppLoader (from `../node_modules/unimodules-app-loader/ios`)
- XMTP (= 0.12.2)
- XMTP (= 0.12.4)
- "XMTPReactNative (from `../node_modules/@xmtp/react-native-sdk/ios`)"
- Yoga (from `../node_modules/react-native/ReactCommon/yoga`)

Expand Down Expand Up @@ -1785,7 +1785,7 @@ SPEC CHECKSUMS:
libevent: 4049cae6c81cdb3654a443be001fb9bdceff7913
libvmaf: 27f523f1e63c694d14d534cd0fddd2fab0ae8711
libwebp: 1786c9f4ff8a279e4dac1e8f385004d5fc253009
LibXMTP: c3d7b5cfa4b8df5c57ef01f09358c87dea299a13
LibXMTP: c0f992e33c4ac95bdf2652f9429b3999890b6ab3
Logging: 9ef4ecb546ad3169398d5a723bc9bea1c46bef26
MessagePacker: ab2fe250e86ea7aedd1a9ee47a37083edd41fd02
MMKV: f902fb6719da13c2ab0965233d8963a59416f911
Expand Down Expand Up @@ -1871,10 +1871,10 @@ SPEC CHECKSUMS:
SwiftProtobuf: 407a385e97fd206c4fbe880cc84123989167e0d1
UMAppLoader: 79d3ee6aa2447a1fe2e8b0d07acf2de106e55b58
web3.swift: 2263d1e12e121b2c42ffb63a5a7beb1acaf33959
XMTP: 1a25f62cf29a9ba87a879b8c85062c497c9c813f
XMTPReactNative: 7d2fdf28a53292cf7a8491b188d8504ff414377e
XMTP: 7d69afe403538056efb6caf01db7248b01221c48
XMTPReactNative: b5b2efeb9ad30341896b60fbb2a8373dd3d0dd20
Yoga: d17d2cc8105eed528474683b42e2ea310e1daf61

PODFILE CHECKSUM: cb52bedac815df7739123f1017d51a5993df540c
PODFILE CHECKSUM: 2cf1857df00ddf0c58944ef41304afd85ca07ba7

COCOAPODS: 1.15.2
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
"@xmtp/content-type-transaction-reference": "^1.0.3",
"@xmtp/frames-client": "^0.5.0",
"@xmtp/proto": "^3.60.0",
"@xmtp/react-native-sdk": "^1.34.0-beta.15",
"@xmtp/react-native-sdk": "^1.34.0-beta.17",
"@xmtp/xmtp-js": "11.5.0",
"axios": "^1.2.1",
"babel-plugin-transform-remove-console": "^6.9.4",
Expand Down
31 changes: 14 additions & 17 deletions screens/Profile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -128,20 +128,19 @@ export default function ProfileScreen({
return array.map((e) => {
const title = (e as any)[titleKey];
const value = (e as any)[valueKey];
const handleCopyAddress = () => {
setCopiedAddresses((c) => ({ ...c, [title]: true }));
Clipboard.setString(value);
setTimeout(() => {
setCopiedAddresses((c) => ({ ...c, [title]: false }));
}, 1000);
};
return {
id: title,
title,
titleNumberOfLines: 2,
rightView: (
<TouchableOpacity
onPress={() => {
setCopiedAddresses((c) => ({ ...c, [title]: true }));
Clipboard.setString(value);
setTimeout(() => {
setCopiedAddresses((c) => ({ ...c, [title]: false }));
}, 1000);
}}
>
<TouchableOpacity onPress={handleCopyAddress}>
<TableViewPicto
symbol={copiedAddresses[title] ? "checkmark" : "doc.on.doc"}
color={
Expand Down Expand Up @@ -203,13 +202,7 @@ export default function ProfileScreen({
leftView: imageURI ? (
<TableViewImage imageURI={getIPFSAssetURI(imageURI)} />
) : (
<TableViewEmoji
emoji="👋"
style={{
backgroundColor: "rgba(118, 118, 128, 0.12)",
borderRadius: 30,
}}
/>
<TableViewEmoji emoji="👋" style={styles.emoji} />
),
rightView: (
<TableViewPicto
Expand All @@ -220,7 +213,7 @@ export default function ProfileScreen({
};
}) as TableViewItemType[];
},
[colorScheme]
[colorScheme, styles.emoji]
);

const socialItems = [
Expand Down Expand Up @@ -745,5 +738,9 @@ const useStyles = () => {
marginTop: 23,
alignSelf: "center",
},
emoji: {
backgroundColor: "rgba(118, 118, 128, 0.12)",
borderRadius: 30,
},
});
};
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -11171,10 +11171,10 @@
rxjs "^7.8.0"
undici "^5.8.1"

"@xmtp/react-native-sdk@^1.34.0-beta.15":
version "1.34.0-beta.15"
resolved "https://registry.yarnpkg.com/@xmtp/react-native-sdk/-/react-native-sdk-1.34.0-beta.15.tgz#797da9e9044d6d866a2a62c46518d1614abcf360"
integrity sha512-9ZiIkp3FXvOmP5o1jkG0T0KrVtz9+dwUzsXec8oiT5067STykcehQU5NH4+JPyYCRBWXuIsPL6PRmpxzlLR5KA==
"@xmtp/react-native-sdk@^1.34.0-beta.17":
version "1.34.0-beta.17"
resolved "https://registry.yarnpkg.com/@xmtp/react-native-sdk/-/react-native-sdk-1.34.0-beta.17.tgz#4423914fb901765302af32a2a1a3a1de21f3e670"
integrity sha512-NVBNIDawXxTqzz5ZnqsCn+2GWsU8lWe8vYs3GgIJvPdSutWR3A3qByNpkjVipWg6Ziex9AxAXBzFPNEJTC5Thg==
dependencies:
"@ethersproject/bytes" "^5.7.0"
"@msgpack/msgpack" "^3.0.0-beta2"
Expand Down

0 comments on commit 6e29b0d

Please sign in to comment.