8000 Separately instantiable (in case used by dependencies) · Issue #11 · amitshekhariitbhu/Fast-Android-Networking · GitHub
[go: up one dir, main page]

Skip to content
Separately instantiable (in case used by dependencies) #11
@paulpv

Description

@paulpv

If this library gets popular then it can become a victim of its success.
If both an app and a dependent library use this library then their configurations and state could clash.

The current singleton approach is handy and may cover the vast majority of use cases, but many use cases may need to create dedicated instances that don't share config/state with other instances (ex: configuring GZIP might work against some servers used by the app, but not others used by a dependent library.

It looks like InternalNetworking, ANRequestQueue, and ANImageLoader would need to be refactored.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0