mirror of
https://github.com/aliasvault/aliasvault.git
synced 2026-03-19 07:07:59 -04:00
41 lines
1.3 KiB
Markdown
41 lines
1.3 KiB
Markdown
---
|
|
layout: default
|
|
title: Mobile Apps
|
|
parent: Development
|
|
grand_parent: Miscellaneous
|
|
nav_order: 4
|
|
---
|
|
|
|
# React Native Expo
|
|
|
|
## MacOS:
|
|
Install watchman
|
|
|
|
```
|
|
brew install watchman
|
|
```
|
|
|
|
Run iOS on Simulator:
|
|
|
|
```
|
|
npx expo run:ios
|
|
```
|
|
|
|
## React Native Turbo Module VaultManager
|
|
The AliasVault React Native app uses the Turbo Module method for implementing the native VaultManager functionality which allows the app to store the AliasVault vault and encryption key safely on the native level enabling the use of low-level keychain secure storage methods.
|
|
|
|
In order to update the Native Turbo Module scheme, edit the specs file in: `specs/NativeVaultManager.ts`. Afterwards:
|
|
- For iOS, run pod install (see instructions below). Then make sure to implement the new or changed methods in the actual NativeVaultManager implementation of which the files are located in the `ios/NativeVaultManager` directory.
|
|
|
|
## (Re)generate native turbo module spec file
|
|
|
|
### iOS: run Pod install
|
|
1. Go to root of mobile-app directory
|
|
2. Run `npx pod-install` (don't run `pod install` directly from ios directory as this can cause errors)
|
|
|
|
### Android: run custom gradlew command
|
|
1. Go to mobile-app/android directory and run the gradlew codegen command:
|
|
```bash
|
|
cd mobile-app/android
|
|
./gradlew generateCodegenArtifactsFromSchema
|
|
``` |