Skip to content

Gradle support (squashed history) - #661

Merged
jabarros merged 20 commits into
owncloud:developfrom
owncloudChalmers:gradleWithInternalDependency
Nov 28, 2014
Merged

jabarros merged 20 commits into
owncloud:developfrom
owncloudChalmers:gradleWithInternalDependency

Conversation

@stoyicker

Copy link
Copy Markdown
Contributor

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.

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
@jancborchardt

Copy link
Copy Markdown
Contributor

@stoyicker @MMMarcy you’re also very welcome in our IRC channel #owncloud-android (on freenode)! :)

MMMarcy and others added 7 commits October 28, 2014 16:09
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
@stoyicker stoyicker mentioned this pull request Nov 5, 2014
@rperezb rperezb added this to the 2014-sprint-03-next milestone Nov 6, 2014
@jabarros

Copy link
Copy Markdown
Contributor

Hi @stoyicker
We are begining with the validation of your PR. Could you, please, rebase your branch on current state of 'develop'?

@stoyicker

Copy link
Copy Markdown
Contributor Author

@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?

@davivel

davivel commented Nov 21, 2014

Copy link
Copy Markdown
Contributor

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.

@stoyicker

Copy link
Copy Markdown
Contributor Author

@davivel @jabarros Done by merging.

@jabarros

Copy link
Copy Markdown
Contributor

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

@davivel

davivel commented Nov 25, 2014

Copy link
Copy Markdown
Contributor

@stoyicker , are you using an Android version greater than 0.8.14? Are you updating from Canary channel?

@MMMarcy

MMMarcy commented Nov 25, 2014

Copy link
Copy Markdown
Contributor

@davivel @jabarros Yeah we are using the canary. The point is that, as you discover, with Android studio 9.x series plugin 0.13 and earlier don't work. Therefore we wanted to avoid an additional update when the 9.x enters in Beta by simply choosing 0.14. If you want we can revert it right away.

@davivel

davivel commented Nov 25, 2014

Copy link
Copy Markdown
Contributor

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

@stoyicker

Copy link
Copy Markdown
Contributor Author

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

@jabarros

Copy link
Copy Markdown
Contributor

Thanks @stoyicker.

jabarros added a commit that referenced this pull request Nov 28, 2014
@jabarros
jabarros merged commit 9990eb9 into owncloud:develop Nov 28, 2014
@stoyicker stoyicker mentioned this pull request Jan 29, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants