Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor Volley into a multi-module project. #418

Merged
merged 1 commit into from
Jul 7, 2021

Conversation

jpd236
Copy link
Collaborator

@jpd236 jpd236 commented Jun 30, 2021

This splits the library into three Gradle modules:

  • core - volley core + toolbox
  • cronet - CronetHttpStack
  • testing - common testing code

The primary purpose is to split out CronetHttpStack into its own Maven
artifact, com.android.volley:volley-cronet, to prevent applications
which aren't using it from having to either suppress Proguard/D8
warnings or pull in the unnecessary dependency.

The testing module is needed to share TestRequest between unit tests
in both core and cronet. It is not published to Maven.

This PR also removes support for the build.gradle/rules.gradle split
which allowed Gradle projects to depend on Volley by source and
specify their own SDK settings. This is no longer worth supporting,
and any client that wishes to depend on Volley via Gradle should do
so via published Maven artifacts instead.

See #412

@jpd236 jpd236 requested a review from jbiral June 30, 2021 19:50
settings.gradle Outdated Show resolved Hide resolved
This splits the library into three Gradle modules:

- core - volley core + toolbox
- cronet - CronetHttpStack
- testing - common testing code

The primary purpose is to split out CronetHttpStack into its own Maven
artifact, com.android.volley:volley-cronet, to prevent applications
which aren't using it from having to either suppress Proguard/D8
warnings or pull in the unnecessary dependency.

The testing module is needed to share TestRequest between unit tests
in both core and cronet. It is not published to Maven.

This PR also removes support for the build.gradle/rules.gradle split
which allowed Gradle projects to depend on Volley by source and
specify their own SDK settings. This is no longer worth supporting,
and any client that wishes to depend on Volley via Gradle should do
so via published Maven artifacts instead.
@jpd236 jpd236 merged commit 0dc50bc into google:master Jul 7, 2021
@jpd236 jpd236 deleted the cronet-split branch July 7, 2021 21:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants