Skip to content

Commit

Permalink
Merge pull request #41 from inFullMobile/dagger-211-template-fixes
Browse files Browse the repository at this point in the history
Application component needs to be scoped
  • Loading branch information
bhm authored Sep 28, 2017
2 parents 56feee7 + bc176ce commit 457a499
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public abstract class ${moduleClass} {

@${scopeClass}
@Provides
static public ${modelClass} provides${modelClass}() {
static ${modelClass} provides${modelClass}() {
return new ${modelClass}();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public abstract class ${moduleClass} {

@${scopeClass}
@Provides
static public ${modelClass} provides${modelClass}() {
static ${modelClass} provides${modelClass}() {
return new ${modelClass}();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public abstract class ${moduleClass} {

@${scopeClass}
@Provides
static public ${modelClass} provides${modelClass}() {
static ${modelClass} provides${modelClass}() {
return new ${modelClass}();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ import ${relativePackage}.${applicationClass}
import dagger.BindsInstance
import dagger.Component
import dagger.android.support.AndroidSupportInjectionModule
import javax.inject.Singleton

@Singleton
@Component(
modules = arrayOf(
AndroidSupportInjectionModule::class,
Expand Down

0 comments on commit 457a499

Please sign in to comment.