Imported Upstream version 1.0.0
[platform/upstream/iotivity.git] / service / resource-encapsulation / examples / android / RESampleServerApp / 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
9 3. Configure dependencies for libs in app/build.gradle
10    - default TARGET_ARCH is armeabi
11    - default MODE is release
12
13    for example, if you build Iotivity as follows,
14    
15    $scons TARGET_OS=android TARGET_ARCH=x86 RELEASE=0
16
17    then, dependencies should be modified like below
18
19    dependencies {
20       compile(name:'iotivity-x86-service-debug', ext:'aar')
21       compile(name:'iotivity-x86-base-debug', ext:'aar')
22    }
23