Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [andmore-dev] Support Android Studio Project layout

I think you are on the right approach.  What would be good is to also have a Wizard that can can create the new structure.  I know that the android-maven-plugin now completely supports the new project structure so if we just moved the default wizards to use the new Gradle structure and updated the existing code to look for those locations for the various items we would be most of the way there.

As stated in the prior message, any contribution in this area will be appreciated.  If you want to create some pull requests that would be great.  We hopefully can get some people in the community to start taking a look at things.

I want this to be a community driven project as that is how it will move forward.

Dave


On 8/11/15 4:55 PM, Martin Wallgren wrote:
Hi,

I work with Android development for Sony Mobile and I'm getting dirty looks from my colleges for sticking with Eclipse. So I thought that the best way to remedy that is to try to get involved with you guys.

I started to look in to supporting Gradle project structures in Eclipse.

I have two commits so far (though, they are by no means ready for a pull request)


The first commit is for assuming that a gradle project is a possible Android project, and therefore it should be listed in the available projects when creating projects from existing sources.

The second commit is for allowing the AndroidManifest.xml to be located anywhere within the project.

Are you are interested in a contribution for this ticket, or are you already working on it?

This is my thoughts so far:
  1.   I'm currently adding the AndroidManifest.xml path as a value in project.properties. (for example manifest.file=src/main/AndroidManifest.xml). I don't actually like this, since I'm using a property key that I came up with my self. We should probably persist properties like this within .settings instead. Is there an existing .settings property for android natures that can be used to persist the path of AndroidManifest.xml?
  2.  Currently I'm performing a recursive search within the project to locate the AndroidManifest.xml and I'll just pick the first I encounter. This could be a problem if there are multiple AndroidManifest.xml files in the project (for example bin/build directories might have AndroidManifest.xml copies). Is it an ok solution to add a UI element to the wizard to let the user select what AndroidManifest.xml to use, so there is a chance to edit the path? An alternative could be to parse build.gradle to find the path, but I'm uncertain of if it is ok to start utilizing the gradle files at this stage.
Do you have any other thoughts on how this should be implemented?

Martin


_______________________________________________
andmore-dev mailing list
andmore-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/andmore-dev


Back to the top