mirror of
				https://github.com/InsanusMokrassar/SDI.git
				synced 2025-11-03 21:10:04 +00:00 
			
		
		
		
	
			
				
					
						
					
					d7b02fc6919c9fbe63c45b6102c9fbe7419cf567
				
			
			
		
	SDI
It is simple (in comparison with other systems) DI, which aim to be compatible and predictable.
Availability platforms
- JVM
 - JS
 - Native
 
Required environment
To use this library you will need two things:
- Json serializer
 - Json config
 
Unfortunately, currently not supported other formats (due to issue in Kotlinx.serialization)
Rules
Full examples of usage you can find in tests. In two words, there are a few rules for constructing of config:
- Config root is an Json Object
 - Config root names will be used as dependency names
 - In the config dependency names can be used everywhere
 - In places, where dependency will be injected, must be used 
@ContextualSerializerannotation or@Serializer(ContextSerializer::class) 
Description
				
					Languages
				
				
								
								
									Kotlin
								
								98.1%
							
						
							
								
								
									Shell
								
								1.9%