-
Notifications
You must be signed in to change notification settings - Fork 112
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
Android #56
Android #56
Conversation
An Android Studio project using the plugin : https://github.com/secondsun/keycloak-android-authenticator/tree/license |
Hi Hoyt, What I'm wondering is, is why the regular plugin fails to work on android. If it is due to the use of the gradle Couldn't we either:
I'm hesitant to merge this, mainly due to the large volume of duplication. In commit 12a7d3d I've removed the dependency on Guava for compile/runtime, so you should not need to exclude that anymore in your project. |
I think if you make LicensePlugin not dependant on JavaBasePlugin it loses the ability to sniff out the source sets. I'll see what I can do with some small defactoring and deduping |
We could actually instead of blindly applying the |
Now with 50% less copypasta |
Looks better! 👍 I'll have a look at this tomorrow and will merge it then. |
Could you also add some tests for a project with an android plugin? |
The Android Plugin requires Gradle 2.2. I've written some tests, but they will crash because the project uses Gradle 2.0. If I can update the wrapper to 2.2 then I can add some tests. Otherwise we will need to find a way around it. |
Can we use a lower version of the android plugin for building/testing? It now depends on an RC version. Looking at their site, the |
Just looked at the release notes a bit closer, it should work with Gradle 2.1... for the |
Bump up the gradle version that the license plugin uses or bump down the android plugin? |
Is the API the same for the lower android plugin version? If so, then I'd rather bump down the android plugin. |
Here is a chart : No version of the Android plugin works with Gradle 2.0 (the current version). The 1.0.0-x version requires Gradle 2.2.1 and up. The Android plugin does explicit version checks and will throw an Exception if it isn't running in the right Gradle version. There are some minor nitpicks between .8 and 1.0.0 like the plugin being renamed and some Android properties getting renamed. Those don't seem to affect the behavior of the License plugin running on Android right now. |
Let's bump it up to 2.2.1 and run with the 1.0.0 version of the gradle Thanks! 2014-12-08 19:14 GMT+01:00 Hoyt Summers Pittman [email protected]:
|
tests added, gradle updates, and rebased. |
Merged! Thanks for the great PR! |
I've added a second license plugin for working with the Android plugin instead of the Java plugin. It seems like Google got a bad case of NIH and their Android tooling is not compatible with Java plugins/tooling.