From 6f6973e8670214ba666edbe7b621a89e6e257f62 Mon Sep 17 00:00:00 2001 From: Pawel Andruszkiewicz Date: Fri, 8 Apr 2016 10:44:37 +0200 Subject: [PATCH] Removed unneeded folder. Change-Id: Ia4cd21bd6670620a787d9e3fd1c0d1a365f1d54d Signed-off-by: Pawel Andruszkiewicz --- src/cordova-api.gyp | 1 - src/cordova/cordova.gyp | 25 -------------- src/cordova/cordova_api.js | 56 -------------------------------- src/cordova/cordova_extension.cc | 37 --------------------- src/cordova/cordova_extension.h | 34 ------------------- 5 files changed, 153 deletions(-) delete mode 100644 src/cordova/cordova.gyp delete mode 100755 src/cordova/cordova_api.js delete mode 100755 src/cordova/cordova_extension.cc delete mode 100755 src/cordova/cordova_extension.h diff --git a/src/cordova-api.gyp b/src/cordova-api.gyp index 1fc74b9..2173821 100644 --- a/src/cordova-api.gyp +++ b/src/cordova-api.gyp @@ -8,7 +8,6 @@ 'target_name': 'cordova-api', 'type': 'none', 'dependencies': [ - 'cordova/cordova.gyp:*', 'file/cordova_file.gyp:*', 'globalization/cordova_globalization.gyp:*', ], diff --git a/src/cordova/cordova.gyp b/src/cordova/cordova.gyp deleted file mode 100644 index aab4a79..0000000 --- a/src/cordova/cordova.gyp +++ /dev/null @@ -1,25 +0,0 @@ -{ - 'includes':[ - '/usr/include/webapi-plugins/src/common/common.gypi', - ], - 'targets': [ - { - 'target_name': 'tizen_cordova', - 'type': 'loadable_module', - 'sources': [ - 'cordova_api.js', - 'cordova_extension.cc', - 'cordova_extension.h', - ], - 'include_dirs': [ - '../', - '<(SHARED_INTERMEDIATE_DIR)', - ], - 'variables': { - 'packages': [ - 'webapi-plugins', - ], - }, - }, - ], -} diff --git a/src/cordova/cordova_api.js b/src/cordova/cordova_api.js deleted file mode 100755 index 92438ce..0000000 --- a/src/cordova/cordova_api.js +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright (c) 2015 Samsung Electronics Co., Ltd All Rights Reserved - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -console.log('Loaded cordova API'); - -exports = { - load: function(require) { - // delete this method - delete exports.load; - - var plugins = []; - - // mechanism to add Tizen-specific plugins to cordova - cordova.define('cordova-tizen', function(require, exports, module) { - module.exports = { - addPlugin: function(dependency, name, algorithm, symbol) { - plugins.push({ - dependency: dependency, - name: name, - algorithm: algorithm, - symbol: symbol - }); - } - }; - }); - - var channel = require('cordova/channel'); - - // executed when all cordova plugins have been loaded - channel.onPluginsReady.subscribe(function() { - var mm = require('cordova/modulemapper'); - - // add plugins to module mapper, but only if they are required - // (their dependencies have been defined/loaded) - for (var i = 0; i < plugins.length; ++i) { - var p = plugins[i]; - if (cordova.define.moduleMap[p.dependency]) { - mm[p.algorithm](p.name, p.symbol); - } - } - }); - } -}; diff --git a/src/cordova/cordova_extension.cc b/src/cordova/cordova_extension.cc deleted file mode 100755 index 398a809..0000000 --- a/src/cordova/cordova_extension.cc +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (c) 2015 Samsung Electronics Co., Ltd All Rights Reserved - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include "cordova/cordova_extension.h" - -// This will be generated from cordova_api.js -extern const char kSource_cordova_api[]; - -common::Extension* CreateExtension() { - return new extension::cordova::CordovaExtension(); -} - -namespace extension { -namespace cordova { - -CordovaExtension::CordovaExtension() { - SetExtensionName("tizen.cordova"); - SetJavaScriptAPI(kSource_cordova_api); -} - -CordovaExtension::~CordovaExtension() {} - -} // cordova -} // extension diff --git a/src/cordova/cordova_extension.h b/src/cordova/cordova_extension.h deleted file mode 100755 index e60dc24..0000000 --- a/src/cordova/cordova_extension.h +++ /dev/null @@ -1,34 +0,0 @@ -/* - * Copyright (c) 2015 Samsung Electronics Co., Ltd All Rights Reserved - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef CORDOVA_CORDOVA_EXTENSION_H_ -#define CORDOVA_CORDOVA_EXTENSION_H_ - -#include - -namespace extension { -namespace cordova { - -class CordovaExtension : public common::Extension { - public: - CordovaExtension(); - virtual ~CordovaExtension(); -}; - -} // cordova -} // extension - -#endif // CORDOVA_CORDOVA_EXTENSION_H_ -- 2.34.1