Android SDK - Initial commit and build system updates
authorPatrick C Lankswert <patrick.lankswert@intel.com>
Sun, 28 Dec 2014 05:15:52 +0000 (00:15 -0500)
committerPatrick C Lankswert <patrick.lankswert@intel.com>
Tue, 30 Dec 2014 01:22:36 +0000 (20:22 -0500)
commitc3c1e8acdfb77e6efaa9198a5aa2a6bb94818f83
tree83c818fec18adf28abf6b91d9b06f56c81e94f8b
parent93e87e9959d536120bedd47a837603418743cc6d
Android SDK - Initial commit and build system updates

This commit add makes the auto_build process more complete by
adding the following:

1) Auto build now always performs the dependency check
2) Auto build now always attempts to build the Android stack artifacts.
3) Transitioned the Android build process to the v4.9 tool chain
4) Android build now depends on the internal boost dependencies
5) Add an Android compatibility layer for the code that is using
   the C++ 11 basic string functions with is not supported in the
   Android toolchain yet.
6) Added static libraries to many of the shared libraries for the
   Android SDK

NOTE:
a) This commit conflicts with the work that Caiwen was making in the
   C++11 basic_string function compatibility. I will close with him.
b) Expat is needed by the protocol plug in manager for Android.
   This still needs to be closed by release. The PPM build for
   Android under SCONS is currently disabled.

This is the Android SDK client API.
Validation has not been completed. However, this is all new
functionality and does not have any negative impact on any
existing features. Until validation is completed this
functionality should be considered experimental.

This code based currently uses gradle to build the SDK.
It does require that the Android libraries for IoTivity
be built previously using the appropriate SCONS scripts.

This additional patch attempts to transition the boost
build to using git instead of a download in hopes that
the build machine will be happier about it.

Final patch makes Android build optional in auto_build

Another patch to add support for 64-bit hosts

Another patch set to reduce parallel builds to 4

Another patch to add licensing header to two files that we missing
in gerrit review #72

