diff --git a/README.md b/README.md index 3a1adf0..794750c 100644 --- a/README.md +++ b/README.md @@ -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]'; } ``` diff --git a/lib/config/environment.dart b/lib/config/environment.dart index bb6fe91..31cb53c 100644 --- a/lib/config/environment.dart +++ b/lib/config/environment.dart @@ -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]'; +} \ No newline at end of file diff --git a/prepare-env.sh b/prepare-env.sh index 703e159..6850457 100644 --- a/prepare-env.sh +++ b/prepare-env.sh @@ -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