This repository was archived by the owner on Jun 18, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 75
Eclipse build instructions
marcote edited this page Oct 14, 2014
·
3 revisions
- Copy all .jar files into the /libs folder inside your Eclipse project folder. If there is no /libs folder, please create one.
- Reference the following required dependencies as you normally do in Eclipse
- Google GSON 2.3 : https://code.google.com/p/google-gson/
- Google Guava 18.0 : https://code.google.com/p/guava-libraries/wiki/Release18
- ADAL 1.0.2 https://github.com/AzureAD/azure-activedirectory-library-for-android
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