Add Wyatt Continuous Deployment as Sub package #236
| @ -14,10 +14,23 @@ | |||||||
| // You should have received a copy of the GNU General Public License | // You should have received a copy of the GNU General Public License | ||||||
| // along with this program. If not, see <https://www.gnu.org/licenses/>. | // along with this program. If not, see <https://www.gnu.org/licenses/>. | ||||||
| 
 | 
 | ||||||
|  | import 'package:get_it/get_it.dart'; | ||||||
| import 'package:mason_logger/mason_logger.dart'; | import 'package:mason_logger/mason_logger.dart'; | ||||||
|  | import 'package:wyatt_continuous_deployment/src/core/injection/injectable.dart'; | ||||||
| 
 | 
 | ||||||
| export 'domain/domain.dart'; | export 'domain/domain.dart'; | ||||||
| 
 | 
 | ||||||
| abstract class WyattContinuousDeployment { | abstract class WyattContinuousDeployment { | ||||||
|  |   /// The logger used by the package | ||||||
|   static Logger logger = Logger(); |   static Logger logger = Logger(); | ||||||
|  | 
 | ||||||
|  |   /// The service locator used by the package | ||||||
|  |   static GetIt getIt = GetIt.instance; | ||||||
|  | 
 | ||||||
|  |   /// Configure the dependencies | ||||||
|  |   /// This method should be called before WyattContinuousDeployment.getIt | ||||||
|  |   /// to ensure that all dependencies are registered | ||||||
|  |   static Future<void> configureDependencies() async { | ||||||
|  |     await Injectable.configureDependencies(); | ||||||
|  |   } | ||||||
| } | } | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user