Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions _includes/new-includes/components/android-sdk-dev.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{% assign android_sdk_dev_builds = site.data.builds.development.android-sdk | sort: 'date' | reverse %}

<div class="release-box section">
<div class="content">
<div class="code-box content-wrapper">
<h2>main</h2>
<p class="body-copy">
<small>{{ android_sdk_dev_builds.first.date | date: '%B %-d, %Y' }}</small><br />
{% assign base_url = "https://download.swift.org/development/android-sdk/" | append: android_sdk_dev_builds.first.dir | append: "/" | append: android_sdk_dev_builds.first.download %}
{% assign command = "swift sdk install " | append: base_url | append: " --checksum " | append: android_sdk_dev_builds.first.checksum %}
<button onclick="copyToClipboard(this, '{{ command | escape }}')">
Copy install command
</button>
</p>
<div class="link-wrapper">
<div class="link-group">
<a href="https://download.swift.org/development/android-sdk/{{ android_sdk_dev_builds.first.dir }}/{{ android_sdk_dev_builds.first.download }}" class="body-copy">Download</a> |
<a href="https://download.swift.org/development/android-sdk/{{ android_sdk_dev_builds.first.dir }}/{{ android_sdk_dev_builds.first.download_signature }}" class="body-copy">Signature (PGP)</a>
</div>
</div>
</div>
</div>
</div>
8 changes: 2 additions & 6 deletions _includes/new-includes/components/static-linux-sdk-dev.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
<h2>main</h2>
<p class="body-copy">
<small>{{ static_sdk_dev_builds.first.date | date: '%B %-d, %Y' }}</small><br />
Static Linux SDK - Cross compile to Linux.
<br /><br />
{% assign base_url = "https://download.swift.org/development/static-sdk/" | append: static_sdk_dev_builds.first.dir | append: "/" | append: static_sdk_dev_builds.first.download %}
{% assign command = "swift sdk install " | append: base_url | append: " --checksum " | append: static_sdk_dev_builds.first.checksum %}
<button onclick="copyToClipboard(this, '{{ command | escape }}')">
Expand All @@ -18,7 +16,7 @@ <h2>main</h2>
</p>
<div class="link-wrapper">
<div class="link-group">
<a href="https://download.swift.org/development/static-sdk/{{ static_sdk_dev_builds.first.dir }}/{{ static_sdk_dev_builds.first.download }}" class="body-copy">Download Linux Static SDK</a> |
<a href="https://download.swift.org/development/static-sdk/{{ static_sdk_dev_builds.first.dir }}/{{ static_sdk_dev_builds.first.download }}" class="body-copy">Download</a> |
<a href="https://download.swift.org/development/static-sdk/{{ static_sdk_dev_builds.first.dir }}/{{ static_sdk_dev_builds.first.download_signature }}" class="body-copy">Signature (PGP)</a>
</div>
</div>
Expand All @@ -31,8 +29,6 @@ <h2>main</h2>
<h2>release/6.2</h2>
<p class="body-copy">
<small>{{ static_sdk_6_2_builds.first.date | date: '%B %-d, %Y' }}</small><br />
Static Linux SDK - Cross compile to Linux.
<br /><br />
{% assign base_url = "https://download.swift.org/swift-6.2-branch/static-sdk/" | append: static_sdk_6_2_builds.first.dir | append: "/" | append: static_sdk_6_2_builds.first.download %}
{% assign command = "swift sdk install " | append: base_url | append: " --checksum " | append: static_sdk_6_2_builds.first.checksum %}
<button onclick="copyToClipboard(this, '{{ command | escape }}')">
Expand All @@ -41,7 +37,7 @@ <h2>release/6.2</h2>
</p>
<div class="link-wrapper">
<div class="link-group">
<a href="https://download.swift.org/swift-6.2-branch/static-sdk/{{ static_sdk_6_2_builds.first.dir }}/{{ static_sdk_6_2_builds.first.download }}" class="body-copy">Download Linux Static SDK</a> |
<a href="https://download.swift.org/swift-6.2-branch/static-sdk/{{ static_sdk_6_2_builds.first.dir }}/{{ static_sdk_6_2_builds.first.download }}" class="body-copy">Download</a> |
<a href="https://download.swift.org/swift-6.2-branch/static-sdk/{{ static_sdk_6_2_builds.first.dir }}/{{ static_sdk_6_2_builds.first.download_signature }}" class="body-copy">Signature (PGP)</a>
</div>
</div>
Expand Down
8 changes: 2 additions & 6 deletions _includes/new-includes/components/wasm-sdk-dev.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
<h2>main</h2>
<p class="body-copy">
<small>{{ wasm_sdk_dev_builds.first.date | date: '%B %-d, %Y' }}</small><br />
Swift SDKs for WebAssembly
<br /><br />
{% assign base_url = "https://download.swift.org/development/wasm-sdk/" | append: wasm_sdk_dev_builds.first.dir | append: "/" | append: wasm_sdk_dev_builds.first.download %}
{% assign command = "swift sdk install " | append: base_url | append: " --checksum " | append: wasm_sdk_dev_builds.first.checksum %}
<button onclick="copyToClipboard(this, '{{ command | escape }}')">
Expand All @@ -18,7 +16,7 @@ <h2>main</h2>
</p>
<div class="link-wrapper">
<div class="link-group">
<a href="https://download.swift.org/development/wasm-sdk/{{ wasm_sdk_dev_builds.first.dir }}/{{ wasm_sdk_dev_builds.first.download }}" class="body-copy">Download Wasm SDK</a> |
<a href="https://download.swift.org/development/wasm-sdk/{{ wasm_sdk_dev_builds.first.dir }}/{{ wasm_sdk_dev_builds.first.download }}" class="body-copy">Download</a> |
<a href="https://download.swift.org/development/wasm-sdk/{{ wasm_sdk_dev_builds.first.dir }}/{{ wasm_sdk_dev_builds.first.download_signature }}" class="body-copy">Signature (PGP)</a>
</div>
</div>
Expand All @@ -31,8 +29,6 @@ <h2>main</h2>
<h2>release/6.2</h2>
<p class="body-copy">
<small>{{ wasm_sdk_6_2_builds.first.date | date: '%B %-d, %Y' }}</small><br />
Swift SDKs for WebAssembly
<br /><br />
{% assign base_url = "https://download.swift.org/swift-6.2-branch/wasm-sdk/" | append: wasm_sdk_6_2_builds.first.dir | append: "/" | append: wasm_sdk_6_2_builds.first.download %}
{% assign command = "swift sdk install " | append: base_url | append: " --checksum " | append: wasm_sdk_6_2_builds.first.checksum %}
<button onclick="copyToClipboard(this, '{{ command | escape }}')">
Expand All @@ -41,7 +37,7 @@ <h2>release/6.2</h2>
</p>
<div class="link-wrapper">
<div class="link-group">
<a href="https://download.swift.org/swift-6.2-branch/wasm-sdk/{{ wasm_sdk_6_2_builds.first.dir }}/{{ wasm_sdk_6_2_builds.first.download }}" class="body-copy">Download Wasm SDK</a> |
<a href="https://download.swift.org/swift-6.2-branch/wasm-sdk/{{ wasm_sdk_6_2_builds.first.dir }}/{{ wasm_sdk_6_2_builds.first.download }}" class="body-copy">Download</a> |
<a href="https://download.swift.org/swift-6.2-branch/wasm-sdk/{{ wasm_sdk_6_2_builds.first.dir }}/{{ wasm_sdk_6_2_builds.first.download_signature }}" class="body-copy">Signature (PGP)</a>
</div>
</div>
Expand Down
3 changes: 3 additions & 0 deletions _includes/new-includes/footer/copyright.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,7 @@
<p>
Swift and the Swift logo are trademarks of Apple Inc.
</p>
{% if content contains "android" %}
<p>Android is a trademark of Google LLC.</p>
{% endif %}
</div>
11 changes: 11 additions & 0 deletions install/linux/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ title: Install Swift - Linux
{% include new-includes/components/code-box.html with-tabs = true content = site.data.new-data.install.linux.dev.latest-dev.swiftly %}
</div>
</div>
<h2 id="swift-sdk-bundles" class="header-with-anchor">Swift SDK Bundles</h2>
<div>
<p class="content-copy">Additional components for cross-compilation</p>
</div>
<h3>Static Linux SDK</h3>
<div>
<p class="content-copy">
Expand All @@ -77,6 +81,13 @@ title: Install Swift - Linux
</p>
</div>
{% include new-includes/components/wasm-sdk-dev.html %}
<h3>Swift SDK for Android</h3>
<div>
<p class="content-copy">
<a class="content-link" href="/documentation/articles/swift-sdk-for-android-getting-started.html">Instructions</a>
</p>
</div>
{% include new-includes/components/android-sdk-dev.html %}
<div class="callout">
<div>
<p class="content-copy">
Expand Down
8 changes: 8 additions & 0 deletions install/macos/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -169,4 +169,12 @@ title: Install Swift - macOS
</p>
</div>
{% include new-includes/components/wasm-sdk-dev.html %}
<h3>Swift SDK for Android</h3>
<div>
<p class="content-copy">
<a class="content-link" href="/documentation/articles/swift-sdk-for-android-getting-started.html">Instructions</a>
</p>
</div>
{% include new-includes/components/android-sdk-dev.html %}
</div>