-
Notifications
You must be signed in to change notification settings - Fork 28
CB-13145: proposal for Play Services Version #74
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
base: master
Are you sure you want to change the base?
Conversation
> For input string: "+" | ||
``` | ||
|
||
## Potential Solution |
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.
Sorry to clarify this is one potential solution. The one from the issue. But the new proposal is actually below.
could we allow it inside a platform tag as well for extra flexibility? plugin variable || platform variable || global variable |
@goya that sounds reasonable. Lets say yes for now as we look at the implementation details. |
Anything that gets rid of these gradle error messages has my full support. |
I like @goya's suggestion. Also, why leverage |
@filmaj sorry for the confusion. The first solution was to use |
So just a heads up. That this may end up being more work than initially thought. Right now if we try to work around this by doing:
and then trying to use it in the framework tag like so:
results in a build error:
Because the |
Okay update time! So @audreyso and I have done some deep investigations into this work. Firstly, I think our proposal here is too ambitious and overkill for now. Intro to how plugin variables work now:
Hopefully that explains our current plugin variable situation. Now, back to the problem. We need a way to define a variable, and have the
This would replace I've sent a PR to When the frameworks are being grabbed from One caveat about this solution:
Both the push plugin and the google analytics plugin will have to add a preference for the playServices version. They can manually be kept in sync for now by plugin authors. For the future, it would be nice if we added the ability to check the |
@stevengill that's some pretty awesome progress today. However, I think we should support using the
That would end up giving us the most flexibility as plugin authors would define their own variable/preference name i.e. there is no need to get agreement with other plugin authors on those names. Also, users could override the default version number without having to send a PR to the plugin authors. |
plugin variable || platform variable || global variable not a preference element. the preference namespace is too unimaginative to NOT conflict with a random variable some plugin author chooses. preference element is for core or platform only. IMHO. |
@macdonst I agree. I've now updated the PR to work with variable tags from I have only implemented it for the framework add usecase (both restore + cli passed in variable). For remove, it still uses To test this:
You can now run the following commands (on modified push plugin.xml from #74 (comment))
or to restore
Whats left?
|
@goya I agree that preference element seems wrong to use. But they are being used already for plugin variables (See #74 (comment)). They are tied to Are you suggesting we stop using preference even for One safety we do have is that the regex looks for The way it is setup currently, I don't think we would have clashes from different plugins using the same variable. In We can just expect the user to manually change versions if they need to. In
In the above example, the user would have to manually make the versions (value) the same and restore. It doesn't matter if the variable |
Hi all! Here are 2 PRs for If you could review or have any comments/advice/questions, that would be great! Thanks so much! |
Here are the main points of the solution we ended up using:
Let us know if you have any questions! |
Proposal for Play Services