Repository navigation
Gradle building system - #38
Conversation
|
Hi, @MMMarcy . I just saw this one. I have to ask you some patience, we need to find a timebox to review this. Thanks a lot, this is a great contribution. |
|
I have fixed some remaining issues and updated the library references to point to mavencentral. |
7def889 to
696c30c
Compare
|
Hi @MMMarcy |
|
Hello @jabarros, |
…ildsystem/gradle_develop Conflicts: .travis.yml
824074b to
ef768b7
Compare
There was a problem hiding this comment.
Mmmm. I am not sure the .iml file should be ignored; we include .project files in the repositories, is not this one the equivalent for Android Studio?
There was a problem hiding this comment.
You are right - for reference, as of https://intellij-support.jetbrains.com/entries/23393067 (Android Studio is a very close cousin of IntelliJ), it seems that they should be included. I'm on it. Done.
There was a problem hiding this comment.
Just for the record: this was rolled back because resulted in more problems for new developers get the project working in Studio than the original option.
There was a problem hiding this comment.
Needs to be 0.13.0 to grant operation in Android Studio 0.8.14 ; this is the last version in the "Beta" channel. Updates from "Canary" channel should not be mandatory to build the project
|
I am adding some comments inline, but please, do not make any change until I finish - I'll notice it here. Thanks. |
|
It shall be mentioned that there is an issue now that .iml files are included. When a .iml file is generated, it is named module_name.iml. For example, for ‘android-library’, it is android-library.iml. This is the file that gets commited to the repo (as seen in owncloudchalmers/android-library branch buildsystem/gradle_develop). When you open ‘android’ in Android Studio, the submodule is named ‘owncloud-android-library’, and therefore the file Android Studio looks for is called owncloud-android-library.iml, which doesn’t exist. An error then is reported, and the file owncloud-android-library.iml is generated, although this does not lead to a 100% perfect situation because (1) the module always appears with untracked content (the owncloud-android-library.iml file) and (2) the project structure seems, for some reason, to not to be properly understood anymore by Android Studio. However, the build procedure is not affected at all. After considering other alternatives, the most feasible solution seems to be adding owncloud-android-library.iml to this .gitignore so that it doesn't show up when the library is used as a submodule. @davivel maybe you can do it yourself along the changes you mention you're working on? |
|
OK, seen for today. My comment yesterday about adding *.iml files was a bad idea, your first approach was better. Please, revert the last commit so that *.iml files and .idea/ folders are out of the repository. I'm sorry for the noise. We'll make some other tests tomorrow, but the most important topics seem covered. This is a great job. |
|
Sorry @stoyicker, I responded without refreshing, didn't see your comment. As told before, I think the best would be just avoid adding *.iml file et al. The .idea/ folder has more dependencies on local . Besides, Studio is updating both .iml files and .idea/ folder from the content of settings.gradle, so in the end .iml files are a generated file -> better not in the repo. We may do the changes, of course, if you prefer. No problem for us. |
|
Done. We have reapplied the changes on a new commit to have something to refer to in case a similar hesitation emerges at some point in the future. |
There was a problem hiding this comment.
There is a mistake in this secure env var... Last character (the '=' one) has been deleted, so Travis is not working well. Please, add it again :)
|
Hi @stoyicker, @MMMarcy, |
|
@jabarros Thank you, fixing it now |
|
Thanks @MMMarcy. Prepared to merge it :) |
This pull request adds support for the Gradle building system. The folders' layout has been kept which allow full compatibility with Apache Ant as inidicated in owncloud/android#625.
To use Android Studio and not compromising the folders' structure is necessary to import the project by selecting the existing build.gradle file in the root directory of the project and not the root directory itself.
The pull request also affects some files that contained non UTF-8 characters in the Java docs. These files were breaking the compilation process. We believe that this change is mandatory since it is considered a bad practice also by the Apache Ant since they raise warnings. The modification just removed those characters since we couldn't agree which markup to use to highlight such docs sections and we leave this decision to you.
Future works will extend the new building system to the Android application main repository.