[IOT-1089] Merge remote-tracking branch 'origin/master' into generic-java 31/13531/3
authorGeorge Nash <george.nash@intel.com>
Tue, 8 Nov 2016 17:11:37 +0000 (09:11 -0800)
committerGeorge Nash <george.nash@intel.com>
Tue, 8 Nov 2016 21:44:13 +0000 (13:44 -0800)
Change-Id: Ib37bdbb2955bdb0edc136786f1abf5a11c1489d6
Signed-off-by: George Nash <george.nash@intel.com>
27 files changed:
1  2 
auto_build.py
build_common/SConscript
build_common/external_libs.scons
java/examples-android/devicediscoveryserver/src/main/java/org/iotivity/base/examples/DeviceDiscoveryServer.java
java/examples-android/provisioningclient/src/main/assets/oic_svr_db_client.dat
java/examples-android/provisioningclient/src/main/assets/oic_svr_db_client.json
java/examples-android/provisioningclient/src/main/java/org/iotivity/base/examples/provisioningclient/ProvisioningClient.java
java/examples-android/simpleclient/src/main/assets/oic_svr_db_client.dat
java/examples-android/simpleclient/src/main/assets/oic_svr_db_client.json
java/examples-android/simpleserver/src/main/assets/oic_svr_db_server.dat
java/examples-android/simpleserver/src/main/assets/oic_svr_db_server.json
java/iotivity-android/src/main/java/org/iotivity/base/OcPlatform.java
java/jni/JniOcCloudProvisioning.cpp
java/jni/JniOcPlatform.cpp
java/jni/JniOcPlatform.h
java/jni/JniOcProvisioning.cpp
java/jni/JniOcSecureResource.cpp
java/jni/JniOcStack.cpp
java/jni/JniOnMQSubscribeListener.h
service/notification/SConscript
service/notification/cpp-wrapper/consumer/SConscript
service/notification/cpp-wrapper/provider/SConscript
service/notification/examples/android/NotiConsumerExample/build.gradle
service/notification/examples/android/NotiProviderExample/build.gradle
service/resource-container/src/ResourceContainerImpl.cpp
service/resource-encapsulation/examples/android/RESampleClientApp/build.gradle
service/resource-encapsulation/examples/android/RESampleServerApp/build.gradle

diff --cc auto_build.py
@@@ -53,13 -53,11 +53,13 @@@ def build_all(flag, extra_option_str)
          build_linux_unsecured_with_mq(flag, extra_option_str)
          build_linux_unsecured_with_tcp(flag, extra_option_str)
          build_linux_secured_with_tcp(flag, extra_option_str)
 +        build_linux_unsecured_with_java(flag, extra_option_str)
 +        build_linux_secured_with_java(flag, extra_option_str)
          build_simulator(flag, extra_option_str)
  
-     build_android(flag, extra_option_str)
-     build_arduino(flag, extra_option_str)
-     build_tizen(flag, extra_option_str)
+         build_android(flag, extra_option_str)
+         build_arduino(flag, extra_option_str)
+         build_tizen(flag, extra_option_str)
  
      if platform.system() == "Windows":
          build_windows(flag, extra_option_str)
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
@@@ -209,7 -209,7 +209,7 @@@ OCStackResult JniOcSecureResource::prov
              resultCallback);
  }
  
