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

lib-multisrc migration (draft for review) #1200

Closed
wants to merge 6 commits into from

Conversation

stevenyomi
Copy link
Contributor

@stevenyomi stevenyomi commented Feb 11, 2024

References #265

See each commit for migration effect.

  • Used Kotlin DSL and precompiled script plugin
  • Retained the variable names: baseVersionCode, overrideVersionCode, themePkg

common.gradle Show resolved Hide resolved
src/all/coomer/build.gradle Show resolved Hide resolved
Comment on lines +43 to +47
if (baseUrl.endsWith("/")) {
println("::warning ::baseUrl[$baseUrl] has a trailing slash")
}
def split = baseUrl.split("://")
assert split.length == 2
Copy link
Contributor

@AwkwardPeak7 AwkwardPeak7 Feb 12, 2024

Choose a reason for hiding this comment

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

I think build should fail if baseUrl contains anything after the domain. so http://example.com/something or http://example.com/ all fail.

Copy link
Contributor

Choose a reason for hiding this comment

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

What if the site hosts its manga reader in a subdirectory? https://example.com/something should be valid IMO.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

If so, this field should be renamed to schemeWithDomain or something. Some sources do require baseUrl having more path segments or trailing slash. My intention was to keep this in sync with the one inside the source, and warn if someone updated both to have a trailing slash. This could be moved to some auditing script, etc. I'm open to suggestions.

@stevenyomi stevenyomi closed this Feb 13, 2024
@stevenyomi stevenyomi deleted the lib-multisrc branch February 13, 2024 21:45
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 16, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants