[Mono-bugs] [Bug 661858] Allow the use of Jar files to be used in MonoDroid

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Feb 8 18:00:38 EST 2011


https://bugzilla.novell.com/show_bug.cgi?id=661858

https://bugzilla.novell.com/show_bug.cgi?id=661858#c3


--- Comment #3 from Jonathan Pryor <jpryor at novell.com> 2011-02-08 23:00:38 UTC ---
More on (2)...  Google hates me.

First, the developer needs to use `android` to install an addon, e.g. within
`android`:

  - Click Available packages in the left-hand pane.
  - In the right-hand pane, expand the Third party Add-ons tree, then Google
Inc. add-ons
  - In the right-hand pane, select the check box for e.g. Google APIs by Google
Inc, Android API 8, revision 1
  - Click the Install Selected button, etc.

This installs the addons into $ANDROID_SDK_PATH/add-ons, e.g.
$ANDROID_SDK_PATH/add-ons/addon_google_apis_google_inc_8.

Within EACH add-ons directory is a manifest.ini file.  This contains the
mapping between a <uses-library/> library name and the .jar file that needs to
be provided to 'javac -classpath' so that .java source can compile without
error.  For example:

    # semicolon-separated list
    libraries=com.google.android.maps
    com.google.android.maps=maps.jar;API for Google Maps

Thus, to support <uses-library/>, monodroid.exe needs to parse
$ANDROID_SDK_PATH/add-ons/*/manifest.ini, read the 'libraries' key and split on
';', and if any of those libraries are referenced look for the filename that I
should reference.  In the above, maps.jar is in the 'libs' directory, e.g.
$ANDROID_SDK_PATH/add-ons/addon_google_apis_google_inc_8/libs/maps.jar.

Doing all this parsing work will make the developer experience reasonably
straightforward -- just edit AndroidManifest.xml and Things Just Work™ -- but
I'm not looking forward to the monodroid side...

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list