Skip to content

Commit

Permalink
Removed ApplicationModule
Browse files Browse the repository at this point in the history
  • Loading branch information
JaniruTEC committed Sep 29, 2023
1 parent afaf402 commit 9e52990
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 26 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ class CryptomatorApp : MultiDexApplication(), HasComponent<ApplicationComponent>

private fun initializeInjector() {
applicationComponent = DaggerApplicationComponent.builder() //
.withApp(this) //
.withApplicationContext(this) //
.withCryptors(appCryptors) //
.build()
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
import org.cryptomator.domain.repository.CloudRepository;
import org.cryptomator.domain.repository.UpdateCheckRepository;
import org.cryptomator.domain.repository.VaultRepository;
import org.cryptomator.presentation.CryptomatorApp;
import org.cryptomator.presentation.di.module.ApplicationModule;
import org.cryptomator.presentation.di.module.ThreadModule;
import org.cryptomator.presentation.util.ContentResolverUtil;
import org.cryptomator.presentation.util.FileUtil;
Expand All @@ -23,7 +21,7 @@
import dagger.Component;

@Singleton
@Component(modules = {ApplicationModule.class, ThreadModule.class, RepositoryModule.class})
@Component(modules = {ThreadModule.class, RepositoryModule.class})
public interface ApplicationComponent {

Context context();
Expand All @@ -50,7 +48,7 @@ public interface ApplicationComponent {
interface Builder {

@BindsInstance
Builder withApp(CryptomatorApp app);
Builder withApplicationContext(Context appContext);

@BindsInstance
Builder withCryptors(Cryptors cryptors);
Expand Down

This file was deleted.

0 comments on commit 9e52990

Please sign in to comment.