You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-[Expo Go](https://expo.dev/go), a limited sandbox for trying out app development with Expo
25
-
26
-
You can start developing by editing the files inside the **app** directory. This project uses [file-based routing](https://docs.expo.dev/router/introduction).
27
-
28
-
## Sentry Configuration
29
-
30
-
This project uses [Sentry](https://sentry.io/) for error tracking and monitoring. Before building the app, you need to configure Sentry authentication.
31
-
32
-
### Option 1: Using Sentry Wizard (Recommended)
33
-
34
-
Run the Sentry wizard to automatically configure your project:
35
-
36
-
```bash
37
-
npx @sentry/wizard@latest -i reactNative
38
-
```
39
-
40
-
This will:
41
-
- Create/update the `sentry.properties` file in the `android/` and `ios/` directories
42
-
- Set up your authentication token
43
-
- Configure source map uploading
44
-
45
-
### Option 2: Manual Configuration
46
-
47
-
If you prefer to configure manually, you can set the `SENTRY_AUTH_TOKEN` environment variable:
48
-
49
-
```bash
50
-
# DO NOT COMMIT YOUR AUTH TOKEN
51
-
export SENTRY_AUTH_TOKEN=sntrys_YOUR_TOKEN_HERE
52
-
```
53
-
54
-
Alternatively, you can add the token directly to the `sentry.properties` files:
55
-
56
-
**android/sentry.properties** and **ios/sentry.properties**:
57
-
```properties
58
-
defaults.url=https://sentry.io/
59
-
defaults.org=walletconnect
60
-
defaults.project=mobile-pos-react-native
61
-
auth.token=YOUR_AUTH_TOKEN_HERE
62
-
```
63
-
64
-
> **⚠️ Security Note**: Never commit your Sentry auth token to version control. Add `sentry.properties` to your `.gitignore` file.
65
-
66
-
### Getting Your Auth Token
67
-
68
-
1. Log in to [sentry.io](https://sentry.io/)
69
-
2. Go to Settings → Account → API → Auth Tokens
70
-
3. Create a new token with the following scopes:
71
-
-`project:read`
72
-
-`project:releases`
73
-
-`org:read`
74
-
75
-
For more information on source maps and Expo integration, see the [Sentry Expo Documentation](https://docs.sentry.io/platforms/react-native/sourcemaps/uploading/expo/).
19
+
Update the `.env` file with your configuration values.
76
20
77
-
## Android Release Configuration
21
+
3. Create native folders
78
22
79
-
To build Android release versions of the app, you need to create a `secrets.properties` file in the `android/` directory with your keystore credentials.
80
-
81
-
### Option 1: Testing with Debug Signing (Recommended for Development)
82
-
83
-
For testing purposes, you can use the debug signing configuration. In `android/app/build.gradle`, ensure the release build type uses the debug signing config:
84
-
85
-
```gradle
86
-
buildTypes {
87
-
release {
88
-
signingConfig signingConfigs.debug
89
-
// ... other release configurations
90
-
}
91
-
}
92
-
```
93
-
94
-
This allows you to build release APKs without setting up a production keystore.
95
-
96
-
### Option 2: Production Signing with secrets.properties
97
-
98
-
For production releases, create a file at `android/secrets.properties` with the following content:
99
-
100
-
```properties
101
-
WC_FILENAME_UPLOAD=path/to/your-keystore.keystore
102
-
WC_STORE_PASSWORD_UPLOAD=your_store_password
103
-
WC_KEYSTORE_ALIAS=your_key_alias
104
-
WC_KEY_PASSWORD_UPLOAD=your_key_password
105
-
```
106
-
107
-
Then update the release signing config in `android/app/build.gradle` to use the release signing configuration instead of debug.
108
-
109
-
### Generating a Keystore
110
-
111
-
If you don't have a keystore file yet, you can generate one using the following command:
This will prompt you to create passwords for the keystore and key. Make sure to:
118
-
- Store the keystore file in a secure location
119
-
- Remember the passwords you set
120
-
- Never commit the keystore file or `secrets.properties` to version control
121
-
122
-
> **⚠️ Security Note**: The `secrets.properties` file is already excluded in the `.gitignore`. Never commit this file or your keystore to version control.
23
+
```bash
24
+
npm run prebuild
25
+
```
123
26
124
-
For more information on Android app signing, see the [React Native documentation](https://reactnative.dev/docs/signed-apk-android).
27
+
This will automatically set up the required files for development.
125
28
126
-
## Learn more
29
+
4. Start the app
127
30
128
-
To learn more about developing your project with Expo, look at the following resources:
31
+
```bash
32
+
npm run android
33
+
```
129
34
130
-
-[Expo documentation](https://docs.expo.dev/): Learn fundamentals, or go into advanced topics with our [guides](https://docs.expo.dev/guides).
131
-
-[Learn Expo tutorial](https://docs.expo.dev/tutorial/introduction/): Follow a step-by-step tutorial where you'll create a project that runs on Android, iOS, and the web.
35
+
```bash
36
+
npm run ios
37
+
```
132
38
133
-
## Join the community
39
+
## Production Releases
134
40
135
-
Join our community of developers creating universal apps.
41
+
For production Android releases, you'll need the actual `secrets.properties` file and keystore. Get these from the mobile team or 1Password.
136
42
137
-
-[Expo on GitHub](https://github.com/expo/expo): View our open source platform and contribute.
138
-
-[Discord community](https://chat.expo.dev): Chat with Expo users and ask questions.
43
+
> **⚠️ Security Note**: Never commit `secrets.properties` or keystore files to version control.
0 commit comments