codelab-android-dagger icon indicating copy to clipboard operation
codelab-android-dagger copied to clipboard

Results 32 codelab-android-dagger issues
Sort by recently updated
recently updated
newest added

Under Using Dagger in the Main Flow of [Using Dagger in your Android app - Kotlin (Part 8)](https://developer.android.com/codelabs/android-dagger) Point 3 states "Inject `MainActivity` in `appComponent` to populate the injected fields."...

class MainActivity : AppCompatActivity() { // 1) Remove userManager field @Inject lateinit var userManager: UserManager @Inject lateinit var mainViewModel: MainViewModel override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setContentView(R.layout.activity_settings)

In section #8 we are injecting MainActivity in AppComponent as following ` (application as MyApplication).appComponent.inject(this) ` which has to be removed in section #13 when updating main activity. This piece...

https://developer.android.com/codelabs/android-dagger#9 Dagger Subcomponents A RegistrationComponent must be able to access the objects from AppComponent since RegistrationViewModel depends on UserRepository. But, actually, if we refer to a scheme of application graph...

In this section: https://developer.android.com/codelabs/android-dagger#14 Please explain in detail about: What does @Retention(AnnotationRetention.BINARY) do and what does @Retention(AnnotationRetention.BINARY) mean? "They can be documented" ==> What does it mean?

This paragraph is stated (truthfully): In AppComponent, we have to remove the methods that can inject registration view classes because these won't be used anymore, those classes will use the...

Step @Component describes the need for an #inject method to be used by the RegistrationActivity, but omits to call that method from the #onCreate method of that activity. The student...

Field doesn't define in the RegistrationActivity class in [https://developer.android.com/codelabs/android-dagger#10 ](https://developer.android.com/codelabs/android-dagger#10) The registrationComponent filed not defined as a class field. It may be confusable Could you change from ``` class RegistrationActivity...

This PR solves the optional step of the Dagger codelab, solving the issue #4 too.

At the end of text: Your project should now build with no errors.. Dagger has generated the application graph successfully and you're ready to use it. It should be: Your...