-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use envied instead of dart_define.
- Loading branch information
Showing
12 changed files
with
81 additions
and
109 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import "package:envied/envied.dart"; | ||
|
||
part "env.g.dart"; | ||
|
||
/// Environment variables. | ||
@Envied(useConstantCase: true) | ||
abstract class Env { | ||
/// Appwrite project ID | ||
@EnviedField(defaultValue: "pirate-code") | ||
static const String projectId = _Env.projectId; | ||
|
||
/// Appwrite API endpoint | ||
@EnviedField(defaultValue: "http://localhost:80/v1") | ||
static const String apiEndpoint = _Env.apiEndpoint; | ||
|
||
/// Appwrite database ID | ||
@EnviedField(defaultValue: "pirate-coins") | ||
static const String databaseId = _Env.databaseId; | ||
|
||
/// Appwrite collection ID | ||
@EnviedField(defaultValue: "coins") | ||
static const String collectionId = _Env.collectionId; | ||
|
||
/// If the Appwrite Server uses self-signed certificates. | ||
@EnviedField(defaultValue: false) | ||
static const bool selfSigned = _Env.selfSigned; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -57,7 +57,6 @@ dartdoc | |
data | ||
Decap | ||
dhttpd | ||
direnv | ||
endtemplate | ||
fullscreen | ||
gbaccetta | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters