You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sis.apache.org by Martin Desruisseaux <ma...@geomatys.com> on 2017/08/21 00:12:51 UTC

State of Android branch?

Hello Sisinda

I tried to proceed today with some merge of Android work, starting with
the "sis-utility" module. I noticed the following file. Is it an
accidental commit?

    core/sis-utility/src/main/libs/xerces-impl-1.jar

At build time, Maven produces the following warning. But "mvn
dependency:tree" shows that the only "opengl-api" dependency (for
example) come from "com.google.android" artifact itself. Do you have an
idea what is happening?

    [WARNING] The following dependencies may conflict with the internal versions provided by the Android platform:
    [org.khronos:opengl-api:jar:gl1.1-android-2.1_r1:provided, org.json:json:jar:20080701:provided, commons-logging:commons-logging:jar:1.1.1:provided,
    xerces:xmlParserAPIs:jar:2.6.2:provided, xpp3:xpp3:jar:1.1.4c:provided, org.apache.httpcomponents:httpclient:jar:4.0.1:provided]

After above warning, the build fails with the following error. Is some
"source.properties" file missing?

    [ERROR] Failed to execute goal com.simpligility.maven.plugins:android-maven-plugin:4.5.0:generate-sources (default-generate-sources) on project sis-utility:
    Execution default-generate-sources of goal com.simpligility.maven.plugins:android-maven-plugin:4.5.0:generate-sources failed:
    Error reading /Users/desruisseaux/Library/android-sdk-macosx/tools/source.properties

Martin



Re: State of Android branch?

Posted by Sisinda Dinusha <si...@gmail.com>.
Hello Martin

> However I
> get a compilation failure in "sis-metadata" module because of missing
> AndroidManifest.xml file. Is is the same file than the one added in
> "sis-utility" module? If yes, can we specify AndroidManifest.xml only
> once (e.g. in "src/main/android" directory) and set the path to it
> through the <androidManifestFile> configuration option as described in [1]?
Yes we can use the same file so that would be a convenient method. I'll look
through it.

> Another question: the build creates an empty
> "core/sis-utility/src/main/res" directory. Which can of files are
> expected there? Is it automatically generated resources, or resources
> provided by the developer?
Developers can put resource files, such as images, in the res directory.
When compiling, those files also will be included in the compiled output.
Here is a detailed information about the resources in res folder.
https://developer.android.com/guide/topics/resources/overview.html

-- 
Sisinda

Re: State of Android branch?

Posted by Martin Desruisseaux <ma...@geomatys.com>.
Hello Sisinda

The missing "source.properties" error is resolved on my side. However I
get a compilation failure in "sis-metadata" module because of missing
AndroidManifest.xml file. Is is the same file than the one added in
"sis-utility" module? If yes, can we specify AndroidManifest.xml only
once (e.g. in "src/main/android" directory) and set the path to it
through the <androidManifestFile> configuration option as described in [1]?

Another question: the build creates an empty
"core/sis-utility/src/main/res" directory. Which can of files are
expected there? Is it automatically generated resources, or resources
provided by the developer?

    Martin

[1]
https://stackoverflow.com/questions/26882484/possibilty-of-relocating-androidmanifest-xml-support-for-adt-plugin-in-eclipse



Re: State of Android branch?

Posted by Sisinda Dinusha <si...@gmail.com>.
Hello Martin

> I tried to proceed today with some merge of Android work, starting with the "sis-utility" module.
> I noticed the following file. Is it an accidental commit?
>
>    core/sis-utility/src/main/libs/xerces-impl-1.jar
Yes it should not be necessary here.

> At build time, Maven produces the following warning. But "mvn dependency:tree"
> shows that the only "opengl-api" dependency (for example)
> come from "com.google.android" artifact itself. Do you have an idea what is happening?
I'm not quite sure what's the reason. I will check it.

> After above warning, the build fails with the following error. Is some
> "source.properties" file missing?
It should be included in the Android SDK. Not sure why it's missing in your SDK
installation. Please check if the Android SDK tools component is
installed (it should
be, check it anyways) and the path is correct to the above file.


-- 
Sisinda