Initial framework in place, non-functional POST & env vars atm
This commit is contained in:
parent
3bc940063a
commit
5c718fc14b
29 changed files with 1263 additions and 170 deletions
6
lib/env/dev.dart
vendored
Normal file
6
lib/env/dev.dart
vendored
Normal file
|
@ -0,0 +1,6 @@
|
|||
import 'package:json_annotation/json_annotation.dart';
|
||||
|
||||
part 'dev.g.dart';
|
||||
|
||||
@JsonLiteral('dev.json', asConst: true)
|
||||
Map<String, dynamic> get config => _$configJsonLiteral;
|
13
lib/env/dev.g.dart
vendored
Normal file
13
lib/env/dev.g.dart
vendored
Normal file
|
@ -0,0 +1,13 @@
|
|||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
|
||||
part of 'dev.dart';
|
||||
|
||||
// **************************************************************************
|
||||
// JsonLiteralGenerator
|
||||
// **************************************************************************
|
||||
|
||||
const _$configJsonLiteral = {
|
||||
'env': 'DEV',
|
||||
'production': false,
|
||||
'apiUrl': 'https://dev.peartrade.org/api'
|
||||
};
|
5
lib/env/dev.json
vendored
Normal file
5
lib/env/dev.json
vendored
Normal file
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"env": "DEV",
|
||||
"production": false,
|
||||
"apiUrl": "https://dev.peartrade.org/api"
|
||||
}
|
6
lib/env/prod.dart
vendored
Normal file
6
lib/env/prod.dart
vendored
Normal file
|
@ -0,0 +1,6 @@
|
|||
import 'package:json_annotation/json_annotation.dart';
|
||||
|
||||
part 'prod.g.dart';
|
||||
|
||||
@JsonLiteral('prod.json', asConst: true)
|
||||
Map<String, dynamic> get config => _$configJsonLiteral;
|
13
lib/env/prod.g.dart
vendored
Normal file
13
lib/env/prod.g.dart
vendored
Normal file
|
@ -0,0 +1,13 @@
|
|||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
|
||||
part of 'prod.dart';
|
||||
|
||||
// **************************************************************************
|
||||
// JsonLiteralGenerator
|
||||
// **************************************************************************
|
||||
|
||||
const _$configJsonLiteral = {
|
||||
'env': 'PROD',
|
||||
'production': true,
|
||||
'apiUrl': 'https://www.peartrade.org/api'
|
||||
};
|
5
lib/env/prod.json
vendored
Normal file
5
lib/env/prod.json
vendored
Normal file
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"env": "PROD",
|
||||
"production": true,
|
||||
"apiUrl": "https://www.peartrade.org/api"
|
||||
}
|
Reference in a new issue