Repository navigation
Gradle support (squashed history) - #661
Conversation
The pull request targets: 1) Introduces Gradle support 2) Updates maven support (even thou the apk generated is not stable) 3) Updates the setup_env.* scripts to support different building tools 4) Removes non UTF-8 characters 5) Removes switches on R.id entries (not supported anymore from ADT >= 14) 6) Introduced a binary dependency (.aar) that replace the actionbarsherlock sub-module Remainders: 1) Change the sub-module back to the owncloud android library once the PR will be merge
…Dependency Conflicts: owncloud-android-library pom.xml
|
@stoyicker @MMMarcy you’re also very welcome in our IRC channel #owncloud-android (on freenode)! :) |
The pull request targets: 1) Introduces Gradle support 2) Updates maven support (even thou the apk generated is not stable) 3) Updates the setup_env.* scripts to support different building tools 4) Removes non UTF-8 characters 5) Removes switches on R.id entries (not supported anymore from ADT >= 14) 6) Introduced a binary dependency (.aar) that replace the actionbarsherlock sub-module Remainders: 1) Change the sub-module back to the owncloud android library once the PR will be merge
…lmers/android into gradleWithInternalDependency Conflicts: setup_env.sh
Conflicts: SETUP.md setup_env.sh
|
Hi @stoyicker |
|
@jabarros It is now ready but, if I'm not mistaken, due to the history rewriting a forcepush is needed, which will close the PR. Shall I make the forcepush and open a new PR? |
|
Yes, rebase will require the forcepush. Did you already apply the rebase? Probably this will break your other PRs based on this :S If you didn't do it, just merge develop in your branch instead of rebasing. |
|
Hi @stoyicker, First of all, thaks for doing the merge :-) We are having problems when we try to run the proyect... An UnsupportedMethodException is obtained. It is related with the method SplitOutput.getOutputFile(). Which Android Studio version are you using? We have the last stable version, 0.8.14 and we have seen (http://tools.android.com/tech-docs/new-build-system/version-compatibility) that it seems to be recomended Android Gradle plugin: 0.13+, 0.12+; and Gradle: 2.1 (for plugin 0.13; for 0.12 use 1.10-1.12). However, the oc project is using the Gradle plugin 0.14.0... |
|
@stoyicker , are you using an Android version greater than 0.8.14? Are you updating from Canary channel? |
|
My comment yesterday about adding *.iml files was a bad idea; after "playing" a lot, seems your first approach was better. Please, revert the last commit so that *.iml files and .idea/ folders are out of the repository. About the version of Android Studio: did you find any really blocking issue with the last version in Beta channel? If the answer is "yes", we can consider the upgrade to Canary channel. Otherwise, we should be a bit more conservative. The app should be accessible for as many developers as possible, and my bet is that not many newcomers will be happy to be enforced to use the bleeding-edge version of Studio. (In any case, seems that the first release candidate for Studio 1.0 is available now, so this topic probably will be outdated soon). We have to make some more testing, but apart from the issue with the plugin version everything seems really fine. A very good job here :) |
|
@davivel I have been using the canary channel since 0.5 with various projects and I just found an issue like the one you mention and it was on a version prior to 0.8.14, so nowadays there should not be any problem to stay in a channel more conservative than Canary. |
|
Thanks @stoyicker. |
…dency Gradle support (squashed history)
We have added Gradle support, following Google guidelines. We have also simplified the procedure and updated the setup instructions.
It should be mentioned that in order to be able to build with Gradle the library must support Gradle as well, so we have changed where the submodule points to to our fork until owncloud/android-library#38 gets merged, as indicated on #625.
Edit:
we're looking into the Travis configuration, we forgot to address it.We have fixed the Travis configuration, also including Gradle build evaluation (see #654 for a discussion about Maven). @davivel we have seen you've been trying to fix the Travis configuration earlier today; probably you want to take a look at the one we suggest.