Skip to content

Commit 5f9f5eb

Browse files
committed
fix(uniffi): clean tera whitespace + publish PrivacyInfo
Dedent the if/elif/else/endif tags to column 0 and use {%- consistently so the rendered Package.swift no longer emits a blank line between .target and .binaryTarget. Verified locally — diff against the existing hosting-repo manifest now shows only the intended version/checksum changes. Add the built PrivacyInfo.xcprivacy to the publish files list so the hosting repo's copy stays in sync if the source manifest ever changes (today it's identical, but the workflow shouldn't depend on that).
1 parent 2167857 commit 5f9f5eb

3 files changed

Lines changed: 9 additions & 8 deletions

File tree

.github/workflows/uniffi-swift.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ jobs:
9191
${{ env.OUTPUT_DIR }}/Package@swift-6.2.swift:Package@swift-6.2.swift
9292
${{ env.OUTPUT_DIR }}/${{ env.SPM_NAME }}.podspec:${{ env.SPM_NAME }}.podspec
9393
${{ env.OUTPUT_DIR }}/LICENSE:LICENSE
94+
${{ env.OUTPUT_DIR }}/PrivacyInfo.xcprivacy:PrivacyInfo.xcprivacy
9495
${{ env.OUTPUT_DIR }}/Sources/${{ env.SPM_NAME }}/livekit_uniffi.swift:Sources/${{ env.SPM_NAME }}/livekit_uniffi.swift
9596
token: ${{ secrets.UNIFFI_XCFRAMEWORK_PAT }}
9697
pr-body: |

livekit-uniffi/support/swift/Package.swift.tera

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,19 +22,19 @@ let package = Package(
2222
name: "{{ SPM_NAME }}",
2323
dependencies: ["Rust{{ SPM_NAME }}"]
2424
),
25-
{% if CARGO_MAKE_PROFILE == "development" -%}
25+
{%- if CARGO_MAKE_PROFILE == "development" %}
2626
.binaryTarget(
2727
name: "Rust{{ SPM_NAME }}",
2828
path: "./Rust{{ SPM_NAME }}.xcframework"
2929
)
30-
{%- elif CARGO_MAKE_PROFILE == "release" %}
30+
{%- elif CARGO_MAKE_PROFILE == "release" %}
3131
.binaryTarget(
3232
name: "Rust{{ SPM_NAME }}",
3333
url: "{{ SPM_URL }}",
3434
checksum: "{{ SPM_CHECKSUM }}"
3535
)
36-
{%- else %}
36+
{%- else %}
3737
{{ throw(message="Unsupported CARGO_MAKE_PROFILE") }}
38-
{%- endif %}
38+
{%- endif %}
3939
]
4040
)

livekit-uniffi/support/swift/Package@swift-6.2.swift.tera

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,19 @@ let package = Package(
2323
name: "{{ SPM_NAME }}",
2424
dependencies: ["Rust{{ SPM_NAME }}"]
2525
),
26-
{% if CARGO_MAKE_PROFILE == "development" -%}
26+
{%- if CARGO_MAKE_PROFILE == "development" %}
2727
.binaryTarget(
2828
name: "Rust{{ SPM_NAME }}",
2929
path: "./Rust{{ SPM_NAME }}.xcframework"
3030
)
31-
{%- elif CARGO_MAKE_PROFILE == "release" %}
31+
{%- elif CARGO_MAKE_PROFILE == "release" %}
3232
.binaryTarget(
3333
name: "Rust{{ SPM_NAME }}",
3434
url: "{{ SPM_URL }}",
3535
checksum: "{{ SPM_CHECKSUM }}"
3636
)
37-
{%- else %}
37+
{%- else %}
3838
{{ throw(message="Unsupported CARGO_MAKE_PROFILE") }}
39-
{%- endif %}
39+
{%- endif %}
4040
]
4141
)

0 commit comments

Comments
 (0)