Giter Site home page Giter Site logo

clean-android-code's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

clean-android-code's Issues

No Unit tests ?

A great reason for using Dagger and an architecture is to facilitate unit-testing.
How come you've skipped unit tests ?

Excellent demo code otherwise

Question

hi guys,i am Chinese student. My english is poor
Can you explain to me why you write like this
I have never met this kind of writing

9ur247e 400j9ov77y65x v
Please help me, thank you very much.

Please explain, or add link to references

Here I'd like to point out that your Medium tutorial is not a tutorial by itself, at the moment it's just a bunch of code mirrored from GitHub. Mind you, I'm not telling this for the sake of blaming your (hard) job, but as you have pointed out at the end of the post, you didn't explain a lot of niches.

"I am so sorry, because I can’t explain this tutorial clearly."

So I'm opening this issue to invite the community to contribute with guided comments or links. Have a nice day!

How to set Multiple BaseURL ?

I have currently 4 different baseurl for different things in API call so how do I set all of them depends on requirement?

Resolve DaggerDeps

import com.plaps.androidcleancode.deps.DaggerDeps;

import com.plaps.androidcleancode.deps.Deps;
import com.plaps.androidcleancode.networking.NetworkModule;

import java.io.File;

/**

  • Created by ennur on 6/28/16.
    */
    public class BaseApp extends AppCompatActivity{
    Deps deps;

    @OverRide
    public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    File cacheFile = new File(getCacheDir(), "responses");

deps = DaggerDeps.builder().networkModule(new NetworkModule(cacheFile)).build();

}

public Deps getDeps() {
    return deps;
}

}

How to resolve DaggerDeps ?

Dagger Related question

In HomeActivity, can't we initialize HomePresenter via Dagger instead of directly using "new" operator,
as Definition of Dependancy Injection, there will you not be an explicit initialization of the object, please clear my doubt, I am confused here.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.