Skip to content

Commit b75d7f4

Browse files
gevartoskyGregorio Gevartosky Torrezan
andauthored
Adding Android support (#658)
Co-authored-by: Gregorio Gevartosky Torrezan <gregorio@Gregorios-MacBook-Pro.local>
1 parent e1dbc92 commit b75d7f4

File tree

5 files changed

+22
-0
lines changed

5 files changed

+22
-0
lines changed

.github/workflows/ci.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,3 +64,17 @@ jobs:
6464
with:
6565
files: info.lcov
6666
token: ${{ secrets.CODECOV_TOKEN }}
67+
android:
68+
name: Android
69+
runs-on: ubuntu-latest
70+
timeout-minutes: 15
71+
strategy:
72+
fail-fast: false
73+
steps:
74+
- name: "Checkout"
75+
uses: actions/checkout@v4
76+
- name: "Build for Android"
77+
uses: skiptools/swift-android-action@v2
78+
with:
79+
build-tests: true
80+
run-tests: false

Sources/SotoCore/Doc/Environment.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ import Glibc
1818
import Musl
1919
#elseif canImport(Darwin)
2020
import Darwin.C
21+
#elseif canImport(Android)
22+
import Android
2123
#else
2224
#error("Unsupported platform")
2325
#endif

Sources/SotoTestUtils/Environment.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ import Glibc
1818
import Musl
1919
#elseif canImport(Darwin)
2020
import Darwin.C
21+
#elseif canImport(Android)
22+
import Android
2123
#else
2224
#error("Unsupported platform")
2325
#endif

Sources/SotoXML/Expat.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ import Glibc
3030
import Musl
3131
#elseif canImport(Darwin)
3232
import Darwin.C
33+
#elseif canImport(Android)
34+
import Android
3335
#else
3436
#error("Unsupported platform")
3537
#endif

Tests/SotoCoreTests/Credential/StaticCredential+EnvironmentTests.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ import Glibc
2222
import Musl
2323
#elseif canImport(Darwin)
2424
import Darwin.C
25+
#elseif canImport(Android)
26+
import Android
2527
#else
2628
#error("Unsupported platform")
2729
#endif

0 commit comments

Comments
 (0)