Skip to content

Commit

Permalink
Update rdoc
Browse files Browse the repository at this point in the history
  • Loading branch information
devunwired committed Dec 18, 2013
1 parent b187c60 commit 2fde4b5
Show file tree
Hide file tree
Showing 6 changed files with 191 additions and 207 deletions.
297 changes: 99 additions & 198 deletions doc/ApkResources.html

Large diffs are not rendered by default.

12 changes: 10 additions & 2 deletions doc/ApkXml.html
Original file line number Diff line number Diff line change
Expand Up @@ -493,13 +493,21 @@ <h3 class="section-header">Public Instance Methods</h3>
<span class="ruby-identifier">attr_value</span> = <span class="ruby-keyword">nil</span>
<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>
<span class="ruby-identifier">attr_value</span> = <span class="ruby-identifier">attr_raw</span>
<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-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>
<span class="ruby-comment"># Find the resource</span>
<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>)
<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>
<span class="ruby-comment"># Use the default resource value</span>
<span class="ruby-identifier">attr_value</span> = <span class="ruby-identifier">default_res</span>.<span class="ruby-identifier">data</span>
<span class="ruby-keyword">else</span>
<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>)
<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>)
<span class="ruby-keyword">if</span> <span class="ruby-identifier">key_value</span> <span class="ruby-operator">!=</span> <span class="ruby-keyword">nil</span>
<span class="ruby-comment"># Use the key string</span>
<span class="ruby-identifier">attr_value</span> = <span class="ruby-identifier">key_value</span>
<span class="ruby-keyword">else</span>
<span class="ruby-comment">#No key found, use raw id marked as a resource</span>
<span class="ruby-identifier">attr_value</span> = <span class="ruby-node">&quot;res:0x#{entry.data.to_s(16)}&quot;</span>
<span class="ruby-keyword">end</span>
<span class="ruby-keyword">end</span>
<span class="ruby-keyword">else</span> <span class="ruby-comment"># Value is a constant</span>
<span class="ruby-identifier">attr_value</span> = <span class="ruby-node">&quot;0x#{entry.data.to_s(16)}&quot;</span>
Expand Down
74 changes: 74 additions & 0 deletions doc/bin/read_manifest_rb.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />

<title>File: read_manifest.rb [RDoc Documentation]</title>

<link type="text/css" media="screen" href="../rdoc.css" rel="stylesheet" />

<script src="../js/jquery.js" type="text/javascript"
charset="utf-8"></script>
<script src="../js/thickbox-compressed.js" type="text/javascript"
charset="utf-8"></script>
<script src="../js/quicksearch.js" type="text/javascript"
charset="utf-8"></script>
<script src="../js/darkfish.js" type="text/javascript"
charset="utf-8"></script>
</head>

<body class="file file-popup">
<div id="metadata">
<dl>
<dt class="modified-date">Last Modified</dt>
<dd class="modified-date">2013-12-17 22:59:00 -0700</dd>


<dt class="requires">Requires</dt>
<dd class="requires">
<ul>

<li>apktools/apkxml</li>

</ul>
</dd>



</dl>
</div>

<div id="documentation">

<div class="description">
<h2>Description</h2>

<p>Copyright (C) 2012 Dave Smith</p>

<p>Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the “Software”),
to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, merge, publish, distribute, sublicense,
and/or sell copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following conditions:</p>

<p>The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.</p>

<p>THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.</p>

</div>

</div>
</body>
</html>

7 changes: 4 additions & 3 deletions doc/created.rid
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
Sun, 12 Aug 2012 17:38:12 -0600
Tue, 17 Dec 2013 23:02:22 -0700
./bin/get_app_version.rb Sun, 12 Aug 2012 17:31:44 -0600
./lib/apktools/apkresources.rb Thu, 09 Aug 2012 22:34:57 -0600
./lib/apktools/apkxml.rb Sun, 12 Aug 2012 17:22:18 -0600
./bin/read_manifest.rb Tue, 17 Dec 2013 22:59:00 -0700
./lib/apktools/apkresources.rb Tue, 17 Dec 2013 22:59:17 -0700
./lib/apktools/apkxml.rb Tue, 17 Dec 2013 22:59:07 -0700
./lib/apktools/resconfiguration.rb Thu, 09 Aug 2012 22:39:23 -0600
4 changes: 2 additions & 2 deletions doc/lib/apktools/apkresources_rb.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<div id="metadata">
<dl>
<dt class="modified-date">Last Modified</dt>
<dd class="modified-date">2012-08-09 22:34:57 -0600</dd>
<dd class="modified-date">2013-12-17 22:59:17 -0700</dd>


<dt class="requires">Requires</dt>
Expand All @@ -46,7 +46,7 @@
<div class="description">
<h2>Description</h2>

<p>Copyright (C) 2012 Dave Smith</p>
<p>Copyright (C) 2014 Dave Smith</p>

<p>Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the “Software”),
Expand Down
4 changes: 2 additions & 2 deletions doc/lib/apktools/apkxml_rb.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<div id="metadata">
<dl>
<dt class="modified-date">Last Modified</dt>
<dd class="modified-date">2012-08-12 17:22:18 -0600</dd>
<dd class="modified-date">2013-12-17 22:59:07 -0700</dd>


<dt class="requires">Requires</dt>
Expand All @@ -48,7 +48,7 @@
<div class="description">
<h2>Description</h2>

<p>Copyright (C) 2012 Dave Smith</p>
<p>Copyright (C) 2014 Dave Smith</p>

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

0 comments on commit 2fde4b5

Please sign in to comment.