Skip to content

Commit

Permalink
Bump to v1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
yunhao committed Aug 31, 2020
1 parent 428a9e1 commit 299b21b
Show file tree
Hide file tree
Showing 28 changed files with 372 additions and 419 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
CHANGELOG
=========

## [v1.1.0](https://github.com/yunhao/Crystal/releases/tag/v1.1.0) (2020-08-31)

### Refactor
* Rename theme type `default` property to `entry` for better semantics
* Update source code comments
### Fix
* `WeakKeyMapTable` will automatically remove elements when weak key deallocated (#3)
---

## [v1.0.0](https://github.com/yunhao/Crystal/releases/tag/v1.0.0) (2020-08-26)

The first public release
Expand Down
2 changes: 1 addition & 1 deletion Crystal.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |spec|
spec.name = "Crystal"
spec.version = "1.0.0"
spec.version = "1.1.0"
spec.summary = "A lightweight and intuitive theme manager for iOS."

spec.description = <<-DESC
Expand Down
8 changes: 4 additions & 4 deletions Crystal.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
COPY_PHASE_STRIP = NO;
CURRENT_PROJECT_VERSION = 13;
CURRENT_PROJECT_VERSION = 18;
DEBUG_INFORMATION_FORMAT = dwarf;
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_TESTABILITY = YES;
Expand Down Expand Up @@ -356,7 +356,7 @@
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
COPY_PHASE_STRIP = NO;
CURRENT_PROJECT_VERSION = 13;
CURRENT_PROJECT_VERSION = 18;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
ENABLE_NS_ASSERTIONS = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES;
Expand Down Expand Up @@ -388,7 +388,7 @@
DEFINES_MODULE = YES;
DEVELOPMENT_TEAM = DU3H9RK42T;
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 13;
DYLIB_CURRENT_VERSION = 18;
DYLIB_INSTALL_NAME_BASE = "@rpath";
INFOPLIST_FILE = Sources/Info.plist;
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
Expand All @@ -414,7 +414,7 @@
DEFINES_MODULE = YES;
DEVELOPMENT_TEAM = DU3H9RK42T;
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 13;
DYLIB_CURRENT_VERSION = 18;
DYLIB_INSTALL_NAME_BASE = "@rpath";
INFOPLIST_FILE = Sources/Info.plist;
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
Expand Down
4 changes: 2 additions & 2 deletions Sources/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
<key>CFBundlePackageType</key>
<string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>
<key>CFBundleShortVersionString</key>
<string>1.0.0</string>
<string>1.1.0</string>
<key>CFBundleVersion</key>
<string>13</string>
<string>18</string>
</dict>
</plist>
4 changes: 2 additions & 2 deletions Tests/CrystalTests/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
<key>CFBundlePackageType</key>
<string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>
<key>CFBundleShortVersionString</key>
<string>1.0.0</string>
<string>1.1.0</string>
<key>CFBundleVersion</key>
<string>13</string>
<string>18</string>
</dict>
</plist>
17 changes: 11 additions & 6 deletions docs/Classes.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@
<header class="header">
<p class="header-col header-col--primary">
<a class="header-link" href="index.html">
Crystal v1.0.0 Docs
Crystal v1.1.0 Docs
</a>
(75% documented)
(100% documented)
</p>

<p class="header-col--secondary">
Expand Down Expand Up @@ -110,7 +110,12 @@ <h1>Classes</h1>
<section class="section">
<div class="pointer"></div>
<div class="abstract">
<p>Undocumented</p>
<p>The main Crystal class. Instead of creating a <code>Crystal</code> object, you use shared <code><a href="Classes/Crystal.html#/s:7CrystalAAC6sharedABvpZ">Crystal.shared</a></code> singleton to manage themes.</p>

<p>In order to use Crystal, you must make <code>Crystal</code> conform to <code><a href="Protocols/CrystalDetermined.html">CrystalDetermined</a></code> protocol, which is also the opportunity for
you to determine the concrete theme type.</p>

<p>Take a look at <code><a href="Protocols/CrystalDetermined.html">CrystalDetermined</a></code> to learn about all the available methods and properties you can use.</p>

<a href="Classes/Crystal.html" class="slightly-smaller">See more</a>
</div>
Expand All @@ -123,7 +128,7 @@ <h4>Declaration</h4>
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/yunhao/Crystal/tree/v1.0.0/Sources/Crystal.swift#L11-L39">Show on GitHub</a>
<a href="https://github.com/yunhao/Crystal/tree/v1.1.0/Sources/Crystal.swift#L18-L47">Show on GitHub</a>
</div>
</section>
</div>
Expand Down Expand Up @@ -154,7 +159,7 @@ <h4>Declaration</h4>
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/yunhao/Crystal/tree/v1.0.0/Sources/Crystalline.swift#L17-L56">Show on GitHub</a>
<a href="https://github.com/yunhao/Crystal/tree/v1.1.0/Sources/Crystalline.swift#L17-L67">Show on GitHub</a>
</div>
</section>
</div>
Expand All @@ -167,7 +172,7 @@ <h4>Declaration</h4>
</article>
</div>
<section class="footer">
<p>&copy; 2020 <a class="link" href="https://github.com/yunhao" target="_blank" rel="external">yunhao</a>. All rights reserved. (Last updated: 2020-08-26)</p>
<p>&copy; 2020 <a class="link" href="https://github.com/yunhao" target="_blank" rel="external">yunhao</a>. All rights reserved. (Last updated: 2020-08-31)</p>
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.13.5</a>, a <a class="link" href="https://realm.io" target="_blank" rel="external">Realm</a> project.</p>
</section>
</body>
Expand Down
19 changes: 12 additions & 7 deletions docs/Classes/Crystal.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@
<header class="header">
<p class="header-col header-col--primary">
<a class="header-link" href="../index.html">
Crystal v1.0.0 Docs
Crystal v1.1.0 Docs
</a>
(75% documented)
(100% documented)
</p>

<p class="header-col--secondary">
Expand Down Expand Up @@ -95,10 +95,15 @@ <h1>Crystal</h1>

</div>
</div>
<p>Undocumented</p>
<p>The main Crystal class. Instead of creating a <code>Crystal</code> object, you use shared <code><a href="../Classes/Crystal.html#/s:7CrystalAAC6sharedABvpZ">Crystal.shared</a></code> singleton to manage themes.</p>

<p>In order to use Crystal, you must make <code>Crystal</code> conform to <code><a href="../Protocols/CrystalDetermined.html">CrystalDetermined</a></code> protocol, which is also the opportunity for
you to determine the concrete theme type.</p>

<p>Take a look at <code><a href="../Protocols/CrystalDetermined.html">CrystalDetermined</a></code> to learn about all the available methods and properties you can use.</p>

<div class="slightly-smaller">
<a href="https://github.com/yunhao/Crystal/tree/v1.0.0/Sources/Crystal.swift#L11-L39">Show on GitHub</a>
<a href="https://github.com/yunhao/Crystal/tree/v1.1.0/Sources/Crystal.swift#L18-L47">Show on GitHub</a>
</div>
</div>
</section>
Expand All @@ -120,7 +125,7 @@ <h1>Crystal</h1>
<section class="section">
<div class="pointer"></div>
<div class="abstract">
<p>Undocumented</p>
<p>Returns the singleton Crystal instance.</p>

</div>
<div class="declaration">
Expand All @@ -132,7 +137,7 @@ <h4>Declaration</h4>
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/yunhao/Crystal/tree/v1.0.0/Sources/Crystal.swift#L">Show on GitHub</a>
<a href="https://github.com/yunhao/Crystal/tree/v1.1.0/Sources/Crystal.swift#L20">Show on GitHub</a>
</div>
</section>
</div>
Expand All @@ -145,7 +150,7 @@ <h4>Declaration</h4>
</article>
</div>
<section class="footer">
<p>&copy; 2020 <a class="link" href="https://github.com/yunhao" target="_blank" rel="external">yunhao</a>. All rights reserved. (Last updated: 2020-08-26)</p>
<p>&copy; 2020 <a class="link" href="https://github.com/yunhao" target="_blank" rel="external">yunhao</a>. All rights reserved. (Last updated: 2020-08-31)</p>
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.13.5</a>, a <a class="link" href="https://realm.io" target="_blank" rel="external">Realm</a> project.</p>
</section>
</body>
Expand Down
97 changes: 86 additions & 11 deletions docs/Classes/Crystalline.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@
<header class="header">
<p class="header-col header-col--primary">
<a class="header-link" href="../index.html">
Crystal v1.0.0 Docs
Crystal v1.1.0 Docs
</a>
(75% documented)
(100% documented)
</p>

<p class="header-col--secondary">
Expand Down Expand Up @@ -98,7 +98,7 @@ <h1>Crystalline</h1>
<p>Wrapper for crystal compatible types.</p>

<div class="slightly-smaller">
<a href="https://github.com/yunhao/Crystal/tree/v1.0.0/Sources/Crystalline.swift#L17-L56">Show on GitHub</a>
<a href="https://github.com/yunhao/Crystal/tree/v1.1.0/Sources/Crystalline.swift#L17-L67">Show on GitHub</a>
</div>
</div>
</section>
Expand All @@ -110,17 +110,92 @@ <h1>Crystalline</h1>
<li class="item">
<div>
<code>
<a name="/s:7Crystal11CrystallineC5apply3key_ySSSg_yx_q_tctF"></a>
<a name="/s:7Crystal11CrystallineC5applyyyyx_q_tcF"></a>
<a name="//apple_ref/swift/Method/apply(_:)" class="dashAnchor"></a>
<a class="token" href="#/s:7Crystal11CrystallineC5applyyyyx_q_tcF">apply(_:<wbr>)</a>
</code>
</div>
<div class="height-container">
<div class="pointer-container"></div>
<section class="section">
<div class="pointer"></div>
<div class="abstract">
<p>Apply the theme to the target object in a closure.</p>

<p>If you call this method multiple times on the same object, only the last call will take effect.</p>

</div>
<div class="declaration">
<h4>Declaration</h4>
<div class="language">
<p class="aside-title">Swift</p>
<pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">apply</span><span class="p">(</span><span class="n">_</span> <span class="nv">closure</span><span class="p">:</span> <span class="kd">@escaping</span> <span class="p">(</span><span class="n">_</span> <span class="nv">target</span><span class="p">:</span> <span class="kt">Target</span><span class="p">,</span> <span class="n">_</span> <span class="nv">theme</span><span class="p">:</span> <span class="kt">Theme</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">Void</span><span class="p">)</span></code></pre>

