Skip to content

Commit 8be5962

Browse files
Update readme with JDK instructions and more clean up (#15)
1 parent 669984a commit 8be5962

File tree

5 files changed

+21
-9
lines changed

5 files changed

+21
-9
lines changed

App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ const App = (): JSX.Element => {
5454
name="Home"
5555
component={HomeScreen}
5656
options={{
57-
title: 'Agentforce Service Agent',
57+
title: 'Agentforce Mobile',
5858
}}
5959
/>
6060
<Stack.Screen

README.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,27 @@ This app uses the **AgentforceSDK-ReactNative-Bridge** (in-repo under `Agentforc
3838
## 📋 Prerequisites
3939

4040
### General
41-
- Node.js 18+ and npm/yarn
41+
- **Node.js** (LTS recommended; 18+ required, 20.19.4+ preferred). Install and verify:
42+
- **macOS:** `brew install node` (requires [Homebrew](https://brew.sh)). Or use [nvm](https://github.com/nvm-sh/nvm): `nvm install --lts`.
43+
- **Windows:** Install from [nodejs.org](https://nodejs.org/) or `choco install nodejs-lts`. Or use [nvm-windows](https://github.com/coreybutler/nvm-windows).
44+
- **Linux:** Use your distro’s package manager or nvm. Run `node -v` to confirm.
45+
- **Watchman** (recommended for better performance and fewer filesystem issues). Install and verify:
46+
- **macOS:** `brew install watchman`.
47+
- **Windows/Linux:** Optional; see [Watchman](https://facebook.github.io/watchman/docs/install) if needed. Run `watchman -v` to confirm.
4248
- Git
4349

4450
### Android
4551
- Android Studio
4652
- Android SDK 24+
4753
- Gradle 8.0+
54+
- **JDK 17** (required for building; higher versions may cause issues). Recommended setup:
55+
- **macOS:** Install [Azul Zulu JDK 17](https://www.azul.com/downloads/) (e.g. `brew install --cask zulu@17`), then set in `~/.zshrc` or `~/.bash_profile`:
56+
```bash
57+
export JAVA_HOME=/Library/Java/JavaVirtualMachines/zulu-17.jdk/Contents/Home
58+
```
59+
- **Windows:** Install JDK 17 (e.g. [Microsoft OpenJDK 17](https://learn.microsoft.com/en-us/java/openjdk/download) or `choco install microsoft-openjdk17`).
60+
- **Linux:** Install OpenJDK 17 via your package manager.
61+
- Run `java -version` to confirm. Full details: [React Native – Set up your environment (Android)](https://reactnative.dev/docs/set-up-your-environment?platform=android).
4862

4963
### iOS
5064
- macOS

android/app/src/main/res/values/strings.xml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,4 @@
33
<string name="account_type">com.salesforce.android.reactagentforce.login</string>
44
<string name="app_name">ReactAgentforce</string>
55
<string name="app_package">com.salesforce.android.reactagentforce</string>
6-
<!-- Override AgentforceSDK 14.97.1 string that uses multiple % without positional format -->
7-
<string name="af__audio_duration_format" formatted="false">%1$d:%2$02d</string>
86
</resources>

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"react-native": "0.74.7",
1818
"react-native-gesture-handler": "~2.16.2",
1919
"react-native-safe-area-context": "^4.10.8",
20-
"react-native-screens": "3.29.0"
20+
"react-native-screens": "^3.30.1"
2121
},
2222
"devDependencies": {
2323
"@babel/core": "^7.20.0",

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6094,10 +6094,10 @@ react-native-safe-area-context@^4.10.8, "react-native-safe-area-context@>= 3.0.0
60946094
resolved "https://registry.npmjs.org/react-native-safe-area-context/-/react-native-safe-area-context-4.14.1.tgz"
60956095
integrity sha512-+tUhT5WBl8nh5+P+chYhAjR470iCByf9z5EYdCEbPaAK3Yfzw+o8VRPnUgmPAKlSccOgQBxx3NOl/Wzckn9ujg==
60966096

6097-
"react-native-screens@>= 3.0.0", react-native-screens@3.29.0:
6098-
version "3.29.0"
6099-
resolved "https://registry.npmjs.org/react-native-screens/-/react-native-screens-3.29.0.tgz"
6100-
integrity sha512-yB1GoAMamFAcYf4ku94uBPn0/ani9QG7NdI98beJ5cet2YFESYYzuEIuU+kt+CNRcO8qqKeugxlfgAa3HyTqlg==
6097+
react-native-screens@^3.30.1, "react-native-screens@>= 3.0.0":
6098+
version "3.37.0"
6099+
resolved "https://registry.npmjs.org/react-native-screens/-/react-native-screens-3.37.0.tgz"
6100+
integrity sha512-vEi4qZqWYoGuVGuHTv1K2XA90rgSydksmR5+tb5uhL93whl6Bch6EEXzC+8eEfj4SimiCgXBPY7r/xTXJxvnUg==
61016101
dependencies:
61026102
react-freeze "^1.0.0"
61036103
warn-once "^0.1.0"

0 commit comments

Comments
 (0)