Alfresco Mobile for Android : Build from source code

Document created by resplin Employee on Jun 6, 2015
Version 1Show Document
  • View in full screen mode

Obsolete Pages{{Obsolete}}

The official documentation is at: http://docs.alfresco.com



Getting StartedAndroid


Using Maven


Prerequisites


NB : See Android Development Tools for links and instructions


HOW TO


mvn clean install 

Binaries are available in target folder.


Profiles


  • Simple build (unsigned)
mvn clean install 

  • HockeyApp version
mvn clean install -P android-beta-release

  • Official release
mvn clean install -P android-release

  • Samsung extension
mvn clean install -P extension-samsung

  • Official Release + Samsung extension
mvn clean install -P android-release,extension-samsung




Extra Parameters (Cloud & Hockeyapp)


  1. Go to your clone root folder
  2. Create a file inside res/values named keys.xml
  3. Copy and paste the following content inside keys.xml. Don't forget to replace or remove fake keys by your values.

<resources  xmlns:tools='http://schemas.android.com/tools' tools:ignore='all'>

    <string name='oauth_api_key'>YOUR API KEY</string>
    <string name='oauth_api_secret'>YOUR API SECRET</string>
    <string name='oauth_callback'>http://www.alfresco.com/mobile-auth-callback.html</string>
    <string name='oauth_scope'>pub_api</string>
    <string name='hockeyapp_key'>YOUR HOCKEYAPP KEY</string>
</resources>

Attachments

    Outcomes