2509290fdd2b20c76c302d4962216f5d2d2b5a73
* Split image cropping into secondary step * Use ImageModel and GalleryModel * Add fix for pasting image URLs * Move models to state folder * Fix things that broke after rebase * Latest -- has image display bug * Remove contentFit * Fix iOS display in gallery * Tuneup the api signatures and implement compress/resize on web * Fix await * Lint fix and remove unused function * Fix android image pathing * Fix external embed x button on android * Remove min-height from composer (no longer useful and was mispositioning the composer on android) * Fix e2e picker --------- Co-authored-by: Paul Frazee <pfrazee@gmail.com>
Bluesky
Build instructions
- Setup your environment using the react native instructions.
- Setup your environment for e2e testing using detox:
- yarn global add detox-cli
- brew tap wix/brew
- brew install applesimutils
- After initial setup:
cd ios ; pod install
- Start the dev servers
git clone git@github.com:bluesky-social/atproto.gitcd atprotoyarncd packages/dev-env && yarn start
- Run the dev app
- iOS:
yarn ios - Android:
yarn android - Web:
yarn web
- iOS:
- Run e2e tests
- Start in various console tabs:
yarn e2e:serveryarn e2e:metro
- Run once:
yarn e2e:build - Each test run:
yarn e2e:run
- Start in various console tabs:
- Tips
npx react-native infoChecks 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
- The android simulator won't be able to access localhost services unless you run
adb reverse tcp:{PORT} tcp:{PORT}- For instance, the localhosted dev-wallet will need
adb reverse tcp:3001 tcp:3001
- For instance, the localhosted dev-wallet will need
- For some reason, the typescript compiler chokes on platform-specific files (e.g.
foo.native.ts) but only when compiling for Web thus far. Therefore we always have one version of the file which doesn't use a platform specifier, and that should bee the Web version. (More info.)
Various notes
Debugging
- Note that since 0.70, debugging using the old debugger (which shows up using CMD+D) doesn't work anymore. Follow the instructions below to debug the code: https://reactnative.dev/docs/next/hermes#debugging-js-on-hermes-using-google-chromes-devtools
Running E2E Tests
- Make sure you've setup your environment following above
- Make sure Metro and the dev server are running
- Run
yarn e2e - Find the artifacts in the
artifactfolder
Polyfills
./platform/polyfills.*.ts adds polyfills to the environment. Currently this includes:
- TextEncoder / TextDecoder
Releases
1
Latest Build
Latest
Languages
TypeScript
92.9%
Go
2.2%
JavaScript
1.8%
Kotlin
0.9%
HTML
0.9%
Other
1.2%