Imported Upstream version 1.0.0
[platform/upstream/iotivity.git] / service / resource-container / examples / android / RCSampleServerApp / README
1 To build the app 
2
3 1. build Iotivity with TARGET_OS=android
4
5 2. Copy aar files into app/libs folder
6    - {Iotivity_root}/android/android_api/base/build/outputs/aar/iotivity-{TARGET_ARCH}-base-{MODE}.aar
7    - {Iotivity_root}/service/resource-encapsulation/android/service/build/outputs/aar/iotivity-{TARGET_ARCH}-service-{MODE}.aar
8    - {Iotivity_root}/service/resource-container/android/resource-container/build/outputs/aar/iotivity-{TARGET_ARCH}-resource-container-{MODE}.aar
9
10 3. Configure dependencies for libs in app/build.gradle
11    - default TARGET_ARCH is armeabi
12    - default MODE is release
13
14    for example, if you build Iotivity as follows,
15    
16    $scons TARGET_OS=android TARGET_ARCH=x86 RELEASE=0
17
18    then, dependencies should be modified like below
19
20    dependencies {
21       compile(name:'iotivity-x86-base-debug', ext:'aar')
22       compile(name:'iotivity-x86-service-debug', ext:'aar')
23       compile(name:'iotivity-x86-resource-container-debug', ext:'aar')
24    }
25