cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject [1/8] git commit: Add tentative Tizen implementation.
Date Tue, 28 Jan 2014 01:33:50 GMT
Updated Branches:
  refs/heads/dev 75327c88e -> 61a7a6d3d


Add tentative Tizen implementation.


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-splashscreen/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-splashscreen/commit/9ebd08f6
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-splashscreen/tree/9ebd08f6
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-splashscreen/diff/9ebd08f6

Branch: refs/heads/dev
Commit: 9ebd08f69ba9075b810ec6a0dedacd9c7ad86a8f
Parents: 4b757c8
Author: Salvatore Iovene <salvatore@iovene.com>
Authored: Tue Nov 19 12:43:12 2013 +0200
Committer: Salvatore Iovene <salvatore@iovene.com>
Committed: Tue Nov 19 12:43:12 2013 +0200

----------------------------------------------------------------------
 plugin.xml                     |  7 ++++++-
 src/tizen/SplashScreenProxy.js | 14 ++++++++++++++
 2 files changed, 20 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-splashscreen/blob/9ebd08f6/plugin.xml
----------------------------------------------------------------------
diff --git a/plugin.xml b/plugin.xml
index 5500ad3..3a9ae5e 100644
--- a/plugin.xml
+++ b/plugin.xml
@@ -37,7 +37,7 @@
 
 	    <header-file src="src/ios/CDVSplashScreen.h" />
 	    <source-file src="src/ios/CDVSplashScreen.m" />
-	    
+
 	    <framework src="CoreGraphics.framework" />
     </platform>
 
@@ -80,4 +80,9 @@
         </js-module>
     </platform>
 
+    <!-- tizen -->
+    <platform name="tizen">
+        <js-module src="www/tizen/SplashScreenProxy.js" name="SplashScreenProxy">
+        </js-module>
+    </platfom>
 </plugin>

http://git-wip-us.apache.org/repos/asf/cordova-plugin-splashscreen/blob/9ebd08f6/src/tizen/SplashScreenProxy.js
----------------------------------------------------------------------
diff --git a/src/tizen/SplashScreenProxy.js b/src/tizen/SplashScreenProxy.js
new file mode 100644
index 0000000..8d630f2
--- /dev/null
+++ b/src/tizen/SplashScreenProxy.js
@@ -0,0 +1,14 @@
+var exec = require('cordova/exec');
+
+module.exports = {
+    splashscreen: {
+        show = function() {
+            exec(null, null, "SplashScreen", "show", []);
+        },
+        hide = function() {
+            exec(null, null, "SplashScreen", "hide", []);
+        }
+    }
+};
+
+require("cordova/tizen/commandProxy").add("SplashScreen", module.exports);


Mime
View raw message