-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
clean up of android project and examples #819
clean up of android project and examples #819
Conversation
If the generation of the apklib is removed, then also the examples using cucumber-android (android-test, cukeulator-test), need to not declaring that dependency as an apklib. When not generating an apklib, is there any need for the AndroidManifest.xml file? |
It seems that the examples are currently broken, at least for me. I will look into that and clean up the apklib references and the AndroidManifest.xml. |
35c0224
to
fbc8b54
Compare
I added the following changes:
|
4efd4d5
to
be8501f
Compare
Have you actually managed to run the android-test and cukeulator-test using android-maven-plugin v4.0.0, I run into this problem? As long as cucumber-android was an apklib project, v4.0.0(-rcN) failed already on not unpacking the apklib. To actually be able or run the examples (on device or emulator), I had to downgrade to v3.9.0-rc1 (in #795, where I took the smaller change of declaring the now non-standard locations on files in examples/android/pom.xml). #795 also run the android examples on Travis before deploying the cucumber-android snapshot. Just now a merged in the removal of the apklib generation (but not the latest commits on this PR). |
Yeah, as you can see in the configuration I hacked it. Except for that small hack I was able to run everything now. |
@@ -796,9 +796,9 @@ | |||
<!-- Non-standard plugins --> | |||
|
|||
<plugin> | |||
<groupId>com.jayway.maven.plugins.android.generation2</groupId> | |||
<groupId>com.simpligility.maven.plugins</groupId> |
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.
Does the android-maven-plugin need to be declared here at all? Previously v3.9.0-rc3 was declared here, but it was actually v4.0.0-rc.1 that was used, and that did not seems to make any difference.
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.
you are right, we don't need it here, since we only have it as a dependency in the android examples now. I will remove it.
… 4.0.0 for example projects * fixed structural problems with example projects and android maven plugin 4.x.x
1da013f
to
a83a06d
Compare
a83a06d
to
652375a
Compare
AFAIK, the android module was put in a separate maven profile because to build it, you need to have an android-sdk installed. Now that cucumber-android is built like any other jar, the android module could be moved from the android profile to the common module. The the snapshot release of cucumber-android would be deployed together with the other module by the "non-android" oraclejdk7 job on Travis, and the "android" oraclejdk7 job could be used to build the android examples (similar to the openjdk7 job on Travis, which build the other examples). |
Sounds good to me, do you want me do amend these changes to this pull request? |
When I experimented with moving the android module from a separate profile, the android job on Travis (now only executing the android examples) failed. The log contained the error |
I think we should do the following:
what do you think? |
I think that is a good strategy. It is definitely better to use the build in android support, rather as we do no "manually" install the android sdk on Travis. |
Great work on this @SierraGolf and @brasmusson. Eager to see this improve! |
So I guess I can merge this pull request now? |
Go for it @SierraGolf. Can you add a note in History.md to summarise the changes? |
Sure, done! Anything against also merging #820 ? |
…eration clean up of android project and examples
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
the generation of an apklib is not necessary and it leads to dirty workarounds when using gradle, see PR816
with this change maven deployments (install/deploy) will just install a jar-file to the respective repositories.