</div>
</div>
<div>
<h4>Parameters</h4>
<table class="graybox">
<tbody>
<tr>
<td>
<code>
<em>closure</em>
</code>
</td>
<td>
<div>
<p>A clourse where you apply the theme.</p>
</div>
</td>
</tr>
<tr>
<td>
<code>
<em>target</em>
</code>
</td>
<td>
<div>
<p>The target object you want to apply the theme to.</p>
</div>
</td>
</tr>
<tr>
<td>
<code>
<em>theme</em>
</code>
</td>
<td>
<div>
<p>The theme.</p>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<div class="slightly-smaller">
<a href="https://github.com/yunhao/Crystal/tree/v1.1.0/Sources/Crystalline.swift#L41-L43">Show on GitHub</a>
</div>
</section>
</div>
</li>
<li class="item">
<div>
<code>
<a name="/s:7Crystal11CrystallineC5apply3key_ySS_yx_q_tctF"></a>
<a name="//apple_ref/swift/Method/apply(key:_:)" class="dashAnchor"></a>
<a class="token" href="#/s:7Crystal11CrystallineC5apply3key_ySSSg_yx_q_tctF">apply(key:<wbr>_:<wbr>)</a>
<a class="token" href="#/s:7Crystal11CrystallineC5apply3key_ySS_yx_q_tctF">apply(key:<wbr>_:<wbr>)</a>
</code>
</div>
<div class="height-container">
<div class="pointer-container"></div>
<section class="section">
<div class="pointer"></div>
<div class="abstract">
<p>Apply the theme to the target object with a closure.</p>
<p>Apply the theme to the target object in a closure.</p>

