[xwiki-devs] Status: GSOC Xwiki Android Client
Hi, I modified navigator in xwiki-android-components so that it will communicate to XWiki instance via xwiki-android-rest. But it cannot be tested due to following problems. 1. After building xwiki-android-rest library it doesn't have GSON library. Therefore REST isn't working since GSON classes are not found withing the library. I searched a method to include gson (or any other) jar file to add to my custom library. It is said that if we use scope of the dependency of the maven configuration as "compile" it will include jar files in our build. But it doesn't work for me. 2. Since xwiki-android-component use xwiki-android-rest, I want to import rest library to the component. I've done this in eclipse. But cannot figure it out how should I do this in maven. Due to above issues current repository give build errors. I planned to develop object/class editor component in next few days since xwiki-navigator is almost finish. Eduard suggested, it should be an "open objects and classes (in a separate and configurable object/class editor widget) ". Can you describe about this widget further so that I can get a clear idea about it. Best Regards, Chamika Weerasinghe
Hi, On Tue, Jun 28, 2011 at 11:24 PM, Chamika Weerasinghe <[email protected]>wrote:
Hi, I modified navigator in xwiki-android-components so that it will communicate to XWiki instance via xwiki-android-rest. But it cannot be tested due to following problems.
1. After building xwiki-android-rest library it doesn't have GSON library. Therefore REST isn't working since GSON classes are not found withing the library. I searched a method to include gson (or any other) jar file to add to my custom library. It is said that if we use scope of the dependency of the maven configuration as "compile" it will include jar files in our build. But it doesn't work for me.
Compile dependencies are used when compiling but when packaging you have to include all the jar files yourself. I'm not sure about android specific things but isn't there a way to bundle all the dependant jar files into the .apk file?
2. Since xwiki-android-component use xwiki-android-rest, I want to import rest library to the component. I've done this in eclipse. But cannot figure it out how should I do this in maven.
Isn't this a normal pom file dependency?
Due to above issues current repository give build errors.
I planned to develop object/class editor component in next few days since xwiki-navigator is almost finish. Eduard suggested, it should be an "open objects and classes (in a separate and configurable object/class editor widget) ". Can you describe about this widget further so that I can get a clear idea about it.
Have you looked at XWiki class / object editor? I hope you are already familiar with xwiki data model (classes / objects). So basically you need to provide the same functionality in your widget. - Asiri
Best Regards, Chamika Weerasinghe _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
On Wed, Jun 29, 2011 at 00:24, Chamika Weerasinghe <[email protected]> wrote:
Hi, I modified navigator in xwiki-android-components so that it will communicate to XWiki instance via xwiki-android-rest. But it cannot be tested due to following problems.
1. After building xwiki-android-rest library it doesn't have GSON library. Therefore REST isn't working since GSON classes are not found withing the library. I searched a method to include gson (or any other) jar file to add to my custom library. It is said that if we use scope of the dependency of the maven configuration as "compile" it will include jar files in our build. But it doesn't work for me.
2. Since xwiki-android-component use xwiki-android-rest, I want to import rest library to the component. I've done this in eclipse. But cannot figure it out how should I do this in maven.
Due to above issues current repository give build errors.
You can find a example of complex project with this use case among other things in https://github.com/jayway/maven-android-plugin-samples/archives/stable. Look at "morseflash" one. Don't take it exactly like that without looking at the details since it's doing lots of things. But as far as I can see it does not seems to do anything special to embed dependencies. Note that xwiki-android-component is supposed to be a library and not an application so there is no reason for it to embed everything, you should start the final application and use it as example of how to use of your component and rest libraries.
I planned to develop object/class editor component in next few days since xwiki-navigator is almost finish. Eduard suggested, it should be an "open objects and classes (in a separate and configurable object/class editor widget) ". Can you describe about this widget further so that I can get a clear idea about it.
Same question as Asiri and same suggestion: look at XWiki object/class editor UI.
Best Regards, Chamika Weerasinghe _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
Here are some comments not related with your question: * anything used by all submodules should be moved in the root pom of your project: android plugin, maven-compiler-plugin * are you sure setting the <finalName> is needed ? Seems useless to me. * <sourceDirectory> seems useless too, I don't see why you would have a custom source directory and src is the default one anyway... * <avd>android2.2</avd> shouldn't it be <avd>android2.1</avd> ? * you are still depending on lots of useless things in xwiki-android-rest, don't put random dependencies hoping that in the number it will finally work. Each one should be justified. * the <repositories> is useless since you are not using restlet A minimum pom.xml file is almost empty so you should understand every line you put in there and wonder if it's really needed. -- Thomas Mortagne
participants (3)
-
Asiri Rathnayake -
Chamika Weerasinghe -
Thomas Mortagne