plist 0.4.3 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.jshintrc +4 -0
- package/.travis.yml +34 -0
- package/History.md +122 -0
- package/LICENSE +3 -1
- package/Makefile +76 -0
- package/README.md +83 -32
- package/dist/plist-build.js +3982 -0
- package/dist/plist-parse.js +4055 -0
- package/dist/plist.js +7987 -0
- package/examples/browser/index.html +14 -0
- package/lib/build.js +138 -0
- package/lib/node.js +49 -0
- package/lib/parse.js +200 -0
- package/lib/plist.js +16 -294
- package/package.json +16 -13
- package/.npmignore +0 -2
- package/tests/Cordova.plist +0 -87
- package/tests/Xcode-Info.plist +0 -49
- package/tests/Xcode-PhoneGap.plist +0 -55
- package/tests/airplay.xml +0 -38
- package/tests/iTunes-BIG.xml +0 -299484
- package/tests/iTunes-small.xml +0 -1704
- package/tests/sample1.plist +0 -35
- package/tests/sample2.plist +0 -45
- package/tests/test-base64.js +0 -28
- package/tests/test-big-xml.js +0 -28
- package/tests/test-build.js +0 -171
- package/tests/test-parseFile.js +0 -52
- package/tests/test-parseString.js +0 -45
- package/tests/utf8data.xml +0 -10
package/lib/plist.js
CHANGED
|
@@ -1,301 +1,23 @@
|
|
|
1
|
-
;(function (exports, DOMParser, xmlbuilder) {
|
|
2
|
-
// Checks if running in a non-browser environment
|
|
3
|
-
var inNode = typeof window === 'undefined' ? true : false
|
|
4
|
-
, utf8_to_b64
|
|
5
|
-
, b64_to_utf8;
|
|
6
1
|
|
|
7
|
-
|
|
8
|
-
if (inNode) {
|
|
9
|
-
exports.parseFile = function (filename, callback) {
|
|
10
|
-
console.warn('parseFile is deprecated. Please use parseFileSync instead.');
|
|
11
|
-
var fs = require('fs');
|
|
12
|
-
var inxml = fs.readFileSync(filename, 'utf8');
|
|
13
|
-
exports.parseString(inxml, callback);
|
|
14
|
-
}
|
|
2
|
+
var i;
|
|
15
3
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
return exports.parseStringSync(inxml);
|
|
20
|
-
}
|
|
4
|
+
/**
|
|
5
|
+
* Parser functions.
|
|
6
|
+
*/
|
|
21
7
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
return new Buffer(str).toString('base64');
|
|
25
|
-
}
|
|
26
|
-
b64_to_utf8 = function ( str ) {
|
|
27
|
-
return new Buffer(str, 'base64').toString('utf8');
|
|
28
|
-
}
|
|
29
|
-
} else {
|
|
30
|
-
// we're in a browser context, find the DOMParser
|
|
31
|
-
if (typeof window.DOMParser != 'undefined') {
|
|
32
|
-
DOMParser = function(xmlStr) {
|
|
33
|
-
return ( new window.DOMParser() ).parseFromString(xmlStr, 'text/xml');
|
|
34
|
-
};
|
|
35
|
-
} else if (typeof window.ActiveXObject != 'undefined' &&
|
|
36
|
-
new window.ActiveXObject('Microsoft.XMLDOM')) {
|
|
37
|
-
DOMParser = function(xmlStr) {
|
|
38
|
-
var xmlDoc = new window.ActiveXObject('Microsoft.XMLDOM');
|
|
39
|
-
xmlDoc.async = 'false';
|
|
40
|
-
xmlDoc.loadXML(xmlStr);
|
|
41
|
-
return xmlDoc;
|
|
42
|
-
};
|
|
43
|
-
} else {
|
|
44
|
-
throw new Error('No XML parser found');
|
|
45
|
-
}
|
|
8
|
+
var parserFunctions = require('./parse');
|
|
9
|
+
for (i in parserFunctions) exports[i] = parserFunctions[i];
|
|
46
10
|
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
// TODO: shim btoa and atob if not present (ie < 10)
|
|
51
|
-
//http://stackoverflow.com/questions/246801/how-can-you-encode-to-base64-using-javascript/247261#247261
|
|
52
|
-
} else {
|
|
53
|
-
utf8_to_b64= function ( str ) {
|
|
54
|
-
return window.btoa(unescape(encodeURIComponent( str )));
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
b64_to_utf8 = function ( str ) {
|
|
58
|
-
return decodeURIComponent(escape(window.atob( str )));
|
|
59
|
-
}
|
|
60
|
-
}
|
|
11
|
+
/**
|
|
12
|
+
* Builder functions.
|
|
13
|
+
*/
|
|
61
14
|
|
|
62
|
-
|
|
15
|
+
var builderFunctions = require('./build');
|
|
16
|
+
for (i in builderFunctions) exports[i] = builderFunctions[i];
|
|
63
17
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
try {
|
|
68
|
-
doc = new DOMParser().parseFromString(xml);
|
|
69
|
-
plist = parsePlistXML(doc.documentElement);
|
|
70
|
-
} catch(e) {
|
|
71
|
-
error = e;
|
|
72
|
-
}
|
|
73
|
-
callback(error, plist);
|
|
74
|
-
}
|
|
18
|
+
/**
|
|
19
|
+
* Add Node.js-specific functions (they're deprecated…).
|
|
20
|
+
*/
|
|
75
21
|
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
var plist;
|
|
79
|
-
if (doc.documentElement.nodeName !== 'plist') {
|
|
80
|
-
throw new Error('malformed document. First element should be <plist>');
|
|
81
|
-
}
|
|
82
|
-
plist = parsePlistXML(doc.documentElement);
|
|
83
|
-
|
|
84
|
-
// if the plist is an array with 1 element, pull it out of the array
|
|
85
|
-
if(isArray(plist) && plist.length == 1) {
|
|
86
|
-
plist = plist[0];
|
|
87
|
-
}
|
|
88
|
-
return plist;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
/**
|
|
92
|
-
* convert an XML based plist document into a JSON representation
|
|
93
|
-
*
|
|
94
|
-
* @param object xml_node current XML node in the plist
|
|
95
|
-
* @return built up JSON object
|
|
96
|
-
*/
|
|
97
|
-
function parsePlistXML(node) {
|
|
98
|
-
var i, new_obj, key, val, new_arr;
|
|
99
|
-
if (!node)
|
|
100
|
-
return null;
|
|
101
|
-
|
|
102
|
-
if (node.nodeName === 'plist') {
|
|
103
|
-
new_arr = [];
|
|
104
|
-
for (i=0;i < node.childNodes.length;i++) {
|
|
105
|
-
// ignore comment nodes (text)
|
|
106
|
-
if (node.childNodes[i].nodeType !== 3) {
|
|
107
|
-
new_arr.push( parsePlistXML(node.childNodes[i]));
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
return new_arr;
|
|
111
|
-
}
|
|
112
|
-
else if(node.nodeName === 'dict') {
|
|
113
|
-
new_obj = {};
|
|
114
|
-
key = null;
|
|
115
|
-
for (i=0;i < node.childNodes.length;i++) {
|
|
116
|
-
// ignore comment nodes (text)
|
|
117
|
-
if (node.childNodes[i].nodeType !== 3) {
|
|
118
|
-
if (key === null) {
|
|
119
|
-
key = parsePlistXML(node.childNodes[i]);
|
|
120
|
-
} else {
|
|
121
|
-
new_obj[key] = parsePlistXML(node.childNodes[i]);
|
|
122
|
-
key = null;
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
return new_obj;
|
|
127
|
-
}
|
|
128
|
-
else if(node.nodeName === 'array') {
|
|
129
|
-
new_arr = [];
|
|
130
|
-
for (i=0;i < node.childNodes.length;i++) {
|
|
131
|
-
// ignore comment nodes (text)
|
|
132
|
-
if (node.childNodes[i].nodeType !== 3) {
|
|
133
|
-
res = parsePlistXML(node.childNodes[i]);
|
|
134
|
-
if (res) new_arr.push( res );
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
return new_arr;
|
|
138
|
-
}
|
|
139
|
-
else if(node.nodeName === '#text') {
|
|
140
|
-
// TODO: what should we do with text types? (CDATA sections)
|
|
141
|
-
}
|
|
142
|
-
else if(node.nodeName === 'key') {
|
|
143
|
-
return node.childNodes[0].nodeValue;
|
|
144
|
-
}
|
|
145
|
-
else if(node.nodeName === 'string') {
|
|
146
|
-
var res = '';
|
|
147
|
-
for (var d=0; d < node.childNodes.length; d++)
|
|
148
|
-
{
|
|
149
|
-
res += node.childNodes[d].nodeValue;
|
|
150
|
-
}
|
|
151
|
-
return res;
|
|
152
|
-
}
|
|
153
|
-
else if(node.nodeName === 'integer') {
|
|
154
|
-
// parse as base 10 integer
|
|
155
|
-
return parseInt(node.childNodes[0].nodeValue, 10);
|
|
156
|
-
}
|
|
157
|
-
else if(node.nodeName === 'real') {
|
|
158
|
-
var res = '';
|
|
159
|
-
for (var d=0; d < node.childNodes.length; d++)
|
|
160
|
-
{
|
|
161
|
-
if(node.childNodes[d].nodeType === 3) {
|
|
162
|
-
res += node.childNodes[d].nodeValue;
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
return parseFloat(res);
|
|
166
|
-
}
|
|
167
|
-
else if(node.nodeName === 'data') {
|
|
168
|
-
var res = '';
|
|
169
|
-
for (var d=0; d < node.childNodes.length; d++)
|
|
170
|
-
{
|
|
171
|
-
if(node.childNodes[d].nodeType === 3) {
|
|
172
|
-
res += node.childNodes[d].nodeValue;
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
// validate that the string is encoded as base64
|
|
177
|
-
var base64Matcher = new RegExp("^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$");
|
|
178
|
-
if (!base64Matcher.test(res.replace(/\s/g,'')) ) {
|
|
179
|
-
throw new Error('malformed document. <data> element is not base64 encoded');
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
// decode base64 data as utf8 string
|
|
183
|
-
return b64_to_utf8(res);
|
|
184
|
-
}
|
|
185
|
-
else if(node.nodeName === 'date') {
|
|
186
|
-
return new Date(node.childNodes[0].nodeValue);
|
|
187
|
-
}
|
|
188
|
-
else if(node.nodeName === 'true') {
|
|
189
|
-
return true;
|
|
190
|
-
}
|
|
191
|
-
else if(node.nodeName === 'false') {
|
|
192
|
-
return false;
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
function ISODateString(d){
|
|
198
|
-
function pad(n){return n<10 ? '0'+n : n}
|
|
199
|
-
return d.getUTCFullYear()+'-'
|
|
200
|
-
+ pad(d.getUTCMonth()+1)+'-'
|
|
201
|
-
+ pad(d.getUTCDate())+'T'
|
|
202
|
-
+ pad(d.getUTCHours())+':'
|
|
203
|
-
+ pad(d.getUTCMinutes())+':'
|
|
204
|
-
+ pad(d.getUTCSeconds())+'Z'
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
// instanceof is horribly unreliable so we use these hackish but safer checks
|
|
208
|
-
// http://perfectionkills.com/instanceof-considered-harmful-or-how-to-write-a-robust-isarray
|
|
209
|
-
function isArray(obj) {
|
|
210
|
-
return Object.prototype.toString.call(obj) === '[object Array]';
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
function isDate(obj) {
|
|
214
|
-
return Object.prototype.toString.call(obj) === '[object Date]';
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
function isBoolean(obj) {
|
|
218
|
-
return (obj === true || obj === false || toString.call(obj) == '[object Boolean]');
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
function isNumber(obj) {
|
|
222
|
-
return Object.prototype.toString.call(obj) === '[object Number]';
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
function isObject(obj) {
|
|
226
|
-
return Object.prototype.toString.call(obj) === '[object Object]';
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
function isString(obj) {
|
|
230
|
-
return Object.prototype.toString.call(obj) === '[object String]';
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
/**
|
|
234
|
-
* generate an XML plist string from the input object
|
|
235
|
-
*
|
|
236
|
-
* @param object obj the object to convert
|
|
237
|
-
* @return string converted plist
|
|
238
|
-
*/
|
|
239
|
-
exports.build = function(obj) {
|
|
240
|
-
var XMLHDR = { 'version': '1.0','encoding': 'UTF-8'}
|
|
241
|
-
, XMLDTD = { 'ext': 'PUBLIC \"-//Apple Computer//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\"'}
|
|
242
|
-
, doc = xmlbuilder.create()
|
|
243
|
-
, child = doc.begin('plist', XMLHDR, XMLDTD).att('version', '1.0');
|
|
244
|
-
|
|
245
|
-
walk_obj(obj, child);
|
|
246
|
-
return child.end({pretty: true });
|
|
247
|
-
}
|
|
248
|
-
|
|
249
|
-
// depth first, recursive traversal of a javascript object. when complete,
|
|
250
|
-
// next_child contains a reference to the build XML object.
|
|
251
|
-
function walk_obj(next, next_child) {
|
|
252
|
-
var tag_type, i, prop;
|
|
253
|
-
|
|
254
|
-
if(isArray(next)) {
|
|
255
|
-
next_child = next_child.ele('array');
|
|
256
|
-
for(i=0 ;i < next.length;i++) {
|
|
257
|
-
walk_obj(next[i], next_child);
|
|
258
|
-
}
|
|
259
|
-
}
|
|
260
|
-
else if (isObject(next)) {
|
|
261
|
-
if (inNode && next instanceof Buffer) {
|
|
262
|
-
next_child.ele('data').raw(next.toString('base64'));
|
|
263
|
-
} else {
|
|
264
|
-
next_child = next_child.ele('dict');
|
|
265
|
-
for(prop in next) {
|
|
266
|
-
if(next.hasOwnProperty(prop)) {
|
|
267
|
-
next_child.ele('key').txt(prop);
|
|
268
|
-
walk_obj(next[prop], next_child);
|
|
269
|
-
}
|
|
270
|
-
}
|
|
271
|
-
}
|
|
272
|
-
}
|
|
273
|
-
else if(isNumber(next)) {
|
|
274
|
-
// detect if this is an integer or real
|
|
275
|
-
tag_type =(next % 1 === 0) ? 'integer' : 'real';
|
|
276
|
-
next_child.ele(tag_type).txt(next.toString());
|
|
277
|
-
}
|
|
278
|
-
else if(isDate(next)) {
|
|
279
|
-
next_child.ele('date').raw(ISODateString(new Date(next)));
|
|
280
|
-
}
|
|
281
|
-
else if(isBoolean(next)) {
|
|
282
|
-
val = next ? 'true' : 'false';
|
|
283
|
-
next_child.ele(val);
|
|
284
|
-
}
|
|
285
|
-
else if(isString(next)) {
|
|
286
|
-
//if (str!=obj || str.indexOf("\n")>=0) str = "<![CDATA["+str+"]]>";
|
|
287
|
-
var base64Matcher = new RegExp("^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$");
|
|
288
|
-
if (!inNode && base64Matcher.test(next.replace(/\s/g,''))) {
|
|
289
|
-
// data is base 64 encoded so assume it's a <data> node
|
|
290
|
-
next_child.ele('data').raw(utf8_to_b64(next));
|
|
291
|
-
} else {
|
|
292
|
-
// it's not base 64 encoded, assume it's a <string> node
|
|
293
|
-
next_child.ele('string').raw(next);
|
|
294
|
-
}
|
|
295
|
-
}
|
|
296
|
-
};
|
|
297
|
-
|
|
298
|
-
})(typeof exports === 'undefined' ? plist = {} : exports, typeof window === 'undefined' ? require('xmldom').DOMParser : null, typeof window === 'undefined' ? require('xmlbuilder') : xmlbuilder)
|
|
299
|
-
// the above line checks for exports (defined in node) and uses it, or creates
|
|
300
|
-
// a global variable and exports to that. also, if in node, require DOMParser
|
|
301
|
-
// node-style, in browser it should already be present
|
|
22
|
+
var nodeFunctions = require('./node');
|
|
23
|
+
for (i in nodeFunctions) exports[i] = nodeFunctions[i];
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "plist",
|
|
3
|
-
"description": "Mac OS X Plist parser/builder for
|
|
4
|
-
"version": "
|
|
3
|
+
"description": "Mac OS X Plist parser/builder for Node.js and browsers",
|
|
4
|
+
"version": "1.2.0",
|
|
5
5
|
"author": "Nathan Rajlich <nathan@tootallnate.net>",
|
|
6
|
-
"contributors": [
|
|
6
|
+
"contributors": [
|
|
7
7
|
"Hans Huebner <hans.huebner@gmail.com>",
|
|
8
8
|
"Pierre Metrailler",
|
|
9
9
|
"Mike Reinstein <reinstein.mike@gmail.com>",
|
|
@@ -14,26 +14,29 @@
|
|
|
14
14
|
"type": "git",
|
|
15
15
|
"url": "git://github.com/TooTallNate/node-plist.git"
|
|
16
16
|
},
|
|
17
|
+
"license": "MIT",
|
|
17
18
|
"keywords": [
|
|
18
19
|
"apple",
|
|
20
|
+
"browser",
|
|
19
21
|
"mac",
|
|
20
22
|
"plist",
|
|
21
23
|
"parser",
|
|
22
24
|
"xml"
|
|
23
25
|
],
|
|
24
|
-
"main": "
|
|
26
|
+
"main": "lib/plist.js",
|
|
25
27
|
"dependencies": {
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
+
"base64-js": "0.0.8",
|
|
29
|
+
"xmlbuilder": "4.0.0",
|
|
30
|
+
"xmldom": "0.1.x",
|
|
31
|
+
"util-deprecate": "1.0.2"
|
|
28
32
|
},
|
|
29
33
|
"devDependencies": {
|
|
30
|
-
"
|
|
34
|
+
"browserify": "12.0.1",
|
|
35
|
+
"mocha": "2.3.3",
|
|
36
|
+
"multiline": "1.0.2",
|
|
37
|
+
"zuul": "3.7.2"
|
|
31
38
|
},
|
|
32
39
|
"scripts": {
|
|
33
|
-
"test": "
|
|
34
|
-
}
|
|
35
|
-
"engines": {
|
|
36
|
-
"node": ">= 0.1.100"
|
|
37
|
-
},
|
|
38
|
-
"devDependencies": {}
|
|
40
|
+
"test": "make test"
|
|
41
|
+
}
|
|
39
42
|
}
|
package/.npmignore
DELETED
package/tests/Cordova.plist
DELETED
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
-
<!--
|
|
4
|
-
#
|
|
5
|
-
# Licensed to the Apache Software Foundation (ASF) under one
|
|
6
|
-
# or more contributor license agreements. See the NOTICE file
|
|
7
|
-
# distributed with this work for additional information
|
|
8
|
-
# regarding copyright ownership. The ASF licenses this file
|
|
9
|
-
# to you under the Apache License, Version 2.0 (the
|
|
10
|
-
# "License"); you may not use this file except in compliance
|
|
11
|
-
# with the License. You may obtain a copy of the License at
|
|
12
|
-
#
|
|
13
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
|
14
|
-
#
|
|
15
|
-
# Unless required by applicable law or agreed to in writing,
|
|
16
|
-
# software distributed under the License is distributed on an
|
|
17
|
-
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
18
|
-
# KIND, either express or implied. See the License for the
|
|
19
|
-
# specific language governing permissions and limitations
|
|
20
|
-
# under the License.
|
|
21
|
-
#
|
|
22
|
-
-->
|
|
23
|
-
<plist version="1.0">
|
|
24
|
-
<dict>
|
|
25
|
-
<key>UIWebViewBounce</key>
|
|
26
|
-
<true/>
|
|
27
|
-
<key>TopActivityIndicator</key>
|
|
28
|
-
<string>gray</string>
|
|
29
|
-
<key>EnableLocation</key>
|
|
30
|
-
<false/>
|
|
31
|
-
<key>EnableViewportScale</key>
|
|
32
|
-
<false/>
|
|
33
|
-
<key>AutoHideSplashScreen</key>
|
|
34
|
-
<true/>
|
|
35
|
-
<key>ShowSplashScreenSpinner</key>
|
|
36
|
-
<true/>
|
|
37
|
-
<key>MediaPlaybackRequiresUserAction</key>
|
|
38
|
-
<false/>
|
|
39
|
-
<key>AllowInlineMediaPlayback</key>
|
|
40
|
-
<false/>
|
|
41
|
-
<key>OpenAllWhitelistURLsInWebView</key>
|
|
42
|
-
<false/>
|
|
43
|
-
<key>BackupWebStorage</key>
|
|
44
|
-
<true/>
|
|
45
|
-
<key>ExternalHosts</key>
|
|
46
|
-
<array>
|
|
47
|
-
<string>*</string>
|
|
48
|
-
</array>
|
|
49
|
-
<key>Plugins</key>
|
|
50
|
-
<dict>
|
|
51
|
-
<key>Device</key>
|
|
52
|
-
<string>CDVDevice</string>
|
|
53
|
-
<key>Logger</key>
|
|
54
|
-
<string>CDVLogger</string>
|
|
55
|
-
<key>Compass</key>
|
|
56
|
-
<string>CDVLocation</string>
|
|
57
|
-
<key>Accelerometer</key>
|
|
58
|
-
<string>CDVAccelerometer</string>
|
|
59
|
-
<key>Camera</key>
|
|
60
|
-
<string>CDVCamera</string>
|
|
61
|
-
<key>NetworkStatus</key>
|
|
62
|
-
<string>CDVConnection</string>
|
|
63
|
-
<key>Contacts</key>
|
|
64
|
-
<string>CDVContacts</string>
|
|
65
|
-
<key>Debug Console</key>
|
|
66
|
-
<string>CDVDebugConsole</string>
|
|
67
|
-
<key>Echo</key>
|
|
68
|
-
<string>CDVEcho</string>
|
|
69
|
-
<key>File</key>
|
|
70
|
-
<string>CDVFile</string>
|
|
71
|
-
<key>FileTransfer</key>
|
|
72
|
-
<string>CDVFileTransfer</string>
|
|
73
|
-
<key>Geolocation</key>
|
|
74
|
-
<string>CDVLocation</string>
|
|
75
|
-
<key>Notification</key>
|
|
76
|
-
<string>CDVNotification</string>
|
|
77
|
-
<key>Media</key>
|
|
78
|
-
<string>CDVSound</string>
|
|
79
|
-
<key>Capture</key>
|
|
80
|
-
<string>CDVCapture</string>
|
|
81
|
-
<key>SplashScreen</key>
|
|
82
|
-
<string>CDVSplashScreen</string>
|
|
83
|
-
<key>Battery</key>
|
|
84
|
-
<string>CDVBattery</string>
|
|
85
|
-
</dict>
|
|
86
|
-
</dict>
|
|
87
|
-
</plist>
|
package/tests/Xcode-Info.plist
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
-
<plist version="1.0">
|
|
4
|
-
<dict>
|
|
5
|
-
<key>CFBundleDevelopmentRegion</key>
|
|
6
|
-
<string>en</string>
|
|
7
|
-
<key>CFBundleDisplayName</key>
|
|
8
|
-
<string>${PRODUCT_NAME}</string>
|
|
9
|
-
<key>CFBundleExecutable</key>
|
|
10
|
-
<string>${EXECUTABLE_NAME}</string>
|
|
11
|
-
<key>CFBundleIconFiles</key>
|
|
12
|
-
<array/>
|
|
13
|
-
<key>CFBundleIdentifier</key>
|
|
14
|
-
<string>com.joshfire.ads</string>
|
|
15
|
-
<key>CFBundleInfoDictionaryVersion</key>
|
|
16
|
-
<string>6.0</string>
|
|
17
|
-
<key>CFBundleName</key>
|
|
18
|
-
<string>${PRODUCT_NAME}</string>
|
|
19
|
-
<key>CFBundlePackageType</key>
|
|
20
|
-
<string>APPL</string>
|
|
21
|
-
<key>CFBundleShortVersionString</key>
|
|
22
|
-
<string>1.0</string>
|
|
23
|
-
<key>CFBundleSignature</key>
|
|
24
|
-
<string>????</string>
|
|
25
|
-
<key>CFBundleVersion</key>
|
|
26
|
-
<string>1.0</string>
|
|
27
|
-
<key>LSRequiresIPhoneOS</key>
|
|
28
|
-
<true/>
|
|
29
|
-
<key>UIRequiredDeviceCapabilities</key>
|
|
30
|
-
<array>
|
|
31
|
-
<string>armv7</string>
|
|
32
|
-
</array>
|
|
33
|
-
<key>UISupportedInterfaceOrientations</key>
|
|
34
|
-
<array>
|
|
35
|
-
<string>UIInterfaceOrientationPortrait</string>
|
|
36
|
-
<string>UIInterfaceOrientationLandscapeLeft</string>
|
|
37
|
-
<string>UIInterfaceOrientationLandscapeRight</string>
|
|
38
|
-
</array>
|
|
39
|
-
<key>UISupportedInterfaceOrientations~ipad</key>
|
|
40
|
-
<array>
|
|
41
|
-
<string>UIInterfaceOrientationPortrait</string>
|
|
42
|
-
<string>UIInterfaceOrientationPortraitUpsideDown</string>
|
|
43
|
-
<string>UIInterfaceOrientationLandscapeLeft</string>
|
|
44
|
-
<string>UIInterfaceOrientationLandscapeRight</string>
|
|
45
|
-
</array>
|
|
46
|
-
<key>CFBundleAllowMixedLocalizations</key>
|
|
47
|
-
<true/>
|
|
48
|
-
</dict>
|
|
49
|
-
</plist>
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
-
<plist version="1.0">
|
|
4
|
-
<dict>
|
|
5
|
-
<key>TopActivityIndicator</key>
|
|
6
|
-
<string>gray</string>
|
|
7
|
-
<key>EnableLocation</key>
|
|
8
|
-
<false/>
|
|
9
|
-
<key>EnableViewportScale</key>
|
|
10
|
-
<false/>
|
|
11
|
-
<key>AutoHideSplashScreen</key>
|
|
12
|
-
<true/>
|
|
13
|
-
<key>ShowSplashScreenSpinner</key>
|
|
14
|
-
<true/>
|
|
15
|
-
<key>MediaPlaybackRequiresUserAction</key>
|
|
16
|
-
<false/>
|
|
17
|
-
<key>AllowInlineMediaPlayback</key>
|
|
18
|
-
<false/>
|
|
19
|
-
<key>OpenAllWhitelistURLsInWebView</key>
|
|
20
|
-
<false/>
|
|
21
|
-
<key>ExternalHosts</key>
|
|
22
|
-
<array>
|
|
23
|
-
<string>*</string>
|
|
24
|
-
</array>
|
|
25
|
-
<key>Plugins</key>
|
|
26
|
-
<dict>
|
|
27
|
-
<key>com.phonegap.accelerometer</key>
|
|
28
|
-
<string>PGAccelerometer</string>
|
|
29
|
-
<key>com.phonegap.camera</key>
|
|
30
|
-
<string>PGCamera</string>
|
|
31
|
-
<key>com.phonegap.connection</key>
|
|
32
|
-
<string>PGConnection</string>
|
|
33
|
-
<key>com.phonegap.contacts</key>
|
|
34
|
-
<string>PGContacts</string>
|
|
35
|
-
<key>com.phonegap.debugconsole</key>
|
|
36
|
-
<string>PGDebugConsole</string>
|
|
37
|
-
<key>com.phonegap.file</key>
|
|
38
|
-
<string>PGFile</string>
|
|
39
|
-
<key>com.phonegap.filetransfer</key>
|
|
40
|
-
<string>PGFileTransfer</string>
|
|
41
|
-
<key>com.phonegap.geolocation</key>
|
|
42
|
-
<string>PGLocation</string>
|
|
43
|
-
<key>com.phonegap.notification</key>
|
|
44
|
-
<string>PGNotification</string>
|
|
45
|
-
<key>com.phonegap.media</key>
|
|
46
|
-
<string>PGSound</string>
|
|
47
|
-
<key>com.phonegap.mediacapture</key>
|
|
48
|
-
<string>PGCapture</string>
|
|
49
|
-
<key>com.phonegap.splashscreen</key>
|
|
50
|
-
<string>PGSplashScreen</string>
|
|
51
|
-
<key>com.joshfire.sas</key>
|
|
52
|
-
<string>PGSmartAdServer</string>
|
|
53
|
-
</dict>
|
|
54
|
-
</dict>
|
|
55
|
-
</plist>
|
package/tests/airplay.xml
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
-
<plist version="1.0">
|
|
4
|
-
<dict>
|
|
5
|
-
<key>duration</key>
|
|
6
|
-
<real>5555.0495000000001</real>
|
|
7
|
-
<key>loadedTimeRanges</key>
|
|
8
|
-
<array>
|
|
9
|
-
<dict>
|
|
10
|
-
<key>duration</key>
|
|
11
|
-
<real>5555.0495000000001</real>
|
|
12
|
-
<key>start</key>
|
|
13
|
-
<real>0.0</real>
|
|
14
|
-
</dict>
|
|
15
|
-
</array>
|
|
16
|
-
<key>playbackBufferEmpty</key>
|
|
17
|
-
<true/>
|
|
18
|
-
<key>playbackBufferFull</key>
|
|
19
|
-
<false/>
|
|
20
|
-
<key>playbackLikelyToKeepUp</key>
|
|
21
|
-
<true/>
|
|
22
|
-
<key>position</key>
|
|
23
|
-
<real>4.6269989039999997</real>
|
|
24
|
-
<key>rate</key>
|
|
25
|
-
<real>1</real>
|
|
26
|
-
<key>readyToPlay</key>
|
|
27
|
-
<true/>
|
|
28
|
-
<key>seekableTimeRanges</key>
|
|
29
|
-
<array>
|
|
30
|
-
<dict>
|
|
31
|
-
<key>duration</key>
|
|
32
|
-
<real>5555.0495000000001</real>
|
|
33
|
-
<key>start</key>
|
|
34
|
-
<real>0.0</real>
|
|
35
|
-
</dict>
|
|
36
|
-
</array>
|
|
37
|
-
</dict>
|
|
38
|
-
</plist>
|