<p>If you call this method multiple times with the same key, only the last one will take effect.</p>

Expand All @@ -129,7 +204,7 @@ <h1>Crystalline</h1>
<h4>Declaration</h4>
<div class="language">
<p class="aside-title">Swift</p>
<pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">apply</span><span class="p">(</span><span class="nv">key</span><span class="p">:</span> <span class="kt">String</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span> <span class="n">_</span> <span class="nv">closure</span><span class="p">:</span> <span class="kd">@escaping</span> <span class="p">(</span><span class="n">_</span> <span class="nv">target</span><span class="p">:</span> <span class="kt">Target</span><span class="p">,</span> <span class="n">_</span> <span class="nv">theme</span><span class="p">:</span> <span class="kt">Theme</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">Void</span><span class="p">)</span></code></pre>
<pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">apply</span><span class="p">(</span><span class="nv">key</span><span class="p">:</span> <span class="kt">String</span><span class="p">,</span> <span class="n">_</span> <span class="nv">closure</span><span class="p">:</span> <span class="kd">@escaping</span> <span class="p">(</span><span class="n">_</span> <span class="nv">target</span><span class="p">:</span> <span class="kt">Target</span><span class="p">,</span> <span class="n">_</span> <span class="nv">theme</span><span class="p">:</span> <span class="kt">Theme</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">Void</span><span class="p">)</span></code></pre>

</div>
</div>
Expand Down Expand Up @@ -157,7 +232,7 @@ <h4>Parameters</h4>
</td>
<td>
<div>
<p>A clourse indicates how to apply theme.</p>
<p>A clourse where you apply the theme.</p>
</div>
</td>
</tr>
Expand All @@ -169,7 +244,7 @@ <h4>Parameters</h4>
</td>
<td>
<div>
<p>The target object.</p>
<p>The target object you want to apply the theme to.</p>
</div>
</td>
</tr>
Expand All @@ -189,7 +264,7 @@ <h4>Parameters</h4>
</table>
</div>
<div class="slightly-smaller">
<a href="https://github.com/yunhao/Crystal/tree/v1.0.0/Sources/Crystalline.swift#L41-L47">Show on GitHub</a>
<a href="https://github.com/yunhao/Crystal/tree/v1.1.0/Sources/Crystalline.swift#L54-L58">Show on GitHub</a>
</div>
</section>
</div>
Expand All @@ -202,7 +277,7 @@ <h4>Parameters</h4>
</article>
</div>
<section class="footer">
<p>&copy; 2020 <a class="link" href="https://github.com/yunhao" target="_blank" rel="external">yunhao</a>. All rights reserved. (Last updated: 2020-08-26)</p>
<p>&copy; 2020 <a class="link" href="https://github.com/yunhao" target="_blank" rel="external">yunhao</a>. All rights reserved. (Last updated: 2020-08-31)</p>
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.13.5</a>, a <a class="link" href="https://realm.io" target="_blank" rel="external">Realm</a> project.</p>
</section>
</body>
Expand Down
Loading

0 comments on commit 299b21b

Please sign in to comment.