Change-Id: I9695ebf3ea271ec28b69a4fcec509a6c2b7c46a4
Signed-off-by: Patrick Lankswert <patrick.lankswert@intel.com>
88 files changed:
android/Base/app/build.gradle [new file with mode: 0644]
android/Base/app/jni/Android.mk [new file with mode: 0644]
android/Base/app/jni/Application.mk [new file with mode: 0644]
android/Base/app/jni/ocheaderoption-jni.cpp [new file with mode: 0644]
android/Base/app/jni/ocplatform-jni.cpp [new file with mode: 0644]
android/Base/app/jni/ocrepresentation-jni.cpp [new file with mode: 0644]
android/Base/app/jni/ocresource-jni.cpp [new file with mode: 0644]
android/Base/app/jni/ocstack-jni.cpp [new file with mode: 0644]
android/Base/app/jni/ocstack-jni.h [new file with mode: 0644]
android/Base/app/jni/platformcfg-jni.cpp [new file with mode: 0644]
android/Base/app/proguard-rules.pro [new file with mode: 0644]
android/Base/app/src/androidTest/java/org/iotivity/base/ApplicationTest.java [new file with mode: 0644]
android/Base/app/src/main/AndroidManifest.xml [new file with mode: 0644]
android/Base/app/src/main/java/org/iotivity/base/AbstractDeleteCallback.java [new file with mode: 0644]
android/Base/app/src/main/java/org/iotivity/base/AbstractFindCallback.java [new file with mode: 0644]
android/Base/app/src/main/java/org/iotivity/base/AbstractGetCallback.java [new file with mode: 0644]
android/Base/app/src/main/java/org/iotivity/base/AbstractObserveCallback.java [new file with mode: 0644]
android/Base/app/src/main/java/org/iotivity/base/AbstractPostCallback.java [new file with mode: 0644]
android/Base/app/src/main/java/org/iotivity/base/AbstractPutCallback.java [new file with mode: 0644]
android/Base/app/src/main/java/org/iotivity/base/AbstractSubscriberCallback.java [new file with mode: 0644]
android/Base/app/src/main/java/org/iotivity/base/EntityHandler.java [new file with mode: 0644]
android/Base/app/src/main/java/org/iotivity/base/NativeInstance.java [new file with mode: 0644]
android/Base/app/src/main/java/org/iotivity/base/OCHeaderOption.java [new file with mode: 0644]
android/Base/app/src/main/java/org/iotivity/base/OCPlatform.java [new file with mode: 0644]
android/Base/app/src/main/java/org/iotivity/base/OCRepresentation.java [new file with mode: 0644]
android/Base/app/src/main/java/org/iotivity/base/OCResource.java [new file with mode: 0644]
android/Base/app/src/main/java/org/iotivity/base/OCResourceRequest.java [new file with mode: 0644]
android/Base/app/src/main/java/org/iotivity/base/OCResourceResponse.java [new file with mode: 0644]
android/Base/app/src/main/java/org/iotivity/base/OCStackResult.java [new file with mode: 0644]
android/Base/app/src/main/java/org/iotivity/base/ObserveType.java [new file with mode: 0644]
android/Base/app/src/main/java/org/iotivity/base/PlatformConfig.java [new file with mode: 0755]
android/Base/app/src/main/res/drawable-hdpi/ic_launcher.png [new file with mode: 0644]
android/Base/app/src/main/res/drawable-mdpi/ic_launcher.png [new file with mode: 0644]
android/Base/app/src/main/res/drawable-xhdpi/ic_launcher.png [new file with mode: 0644]
android/Base/app/src/main/res/drawable-xxhdpi/ic_launcher.png [new file with mode: 0644]
android/Base/app/src/main/res/values/strings.xml [new file with mode: 0644]
android/Base/app/src/main/res/values/styles.xml [new file with mode: 0644]
android/Base/build.gradle [new file with mode: 0644]
android/Base/gradle.properties [new file with mode: 0644]
android/Base/gradlew [new file with mode: 0755]
android/Base/gradlew.bat [new file with mode: 0644]
android/Base/settings.gradle [new file with mode: 0644]
android/SimpleClient/app/build.gradle [new file with mode: 0644]
android/SimpleClient/app/proguard-rules.pro [new file with mode: 0644]
android/SimpleClient/app/src/androidTest/java/org/iotivity/simpleclient/ApplicationTest.java [new file with mode: 0644]
android/SimpleClient/app/src/main/AndroidManifest.xml [new file with mode: 0644]
android/SimpleClient/app/src/main/java/org/iotivity/simpleclient/FoundResource.java [new file with mode: 0644]
android/SimpleClient/app/src/main/java/org/iotivity/simpleclient/OnGet.java [new file with mode: 0644]
android/SimpleClient/app/src/main/java/org/iotivity/simpleclient/OnObserve.java [new file with mode: 0644]
android/SimpleClient/app/src/main/java/org/iotivity/simpleclient/OnPost.java [new file with mode: 0644]
android/SimpleClient/app/src/main/java/org/iotivity/simpleclient/OnPost2.java [new file with mode: 0644]
android/SimpleClient/app/src/main/java/org/iotivity/simpleclient/OnPut.java [new file with mode: 0644]
android/SimpleClient/app/src/main/java/org/iotivity/simpleclient/SimpleClient.java [new file with mode: 0644]
android/SimpleClient/app/src/main/java/org/iotivity/simpleclient/SimpleToast.java [new file with mode: 0644]
android/SimpleClient/app/src/main/res/drawable-hdpi/ic_launcher.png [new file with mode: 0644]
android/SimpleClient/app/src/main/res/drawable-mdpi/ic_launcher.png [new file with mode: 0644]
android/SimpleClient/app/src/main/res/drawable-xhdpi/ic_launcher.png [new file with mode: 0644]
android/SimpleClient/app/src/main/res/drawable-xxhdpi/ic_launcher.png [new file with mode: 0644]
android/SimpleClient/app/src/main/res/layout/activity_simple_client.xml [new file with mode: 0644]
android/SimpleClient/app/src/main/res/menu/simple_client.xml [new file with mode: 0644]
android/SimpleClient/app/src/main/res/values-w820dp/dimens.xml [new file with mode: 0644]
android/SimpleClient/app/src/main/res/values/dimens.xml [new file with mode: 0644]
android/SimpleClient/app/src/main/res/values/strings.xml [new file with mode: 0644]
android/SimpleClient/app/src/main/res/values/styles.xml [new file with mode: 0644]
android/SimpleClient/build.gradle [new file with mode: 0644]
android/SimpleClient/gradle.properties [new file with mode: 0644]
android/SimpleClient/gradlew [new file with mode: 0755]
android/SimpleClient/gradlew.bat [new file with mode: 0644]
android/SimpleClient/settings.gradle [new file with mode: 0644]
auto_build.sh
build_common/android/SConscript
extlibs/buildDependencies.sh
resource/SConscript
resource/android/OCAndroid.cpp [new file with mode: 0644]
resource/android/SConscript [new file with mode: 0644]
resource/csdk/SConscript
resource/csdk/libcoap-4.1.1/SConscript
resource/examples/ocicuc/SConscript
resource/include/OCAndroid.h [new file with mode: 0644]
resource/include/OCRepresentation.h
resource/oc_logger/SConscript
resource/patches/boost/arm-linux-androideabi/user-config.jam [moved from resource/patches/user-config-arm-linux-androideabi.jam with 100% similarity]
resource/patches/boost/x86/user-config.jam [moved from resource/patches/user-config-x86.jam with 100% similarity]
resource/src/OCRepresentation.cpp
resource/src/SConscript
service/SConscript
service/soft-sensor-manager/SConscript
service/soft-sensor-manager/SoftSensorPlugin/DiscomfortIndexSensor/src/DiscomfortIndexSensor.cpp