Update placeholders
This commit is contained in:
parent
9453e45ced
commit
8e2361b825
@ -27,9 +27,9 @@ Alternatively, open the repository URL in `Android Studio` to clone it directly.
|
||||
Open `lib/config/environment.dart` and update the values with your Appwrite project credentials:
|
||||
```dart
|
||||
class Environment {
|
||||
static const String appwriteEndpoint = 'appwrite-endpoint';
|
||||
static const String appwriteProjectId = 'your-project-id';
|
||||
static const String appwriteProjectName = 'your-project-name';
|
||||
static const String appwriteEndpoint = '[appwriteEndpoint]';
|
||||
static const String appwriteProjectId = '[appwriteProjectId]';
|
||||
static const String appwriteProjectName = '[appwriteProjectName]';
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
class Environment {
|
||||
static const String appwriteEndpoint = 'appwrite-endpoint';
|
||||
static const String appwriteProjectId = 'appwrite-project-id';
|
||||
static const String appwriteProjectName = 'appwrite-project-name';
|
||||
}
|
||||
static const String appwriteEndpoint = '[appwriteEndpoint]';
|
||||
static const String appwriteProjectId = '[appwriteProjectId]';
|
||||
static const String appwriteProjectName = '[appwriteProjectName]';
|
||||
}
|
||||
@ -3,11 +3,11 @@ set -e
|
||||
|
||||
# Script used during deployment on Appwrite Sites
|
||||
|
||||
# Replace [appwriteEndpoint] with APPWRITE_ENDPOINT in environments files
|
||||
sed -i "s|appwrite-endpoint|$APPWRITE_ENDPOINT|g" lib/config/environment.dart
|
||||
# Replace [appwriteEndpoint] with APPWRITE_ENDPOINT in environment file
|
||||
sed -i "s|\[appwriteEndpoint\]|$APPWRITE_ENDPOINT|g" lib/config/environment.dart
|
||||
|
||||
# Replace [appwriteProjectId] with APPWRITE_PROJECT_ID in environments files
|
||||
sed -i "s|appwrite-project-id|$APPWRITE_PROJECT_ID|g" lib/config/environment.dart
|
||||
# Replace [appwriteProjectId] with APPWRITE_PROJECT_ID in environment file
|
||||
sed -i "s|\[appwriteProjectId\]|$APPWRITE_PROJECT_ID|g" lib/config/environment.dart
|
||||
|
||||
# Replace [appwriteProjectName] with APPWRITE_PROJECT_NAME in environments files
|
||||
sed -i "s|appwrite-project-name|$APPWRITE_PROJECT_NAME|g" lib/config/environment.dart
|
||||
# Replace [appwriteProjectName] with APPWRITE_PROJECT_NAME in environment file
|
||||
sed -i "s|\[appwriteProjectName\]|$APPWRITE_PROJECT_NAME|g" lib/config/environment.dart
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user