forked from nickbutcher/plaid
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Multibinding and Initializer"
This reverts commit 348a023.
- Loading branch information
1 parent
ca4fdc3
commit e9741fc
Showing
15 changed files
with
132 additions
and
83 deletions.
There are no files selected for viewing
8 changes: 0 additions & 8 deletions
8
core/src/main/java/io/plaidapp/core/interfaces/ModuleInitializer.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
15 changes: 0 additions & 15 deletions
15
designernews/src/main/java/io/plaidapp/designernews/dagger/DesignerNewsSearchInitializer.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
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
34 changes: 34 additions & 0 deletions
34
...src/main/java/io/plaidapp/designernews/domain/search/DesignerNewsSearchFactoryProvider.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
/* | ||
* Copyright 2019 Google, Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package io.plaidapp.designernews.domain.search | ||
|
||
import android.content.Context | ||
import io.plaidapp.core.interfaces.SearchDataSourceFactory | ||
import io.plaidapp.core.interfaces.SearchFactoryProvider | ||
import io.plaidapp.designernews.dagger.DaggerDesignerNewsSearchComponent | ||
import io.plaidapp.designernews.dagger.DesignerNewsPreferencesModule | ||
|
||
object DesignerNewsSearchFactoryProvider : SearchFactoryProvider { | ||
|
||
override fun getFactory(context: Context): SearchDataSourceFactory { | ||
return DaggerDesignerNewsSearchComponent.builder() | ||
.designerNewsPreferencesModule( | ||
DesignerNewsPreferencesModule(context) | ||
) | ||
.build().factory() | ||
} | ||
} |
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
32 changes: 32 additions & 0 deletions
32
dribbble/src/main/java/io/plaidapp/dribbble/domain/search/DribbbleSearchFactoryProvider.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/* | ||
* Copyright 2019 Google, Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package io.plaidapp.dribbble.domain.search | ||
|
||
import android.content.Context | ||
import io.plaidapp.core.interfaces.SearchDataSourceFactory | ||
import io.plaidapp.core.interfaces.SearchFactoryProvider | ||
import io.plaidapp.dribbble.dagger.DaggerDribbbleSearchComponent | ||
import io.plaidapp.ui.PlaidApplication.Companion.coreComponent | ||
|
||
object DribbbleSearchFactoryProvider : SearchFactoryProvider { | ||
|
||
override fun getFactory(context: Context): SearchDataSourceFactory { | ||
return DaggerDribbbleSearchComponent.builder() | ||
.coreComponent(coreComponent(context)) | ||
.build().factory() | ||
} | ||
} |
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