Skip to content

Commit

Permalink
refactor(env): move environment
Browse files Browse the repository at this point in the history
  • Loading branch information
LeadcodeDev committed May 13, 2024
1 parent a686c19 commit efbdfa6
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion lib/core/container.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:mineral/domains/environment/environment.dart' as env_service;
import 'package:mineral/infrastructure/internals/environment/environment.dart' as env_service;
import 'package:mineral/infrastructure/services/logger/logger.dart' as logger_service;

mixin Logger {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:mineral/domains/environment/env_schema.dart';
import 'package:mineral/infrastructure/internals/environment/env_schema.dart';

enum AppEnv implements EnvSchema {
token('TOKEN'),
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import 'dart:io';

import 'package:mineral/domains/environment/env_schema.dart';
import 'package:mineral/infrastructure/internals/container/ioc_container.dart';
import 'package:mineral/infrastructure/internals/environment/env_schema.dart';

abstract interface class EnvContract {
Map<String, String> get list;
Expand Down
14 changes: 7 additions & 7 deletions lib/infrastructure/kernel/client.dart
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
import 'dart:io';
import 'dart:isolate';

import 'package:mineral/domains/environment/app_env.dart';
import 'package:mineral/domains/environment/env_schema.dart';
import 'package:mineral/domains/environment/environment.dart';
import 'package:mineral/domains/events/event_listener.dart';
import 'package:mineral/infrastructure/internals/cache/cache_provider_contract.dart';
import 'package:mineral/infrastructure/internals/container/ioc_container.dart';
import 'package:mineral/infrastructure/internals/datastore/data_store.dart';
import 'package:mineral/infrastructure/internals/environment/app_env.dart';
import 'package:mineral/infrastructure/internals/environment/env_schema.dart';
import 'package:mineral/infrastructure/internals/environment/environment.dart';
import 'package:mineral/infrastructure/internals/hmr/watcher_config.dart';
import 'package:mineral/infrastructure/kernel/kernel.dart';
import 'package:mineral/infrastructure/kernel/mineral_client.dart';
import 'package:mineral/infrastructure/internals/cache/cache_provider_contract.dart';
import 'package:mineral/infrastructure/internals/packets/packet_listener.dart';
import 'package:mineral/infrastructure/internals/marshaller/marshaller.dart';
import 'package:mineral/infrastructure/internals/packets/packet_listener.dart';
import 'package:mineral/infrastructure/internals/wss/sharding_config.dart';
import 'package:mineral/infrastructure/kernel/kernel.dart';
import 'package:mineral/infrastructure/kernel/mineral_client.dart';
import 'package:mineral/infrastructure/services/http/header.dart';
import 'package:mineral/infrastructure/services/http/http_client.dart';
import 'package:mineral/infrastructure/services/http/http_client_config.dart';
Expand Down
4 changes: 2 additions & 2 deletions lib/infrastructure/kernel/kernel.dart
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import 'dart:io';
import 'dart:isolate';

import 'package:mineral/domains/environment/app_env.dart';
import 'package:mineral/domains/environment/environment.dart';
import 'package:mineral/domains/events/event_listener.dart';
import 'package:mineral/infrastructure/internals/datastore/data_store.dart';
import 'package:mineral/infrastructure/internals/environment/app_env.dart';
import 'package:mineral/infrastructure/internals/environment/environment.dart';
import 'package:mineral/infrastructure/internals/hmr/hot_module_reloading.dart';
import 'package:mineral/infrastructure/internals/hmr/watcher_config.dart';
import 'package:mineral/infrastructure/internals/marshaller/marshaller.dart';
Expand Down
2 changes: 1 addition & 1 deletion lib/infrastructure/kernel/mineral_client.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'package:mineral/domains/events/event_bucket.dart';
import 'package:mineral/domains/events/types/listenable_event.dart';
import 'package:mineral/domains/environment/environment.dart';
import 'package:mineral/infrastructure/internals/environment/environment.dart';
import 'package:mineral/infrastructure/kernel/kernel.dart';

abstract interface class MineralClientContract {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import 'package:mineral/domains/environment/environment.dart';
import 'package:mineral/infrastructure/internals/container/ioc_container.dart';
import 'package:mineral/infrastructure/internals/environment/environment.dart';
import 'package:mineral/infrastructure/services/placeholder/placeholder.dart';
import 'package:recase/recase.dart';

Expand Down

0 comments on commit efbdfa6

Please sign in to comment.