-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
25 changed files
with
482 additions
and
335 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
13 changes: 13 additions & 0 deletions
13
app/src/main/java/com/funnydevs/hilt_conductor/demo/BaseBaseController.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,13 @@ | ||
package com.funnydevs.hilt_conductor.demo | ||
|
||
import android.os.Bundle | ||
import com.bluelinelabs.conductor.Controller | ||
import javax.inject.Inject | ||
import javax.inject.Named | ||
|
||
abstract class BaseBaseController(args: Bundle?) : Controller(args) { | ||
|
||
@Inject | ||
@Named("second") | ||
lateinit var secondText: String | ||
} |
7 changes: 3 additions & 4 deletions
7
app/src/main/java/com/funnydevs/hilt_conductor/demo/BaseController.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 |
---|---|---|
@@ -1,13 +1,12 @@ | ||
package com.funnydevs.hilt_conductor.demo | ||
|
||
import android.os.Bundle | ||
import com.bluelinelabs.conductor.Controller | ||
import javax.inject.Inject | ||
import javax.inject.Named | ||
|
||
abstract class BaseController(args: Bundle?) : Controller(args) { | ||
abstract class BaseController(args: Bundle?): BaseBaseController(args) { | ||
|
||
@Inject | ||
@Named("second") | ||
lateinit var testo: String | ||
@Named("first") | ||
lateinit var text: String | ||
} |
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
16 changes: 5 additions & 11 deletions
16
app/src/main/java/com/funnydevs/hilt_conductor/demo/MainController.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 |
---|---|---|
@@ -1,32 +1,26 @@ | ||
package com.funnydevs.hilt_conductor.demo | ||
|
||
import android.annotation.SuppressLint | ||
import android.os.Bundle | ||
import android.view.LayoutInflater | ||
import android.view.View | ||
import android.view.ViewGroup | ||
import android.widget.TextView | ||
import com.bluelinelabs.conductor.Controller | ||
import com.funnydevs.hilt_conductor.ConductorInterface | ||
import com.funnydevs.hilt_conductor.annotations.ConductorEntryPoint | ||
import com.funnydevs.hilt_conductor.annotations.ControllerScoped | ||
import dagger.hilt.EntryPoints | ||
import dagger.hilt.android.EntryPointAccessors | ||
import javax.inject.Inject | ||
import javax.inject.Named | ||
|
||
@ConductorEntryPoint | ||
class MainController(args: Bundle?) : BaseController(args) { | ||
|
||
|
||
|
||
@SuppressLint("SetTextI18n") | ||
override fun onCreateView( | ||
inflater: LayoutInflater, | ||
container: ViewGroup, | ||
savedViewState: Bundle? | ||
): View { | ||
System.out.println() | ||
val view = inflater.inflate(R.layout.controller_main, container, false) | ||
view.findViewById<TextView>(R.id.tv_test).text = testo | ||
view.findViewById<TextView>(R.id.tv_test).text = "$text $secondText" | ||
return view | ||
} | ||
|
||
|
||
} |
10 changes: 0 additions & 10 deletions
10
app/src/main/java/com/funnydevs/hilt_conductor/demo/SingletonModule.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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#Fri Apr 23 14:34:01 CEST 2021 | ||
#Fri Dec 08 11:42:47 CST 2023 | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0-bin.zip | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-all.zip |
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 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
27 changes: 0 additions & 27 deletions
27
plugin/src/main/java/com/funnydevs/hilt_conductor/HiltConductorPlugin.kt
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.