Skip to content

Commit 2fde4b5

Browse files
committed
Update rdoc
1 parent b187c60 commit 2fde4b5

6 files changed

Lines changed: 191 additions & 207 deletions

File tree

doc/ApkResources.html

Lines changed: 99 additions & 198 deletions
Large diffs are not rendered by default.

doc/ApkXml.html

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -493,13 +493,21 @@ <h3 class="section-header">Public Instance Methods</h3>
493493
<span class="ruby-identifier">attr_value</span> = <span class="ruby-keyword">nil</span>
494494
<span class="ruby-keyword">if</span> <span class="ruby-identifier">attr_raw</span> <span class="ruby-operator">!=</span> <span class="ruby-keyword">nil</span> <span class="ruby-comment"># Use raw value</span>
495495
<span class="ruby-identifier">attr_value</span> = <span class="ruby-identifier">attr_raw</span>
496-
<span class="ruby-keyword">elsif</span> <span class="ruby-identifier">entry</span>.<span class="ruby-identifier">data_type</span> <span class="ruby-operator">==</span> <span class="ruby-value">1</span>
496+
<span class="ruby-keyword">elsif</span> <span class="ruby-identifier">entry</span>.<span class="ruby-identifier">data_type</span> <span class="ruby-operator">==</span> <span class="ruby-value">1</span> <span class="ruby-comment"># Value is a references to a resource</span>
497497
<span class="ruby-comment"># Find the resource</span>
498498
<span class="ruby-identifier">default_res</span> = <span class="ruby-identifier">apk_resources</span>.<span class="ruby-identifier">get_default_resource_value</span>(<span class="ruby-identifier">entry</span>.<span class="ruby-identifier">data</span>)
499499
<span class="ruby-keyword">if</span> <span class="ruby-identifier">resolve_resources</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">default_res</span> <span class="ruby-operator">!=</span> <span class="ruby-keyword">nil</span>
500+
<span class="ruby-comment"># Use the default resource value</span>
500501
<span class="ruby-identifier">attr_value</span> = <span class="ruby-identifier">default_res</span>.<span class="ruby-identifier">data</span>
501502
<span class="ruby-keyword">else</span>
502-
<span class="ruby-identifier">attr_value</span> = <span class="ruby-identifier">apk_resources</span>.<span class="ruby-identifier">get_resource_key</span>(<span class="ruby-identifier">entry</span>.<span class="ruby-identifier">data</span>, <span class="ruby-keyword">true</span>)
503+
<span class="ruby-identifier">key_value</span> = <span class="ruby-identifier">apk_resources</span>.<span class="ruby-identifier">get_resource_key</span>(<span class="ruby-identifier">entry</span>.<span class="ruby-identifier">data</span>, <span class="ruby-keyword">true</span>)
504+
<span class="ruby-keyword">if</span> <span class="ruby-identifier">key_value</span> <span class="ruby-operator">!=</span> <span class="ruby-keyword">nil</span>
505+
<span class="ruby-comment"># Use the key string</span>
506+
<span class="ruby-identifier">attr_value</span> = <span class="ruby-identifier">key_value</span>
507+
<span class="ruby-keyword">else</span>
508+
<span class="ruby-comment">#No key found, use raw id marked as a resource</span>
509+
<span class="ruby-identifier">attr_value</span> = <span class="ruby-node">&quot;res:0x#{entry.data.to_s(16)}&quot;</span>
510+
<span class="ruby-keyword">end</span>
503511
<span class="ruby-keyword">end</span>
504512
<span class="ruby-keyword">else</span> <span class="ruby-comment"># Value is a constant</span>
505513
<span class="ruby-identifier">attr_value</span> = <span class="ruby-node">&quot;0x#{entry.data.to_s(16)}&quot;</span>

