-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from trevjonez/dagger_split_lib
Lazy delegates, and all in on dagger.
- Loading branch information
Showing
53 changed files
with
1,023 additions
and
506 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
3 changes: 0 additions & 3 deletions
3
app/src/main/java/com/trevjonez/polyadapter/sample/data/DividerLine.kt
This file was deleted.
Oops, something went wrong.
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,6 @@ | ||
package polyadapter.sample | ||
|
||
import javax.inject.Scope | ||
|
||
@Scope | ||
annotation class ActivityScope |
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 polyadapter.sample | ||
|
||
import dagger.android.AndroidInjector | ||
import dagger.android.support.DaggerApplication | ||
|
||
class App: DaggerApplication() { | ||
override fun applicationInjector(): AndroidInjector<out DaggerApplication> { | ||
return DaggerAppComponent.create() | ||
} | ||
} |
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,15 @@ | ||
package polyadapter.sample | ||
|
||
import dagger.Component | ||
import dagger.android.AndroidInjectionModule | ||
import dagger.android.AndroidInjector | ||
import javax.inject.Singleton | ||
|
||
@Singleton | ||
@Component( | ||
modules = [ | ||
SampleActivity.BindingModule::class, | ||
AndroidInjectionModule::class | ||
] | ||
) | ||
interface AppComponent : AndroidInjector<App> |
47 changes: 12 additions & 35 deletions
47
...onez/polyadapter/sample/SampleActivity.kt → .../polyadapter/sample/ArchitecturalThing.kt
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
Oops, something went wrong.