WordPress-FluxC-Android icon indicating copy to clipboard operation
WordPress-FluxC-Android copied to clipboard

Better setup documentation needed

Open mapk opened this issue 7 years ago • 1 comments

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 showing WellSqlConfig in red. Documentation was missing instructions to add this line import 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 line import org.wordpress.android.fluxc.module.AppContextModule;

mapk avatar Aug 29 '17 21:08 mapk

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.

mapk avatar Aug 29 '17 21:08 mapk