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 to remove duplication #70

Merged
merged 3 commits into from
May 22, 2024
Merged

Conversation

tresat
Copy link
Member

@tresat tresat commented May 21, 2024

Create base AndroidSoftware types that are extended by both Library and Applications and reduce duplication, making all feature extensions available to both types.

Lots of other internal cleanup and minor refactoring, remove some helper classes that can be replaced by the base plugin type now.

Marks TODOs around NiA code.

@tresat tresat self-assigned this May 21, 2024
@tresat tresat force-pushed the tt/reduce-duplication-with-oop branch from c8ac46a to c2dd489 Compare May 21, 2024 17:06
Copy link
Member

@ghale ghale left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This all looks fine to me.

Create base AndroidSoftware types that are extended by both Library and Applications and reduce duplication, making all feature extensions available to both types.

Lots of other internal cleanup and minor refactoring, remove some helper classes that can be replaced by the base plugin type now.

Marks TODOs around NiA code.
Library-specific configuration applied by android library plugin on top of general NiA Android support now.
@tresat tresat force-pushed the tt/reduce-duplication-with-oop branch from 4a9fcf5 to cf720f4 Compare May 22, 2024 16:32
configurations.getByName(name + "Implementation").fromDependencyCollector(dependencies.getImplementation());
configurations.getByName(name + "CompileOnly").fromDependencyCollector(dependencies.getCompileOnly());
configurations.getByName(name + "RuntimeOnly").fromDependencyCollector(dependencies.getRuntimeOnly());
private void configureContentTypeAttributes(Project project) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd like to follow-up on this.

@tresat tresat merged commit 7cfdf83 into main May 22, 2024
1 of 2 checks passed
@oleg-nenashev oleg-nenashev added the chore Maintenance label May 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore Maintenance
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants