Skip to content

Commit bf7ee2c

Browse files
committed
Add Swift SDK for Android to install page
1 parent 8ca4abf commit bf7ee2c

File tree

6 files changed

+49
-12
lines changed

6 files changed

+49
-12
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{% assign android_sdk_dev_builds = site.data.builds.development.android-sdk | sort: 'date' | reverse %}
2+
3+
<div class="release-box section">
4+
<div class="content">
5+
<div class="code-box content-wrapper">
6+
<h2>main</h2>
7+
<p class="body-copy">
8+
<small>{{ android_sdk_dev_builds.first.date | date: '%B %-d, %Y' }}</small><br />
9+
{% 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 %}
10+
{% assign command = "swift sdk install " | append: base_url | append: " --checksum " | append: android_sdk_dev_builds.first.checksum %}
11+
<button onclick="copyToClipboard(this, '{{ command | escape }}')">
12+
Copy install command
13+
</button>
14+
</p>
15+
<div class="link-wrapper">
16+
<div class="link-group">
17+
<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> |
18+
<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>
19+
</div>
20+
</div>
21+
</div>
22+
</div>
23+
</div>

_includes/new-includes/components/static-linux-sdk-dev.html

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
<h2>main</h2>
99
<p class="body-copy">
1010
<small>{{ static_sdk_dev_builds.first.date | date: '%B %-d, %Y' }}</small><br />
11-
Static Linux SDK - Cross compile to Linux.
12-
<br /><br />
1311
{% 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 %}
1412
{% assign command = "swift sdk install " | append: base_url | append: " --checksum " | append: static_sdk_dev_builds.first.checksum %}
1513
<button onclick="copyToClipboard(this, '{{ command | escape }}')">
@@ -18,7 +16,7 @@ <h2>main</h2>
1816
</p>
1917
<div class="link-wrapper">
2018
<div class="link-group">
21-
<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> |
19+
<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> |
2220
<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>
2321
</div>
2422
</div>
@@ -31,8 +29,6 @@ <h2>main</h2>
3129
<h2>release/6.2</h2>
3230
<p class="body-copy">
3331
<small>{{ static_sdk_6_2_builds.first.date | date: '%B %-d, %Y' }}</small><br />
34-
Static Linux SDK - Cross compile to Linux.
35-
<br /><br />
3632
{% 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 %}
3733
{% assign command = "swift sdk install " | append: base_url | append: " --checksum " | append: static_sdk_6_2_builds.first.checksum %}
3834
<button onclick="copyToClipboard(this, '{{ command | escape }}')">
@@ -41,7 +37,7 @@ <h2>release/6.2</h2>
4137
</p>
4238
<div class="link-wrapper">
4339
<div class="link-group">
44-
<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> |
40+
<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> |
4541
<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>
4642
</div>
4743
</div>

_includes/new-includes/components/wasm-sdk-dev.html

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
<h2>main</h2>
99
<p class="body-copy">
1010
<small>{{ wasm_sdk_dev_builds.first.date | date: '%B %-d, %Y' }}</small><br />
11-
Swift SDKs for WebAssembly
12-
<br /><br />
1311
{% 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 %}
1412
{% assign command = "swift sdk install " | append: base_url | append: " --checksum " | append: wasm_sdk_dev_builds.first.checksum %}
1513
<button onclick="copyToClipboard(this, '{{ command | escape }}')">
@@ -18,7 +16,7 @@ <h2>main</h2>
1816
</p>
1917
<div class="link-wrapper">
2018
<div class="link-group">
21-
<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> |
19+
<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> |
2220
<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>
2321
</div>
2422
</div>
@@ -31,8 +29,6 @@ <h2>main</h2>
3129
<h2>release/6.2</h2>
3230
<p class="body-copy">
3331
<small>{{ wasm_sdk_6_2_builds.first.date | date: '%B %-d, %Y' }}</small><br />
34-
Swift SDKs for WebAssembly
35-
<br /><br />
3632
{% 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 %}
3733
{% assign command = "swift sdk install " | append: base_url | append: " --checksum " | append: wasm_sdk_6_2_builds.first.checksum %}
3834
<button onclick="copyToClipboard(this, '{{ command | escape }}')">
@@ -41,7 +37,7 @@ <h2>release/6.2</h2>
4137
</p>
4238
<div class="link-wrapper">
4339
<div class="link-group">
44-
<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> |
40+
<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> |
4541
<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>
4642
</div>
4743
</div>

_includes/new-includes/footer/copyright.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,7 @@
66
<p>
77
Swift and the Swift logo are trademarks of Apple Inc.
88
</p>
9+
{% if content contains "android" %}
10+
<p>Android is a trademark of Google LLC.</p>
11+
{% endif %}
912
</div>

install/linux/index.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,10 @@ title: Install Swift - Linux
6363
{% include new-includes/components/code-box.html with-tabs = true content = site.data.new-data.install.linux.dev.latest-dev.swiftly %}
6464
</div>
6565
</div>
66+
<h2 id="swift-sdk-bundles" class="header-with-anchor">Swift SDK Bundles</h2>
67+
<div>
68+
<p class="content-copy">Additional components for cross-compilation</p>
69+
</div>
6670
<h3>Static Linux SDK</h3>
6771
<div>
6872
<p class="content-copy">
@@ -77,6 +81,13 @@ title: Install Swift - Linux
7781
</p>
7882
</div>
7983
{% include new-includes/components/wasm-sdk-dev.html %}
84+
<h3>Swift SDK for Android</h3>
85+
<div>
86+
<p class="content-copy">
87+
<a class="content-link" href="/documentation/articles/swift-sdk-for-android-getting-started.html">Instructions</a>
88+
</p>
89+
</div>
90+
{% include new-includes/components/android-sdk-dev.html %}
8091
<div class="callout">
8192
<div>
8293
<p class="content-copy">

install/macos/index.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,4 +169,12 @@ title: Install Swift - macOS
169169
</p>
170170
</div>
171171
{% include new-includes/components/wasm-sdk-dev.html %}
172+
<h3>Swift SDK for Android</h3>
173+
<div>
174+
<p class="content-copy">
175+
<a class="content-link" href="/documentation/articles/swift-sdk-for-android-getting-started.html">Instructions</a>
176+
</p>
177+
</div>
178+
{% include new-includes/components/android-sdk-dev.html %}
172179
</div>
180+

0 commit comments

Comments
 (0)