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

clean up of android project and examples #819

Merged

Conversation

SierraGolf
Copy link
Contributor

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.

@brasmusson
Copy link
Contributor

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?

@SierraGolf
Copy link
Contributor Author

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.

@SierraGolf SierraGolf force-pushed the sierragolf/remove-apk-lib-generation branch from 35c0224 to fbc8b54 Compare January 6, 2015 13:32
@SierraGolf
Copy link
Contributor Author

I added the following changes:

  • removed android maven plugin and related android files from cucumber-android project
  • fixed broken example projects (a lot of file relocations)
  • bumped android-maven-plugin version to 4.0.0

@SierraGolf SierraGolf force-pushed the sierragolf/remove-apk-lib-generation branch 2 times, most recently from 4efd4d5 to be8501f Compare January 6, 2015 13:50
@brasmusson
Copy link
Contributor

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).

@SierraGolf
Copy link
Contributor Author

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>
Copy link
Contributor

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.

Copy link
Contributor Author

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
@SierraGolf SierraGolf force-pushed the sierragolf/remove-apk-lib-generation branch from 1da013f to a83a06d Compare January 6, 2015 15:43
@SierraGolf SierraGolf changed the title removed generation of apklib clean up of android project and examples Jan 6, 2015
@SierraGolf SierraGolf force-pushed the sierragolf/remove-apk-lib-generation branch from a83a06d to 652375a Compare January 6, 2015 15:53
@brasmusson
Copy link
Contributor

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).

@SierraGolf
Copy link
Contributor Author

Sounds good to me, do you want me do amend these changes to this pull request?

@brasmusson
Copy link
Contributor

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 Killed emulator -avd test -no-skin -no-audio -no-window, the Travis docs indicate that the process was killed due to to much resource usage. The handful times that job has run tests on the version of that emulator previously it worked. The fact that it might require some experimentation to find a stable configuration to run the android examples on Travis, could be an argument not to delay this PR until that is done.

@SierraGolf
Copy link
Contributor Author

I think we should do the following:

  1. merge this pull request, because it fixes the examples (even though there is currently no ci to proof it)
  2. create a new pull request which kills the android profile and puts the android module in the "default" profile, which makes the release easier
  3. create a new pull request which adds the examples to ci, which might not be possible in a reliable way since the whole android support on travis is still beta

what do you think?

@brasmusson
Copy link
Contributor

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.

@aslakhellesoy
Copy link
Contributor

Great work on this @SierraGolf and @brasmusson. Eager to see this improve!

@SierraGolf
Copy link
Contributor Author

So I guess I can merge this pull request now?

@aslakhellesoy
Copy link
Contributor

Go for it @SierraGolf. Can you add a note in History.md to summarise the changes?

@SierraGolf
Copy link
Contributor Author

Sure, done! Anything against also merging #820 ?

SierraGolf added a commit that referenced this pull request Jan 8, 2015
…eration

clean up of android project and examples
@SierraGolf SierraGolf merged commit 018cd22 into cucumber:master Jan 8, 2015
@SierraGolf SierraGolf deleted the sierragolf/remove-apk-lib-generation branch January 8, 2015 15:15
@lock
Copy link

lock bot commented Oct 25, 2018

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.

@lock lock bot locked as resolved and limited conversation to collaborators Oct 25, 2018
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