This is a React Native test application for PowerSync, currently only used to test the OP-sqlite based DB adapter.
- Install dependencies and build packages in the root directory:
pnpm install
pnpm build:packages- Start Metro bundler:
pnpm start- Run the app:
A couple of pro-tips:
- Be sure to install your XCode updates, since it can generate very cryptic errors if you don't.
- Be sure to use the right ruby version. You can use
rbenvorrvmto switch versions. Check the Gemfile for which version to use.
Update pods:
cd ios
bundle exec pod update
cd ..Then run:
pnpm iospnpm android- Run tests
pnpm detox build --configuration ios.sim.debug
pnpm detox test --configuration ios.sim.debugpnpm detox build --configuration android.emu.debug
# replace Pixel_3a_API_34 with your desired AVD name, defaults to "ubuntu-avd-x86_64-31" for AVD via GitHub CI KVM
DETOX_AVD_NAME=Pixel_3a_API_34 pnpm detox test --configuration android.emu.debug
```