summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2017-03-14IOT-1877 : start presence issuesubmit/tizen/20170314.094744accepted/tizen/wearable/20170314.224157accepted/tizen/unified/20170315.014656accepted/tizen/tv/20170314.224144accepted/tizen/mobile/20170314.224141accepted/tizen/ivi/20170314.224217accepted/tizen/common/20170314.173157accepted/tizen_wearableaccepted/tizen_tvaccepted/tizen_mobileaccepted/tizen_iviaccepted/tizen_commonChaJiWon1-0/+1
When called OCStartPresence() second, OCStartPresence() returns error. Fixed presenceState variable to OC_PRESENCE_UNINITIALIZED. Change-Id: I089c826f4105eb3aaf835a8feda4c10b848ebd5d Signed-off-by: ChaJiWon <jw_wonny.cha@samsung.com> Reviewed-on: https://gerrit.iotivity.org/gerrit/17623 Tested-by: jenkins-iotivity <jenkins@iotivity.org> Reviewed-by: Phil Coval <philippe.coval@osg.samsung.com> Reviewed-by: Jaehong Jo <jaehong.jo@samsung.com> Reviewed-by: jihwan seo <jihwan.seo@samsung.com> Reviewed-by: Way Vadhanasin <wayvad@microsoft.com> Reviewed-by: Dan Mihai <Daniel.Mihai@microsoft.com> (cherry picked from commit 2f11e9592a7374ce28082a523b0c367a6d31baee) Reviewed-on: https://gerrit.iotivity.org/gerrit/17775
2017-03-14Moved a requestId declaration in OCServerRequesthyuna0213.jo1-3/+3
we should not add attributes after payload as they get overwritten when payload content gets copied over. Change-Id: I0c8a430f92c2196d3f9c816e9ba9d16fd44d88e4 Signed-off-by: hyuna0213.jo <hyuna0213.jo@samsung.com> Reviewed-on: https://gerrit.iotivity.org/gerrit/17015 Tested-by: jenkins-iotivity <jenkins@iotivity.org> Reviewed-by: Dan Mihai <Daniel.Mihai@microsoft.com>
2017-02-13Fixed memory leak on OCSetDeviceInfo and CARetransmissionDestroysubmit/tizen_unified/20170308.100413submit/tizen/20170214.012629accepted/tizen/wearable/20170214.225829accepted/tizen/unified/20170309.035854accepted/tizen/tv/20170214.225811accepted/tizen/mobile/20170214.225749accepted/tizen/ivi/20170214.225844accepted/tizen/common/20170214.173627jihwanseo2-0/+14
Change-Id: Ic53ae0759020fa26f5f70425d3dab09ff5e7d375 Signed-off-by: Jaewook Jung <jw0213.jung@samsung.com> Signed-off-by: jihwan.seo <jihwan.seo@samsung.com> Reviewed-on: https://gerrit.iotivity.org/gerrit/17167 Tested-by: jenkins-iotivity <jenkins@iotivity.org> Reviewed-by: Jaehong Jo <jaehong.jo@samsung.com> Reviewed-by: jaehyun Cho <jaehyun3.cho@samsung.com> Reviewed-by: Ashok Babu Channa <ashok.channa@samsung.com>
2017-02-08fix the easy-setup mediator SConscriptsubmit/tizen/20170209.011845accepted/tizen/wearable/20170210.003742accepted/tizen/tv/20170210.003726accepted/tizen/mobile/20170210.003711accepted/tizen/ivi/20170210.003759accepted/tizen/common/20170209.122246Jooseok Park1-2/+3
Change-Id: If484c27c7336608326af35f3e0aebeac4e4a580a
2017-02-07Fixed double free issue when destroying endpointhyuna0213.jo2-24/+52
- after destroying memory, set NULL value to prevent double free - add the usage of oc_mutex_lock() when block data is updated Change-Id: I78d0d46e37333e099ec737ac4500a2f388d58c4e Signed-off-by: hyuna0213.jo <hyuna0213.jo@samsung.com> Reviewed-on: https://gerrit.iotivity.org/gerrit/15447 Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org> Reviewed-by: Dan Mihai <Daniel.Mihai@microsoft.com> Reviewed-by: Jaehong Jo <jaehong.jo@samsung.com> Reviewed-by: jihwan seo <jihwan.seo@samsung.com> Reviewed-by: Ashok Babu Channa <ashok.channa@samsung.com>
2017-02-06tizen: Enable CLOUD and ship ES lib (downstream)Philippe Coval1-1/+2
Sync with upstream's spec Change-Id: I84ce3dd94e1a90f13f0ff875221ca50600000001 Forwarded: https://gerrit.iotivity.org/gerrit/#/q/I84ce3dd94e1a90f13f0ff875221ca5061828618e Origin: https://review.tizen.org/gerrit/112583 Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com>
2017-02-02tizen: Enable CLOUD and ship ES libPhilippe Coval1-1/+2
Change-Id: I84ce3dd94e1a90f13f0ff875221ca5061828618e Forwarded: https://gerrit.iotivity.org/gerrit/#/q/I84ce3dd94e1a90f13f0ff875221ca5061828618e Origin: https://review.tizen.org/gerrit/112583 Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com> Reviewed-on: https://gerrit.iotivity.org/gerrit/16965 Tested-by: jenkins-iotivity <jenkins@iotivity.org> Reviewed-by: Uze Choi <uzchoi@samsung.com>
2017-02-02tizen: Use mediator richsdk libPhilippe Coval1-3/+3
Change-Id: Ib63db28697925b02349da82c5feabc1334a39ba2 Forwarded: https://gerrit.iotivity.org/gerrit/#/q/Ib63db28697925b02349da82c5feabc1334a39ba2 Origin: https://review.tizen.org/gerrit/112583 Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com> Reviewed-on: https://gerrit.iotivity.org/gerrit/16963 Reviewed-by: Uze Choi <uzchoi@samsung.com> Tested-by: Uze Choi <uzchoi@samsung.com>
2017-02-02[4.0] Unification: Remove Profile Build Dependency & Prepare 4.0 BuildGeunsik Lim1-20/+6
This is for Tizen 4.0. - Removed profile build dependency. - Prepare for Tizen 4.0 build. a. Remove profile build dependency - This commit completely removes the build dependencies on Tizen profile. b. Prepare for Tizen 4.0 build - We have assumed that Tizen 4.0 code is going to be more similar with 3.0 than 2.0. Please do not rely on string '==' compare for version check. And, refer to the official macros that are defined in Project Config. https://build.tizen.org/project/prjconf?project=<project_name> @To maintainer: Please, keep a spec file syntax that was written at an official webpage. https://docs.fedoraproject.org/ro/Fedora_Draft_Documentation/0.1/html/\ RPM_Guide/ch-specfile-syntax.html First, if you want to use a comparison operator in %if, don't use a double-quotes. Second, RPM macro does not support a floating-point number for the comparison operator. Change-Id: I8904a25e5e24f6e1bdbd460e434ad563695a3001 Signed-off-by: Geunsik Lim <geunsik.lim@samsung.com>
2017-01-18tizen: Use easy-setup mediatorPhilippe Coval1-1/+1
Change-Id: I2b0681b70218613c0df0d82e0f46fdc61668296e Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com>
2017-01-18build: Install provisioning ESException.hJihun Ha2-1/+1
Add ESException.h to 'inc' folder and a list of install target headers Change-Id: Ib0b7e7bbab9cf5d8f7cc0c69e223d966e4b055b0 Signed-off-by: Jihun Ha <jihun.ha@samsung.com> Origin: https://gerrit.iotivity.org/gerrit/#/c/16521/ Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com>
2017-01-18easy-setup: Rename header to EasySetup.hppPhilippe Coval7-10/+10
Prevent potential name clash on case insensitive filesystems: ./service/easy-setup/mediator/richsdk/inc/EasySetup.h ./service/easy-setup/enrollee/inc/easysetup.h Mediator one is C++ so we rename it to .hpp Change-Id: I6d784378b5065b162d06abb2338bf70e0147d864 Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com> Reviewed-on: https://gerrit.iotivity.org/gerrit/16479 Reviewed-by: George Nash <george.nash@intel.com> Tested-by: jenkins-iotivity <jenkins@iotivity.org> Reviewed-by: Uze Choi <uzchoi@samsung.com> (cherry picked from commit 98b92dae54a9244e1947937fcf7432ac38956659) Origin: https://gerrit.iotivity.org/gerrit/#/c/16481/ pp
2017-01-18build: Ship provisionning headersPhilippe Coval1-0/+2
New headers should be installed if part of public API: - OCProvisionningManager.hpp - OCCloudProvisioning.hpp Change-Id: I29a322f2dae9b0d978cdd05d4ca3ad71729d1923 Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com> Origin: https://gerrit.iotivity.org/gerrit/#/c/16531/
2017-01-17fix the build error when appcliation build resource encapsulationJooseok Park1-0/+2
- add the missing header file in installed target header Change-Id: I71b65d6df422bd758e543118c2580ac770213399 Signed-off-by: JooseokPark <jooseok.park@samsung.com> Reviewed-on: https://gerrit.iotivity.org/gerrit/16461 Reviewed-by: Uze Choi <uzchoi@samsung.com> Tested-by: Uze Choi <uzchoi@samsung.com>
2017-01-17revise the spec file for ESJooseok Park1-3/+0
- tizen: avoid to duplicate headers - Rely on pkg-config instead. Change-Id: I5944d59bb08d8aeeda617f0af5ba95ae9e76e9cc
2017-01-17tizen: avoid to duplicate headersPhilippe Coval1-3/+0
Rely on pkg-config instead. Change-Id: Ieff754b33a21015a17fc9a8d107ee29f1376dfa1 Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com> Reviewed-on: https://gerrit.iotivity.org/gerrit/16449 Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org> Reviewed-by: Uze Choi <uzchoi@samsung.com>
2017-01-17build: Add ES NS paths to pkg-configPhilippe Coval1-0/+2
Public easy-setup and notification headers, are copied in 2 level depths directory. Change-Id: I7c9fd3a4bd1143c5ea05e7902292af23cf5e8934 Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com> Reviewed-on: https://gerrit.iotivity.org/gerrit/16447 Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org> Reviewed-by: Uze Choi <uzchoi@samsung.com>
2017-01-17build: Install easy-setup headersPhilippe Coval3-7/+13
It look like project public headers are installed to 2 level depth subdirectories (service/$domain/*.h*) Change-Id: Ia7a66caf5381d24b56f0c5ac1a91929eff9ba7d7 Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com> Reviewed-on: https://gerrit.iotivity.org/gerrit/16445 Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org> Reviewed-by: Uze Choi <uzchoi@samsung.com>
2017-01-17build: Install notification headersPhilippe Coval4-0/+42
It look like project public headers are installed to 2 level depth subdirectories (service/$domain/*.h*) Change-Id: I36ab613ff6aaf7d960e6ba1e94263f8cfdf7c559 Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com> Reviewed-on: https://gerrit.iotivity.org/gerrit/16443 Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org> Reviewed-by: Uze Choi <uzchoi@samsung.com>
2017-01-17Fix the notification service SConscriptJooseok Park1-0/+3
- when application use the notification service, build error occurs. - i.e) /usr/include/service/notification/NSConsumerInterface.h:35:22: fatal error: NSCommon.h: No such file or directory - Although NSConsumerInterface.h includes NSCommon.h, NSCommon.h file is not installed in SConscript. - So, need to add NSCommon.h in installed header Change-Id: I2f28f84504d68c5506c89513d74adcdf32d2bbfc Signed-off-by: JooseokPark <jooseok.park@samsung.com> Reviewed-on: https://gerrit.iotivity.org/gerrit/16427 Reviewed-by: Phil Coval <philippe.coval@osg.samsung.com> Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org> Reviewed-by: Uze Choi <uzchoi@samsung.com> (cherry picked from commit e4eca38246a40013530b7df74c1b369960c88897) Reviewed-on: https://gerrit.iotivity.org/gerrit/16459 Tested-by: Uze Choi <uzchoi@samsung.com>
2017-01-10merge tizen_3.0 to tizen branchsubmit/tizen/20170110.045728accepted/tizen/wearable/20170110.081414accepted/tizen/tv/20170110.081348accepted/tizen/mobile/20170110.081323accepted/tizen/ivi/20170110.081445accepted/tizen/common/20170110.155003Jooseok Park1-1/+1
Change-Id: Ib7f30f0231385d4f6c2d2cee8ff430ad6ed6b6ac
2016-12-19tizen: Replace speedpython by python-accelPhilippe Coval1-9/+3
Tizen toolchain provide same functionality with python-accel's macro Also Chan Lee from Tizen toolchain project reported: { Speedpython macro sometimes cause some build problem Speedpython macro is parsed when spec parsing time and it includes other macro in its own. (I mean, %{build_hostarch} macro) And when the OBS project config updates, OBS sometimes cannot sync-up the changes perfectly. It this case, build error occurs when we use speedpython macro. It seems OBS limitation but, we can avoid this problem by using other macro which provides same functionality. } Change-Id: I265220b5e1f2dcb1956ef546a799a94eb460dd88 Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com>
2016-12-19[Tizen]change flag which used for detect ip changedsubmit/tizen_3.0/20161219.033311accepted/tizen/3.0/wearable/20161219.091122accepted/tizen/3.0/tv/20161219.095715accepted/tizen/3.0/mobile/20161219.091514accepted/tizen/3.0/ivi/20161219.095709accepted/tizen/3.0/common/20161219.113747bg.chun2-4/+6
change netlink interface flags to addr flags which used for detect network IPv4/6 changed Change-Id: I827db082879aafdc3e8bd688917180af09531ab2 Signed-off-by: bg.chun <bg.chun@samsung.com> Reviewed-on: https://gerrit.iotivity.org/gerrit/15595 Reviewed-by: Hyuna Jo <hyuna0213.jo@samsung.com> Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org> Reviewed-by: Phil Coval <philippe.coval@osg.samsung.com> Reviewed-by: Jaehong Jo <jaehong.jo@samsung.com> Reviewed-by: Dan Mihai <Daniel.Mihai@microsoft.com> Reviewed-by: jihwan seo <jihwan.seo@samsung.com> Reviewed-by: Ashok Babu Channa <ashok.channa@samsung.com>
2016-12-15[IOT-1671] Fixed base layer terminate logicsubmit/tizen_3.0/20161215.040308accepted/tizen/3.0/wearable/20161216.083338accepted/tizen/3.0/tv/20161216.083332accepted/tizen/3.0/mobile/20161216.083319accepted/tizen/3.0/ivi/20161216.083348accepted/tizen/3.0/common/20161215.164648hyuna0213.jo5-21/+71
- ObserverList should be removed before destroying ResourceList to avoid the error of dangling pointer. because ResourceObserver object includes a resource handle which is memory address allocated when resource is created. - Add function to unset network monitoring callback when OCStop() is called. bug: https://jira.iotivity.org/browse/IOT-1671 Change-Id: I8a367a24a2100c97bf612db26bc41db5f47f2feb Signed-off-by: hyuna0213.jo <hyuna0213.jo@samsung.com> Reviewed-on: https://gerrit.iotivity.org/gerrit/15499 Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org> Reviewed-by: Dan Mihai <Daniel.Mihai@microsoft.com> Reviewed-by: jihwan seo <jihwan.seo@samsung.com> Reviewed-by: Ashok Babu Channa <ashok.channa@samsung.com>
2016-12-08fix package install errorsubmit/tizen_3.0/20161209.001010submit/tizen/20161213.050408accepted/tizen/3.0/wearable/20161209.103456accepted/tizen/3.0/tv/20161209.103437accepted/tizen/3.0/mobile/20161209.103425accepted/tizen/3.0/ivi/20161209.103525accepted/tizen/3.0/common/20161209.160941Jooseok Park1-8/+1
- install error is caused by no manifest in the package (wrong path) - remove manifest redefinition Change-Id: If5ef103231509addb50b5d62a59c27fc8692a2b4
2016-12-07tizen: use tag as base even if not in upstream branchPhilippe Coval1-0/+3
Change-Id: I53e451092168b9469090b888c12e53ee118a0395 Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com>
2016-12-07tizen: Adapt to support other buildsystemPhilippe Coval4-4/+352
Some build system does not support .gbs.conf so we rely on default packging folder This change is use by other build systems (MCD auto-sync?) Note, Any suggestion to align to gbs is welcome. Change-Id: I59a9bc4d67a683dd22e7dbbb9aae67fb6ec5c570 Credit-to: Jooseok Park <jooseok.park@samsung.com> Origin: https://review.tizen.org/gerrit/#/c/102824/ Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com>
2016-12-07tizen: relocate all liboc*.so to resource subpackagePhilippe Coval1-5/+5
iotivity.pc bring those libs so they should come along. This was observed while porting Tizen's iotcon to iotivity-1.2.1 Change-Id: I82e7121520c1a7ed8d79e7b85089bec2b0b5012b Origin: https://gerrit.iotivity.org/gerrit/#/c/15195/ Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com>
2016-12-07build: Fix to also support SECURED=0Philippe Coval1-2/+2
Note, for later it would be nice to test booleans instead of strings. Change-Id: I069d865c6e2cc6a80a812e60ab278af15b7eaa85 Origin: https://gerrit.iotivity.org/gerrit/#/c/15163/ Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com>
2016-12-07tizen: Ship more security headers if enabledPhilippe Coval1-1/+1
[youngman] - Add header files related to security [Philippe Coval] - If built with security on, ships all headers or none - To be used by iotcon - Only ship them if usable (with security flag on) Change-Id: I9c8edccddec5626119cb3adb39959437ab350413 Signed-off-by: youngman <yman.jung@samsung.com> Credit-to: youngman <yman.jung@samsung.com> Origin: https://gerrit.iotivity.org/gerrit/#/c/13047/ Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com>
2016-12-07tizen: Enable TCPPhilippe Coval1-1/+1
Change-Id: I56b8abcea1a3397f546ef0b8edc42711ff62b9d8 Origin: https://gerrit.iotivity.org/gerrit/#/c/15193/ Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com>
2016-12-07tizen: Enable SECUREDPhilippe Coval1-1/+1
Change-Id: Id88b113bc256a51f97f5d1772df323d7bf244bd7 Origin: https://gerrit.iotivity.org/gerrit/#/c/14675/ Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com>
2016-12-07mbedtls: Apply OCF patch (20161125)Philippe Coval12-59/+188
To provide TLS_ECDH_ANON_WITH_AES_128_CBC_SHA256 feature. It is strongly recommended to rely on scons instead, if not possible, this change workaround this. For more details about building IoTivity please check: https://wiki.iotivity.org/build Bug: https://jira.iotivity.org/browse/IOT-820 Bug-Tizen: https://bugs.tizen.org/jira/browse/TINF-861 Change-Id: I638ec0c0a45e855dcee711c8321039b7489d7e5a Origin: https://gerrit.iotivity.org/gerrit/#/c/12429/ Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com>
2016-12-07mbedtls: Update to mbedtls-2.4.0Philippe Coval134-978/+4280
t is strongly recommended to rely on scons instead, if not possible, this change workaround this. For more details about building IoTivity please check: https://wiki.iotivity.org/build Bug: https://jira.iotivity.org/browse/IOT-820 Bug-Tizen: https://bugs.tizen.org/jira/browse/TINF-861 Change-Id: I29c0d7c6b0d1bb50b82e9bcbeba38cfe1daa9857 Origin: https://gerrit.iotivity.org/gerrit/#/c/14677/ Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com>
2016-12-07mbedtls: Import mbedtls-2.3.0Philippe Coval701-0/+170058
It is strongly recommended to rely on scons instead, if not possible, this change workaround this. For more details about building IoTivity please check: https://wiki.iotivity.org/build Bug: https://jira.iotivity.org/browse/IOT-820 Bug-Tizen: https://bugs.tizen.org/jira/browse/TINF-861 Change-Id: I97e8f34408dde1c95bd0587cb74834df966d2463 Origin: https://gerrit.iotivity.org/gerrit/#/c/12423/ Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com>
2016-12-07tinycbor: Update import to v0.4Philippe Coval18-39/+183
git "module" was converted to patch this way: git clone https://github.com/01org/tinycbor.git -b v0.4 extlibs/tinycbor/tinycbor rm -rf extlibs/tinycbor/tinycbor/.git git add -f extlibs/tinycbor/tinycbor/ git commit -sm 'tinycbor: Update import to v0.4' extlibs/tinycbor/tinycbor/ It is strongly recommended to rely on scons instead, if not possible, this change workaround this. For more details about building IoTivity please check: https://wiki.iotivity.org/build Change-Id: I5492732be93e2b0fdf5e1c3eabcdc949b420e4fb Bug: https://jira.iotivity.org/browse/IOT-820 Bug-Tizen: https://bugs.tizen.org/jira/browse/TINF-861 Origin: https://gerrit.iotivity.org/gerrit/#/c/14679/ Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com>
2016-12-07tinycbor: Update to v0.3.2Philippe Coval28-335/+4228
Needed for IoTivity 1.2.0 and later It is strongly recommended to rely on scons instead, if not possible, this change workaround this. For more details about building IoTivity please check: https://wiki.iotivity.org/build Bug: https://jira.iotivity.org/browse/IOT-820 Bug-Tizen: https://bugs.tizen.org/jira/browse/TINF-861 Change-Id: I9b33b8dd7a97b48b6fd3157b1ef25dadb79f11e2 Origin: https://gerrit.iotivity.org/gerrit/#/c/12705/ Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com>
2016-12-07tinycbor: Import v0.2.1Philippe Coval45-0/+7168
Needed for Iotivity-1.1.1 and lower It is strongly recommended to rely on scons instead, if not possible, this change workaround this. For more details about building IoTivity please check: https://wiki.iotivity.org/build Bug: https://jira.iotivity.org/browse/IOT-820 Bug-Tizen: https://bugs.tizen.org/jira/browse/TINF-861 Change-Id: I0a622b8c7c47cfc4ea7afd8a3cf82720a50618bd Origin: https://gerrit.iotivity.org/gerrit/#/c/12703/ Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com>
2016-12-02tizen: Remove deprecated libresource_hosting.soupstream/1.2.11.2.1Philippe Coval1-2/+0
To be squashed into: https://gerrit.iotivity.org/gerrit/15003 Change-Id: I512cc51a9ad53929a57d30034cb70f1d153789ea Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com> Reviewed-on: https://gerrit.iotivity.org/gerrit/15029 Reviewed-by: JungYong KIM <jyong2.kim@samsung.com>
2016-12-02android: Fix resource_directory build issuePhilippe Coval1-0/+1
Adding resource_directory to notification like in master branch, then this lib will be found by Android.mk, while building on jenkins: gradle build -bservice/resource-container/android/build.gradle \ -PTARGET_ARCH=armeabi -PRELEASE=debug --stacktrace Android NDK: ERROR:jni/Android.mk:android-rd: \ LOCAL_SRC_FILES points to a missing file Android NDK: Check that ibresource_directory.so \ exists or that its path is correct https://build.iotivity.org/ci/job/iotivity-verify-android/3761/console To be squashed into: https://gerrit.iotivity.org/gerrit/15031 Change-Id: I18af0742fc4e76eda33bd89f721b8fef59f6f490 Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com> Reviewed-on: https://gerrit.iotivity.org/gerrit/15039 Reviewed-by: Chihyun Cho <ch79.cho@samsung.com> Reviewed-by: JungYong KIM <jyong2.kim@samsung.com> Reviewed-by: Uze Choi <uzchoi@samsung.com>
2016-12-02[IOT-1627][Android]resolve ipadapter memory leak issuebg.chun1-8/+26
On android ipadapter there is memory leak issue since the function which used for free pointer of structure does not free all pointer member Change-Id: If44dd9dc7562f851fa3f38526830aa84e4b35491 Signed-off-by: bg.chun <bg.chun@samsung.com> Reviewed-on: https://gerrit.iotivity.org/gerrit/14995 Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org> Reviewed-by: Jaehong Jo <jaehong.jo@samsung.com> Reviewed-by: Larry Sachs <larry.j.sachs@intel.com> Reviewed-by: Dan Mihai <Daniel.Mihai@microsoft.com> Reviewed-by: Uze Choi <uzchoi@samsung.com> Tested-by: Uze Choi <uzchoi@samsung.com>
2016-12-02Add links and rep in the response for the collectionHabib Virji10-502/+299
- Use common ExtractParamFromQuery in ocresource and occollection to extract query parameters. - Added links tag to the oic.if.ll and oic.if.baseline. - Added rts tag in the payload for the baseline. - Added rep tag for oic.if.b response. - occollection was using extra structure to differentiate ll, baseline, batch and group. Simplified the code to use a simpler code and removed unwanted structure. - oic.wk.col added in the types. - OCStackIfTypes is removed as it was used only internally. This is not needed due to usage of ExtractParamFromQuery. - BuildResponseRepresentation is updated as it is used in collection. For inner payload, these values were not being used by ocpayloadconvert. - oic.if.ll has been updated to give response in form of {links:[{href:"", rt:[""], if:[""]}]} - oic.if.baseline has been updated to give response in form of {rt:[], if:[], rts:[], links:[{href:"", rt:[""], if:[""]}]} - oic.if.b has been to response in form of [{"href": "", "rep": {""}}] - in case of wrong query it will respond with error message. Change-Id: I98489ac9923ab3c63012ddfe6b55c2b3064c3f28 Signed-off-by: Habib Virji <habib.virji@samsung.com> Reviewed-on: https://gerrit.iotivity.org/gerrit/14621 Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org> Reviewed-by: Uze Choi <uzchoi@samsung.com> Tested-by: Uze Choi <uzchoi@samsung.com>
2016-12-02Fix Android SetPropertyValue function callHabib Virji1-4/+4
setPropertyValue call in the Android was swapped, compared to function call how it was in the JNI layer. setPropertyValue0 is for passing string array and setPropertyValue1 is passing string. Change-Id: I91c480f162cc53712a68bef078371559fd2eff21 Signed-off-by: Habib Virji <habib.virji@samsung.com> Reviewed-on: https://gerrit.iotivity.org/gerrit/15025 Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org> Reviewed-by: Phil Coval <philippe.coval@osg.samsung.com> Reviewed-by: Uze Choi <uzchoi@samsung.com>
2016-12-01android: Fix resource_directory build issuePhilippe Coval2-187/+187
jni/../../../../out/android/armeabi/debug/libresource_directory.so exists or that its path is correct In https://gerrit.iotivity.org/gerrit/#/c/14731, resource_directory was added in the resource-container. It is not needed and break android build. Change-Id: I05a1b422f6561102c641cc50cd68baa58768b11a Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com> Reviewed-on: https://gerrit.iotivity.org/gerrit/15031 Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org> Reviewed-by: Habib Virji <habib.virji@samsung.com>
2016-12-01tizen: resource-encapsulation prevent to import tools.scons.RunTestPhilippe Coval1-1/+1
As unit tests are not enabled on tizen, there is no need to import it. A smarter way would be to follow other tests patterns and have them separated and included in supported platforms. Bug: https://jira.iotivity.org/browse/IOT-1486 Change-Id: I2a925a251480c35d90bab6b2661c4da60f959b6f Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com> Reviewed-on: https://gerrit.iotivity.org/gerrit/15027 Reviewed-by: Uze Choi <uzchoi@samsung.com>
2016-12-01service: [IOT-1562] Fix for unittest with SECURED at RE/RCKIM JungYong6-19/+158
When IoTivity was built with SECURED and TEST, some of test case at RE and RC occurring crash. because RE and RC has not set the precondition of security. In this patch, added the security flow and persistence storage files at RE. related security test case is disabled at RC. Change-Id: I4094bd01cba84d395c408a56f4c57d4ebcb45b44 Signed-off-by: KIM JungYong <jyong2.kim@samsung.com> Bug: https://jira.iotivity.org/browse/IOT-1562 Reviewed-on: https://gerrit.iotivity.org/gerrit/14837 Tested-by: Phil Coval <philippe.coval@osg.samsung.com> Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org> Reviewed-by: Uze Choi <uzchoi@samsung.com> Reviewed-by: Phil Coval <philippe.coval@osg.samsung.com>
2016-12-01connectivity: Enable resource/csdk/connectivity testPhilippe Coval1-3/+1
Bug: https://jira.iotivity.org/browse/IOT-1486 Change-Id: I6b47f7b3439b923ec12f26b0e159e3b7a1144658 Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com> Reviewed-on: https://gerrit.iotivity.org/gerrit/12721 Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org> Reviewed-by: Ziran Sun <ziran.sun@samsung.com>
2016-12-01Remove resource-hosting service which is deprecated.KIM JungYong77-7537/+0
Current resource-hosting service is deprecated because concept of resource proxy can cover with functionality of cloud or relay server. And this service would not handled for previous releases. So this service can't cover for recent basic protocols. If needs is arised for this concept, will be develop on the new service. Change-Id: Ie14482924b7ccbebbd2512f017ad4b6039d72dd2 Signed-off-by: KIM JungYong <jyong2.kim@samsung.com> Reviewed-on: https://gerrit.iotivity.org/gerrit/15003 Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org> Reviewed-by: Uze Choi <uzchoi@samsung.com>
2016-12-01Correct callback function for security provisioning in easy setupParkhi1-1/+1
Change-Id: Id7d1deb6371d49e4810c191bc52979693ce16e8d Signed-off-by: Parkhi <h_w.park@samsung.com> Reviewed-on: https://gerrit.iotivity.org/gerrit/15013 Reviewed-by: Uze Choi <uzchoi@samsung.com> Tested-by: Uze Choi <uzchoi@samsung.com>
2016-12-01Fix defects detected by static analysisParkhi1-1/+0
Change-Id: I9eba31f8f716f8d3b5b04b803bc4c9ecdf035e10 Signed-off-by: Parkhi <h_w.park@samsung.com> Reviewed-on: https://gerrit.iotivity.org/gerrit/15009 Reviewed-by: Uze Choi <uzchoi@samsung.com> Tested-by: Uze Choi <uzchoi@samsung.com>