-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Modifying Data Manager to handle multiple loads
- Made storage component dependent on net component - Updated main activity to use no manager system
- Loading branch information
Showing
16 changed files
with
199 additions
and
174 deletions.
There are no files selected for viewing
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
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
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
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
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
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
11 changes: 3 additions & 8 deletions
11
app/src/main/java/com/w9jds/marketbot/classes/components/StorageComponent.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,17 @@ | ||
package com.w9jds.marketbot.classes.components; | ||
|
||
import com.w9jds.eveapi.Client.Crest; | ||
import com.w9jds.marketbot.activities.MainActivity; | ||
import com.w9jds.marketbot.classes.modules.ApplicationModule; | ||
import com.w9jds.marketbot.classes.modules.StorageModule; | ||
import com.w9jds.marketbot.data.DataManager; | ||
|
||
import javax.inject.Singleton; | ||
|
||
import dagger.Component; | ||
|
||
/** | ||
* Created by Jeremy Shore on 3/10/16. | ||
*/ | ||
@Singleton | ||
@Component(modules={StorageModule.class}) | ||
@StorageScope | ||
@Component(dependencies = NetComponent.class, modules = StorageModule.class) | ||
public interface StorageComponent { | ||
|
||
void inject(DataManager manager); | ||
void inject(Crest crest); | ||
|
||
} |
10 changes: 10 additions & 0 deletions
10
app/src/main/java/com/w9jds/marketbot/classes/components/StorageScope.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package com.w9jds.marketbot.classes.components; | ||
|
||
import javax.inject.Scope; | ||
|
||
/** | ||
* Created by w9jds on 3/13/2016. | ||
*/ | ||
@Scope | ||
public @interface StorageScope { | ||
} |
Oops, something went wrong.