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

Fix Project extension APIs #464

Merged
merged 1 commit into from
Jul 15, 2024
Merged

Fix Project extension APIs #464

merged 1 commit into from
Jul 15, 2024

Conversation

johnsonlee
Copy link
Collaborator

No description provided.

@johnsonlee johnsonlee requested a review from neighbWang July 15, 2024 17:15
Copy link

what-the-diff bot commented Jul 15, 2024

PR Summary

  • Upgraded Project.kt file with new functionalities
    • Introduced new import statements for different Android extensions, task providers, and the Java plugin for increased capabilities.
    • Created a function getJars(variant: Variant? = null): Set<File> that allows for retrieving jar files, enhancing the file handling capability.
    • Another function getJarTaskProviders(variant: Variant? = null): Collection<TaskProvider<out Task>> was added that will help in obtaining jar task providers, thus increasing program's efficiency.
    • Implemented filterByVariant(variant: Variant? = null): Collection<Variant> function making it possible to filter variants based on the Android components extension for better data customization.
    • Added a new data structure ResolvedArtifactResultImpl which will help in structuring and simplifying data handling in the application.
    • Adjusted the getResolvedArtifactResults() function to use the new filterByVariant() function and to flatten the results for more straightforward data processing.
    • The getResolvedArtifactResultsRecursively() function has been modified to use the filterByVariant() function for more efficient data filtering and to flatten the dependencies, thereby improving the application's performance.
    • Finally, the getResolvedArtifactResultsRecursively() function has been updated to return the result values, enhancing its usability in the program.

@neighbWang neighbWang merged commit 3d1f6ed into didi:master Jul 15, 2024
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.

2 participants