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

Resources gradle plugin #3961

Merged
merged 26 commits into from Dec 1, 2023
Merged

Resources gradle plugin #3961

merged 26 commits into from Dec 1, 2023

Conversation

terrakok
Copy link
Collaborator

No description provided.

@dima-avdeev-jb
Copy link
Contributor

dima-avdeev-jb commented Nov 21, 2023

I don't know why, but CI fails. Error:
org.gradle.testkit.runner.UnexpectedBuildFailure at KotlinCompatibilityTest.kt:45

Copy link
Contributor

@dima-avdeev-jb dima-avdeev-jb left a comment

Choose a reason for hiding this comment

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

Type safe resource classes looks good!


internal fun Resource.getPathByEnvironment(): String {
//TODO
Copy link
Contributor

Choose a reason for hiding this comment

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

What this TODO means?

Copy link
Collaborator Author

@terrakok terrakok Nov 22, 2023

Choose a reason for hiding this comment

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

Here will be a logic how to select a concrete file by an environment and qualifiers

@pjBooms pjBooms requested review from pjBooms and removed request for igordmn November 23, 2023 09:12
@terrakok
Copy link
Collaborator Author

👆 just rebased on the latest master

components/gradle.properties Outdated Show resolved Hide resolved
val dirs = rootResDir.listFiles { f -> f.isDirectory }.orEmpty()

//type -> id -> resource item
val resources: Map<ResourceType, Map<String, List<ResourceItem>>> = dirs
Copy link
Collaborator

Choose a reason for hiding this comment

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

I would add some unit-tests for this logic

@terrakok terrakok merged commit 181bfd1 into master Dec 1, 2023
6 checks passed
@terrakok terrakok deleted the res-gradle-plugin branch December 1, 2023 14:38
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

3 participants