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
|**Minimum mobile OS supported**| SDK 24+ | iOS 16.0+ |
18
+
|**Minimum mobile OS supported**| SDK 26+ | iOS 16.0+ |
19
+
|**Compile/Target SDK**| SDK 36+ | - |
19
20
20
21
* A React Native project
21
22
* A Google Cloud project
@@ -100,16 +101,18 @@ dependencies {
100
101
101
102
#### Minimum SDK Requirements for Android
102
103
103
-
The `minSdkVersion`foryour Android project must be set to 24 or higherin`android/app/build.gradle`:
104
+
The `minSdkVersion`foryour Android project must be set to 26 or higherin`android/app/build.gradle`:
104
105
105
106
```groovy
106
107
android {
107
108
defaultConfig {
108
-
minSdkVersion 24
109
+
minSdkVersion 26
109
110
}
110
111
}
111
112
```
112
113
114
+
The `compileSdkVersion` and `targetSdkVersion` should be set to 36 or higher.
115
+
113
116
#### Set Google Maps API Key
114
117
115
118
To securely store your API key, it is recommended to use the [Google Maps Secrets Gradle Plugin](https://developers.google.com/maps/documentation/android-sdk/secrets-gradle-plugin). This plugin helps manage API keys without exposing them in your app's source code.
Copy file name to clipboardExpand all lines: example/LMFS/README.md
+7-1Lines changed: 7 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,13 @@ This is a sample application that show cases developers how to integrate with th
8
8
9
9
1. This library depends on the LMFS backend available in https://github.com/googlemaps/last-mile-fleet-solution-samples/tree/main/backend. This package provides docker-compose files to run the backend services at `/example/tools/backend` folder. For more information, please refer to the [README](../tools/backend/README.md) file in the tools/backend folder of the example app.
10
10
2. Once the backend is setup, create a delivery vehicle and keep the vehicleId handy. In order to make it easier to create vehicles with tasks, you can use the `/upload-delivery-config.html` endpoint on the backend. [example json](https://raw.githubusercontent.com/googlemaps/last-mile-fleet-solution-samples/main/backend/src/test/resources/test.json)
11
-
3. Go to the [App.tsx](/example/LMFS/src/App.tsx) file and update the VEHICLE_ID from the endpoint response.
11
+
3. Configure the VEHICLE_ID using one of the following methods:
12
+
-**Option 1: .env file (Recommended)** - Add the vehicle ID to your `.env` file in the `example` folder:
13
+
```
14
+
LMFS_VEHICLE_ID=your_vehicle_id
15
+
```
16
+
- **Option 2: Direct Input** - When you start the app, you can enter the vehicle ID directly in the "VEHICLE_ID Not Configured" screen.
17
+
- **Option 3: Code Update** - Go to the [App.tsx](/example/LMFS/src/App.tsx) file and update the VEHICLE_ID_DEFAULT constant with your vehicle ID.
0 commit comments