This repository has been archived by the owner on Oct 4, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[C-803] Add common state and backend sagas to native (#1691)
- Loading branch information
1 parent
96d9cc8
commit 4f60a49
Showing
12 changed files
with
53 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { FingerprintClient } from 'audius-client/src/common/services/fingerprint' | ||
import Config from 'react-native-config' | ||
|
||
const apiKey = Config.FINGERPRINT_PUBLIC_API_KEY || '' | ||
const endpoint = Config.FINGERPRINT_ENDPOINT || '' | ||
const identityService = Config.IDENTITY_SERVICE || '' | ||
|
||
export const fingerprintClient = new FingerprintClient({ | ||
apiKey, | ||
endpoint, | ||
identityService | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,20 @@ | ||
import backendSagas, { | ||
setupBackend | ||
} from 'audius-client/src/common/store/backend/sagas' | ||
import remoteConfig from 'audius-client/src/common/store/remote-config/sagas' | ||
import { all, fork } from 'typed-redux-saga' | ||
|
||
import initKeyboardEvents from './keyboard/sagas' | ||
import oauthSagas from './oauth/sagas' | ||
|
||
export default function* rootSaga() { | ||
yield* fork(setupBackend) | ||
const sagas = [ | ||
...backendSagas(), | ||
initKeyboardEvents, | ||
...remoteConfig(), | ||
...oauthSagas() | ||
] | ||
|
||
yield* all(sagas.map(fork)) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from './FingerprintClient' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { FingerprintClient } from 'common/services/fingerprint' | ||
|
||
const apiKey = process.env.REACT_APP_FINGERPRINT_PUBLIC_API_KEY || '' | ||
const endpoint = process.env.REACT_APP_FINGERPRINT_ENDPOINT || '' | ||
const identityService = process.env.REACT_APP_IDENTITY_SERVICE || '' | ||
|
||
export const fingerprintClient = new FingerprintClient({ | ||
apiKey, | ||
endpoint, | ||
identityService | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters