Skip to content
This repository was archived by the owner on Oct 4, 2023. It is now read-only.

[C-780] Update AudiusBackend to work in native context#1677

Merged
dylanjeffers merged 2 commits into
mainfrom
dj-c-780-update-audius-backend-to-work-in-native-context
Aug 5, 2022
Merged

[C-780] Update AudiusBackend to work in native context#1677
dylanjeffers merged 2 commits into
mainfrom
dj-c-780-update-audius-backend-to-work-in-native-context

Conversation

@dylanjeffers

@dylanjeffers dylanjeffers commented Aug 5, 2022

Copy link
Copy Markdown
Contributor

Description

Updates a few AudiusBackend internals that were not native compliant.

  • Added getLibs method to inject the libs code, since native needs a different libs entrypoint
  • Moved withEagerOption and waitForAudiusInit as arguments, since both of these rely on web code that breaks native. (Native will just stub these out since libs is ready to go on load)
  • Moved fetchCID to arguments, since it relied on waitForAudiusInit, which is now a param. this kinda makes sense since fetchCID will likely need a native implementation anyway

Dragons

Merge this after the legacy type updates pr in audius-protocol, since ts doesn't think legacy has types with latest @audius/sdk

@sliptype sliptype left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh my god it's coming together!!!

@audius-infra

Copy link
Copy Markdown
Collaborator

@dylanjeffers dylanjeffers merged commit c3682b3 into main Aug 5, 2022
@dylanjeffers dylanjeffers deleted the dj-c-780-update-audius-backend-to-work-in-native-context branch August 5, 2022 20:27
audius-infra pushed a commit that referenced this pull request Aug 6, 2022
[c3682b3] [C-780] Update AudiusBackend to work in native context (#1677) Dylan Jeffers
[398093d] [C-781] Add minimum threshold to common password check (#1684) Kyle Shanks
[5a66847] Ensure fetch calls are awaited so errors are caught (#1683) Sebastian Klingler
[d597054] Make audiusBackend configurable for different environments (#1670) Sebastian Klingler
[b5fa3fa] Fix native build with new metro-config dependencies (#1676) Dylan Jeffers
[408a425] [C-771] Update native metro-config to enable @audius/sdk (#1671) Dylan Jeffers
[afde38e] [PAY-416] Early access mode & feature flag refactor (#1654) Michael Piazza
[3b28c7e] Fix typecheck for mobile after AudiusBackend ts migration (#1672) Sebastian Klingler
[e5fbbb5] Revert "Revert "Update explore endpoints in libs to use v1 (#1539)" (#1609)" (#1669) Joseph Lee
[237784b] Default endpoints to empty array instead of null (#1665) Marcus Pasell
[175e5d6] Add ModalContentPages to stems (#1659) Marcus Pasell
[fdadaac] fix mobile menu on narrow (#1664) nicoback2
[3e2b499] Convert AudiusBackend to typescript (#1650) Sebastian Klingler
@AudiusProject AudiusProject deleted a comment from linear Bot Sep 11, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants