{"action":"opened","issue":{"url":"https://api.github.com/repos/square/AssistedInject/issues/112","repository_url":"https://api.github.com/repos/square/AssistedInject","labels_url":"https://api.github.com/repos/square/AssistedInject/issues/112/labels{/name}","comments_url":"https://api.github.com/repos/square/AssistedInject/issues/112/comments","events_url":"https://api.github.com/repos/square/AssistedInject/issues/112/events","html_url":"https://github.com/square/AssistedInject/issues/112","id":478884813,"node_id":"MDU6SXNzdWU0Nzg4ODQ4MTM=","number":112,"title":"AssistedInject_MyModule not being generated.","user":{"login":"stavro96","id":31472273,"node_id":"MDQ6VXNlcjMxNDcyMjcz","avatar_url":"https://avatars3.githubusercontent.com/u/31472273?v=4","gravatar_id":"","url":"https://api.github.com/users/stavro96","html_url":"https://github.com/stavro96","followers_url":"https://api.github.com/users/stavro96/followers","following_url":"https://api.github.com/users/stavro96/following{/other_user}","gists_url":"https://api.github.com/users/stavro96/gists{/gist_id}","starred_url":"https://api.github.com/users/stavro96/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stavro96/subscriptions","organizations_url":"https://api.github.com/users/stavro96/orgs","repos_url":"https://api.github.com/users/stavro96/repos","events_url":"https://api.github.com/users/stavro96/events{/privacy}","received_events_url":"https://api.github.com/users/stavro96/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2019-08-09T09:14:52Z","updated_at":"2019-08-09T09:14:52Z","closed_at":null,"author_association":"NONE","body":"I was trying to create an assisted module for my viewmodel but it doesn't generate. This is my viewmodel: \r\n\r\n```class GalleryViewModel @AssistedInject constructor(\r\n    val galleryDataSourceFactory: GalleryDataSourceFactory\r\n) : ViewModel() {\r\n\r\n    @AssistedInject.Factory\r\n    interface Factory {\r\n        fun create(): GalleryViewModel\r\n    }\r\n}```\r\n\r\nAnd it compiles with no errors. Perhaps i should include the generated factory: \r\n\r\n```public final class GalleryViewModel_Factory implements Factory<GalleryViewModel> {\r\n  private final Provider<GalleryDataSourceFactory> galleryDataSourceFactoryProvider;\r\n\r\n  public GalleryViewModel_Factory(\r\n      Provider<GalleryDataSourceFactory> galleryDataSourceFactoryProvider) {\r\n    this.galleryDataSourceFactoryProvider = galleryDataSourceFactoryProvider;\r\n  }\r\n\r\n  @Override\r\n  public GalleryViewModel get() {\r\n    return new GalleryViewModel(galleryDataSourceFactoryProvider.get());\r\n  }\r\n\r\n  public static GalleryViewModel_Factory create(\r\n      Provider<GalleryDataSourceFactory> galleryDataSourceFactoryProvider) {\r\n    return new GalleryViewModel_Factory(galleryDataSourceFactoryProvider);\r\n  }\r\n\r\n  public static GalleryViewModel newInstance(GalleryDataSourceFactory galleryDataSourceFactory) {\r\n    return new GalleryViewModel(galleryDataSourceFactory);\r\n  }\r\n}```\r\n\r\nLast, when I try the @AssistedModule, I can't find my assistedmodule: \r\n\r\n```\r\n@AssistedModule\r\n@Module(includes = [AssistedInject_ViewModelModule::class]) //not generating\r\nabstract class ViewModelModule\r\n```"}}
{"actor":{"display_login":"stavro96"}}