Can we allow customers to provide their own URLSessionConfiguration class

Đang mở
#94 0 bình luận 0 reaction 1 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@gazreese đang làm issue này rồi.

Từ ngày 7/10/2025.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

The Android SDK has the following, which simplifies things somewhat: https://github.com/Flagsmith/flagsmith-kotlin-android-client/blob/main/FlagsmithClient/src/main/java/com/flagsmith/FlagsmithCacheConfig.kt

The iOS SDK has similar here: https://github.com/Flagsmith/flagsmith-ios-client/blob/702d5a53b25f8149a03c10d2f9985de2f22df2f2/FlagsmithClient/Classes/Flagsmith.swift#L398

I'm sure these are similar by intention. Is there a way to expose or inject a URLSessionConfiguration class? Specifically the customer was asking to reduce the request timeout from 60s to 1s. 60s does seem excessive.

Maybe if the URLSessionConfiguration class injection could be problematic we could expose the request timeout (and anything else that's useful) on both.

Ngôn ngữ chính
Swift
Star
17
Fork
18
Merge trung bình
2 ngày 23 giờ
Pull request đã merge (30 ngày)
8

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của Flagsmith/flagsmith-ios-client

Tất cả issue của Flagsmith/flagsmith-ios-client

Issue tương tự

Thêm issue về Swift

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.