mirrored_repositories/canorous/lib
import 'package:canorous/app/AppComponent.dart';
import 'package:flutter/material.dart';
import 'package:canorous/config/application.dart';

enum EnvType {
  DEVELOPMENT,
  PRODUCTION,
  TESTING,
}

class Env {
  static Env value;

  String appName;
  EnvType envType = EnvType.DEVELOPMENT;
  String baseUrl;
  String dbName;

  Env() {
    value = this;
    _init();
  }

  void _init() async {
    // Load application config
    var app = Application();
    await app.onCreate();

    runApp(AppComponent(app));
  }
}