--#if defined(__WITH_TLS__)
++#if defined(__WITH_DTLS__) || defined(__WITH_TLS__)
  OCStackResult JniOcSecureResource::provisionTrustCertChain(JNIEnv* env, jint type, jint credId,
          jobject jListener)
  {
Simple merge
Simple merge
@@@ -124,9 -132,8 +132,9 @@@ if target_os == 'linux'
  # Go to build c++ wrapper
  SConscript('cpp-wrapper/SConscript')
  
 +
  if target_os == 'android':
      SConscript('android/SConscript')
+ # Go to build sample apps
+ SConscript('examples/SConscript')
@@@ -103,8 -103,10 +103,10 @@@ notification_env.UserInstallTargetLib(c
  # Source files and Targets for Consumer Jni
  ######################################################################
  if target_os == 'android':
+       Import('notificationJniCommonSharedObjs')
        notification_jni_consumer_env.AppendUnique(CPPPATH = ['../../../../extlibs/boost/boost_1_58_0'])
 -      notification_jni_consumer_env.AppendUnique(CPPPATH = ['../../../../android/android_api/base/jni'])
 +      notification_jni_consumer_env.AppendUnique(CPPPATH = ['../../../../java/jni'])
        notification_jni_consumer_env.AppendUnique(CPPPATH = ['../../android/notification-service/src/main/jni/common'])
        notification_jni_consumer_env.AppendUnique(CPPPATH = ['../../android/notification-service/src/main/jni/consumer'])
  
@@@ -1,23 -1,28 +1,28 @@@
- // Top-level build file where you can add configuration options common to all sub-projects/modules.\r
\r
- buildscript {\r
-     repositories {\r
-         jcenter()\r
-     }\r
-     dependencies {\r
-         classpath 'com.android.tools.build:gradle:1.5.0'\r
\r
-         // NOTE: Do not place your application dependencies here; they belong\r
-         // in the individual module build.gradle files\r
-     }\r
- }\r
\r
- allprojects {\r
-     repositories {\r
-         jcenter()\r
-     }\r
- }\r
\r
- task clean(type: Delete) {\r
-     delete rootProject.buildDir\r
- }\r
+ // Top-level build file where you can add configuration options common to all sub-projects/modules.
+ buildscript {
+     repositories {
+         jcenter()
+     }
+     dependencies {
+         classpath 'com.android.tools.build:gradle:1.3.0'
+         // NOTE: Do not place your application dependencies here; they belong
+         // in the individual module build.gradle files
+     }
+ }
+ allprojects {
+     repositories {
+         jcenter()
+         flatDir {
+             dirs '../../../../android/notification-service/build/outputs/aar'
 -            dirs '../../../../../../android/android_api/base/build/outputs/aar'
++            dirs '../../../../../../java/iotivity-android/build/outputs/aar/'
+         }
+     }
+ }
+ task clean(type: Delete) {
+     delete rootProject.buildDir
+ }
@@@ -1,23 -1,28 +1,28 @@@
- // Top-level build file where you can add configuration options common to all sub-projects/modules.\r
\r
- buildscript {\r
-     repositories {\r
-         jcenter()\r
-     }\r
-     dependencies {\r
-         classpath 'com.android.tools.build:gradle:1.5.0'\r
\r
-         // NOTE: Do not place your application dependencies here; they belong\r
-         // in the individual module build.gradle files\r
-     }\r
- }\r
\r
- allprojects {\r
-     repositories {\r
-         jcenter()\r
-     }\r
- }\r
\r
- task clean(type: Delete) {\r
-     delete rootProject.buildDir\r
- }\r
+ // Top-level build file where you can add configuration options common to all sub-projects/modules.
+ buildscript {
+     repositories {
+         jcenter()
+     }
+     dependencies {
+         classpath 'com.android.tools.build:gradle:1.3.0'
+         // NOTE: Do not place your application dependencies here; they belong
+         // in the individual module build.gradle files
+     }
+ }
+ allprojects {
+     repositories {
+         jcenter()
+         flatDir {
+             dirs '../../../../android/notification-service/build/outputs/aar'
 -            dirs '../../../../../../android/android_api/base/build/outputs/aar'
++            dirs '../../../../../../java/iotivity-android/build/outputs/aar/'
+         }
+     }
+ }
+ task clean(type: Delete) {
+     delete rootProject.buildDir
+ }
@@@ -607,7 -607,7 +607,7 @@@ namespace OI
          std::list<std::unique_ptr<RCSBundleInfo>> ResourceContainerImpl::listBundles()
          {
              OIC_LOG_V(INFO, CONTAINER_TAG,
--                                 "list bundles (%d)", m_bundles.size());
++                                 "list bundles (%d)", static_cast<int>(m_bundles.size()));
              std::list<std::unique_ptr<RCSBundleInfo> > ret;
              for (std::map< std::string, shared_ptr<BundleInfoInternal> >::iterator it = m_bundles.begin();
                   it != m_bundles.end(); ++it)
@@@ -17,7 -17,8 +17,8 @@@ allprojects 
          jcenter()
  
          flatDir {
-             dirs 'libs'
+             dirs '../../../../android/service/build/outputs/aar'
 -            dirs '../../../../../../android/android_api/base/build/outputs/aar'
++            dirs '../../../../../../java/iotivity-android/build/outputs/aar/'
          }
      }
  }
@@@ -17,7 -17,8 +17,8 @@@ allprojects 
          jcenter()
  
          flatDir {
-             dirs 'libs'
+             dirs '../../../../android/service/build/outputs/aar'
 -            dirs '../../../../../../android/android_api/base/build/outputs/aar'
++            dirs '../../../../../../java/iotivity-android/build/outputs/aar/'
          }
      }
  }