🔀 Fork of Bluesky (https://github.com/bluesky-social/social-app) with minor adjustments for https://zio.blue
 
 
 
 
 
 
Go to file
Paul Frazee 81441c3c26 Improve readme notes 2022-06-15 19:52:47 -05:00
.bundle Initial commit 2022-06-07 17:50:05 -05:00
__tests__ Add state management 2022-06-09 13:03:25 -05:00
android Add custom protocol deep links 2022-06-13 22:12:43 -05:00
ios Polyfills for native crypto 2022-06-15 17:40:18 -05:00
public Add routes and core views 2022-06-09 16:32:03 -05:00
scripts Add base auth & ucan request flow (web only) 2022-06-14 14:29:47 -05:00
src Polyfills for native crypto 2022-06-15 17:40:18 -05:00
.buckconfig Initial commit 2022-06-07 17:50:05 -05:00
.env Add base auth & ucan request flow (web only) 2022-06-14 14:29:47 -05:00
.eslintrc.js (WIP) Add initial API client 2022-06-10 11:55:09 -05:00
.gitignore Initial commit 2022-06-07 17:50:05 -05:00
.prettierrc.js Add state management 2022-06-09 13:03:25 -05:00
.ruby-version Initial commit 2022-06-07 17:50:05 -05:00
.watchmanconfig Initial commit 2022-06-07 17:50:05 -05:00
Gemfile Initial commit 2022-06-07 17:50:05 -05:00
README.md Improve readme notes 2022-06-15 19:52:47 -05:00
babel.config.js Polyfills for native crypto 2022-06-15 17:40:18 -05:00
index.native.js Add state management 2022-06-09 13:03:25 -05:00
metro.config.js Polyfills for native crypto 2022-06-15 17:40:18 -05:00
package.json Polyfills for native crypto 2022-06-15 17:40:18 -05:00
tsconfig.json Initial commit 2022-06-07 17:50:05 -05:00
yarn.lock Polyfills for native crypto 2022-06-15 17:40:18 -05:00

README.md

Social App

In-progress social app.

Uses:

Build instructions

  • Setup your environment using the react native instructions.
  • After initial setup:
    • cd ios ; pod install
  • Start the dev servers
    • yarn dev-pds
    • yarn dev-wallet
  • Run the dev app
    • iOS: yarn ios
    • Android: yarn android
    • Web: yarn web
  • Tips
    • npx react-native info Checks what has been installed.
    • On M1 macs, you need to exclude "arm64" from the target architectures
      • Annoyingly this must be re-set via XCode after every pod install

Various notes

Env vars

Set using the .env file or using bash.

REACT_APP_AUTH_LOBBY = 'http://localhost:3001'

Build behaviors

The metro.config.js file rewrites a couple of imports. This is partly to work around missing features in Metro, and partly to patch the bundle. Affected imports include:

  • ucans
  • one-webcrypto

Cryptography

For native builds, we must provide a polyfill of webcrypto. We use react-native-securerandom for the CRNG and msrcrypto for the cryptography.

NOTE Keys are not currently stored securely.

Polyfills

./platform/polyfills.*.ts adds polyfills to the environment. Currently this includes:

  • webcrypto
  • TextEncoder / TextDecoder