-
-
Couldn't load subscription status.
- Fork 460
Remove duplicated Novoda plugin config. #1007
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
Conversation
build.gradle.kts
Outdated
| publishVersion = project.version.toString() | ||
| desc = Config.Sentry.description | ||
| website = Config.Sentry.website | ||
| repoName = Config.Sentry.javaRepoName |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok now I see the difference between Java and Android repo.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the difference? We moved from https://github.com/getsentry/sentry-android into this one, isnt' it all the same now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, is this a bintray repo?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if so could it be named bintrayRepo please?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no, java packages go under sentry-java, android packages go sentry-android and its not possible to change, we'd lose jcenter sync cus its a bintray limitation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah I realize that on the second comment.
I suggested rename the variable. repoName is very ambiguous
|
@maciejwalkowiak I found problems doing something similar but on a few older Gradle's version , the kotlin build scripts were a bit limited yet, I think it should be fine now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for doing this
|
Thanks @marandaneto. The output of |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SO happy to see this!
build.gradle.kts
Outdated
| publishVersion = project.version.toString() | ||
| desc = Config.Sentry.description | ||
| website = Config.Sentry.website | ||
| repoName = if (project.name.contains("android")) Config.Sentry.androidRepoName else Config.Sentry.javaRepoName |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The suggestion is this, though PR is good to merge:
| repoName = if (project.name.contains("android")) Config.Sentry.androidRepoName else Config.Sentry.javaRepoName | |
| repoName = if (project.name.contains("android")) Config.Sentry.androidBintrayRepoName else Config.Sentry.javaBintrayRepoName |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it makes easier to read but also verbose, its setting in the bintray plugin repoName field so it's kinda implicit that its bintray's repo name, I'm fine with this change though.
If you had a doubt about the var you are probably right, I wrote this part myself :D
Codecov Report
@@ Coverage Diff @@
## main #1007 +/- ##
=======================================
Coverage ? 71.61%
Complexity ? 1299
=======================================
Files ? 134
Lines ? 4731
Branches ? 490
=======================================
Hits ? 3388
Misses ? 1087
Partials ? 256
Continue to review full report at Codecov.
|
📢 Type of change
📜 Description
Remove duplicated Novoda plugin config.
Configuration has been moved from each module to parent
build.gradle.ktsintosubprojectssection.💡 Motivation and Context
getsentry/sentry-android#537 (comment)
💚 How did you test it?
Build distribution packages
distZipand compared with distributions created before the change.📝 Checklist
🔮 Next steps
@marandaneto since I am not very fluent in Gradle I would appreciate your deeper review here.