Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[Cordova - Tizen]

this is the very first submit related to the incubator-cordova-tizen repository
that is file required to target the tizen platform

for now it includes generated: codrdova.js, andcordova.tizen-debug.js, cordova.tizen.js, and cordova-2.0.0.js files

config.xml file must be included in the project as it holde features granting for tizen (most of them are involved in cordova javaSctipt library)
  • Loading branch information...
commit 13c0744ca37bb393131d1fc95e545644f7ed4d07 1 parent 8d6fb0f
paul plaquette authored imhotep committed
View
39 Makefile
@@ -0,0 +1,39 @@
+GREP = /usr/bin/grep
+CUT = /usr/bin/cut
+SHELL = /bin/sh
+CHMOD = chmod
+CP = cp
+MV = mv
+NOOP = $(SHELL) -c true
+RM_F = rm -f
+RM_RF = rm -rf
+TEST_F = test -f
+TOUCH = touch
+UMASK_NULL = umask 0
+DEV_NULL = > /dev/null 2>&1
+MKPATH = mkdir -p
+CAT = cat
+MAKE = make
+OPEN = open
+ECHO = echo
+ECHO_N = echo -n
+JAVA = java
+PGVERSION = 2.0.0
+
+all :: js copy_js
+
+clean :: clean_libs
+
+clean_libs:
+ $(RM_RF) lib
+
+copy_js: js
+ $(CP) lib/cordova.js framework/cordova-$(PGVERSION).js
+
+js: lib/cordova.js
+
+lib/cordova.js: js/cordova.tizen.js js/native.js
+ $(MKPATH) lib
+ $(RM_F) $@
+ $(CAT) js/native.js >> $@
+ $(CAT) js/cordova.tizen.js >> $@
View
51 framework/config.xml
@@ -0,0 +1,51 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<widget xmlns="http://www.w3.org/ns/widgets" xmlns:tizen="http://tizen.org/ns/widgets" version="1.0" viewmodes="fullscreen" id="http://YourDomain.com/cordova">
+ <icon src="icon.png"/>
+ <content src="index.html"/>
+ <feature name="http://tizen.org/api/alarm" required="true"/>
+ <feature name="http://tizen.org/api/alarm.read" required="true"/>
+ <feature name="http://tizen.org/api/alarm.write" required="true"/>
+ <feature name="http://tizen.org/api/application" required="true"/>
+ <feature name="http://tizen.org/api/application.kill" required="true"/>
+ <feature name="http://tizen.org/api/application.launch" required="true"/>
+ <feature name="http://tizen.org/api/application.read" required="true"/>
+ <feature name="http://tizen.org/api/bluetooth" required="true"/>
+ <feature name="http://tizen.org/api/bluetooth.gap" required="true"/>
+ <feature name="http://tizen.org/api/bluetooth.spp" required="true"/>
+ <feature name="http://tizen.org/api/calendar" required="true"/>
+ <feature name="http://tizen.org/api/calendar.read" required="true"/>
+ <feature name="http://tizen.org/api/calendar.write" required="true"/>
+ <feature name="http://tizen.org/api/call" required="true"/>
+ <feature name="http://tizen.org/api/call.history" required="true"/>
+ <feature name="http://tizen.org/api/call.history.read" required="true"/>
+ <feature name="http://tizen.org/api/call.history.write" required="true"/>
+ <feature name="http://tizen.org/api/call.simple" required="true"/>
+ <feature name="http://tizen.org/api/contact" required="true"/>
+ <feature name="http://tizen.org/api/contact.read" required="true"/>
+ <feature name="http://tizen.org/api/contact.write" required="true"/>
+ <feature name="http://tizen.org/api/filesystem" required="true"/>
+ <feature name="http://tizen.org/api/filesystem.read" required="true"/>
+ <feature name="http://tizen.org/api/filesystem.write" required="true"/>
+ <feature name="http://tizen.org/api/geocoder" required="true"/>
+ <feature name="http://tizen.org/api/mediacontent" required="true"/>
+ <feature name="http://tizen.org/api/mediacontent.read" required="true"/>
+ <feature name="http://tizen.org/api/messaging" required="true"/>
+ <feature name="http://tizen.org/api/messaging.read" required="true"/>
+ <feature name="http://tizen.org/api/messaging.send" required="true"/>
+ <feature name="http://tizen.org/api/messaging.write" required="true"/>
+ <feature name="http://tizen.org/api/nfc" required="true"/>
+ <feature name="http://tizen.org/api/nfc.p2p" required="true"/>
+ <feature name="http://tizen.org/api/nfc.se" required="true"/>
+ <feature name="http://tizen.org/api/nfc.tag" required="true"/>
+ <feature name="http://tizen.org/api/systeminfo" required="true"/>
+ <feature name="http://tizen.org/api/time" required="true"/>
+ <feature name="http://tizen.org/api/time.read" required="true"/>
+ <feature name="http://tizen.org/api/time.write" required="true"/>
+ <feature name="http://tizen.org/api/tizen" required="true"/>
+ <feature name="http://tizen.org/api/sensors" required="true"/>
+ <name>Cordova</name>
+ <author/>
+ <license/>
+ <description>Cordova for Tizen sample application</description>
+</widget>
View
7,075 framework/cordova-2.0.0.js
7,075 additions, 0 deletions not shown
View
114 framework/cordova.tizen-debug.js
114 additions, 0 deletions not shown
View
7,066 framework/cordova.tizen.js
7,066 additions, 0 deletions not shown
View
9 framework/fake-native-tizen.js
@@ -0,0 +1,9 @@
+var tizen = {
+ systeminfo: {}
+};
+
+tizen.systeminfo.getPropertyValue = function(name, successCallback, errorCallback) {
+ if (name === "Device") {
+ successCallback({model:"Tizen device", imei:"111111111", version:"1.0"});
+ }
+};
View
BIN  framework/icon.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
16 framework/index.html
@@ -0,0 +1,16 @@
+<!DOCTYPE html>
+<html lang="en">
+ <head>
+ <script src="cordova-1.7.0.js"></script>
+ <link rel="stylesheet" type="text/css" href="tizen.css" />
+ </head>
+
+ <body>
+ <script>
+ document.addEventListener('deviceready', function () {
+ // Cordova is ready, do all your stuf here
+ console.log("Cordova is ready for platform " + window.device.platform + " v" + window.device.version + "!");
+ }, false);
+ </script>
+ </body>
+</html>
View
BIN  framework/sounds/beep.wav
Binary file not shown
View
62 framework/tizen.css
@@ -0,0 +1,62 @@
+.ui-popupwindow-screen {
+ background: #000000;
+ opacity: 0.4;
+}
+.ui-popupwindow {
+ background: #828282;
+ padding: 1px 1px;
+ color: white;
+ width: 80%;
+ margin-left: 10%;
+}
+
+.popup-title {
+ background: #018ccc;
+ padding: 5px 5px;
+}
+
+.popup-title p {
+ padding: 0px;
+ margin: 0px;
+ text-align: center;
+}
+
+.popup-text {
+ background: #2d2d2d;
+ padding: 5px 5px;
+}
+
+.popup-text p {
+ padding: 0px;
+ margin: 0px;
+ text-align: center;
+ vertical-align: middle;
+ line-height:100px;
+}
+
+.popup-button-bg {
+ background: #424242;
+ padding: 5px 5px;
+}
+
+.popup-button-bg ul {
+ list-style-type:none;
+ width: 80%;
+ margin-left: 10%;
+ text-align: center;
+ padding: 0px;
+}
+
+.popup-button-bg li {
+ display: inline;
+}
+
+.popup-button-bg li input {
+ border-radius:4px 4px 4px 4px;
+ border: 0px;
+ background: #545454;
+ padding:5px 15px;
+ color: white;
+ min-width: 80px;
+ margin: 0px 5px;
+}
View
114 js/cordova.tizen-debug.js
114 additions, 0 deletions not shown
View
7,066 js/cordova.tizen.js
7,066 additions, 0 deletions not shown
View
9 js/native.js
@@ -0,0 +1,9 @@
+/*
+ * No real native code
+ */
+
+/* Needed for File API implementation */
+window.webkitFileReader = window.FileReader;
+
+window._nativeReady = true;
+
View
7,075 lib/cordova.js
7,075 additions, 0 deletions not shown
Please sign in to comment.
Something went wrong with that request. Please try again.