Skip to content

Commit

Permalink
phonegap-nfc-0.1.0 and phonegap-1.0.0rc2
Browse files Browse the repository at this point in the history
  • Loading branch information
don committed Jul 22, 2011
1 parent a268a1f commit 944facb
Show file tree
Hide file tree
Showing 7 changed files with 52 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .classpath
Expand Up @@ -3,7 +3,7 @@
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="gen"/>
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
<classpathentry kind="lib" path="lib/phonegap-1.0.0rc1-SNAPSHOT.jar"/>
<classpathentry kind="lib" path="lib/phonegap-nfc.jar"/>
<classpathentry kind="lib" path="lib/phonegap-1.0.0rc2.jar"/>
<classpathentry kind="lib" path="lib/phonegap-nfc-0.1.0.jar"/>
<classpathentry kind="output" path="bin"/>
</classpath>
4 changes: 2 additions & 2 deletions assets/www/index.html
Expand Up @@ -5,8 +5,8 @@
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<title>Rock Paper Scissors</title>
<link rel="stylesheet" href="master.css" type="text/css" media="screen" title="no title" />
<script type="text/javascript" charset="utf-8" src="phonegap-1.0.0rc1-SNAPSHOT.js"></script>
<script type="text/javascript" charset="utf-8" src="phonegap-nfc.js"></script>
<script type="text/javascript" charset="utf-8" src="phonegap-1.0.0rc2.js"></script>
<script type="text/javascript" charset="utf-8" src="phonegap-nfc-0.1.0.js"></script>
<script type="text/javascript" charset="utf-8" src="main.js"></script>
</head>
<body>
Expand Down
Expand Up @@ -1051,6 +1051,8 @@ PhoneGap.addConstructor(function() {
}
});
}


/*
* PhoneGap is available under *either* the terms of the modified BSD license *or* the
* MIT License (2008). See http://opensource.org/licenses/alphabetical for full text.
Expand Down Expand Up @@ -1135,6 +1137,8 @@ PhoneGap.addConstructor(function() {
navigator.app = window.app = new App();
});
}


/*
* PhoneGap is available under *either* the terms of the modified BSD license *or* the
* MIT License (2008). See http://opensource.org/licenses/alphabetical for full text.
Expand Down Expand Up @@ -1232,6 +1236,8 @@ PhoneGap.addConstructor(function() {
}
});
}


/*
* PhoneGap is available under *either* the terms of the modified BSD license *or* the
* MIT License (2008). See http://opensource.org/licenses/alphabetical for full text.
Expand Down Expand Up @@ -1422,7 +1428,9 @@ PhoneGap.addConstructor(function(){
navigator.device.capture = window.device.capture = new Capture();
}
});
}/*
}

/*
* PhoneGap is available under *either* the terms of the modified BSD license *or* the
* MIT License (2008). See http://opensource.org/licenses/alphabetical for full text.
*
Expand Down Expand Up @@ -1541,6 +1549,8 @@ PhoneGap.addConstructor(function() {
}
});
}


/*
* PhoneGap is available under *either* the terms of the modified BSD license *or* the
* MIT License (2008). See http://opensource.org/licenses/alphabetical for full text.
Expand Down Expand Up @@ -1851,6 +1861,8 @@ PhoneGap.addConstructor(function() {
}
});
}


/*
* PhoneGap is available under *either* the terms of the modified BSD license *or* the
* MIT License (2008). See http://opensource.org/licenses/alphabetical for full text.
Expand Down Expand Up @@ -1894,6 +1906,8 @@ PhoneGap.addConstructor(function() {
}
});
}


/*
* PhoneGap is available under *either* the terms of the modified BSD license *or* the
* MIT License (2008). See http://opensource.org/licenses/alphabetical for full text.
Expand Down Expand Up @@ -1999,6 +2013,8 @@ PhoneGap.addConstructor(function() {
}
});
}


/*
* PhoneGap is available under *either* the terms of the modified BSD license *or* the
* MIT License (2008). See http://opensource.org/licenses/alphabetical for full text.
Expand Down Expand Up @@ -3058,6 +3074,8 @@ PhoneGap.addConstructor(function() {
if(typeof window.resolveLocalFileSystemURI == "undefined") window.resolveLocalFileSystemURI = pgLocalFileSystem.resolveLocalFileSystemURI;
});
}


/*
* PhoneGap is available under *either* the terms of the modified BSD license *or* the
* MIT License (2008). See http://opensource.org/licenses/alphabetical for full text.
Expand Down Expand Up @@ -3143,6 +3161,8 @@ var FileUploadOptions = function(fileKey, fileName, mimeType, params) {
this.params = params || null;
};
}


/*
* PhoneGap is available under *either* the terms of the modified BSD license *or* the
* MIT License (2008). See http://opensource.org/licenses/alphabetical for full text.
Expand Down Expand Up @@ -3341,6 +3361,17 @@ PhoneGap.addConstructor(function() {
}
});
}


/*
* PhoneGap is available under *either* the terms of the modified BSD license *or* the
* MIT License (2008). See http://opensource.org/licenses/alphabetical for full text.
*
* Copyright (c) 2005-2010, Nitobi Software Inc.
* Copyright (c) 2010, IBM Corporation
*/


