00001 // Copyright 2016 Intermodalics All Rights Reserved. 00002 // 00003 // Licensed under the Apache License, Version 2.0 (the "License"); 00004 // you may not use this file except in compliance with the License. 00005 // You may obtain a copy of the License at 00006 // 00007 // http://www.apache.org/licenses/LICENSE-2.0 00008 // 00009 // Unless required by applicable law or agreed to in writing, software 00010 // distributed under the License is distributed on an "AS IS" BASIS, 00011 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00012 // See the License for the specific language governing permissions and 00013 // limitations under the License. 00014 #include <jni.h> 00015 00016 // Helper functions that need to be separated from the tango_ros_native package to get rid of the 00017 // jni dependency, so that the tango_ros_native package can be used for Android and Linux. 00018 namespace tango_helper { 00019 // The minimum Tango Core version required from this application. 00020 const int TANGO_CORE_MINIMUM_VERSION = 11926; // Yildun release. 00021 00022 // Checks the installed version of the TangoCore. If it is too old, then 00023 // it will not support the most up to date features. 00024 // @return returns true if tango version if supported. 00025 bool IsTangoVersionOk(JNIEnv* env, jobject activity); 00026 // Binds to the tango service. 00027 // @return returns true if setting the binder ended successfully. 00028 bool SetBinder(JNIEnv* env, jobject binder); 00029 } // tango_helper 00030