WordPress-FluxC-Android
WordPress-FluxC-Android copied to clipboard
Better setup documentation needed
It appears that the setup is missing some documentation for dependencies, etc.
AppComonent.java
- @Singleton was giving an error. Documentation was missing instructions to add this line to the file.
import javax.inject.Singleton;
- @Component was also giving an error. Documentation was missing instructions to add this line to the file.
import dagger.Component;
ExampleApp.java
- This line
WellSql.init(new WellSqlConfig(getApplicationContext()));
was showingWellSqlConfig
in red. Documentation was missing instructions to add this lineimport org.wordpress.android.fluxc.persistence.WellSqlConfig;
- This line
.appContextModule(new AppContextModule(getApplicationContext()))
is also erroring out b/c the documentation doesn't instruct to add this lineimport org.wordpress.android.fluxc.module.AppContextModule;
Also noticed this AppComonent.java file needed some imports as well.
import org.wordpress.android.fluxc.module.AppContextModule;
import org.wordpress.android.fluxc.module.ReleaseBaseModule;
import org.wordpress.android.fluxc.module.ReleaseNetworkModule;
import org.wordpress.android.fluxc.module.ReleaseOkHttpClientModule;
import org.wordpress.android.fluxc.module.ReleaseStoreModule;
All These things together allowed a successful build.