doc/bin/read_manifest_rb.html

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4+
5+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
6+
<head>
7+
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
8+
9+
<title>File: read_manifest.rb [RDoc Documentation]</title>
10+
11+
<link type="text/css" media="screen" href="../rdoc.css" rel="stylesheet" />
12+
13+
<script src="../js/jquery.js" type="text/javascript"
14+
charset="utf-8"></script>
15+
<script src="../js/thickbox-compressed.js" type="text/javascript"
16+
charset="utf-8"></script>
17+
<script src="../js/quicksearch.js" type="text/javascript"
18+
charset="utf-8"></script>
19+
<script src="../js/darkfish.js" type="text/javascript"
20+
charset="utf-8"></script>
21+
</head>
22+
23+
<body class="file file-popup">
24+
<div id="metadata">
25+
<dl>
26+
<dt class="modified-date">Last Modified</dt>
27+
<dd class="modified-date">2013-12-17 22:59:00 -0700</dd>
28+
29+
30+
<dt class="requires">Requires</dt>
31+
<dd class="requires">
32+
<ul>
33+
34+
<li>apktools/apkxml</li>
35+
36+
</ul>
37+
</dd>
38+
39+
40+
41+
</dl>
42+
</div>
43+
44+
<div id="documentation">
45+
46+
<div class="description">
47+
<h2>Description</h2>
48+
49+
<p>Copyright (C) 2012 Dave Smith</p>
50+
51+
<p>Permission is hereby granted, free of charge, to any person obtaining a
52+
copy of this software and associated documentation files (the “Software”),
53+
to deal in the Software without restriction, including without limitation
54+
the rights to use, copy, modify, merge, publish, distribute, sublicense,
55+
and/or sell copies of the Software, and to permit persons to whom the
56+
Software is furnished to do so, subject to the following conditions:</p>
57+
58+
<p>The above copyright notice and this permission notice shall be included in
59+
all copies or substantial portions of the Software.</p>
60+
61+
<p>THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
62+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
63+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
64+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
65+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
66+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
67+
DEALINGS IN THE SOFTWARE.</p>
68+
69+
</div>
70+
71+
</div>
72+
</body>
73+
</html>
74+

doc/created.rid

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
Sun, 12 Aug 2012 17:38:12 -0600
1+
Tue, 17 Dec 2013 23:02:22 -0700
22
./bin/get_app_version.rb Sun, 12 Aug 2012 17:31:44 -0600
3-
./lib/apktools/apkresources.rb Thu, 09 Aug 2012 22:34:57 -0600
4-
./lib/apktools/apkxml.rb Sun, 12 Aug 2012 17:22:18 -0600
3+
./bin/read_manifest.rb Tue, 17 Dec 2013 22:59:00 -0700
4+
./lib/apktools/apkresources.rb Tue, 17 Dec 2013 22:59:17 -0700
5+
./lib/apktools/apkxml.rb Tue, 17 Dec 2013 22:59:07 -0700
56
./lib/apktools/resconfiguration.rb Thu, 09 Aug 2012 22:39:23 -0600

doc/lib/apktools/apkresources_rb.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
<div id="metadata">
2525
<dl>
2626
<dt class="modified-date">Last Modified</dt>
27-
<dd class="modified-date">2012-08-09 22:34:57 -0600</dd>
27+
<dd class="modified-date">2013-12-17 22:59:17 -0700</dd>
2828

2929

3030
<dt class="requires">Requires</dt>
@@ -46,7 +46,7 @@
4646
<div class="description">
4747
<h2>Description</h2>
4848

49-
<p>Copyright (C) 2012 Dave Smith</p>
49+
<p>Copyright (C) 2014 Dave Smith</p>
5050

5151
<p>Permission is hereby granted, free of charge, to any person obtaining a
5252
copy of this software and associated documentation files (the “Software”),

doc/lib/apktools/apkxml_rb.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
<div id="metadata">
2525
<dl>
2626
<dt class="modified-date">Last Modified</dt>
27-
<dd class="modified-date">2012-08-12 17:22:18 -0600</dd>
27+
<dd class="modified-date">2013-12-17 22:59:07 -0700</dd>
2828

2929

3030
<dt class="requires">Requires</dt>
@@ -48,7 +48,7 @@
4848
<div class="description">
4949
<h2>Description</h2>
5050

51-
<p>Copyright (C) 2012 Dave Smith</p>
51+
<p>Copyright (C) 2014 Dave Smith</p>
5252

5353
<p>Permission is hereby granted, free of charge, to any person obtaining a
5454
copy of this software and associated documentation files (the “Software”),

0 commit comments

Comments
 (0)