[IOT-3011] Deprecate PlatformConfig to match C++ 79/25279/4
authorLarry Sachs <larry.j.sachs@intel.com>
Wed, 16 May 2018 20:56:06 +0000 (13:56 -0700)
committerLarry Sachs <larry.j.sachs@intel.com>
Thu, 17 May 2018 18:15:59 +0000 (11:15 -0700)
commita56770facf359c2ac341bdd2f98182fbd2efc37f
treeaf4cc67e9fa4543781766d712b1284f0a304057d
parentcc4e71f6c17015b29cbe8525f6ef830ae17e243f
[IOT-3011] Deprecate PlatformConfig to match C++

In OCApi.h constructors for PlatformConfig that take ipAddress and port
as parameters have been deprecated.  These deprecated constructors are
now similarly removed from the JNI code and deprecated in the Java code.
Non-deprecated constructors are now available.

Sample code has been changed to use the new constructors.

Change-Id: I3daa9c4eac0480c8fd8d3be7a5d0a80dada8c902
Signed-off-by: Larry Sachs <larry.j.sachs@intel.com>
37 files changed:
java/examples-android/cloudprovisioningclient/src/main/java/org/iotivity/base/examples/cloudprovisioningclient/CloudProvisioningClient.java
java/examples-android/devicediscoveryclient/src/main/java/org/iotivity/base/examples/DeviceDiscoveryClient.java
java/examples-android/devicediscoveryserver/src/main/java/org/iotivity/base/examples/DeviceDiscoveryServer.java
java/examples-android/fridgeclient/src/main/java/org/iotivity/base/examples/FridgeClient.java
java/examples-android/fridgegroupclient/src/main/java/org/iotivity/base/examples/FridgeGroupClient.java
java/examples-android/fridgegroupserver/src/main/java/org/iotivity/base/examples/FridgeGroupServer.java
java/examples-android/fridgeserver/src/main/java/org/iotivity/base/examples/fridgeserver/FridgeServer.java
java/examples-android/groupclient/src/main/java/org/iotivity/base/examples/GroupClient.java
java/examples-android/groupserver/src/main/java/org/iotivity/base/examples/GroupServer.java
java/examples-android/guiclient/src/main/java/org/iotivity/guiclient/OcWorker.java
java/examples-android/presenceclient/src/main/java/org/iotivity/base/examples/PresenceClient.java
java/examples-android/presenceserver/src/main/java/org/iotivity/base/examples/PresenceServer.java
java/examples-android/provisioningclient/src/main/java/org/iotivity/base/examples/provisioningclient/ProvisioningClient.java
java/examples-android/simplebase/src/main/java/org/iotivity/base/examples/BluetoothFragment.java
java/examples-android/simplebase/src/main/java/org/iotivity/base/examples/CloudFragment.java
java/examples-android/simplebase/src/main/java/org/iotivity/base/examples/MessageFragment.java
java/examples-android/simpleclient/src/main/java/org/iotivity/base/examples/SimpleClient.java
java/examples-android/simpleserver/src/main/java/org/iotivity/base/examples/SimpleServer.java
java/examples-java/ocflightserver/src/main/java/org/iotivity/base/examples/OcfLightServer.java
java/examples-java/simpleclient/src/main/java/org/iotivity/base/examples/SimpleClient.java
java/examples-java/simpleclientserver/src/main/java/org/iotivity/base/examples/SimpleClientServer.java
java/examples-java/simpleserver/src/main/java/org/iotivity/base/examples/SimpleServer.java
java/iotivity-android/src/androidTest/java/org/iotivity/base/SmokeTest.java
java/iotivity-android/src/main/java/org/iotivity/base/OcPlatform.java
java/iotivity-android/src/main/java/org/iotivity/base/PlatformConfig.java
java/iotivity-java/src/main/java/org/iotivity/base/OcPlatform.java
java/iotivity-java/src/main/java/org/iotivity/base/PlatformConfig.java
java/jni/JniOcPlatform.cpp
java/jni/JniOcPlatform.h
service/easy-setup/sampleapp/mediator/android/EasySetup/app/src/main/java/org/iotivity/service/easysetup/EasysetupActivity.java
service/notification/examples/android/NotiConsumerExample/app/src/androidTest/java/org/iotivity/service/ns/sample/consumer/ExampleUnitTest.java
service/notification/examples/android/NotiConsumerExample/app/src/main/java/org/iotivity/service/ns/sample/consumer/ConsumerSample.java
service/notification/examples/android/NotiProviderExample/app/src/androidTest/java/org/iotivity/service/ns/sample/provider/ExampleUnitTest.java
service/notification/examples/android/NotiProviderExample/app/src/main/java/org/iotivity/service/ns/sample/provider/ProviderSample.java
service/resource-container/examples/android/RCSampleServerApp/app/src/main/java/org/iotivity/service/sample/container/ResourceContainerActivity.java
service/resource-encapsulation/examples/android/RESampleClientApp/app/src/main/java/org/iotivity/service/sample/client/MainActivity.java
service/resource-encapsulation/examples/android/RESampleServerApp/app/src/main/java/org/iotivity/service/sample/server/MainActivity.java