Load one company
This commit is contained in:
parent
db7418bff7
commit
ef29a94ab8
|
|
@ -2,6 +2,8 @@ class Config {
|
|||
static const String API_SECRET = 'secret';
|
||||
static const String SENTRY_DNS = 'https://634363c8dd6048b8ae89ab6c66dd9c24@sentry.invoicing.co/7';
|
||||
|
||||
static const bool DEBUG_EVENTS = true;
|
||||
static const bool DEBUG_REQUESTS = false;
|
||||
static const bool DEMO_MODE = false;
|
||||
|
||||
static const String TEST_EMAIL = 'user@example.com';
|
||||
|
|
|
|||
|
|
@ -69,7 +69,7 @@ class WebClient {
|
|||
}
|
||||
|
||||
print('POST: $url');
|
||||
if (!kReleaseMode) {
|
||||
if (!kReleaseMode && Config.DEBUG_REQUESTS) {
|
||||
printWrapped('Data: $data');
|
||||
}
|
||||
http.Response response;
|
||||
|
|
@ -117,7 +117,7 @@ class WebClient {
|
|||
}
|
||||
|
||||
print('PUT: $url');
|
||||
if (!kReleaseMode) {
|
||||
if (!kReleaseMode && Config.DEBUG_REQUESTS) {
|
||||
printWrapped('Data: $data');
|
||||
}
|
||||
http.Response response;
|
||||
|
|
@ -215,9 +215,9 @@ void _checkResponse(http.Response response) {
|
|||
debugPrint('response: ${response.statusCode} ${response.body}');
|
||||
*/
|
||||
|
||||
if (!kReleaseMode) {
|
||||
if (!kReleaseMode && Config.DEBUG_REQUESTS) {
|
||||
printWrapped('${response.statusCode} ${response.body}');
|
||||
print('headers: ${response.headers}');
|
||||
//print('headers: ${response.headers}');
|
||||
}
|
||||
|
||||
final serverVersion = response.headers['x-app-version'];
|
||||
|
|
|
|||
|
|
@ -83,7 +83,7 @@ void main({bool isTesting = false}) async {
|
|||
..addAll(createStoreCompanyGatewaysMiddleware())
|
||||
..addAll(createStoreGroupsMiddleware())
|
||||
..addAll(createStorePersistenceMiddleware())
|
||||
..addAll(true || isTesting || kReleaseMode
|
||||
..addAll(isTesting || kReleaseMode || !Config.DEBUG_EVENTS
|
||||
? []
|
||||
: [
|
||||
LoggingMiddleware<dynamic>.printer(
|
||||
|
|
|
|||
Loading…
Reference in New Issue