This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Component(modules = { | |
ScannerFeatureModule.class, | |
ScreenNavigationModule.class | |
}, dependencies = ScannerFeatureDependencies.class) | |
@PerFeature | |
public abstract class ScannerFeatureComponent implements ScannerFeatureApi { | |
// bla-bla-bla | |
@Component(dependencies = { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Component(dependencies = { | |
CoreUtilsApi.class, | |
CoreNetworkApi.class, | |
CoreDbApi.class, | |
PurchaseFeatureApi.class | |
}) | |
@PerFeature | |
interface ScannerFeatureDependenciesComponent extends ScannerFeatureDependencies { } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// bla-bla-bla | |
dependencies { | |
implementation project(':core-utils') | |
implementation project(':core-network-api') | |
implementation project(':core-db-api') | |
implementation project(':feature-purchase-api') | |
implementation project(':feature-scanner-api') | |
// bla-bla-bla | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public interface ScannerFeatureDependencies { | |
// core-db-api | |
DbClientApi dbClient(); | |
// core-network-api | |
HttpClientApi httpClient(); | |
// core-utils | |
SomeUtils someUtils(); | |
// feature-purchase-api | |
PurchaseInteractor purchaseInteractor(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// bla-bla-bla | |
dependencies { | |
implementation project(':core-utils') | |
implementation project(':core-network-api') | |
implementation project(':core-db-api') | |
implementation project(':feature-purchase-api') | |
implementation project(':feature-scanner-api') | |
// bla-bla-bla | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public interface ScannerFeatureDependencies { | |
// core-db-api | |
DbClientApi dbClient(); | |
// core-network-api | |
HttpClientApi httpClient(); | |
// core-utils | |
SomeUtils someUtils(); | |
// feature-purchase-api | |
PurchaseInteractor purchaseInteractor(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// bla-bla-bla | |
dependencies { | |
implementation project(':core-db-api') | |
// bla-bla-bla | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Component(modules = { | |
ScannerFeatureModule.class, | |
ScreenNavigationModule.class | |
// ScannerFeatureDependencies - api of Scanner feature dependencies | |
}, dependencies = ScannerFeatureDependencies.class) | |
@PerFeature | |
// ScannerFeatureApi - api of Scanner feature | |
public abstract class ScannerFeatureComponent implements ScannerFeatureApi { | |
private static volatile ScannerFeatureComponent sScannerFeatureComponent; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public interface ScannerStarter { | |
void start(Context context); | |
} | |
@PerFeature | |
public class ScannerStarterImpl implements ScannerStarter { | |
@Inject | |
public ScannerStarterImpl() { | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public interface ScannerFeatureApi { | |
ScannerStarter scannerStarter(); | |
} |