/*
* PhoneGap is available under *either* the terms of the modified BSD license *or* the
* MIT License (2008). See http://opensource.org/licenses/alphabetical for full text.
Expand Down Expand Up @@ -3552,6 +3583,8 @@ PhoneGap.Media.onStatus = function(id, msg, value) {
}
};
}


/*
* PhoneGap is available under *either* the terms of the modified BSD license *or* the
* MIT License (2008). See http://opensource.org/licenses/alphabetical for full text.
Expand Down Expand Up @@ -3634,6 +3667,8 @@ PhoneGap.addConstructor(function() {
}
});
}


/*
* PhoneGap is available under *either* the terms of the modified BSD license *or* the
* MIT License (2008). See http://opensource.org/licenses/alphabetical for full text.
Expand Down Expand Up @@ -3756,6 +3791,8 @@ PhoneGap.addConstructor(function() {
}
});
}


/*
* PhoneGap is available under *either* the terms of the modified BSD license *or* the
* MIT License (2008). See http://opensource.org/licenses/alphabetical for full text.
Expand Down Expand Up @@ -3845,6 +3882,8 @@ PositionError.PERMISSION_DENIED = 1;
PositionError.POSITION_UNAVAILABLE = 2;
PositionError.TIMEOUT = 3;
}


/*
* PhoneGap is available under *either* the terms of the modified BSD license *or* the
* MIT License (2008). See http://opensource.org/licenses/alphabetical for full text.
Expand Down Expand Up @@ -4273,3 +4312,5 @@ PhoneGap.addConstructor(function() {
}
});
}


Expand Up @@ -121,9 +121,9 @@ var Ndef = {

navigator.nfc = {

addMimeTypeListener: function (mime_type, callback, win, fail) {
addMimeTypeListener: function (mimeType, callback, win, fail) {
document.addEventListener("ndef-mime", callback, false);
PhoneGap.exec(win, fail, "NdefPlugin", "registerMimeType", [mime_type]);
PhoneGap.exec(win, fail, "NdefPlugin", "registerMimeType", [mimeType]);
},

addNdefListener: function (callback, win, fail) {
Expand All @@ -148,6 +148,10 @@ navigator.nfc = {
PhoneGap.exec(win, fail, "NdefPlugin", "unshareTag", []);
},

eraseTag: function (win, fail) {
PhoneGap.exec(win, fail, "NdefPlugin", "writeTag", [[]]);
},

// Java is responsible for calling this method
// Type is ndef-mime, ndef, or ndef-unformatted
fireEvent: function (type, tagData) {
Expand Down
Binary file not shown.
Binary file added lib/phonegap-nfc-0.1.0.jar
Binary file not shown.
Binary file removed lib/phonegap-nfc.jar
Binary file not shown.

0 comments on commit 944facb

Please sign in to comment.