Skip to content
This repository has been archived by the owner on Jun 18, 2024. It is now read-only.

Eclipse build instructions

marcote edited this page Oct 14, 2014 · 3 revisions

Temporary Eclipse build instructions.

How to create a .JAR from an .AAR

An .AAR file it's essentially a .JAR file + Android Resources packed as a zip file.

  • Pull the sources from https://github.com/MSOpenTech
  • Using Android Studio, select "Import Project". Locate and select the /sdk folder.
  • Choose "Import Module"
  • Locate and select the /samples folder, and select then "Simple Exchange Sample"
  • Once the sample app is imported, select the App node. Right Click and select "Open Module Settings"
  • Select the "Dependencies Tab"
  • In the bottom of the dialog, select the plus ("+") sign and select "Module Dependency".
  • From the "Choose Module" dialog, select "mail-calendar-contact" and "odata-engine-android-impl"
  • Fix any package name mismatch you might have due metadata changes.

At this point you will have a working sample application, now proceed to grab the .AAR and extract the .JAR inside.

  • Build the "odata-engine-android-impl"
  • Using the Windows Explore / Finder, go to the odata-engine-android-impl folder.
  • Open the /build/outputs/aar folder
  • Check if the file "odata-engine-android-impl.aar" exists.
  • Unpack the .AAR (rename the .AAR to .ZIP if needed) and extract its contents.
  • Locate the classes.jar file. This is the .jar file required by Eclipse, rename it to odata-engine-android-impl.jar for consistency purposes (if needed) and copy into the /libs folder in your Eclipse project.

In case you need to recreate the .JAR file for another project, follow the same approach described above for the the "odata-engine-android-impl", simply change the destination folder to : " /build/libs/(library-name).jar