Modified the project structure, removed module extension and went instead for a non-complete core dependency graph

This commit is contained in:
Ernir Erlingsson
2016-03-13 22:31:14 +01:00
parent 7670bc48ea
commit 4da63b3800
33 changed files with 314 additions and 398 deletions

View File

@@ -0,0 +1,29 @@
package org.briarproject.system;
import android.app.Application;
import org.briarproject.android.api.AndroidExecutor;
import org.briarproject.api.system.LocationUtils;
import org.briarproject.api.system.SeedProvider;
import dagger.Module;
import dagger.Provides;
@Module
public class AndroidSystemModule {
@Provides
public SeedProvider provideSeedProvider(Application app) {
return new AndroidSeedProvider(app);
}
@Provides
public LocationUtils provideLocationUtils(Application app) {
return new AndroidLocationUtils(app);
}
@Provides
public AndroidExecutor providePlatformExecutor(Application app) {
return new AndroidExecutorImpl(app);
}
}