Skip to content

Commit

Permalink
Upgrade sdk to beta.16, update install script (#3339)
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanjeffers authored May 4, 2023
1 parent 7c3aaa5 commit 80278ce
Show file tree
Hide file tree
Showing 9 changed files with 69 additions and 56 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"STEMS======================================": "",
"stems": "cd packages/stems && npm run start",
"SDK========================================": "",
"sdk:update": "lerna exec -- npm-check-updates @audius/sdk -u && npm i",
"sdk:update": "lerna exec -- npm-check-updates @audius/sdk -u && rm -rf packages/*/node_modules/@audius/sdk && npm i",
"sdk:link": "./scripts/link-sdk.sh"
},
"devDependencies": {
Expand Down
12 changes: 6 additions & 6 deletions packages/common/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"url": "https://github.com/AudiusProject/audius-client/issues"
},
"dependencies": {
"@audius/sdk": "2.0.3-beta.14",
"@audius/sdk": "2.0.3-beta.16",
"@fingerprintjs/fingerprintjs-pro": "3.5.6",
"@metaplex-foundation/mpl-token-metadata": "2.5.2",
"@optimizely/optimizely-sdk": "4.0.0",
Expand Down
86 changes: 43 additions & 43 deletions packages/mobile/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/mobile/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"dependencies": {
"@amplitude/react-native": "2.6.0",
"@audius/common": "1.5.22",
"@audius/sdk": "2.0.3-beta.14",
"@audius/sdk": "2.0.3-beta.16",
"@fingerprintjs/fingerprintjs-pro-react-native": "2.0.0-test.2",
"@gorhom/portal": "1.0.9",
"@hcaptcha/react-native-hcaptcha": "1.3.4",
Expand Down
6 changes: 6 additions & 0 deletions packages/mobile/src/services/audius-sdk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@ const initSdk = async () => {
publicKey,
true
)
},
getAddress: async () => {
await waitForLibsInit()
return (
audiusLibs?.hedgehog?.getWallet()?.getAddress().toString() ?? ''
)
}
}
}
Expand Down
6 changes: 3 additions & 3 deletions packages/web/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
},
"dependencies": {
"@audius/common": "1.5.22",
"@audius/sdk": "2.0.3-beta.14",
"@audius/sdk": "2.0.3-beta.16",
"@audius/stems": "1.5.22",
"@coinbase/cbpay-js": "1.2.0",
"@craco/craco": "7.0.0-alpha.3",
Expand Down
7 changes: 7 additions & 0 deletions packages/web/src/services/audius-sdk/audiusSdk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,13 @@ const initSdk = async () => {
publicKey,
true
)
},
getAddress: async () => {
await waitForLibsInit()
return (
window.audiusLibs?.hedgehog?.getWallet()?.getAddress().toString() ??
''
)
}
}
}
Expand Down

0 comments on commit 80278ce

Please sign in to comment.