Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update minimum supported versions #68

Merged
merged 2 commits into from
Jun 21, 2024
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
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,3 +123,9 @@ logic now normalizes the locale name to match the format that iOS accepts.
*June 3, 2024*

- Adds SwiftUI support via attributed string swizzling.

## Transifex iOS SDK 2.0.4

*June 21, 2024*

- Updates minimum supported OS versions.
5 changes: 4 additions & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ import PackageDescription
let package = Package(
name: "transifex",
platforms: [
.iOS(.v10)
.iOS(.v12),
.watchOS(.v4),
.tvOS(.v12),
.macOS(.v10_13)
],
products: [
.library(
Expand Down
11 changes: 5 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,20 @@ The SDK can fetch translations over the air (OTA), manages an internal cache of
and works seamlessly without requiring any changes in the source code of the app by the
developer.

Both Objective-C and Swift projects are supported and iOS 10+ is required.
Both Objective-C and Swift projects are supported.

The package is built using Swift 5.3, as it currently requires a bundled resource to be
present in the package (which was introduced on version 5.3). An update that will require
a lower Swift version is currently WIP.
present in the package (feature introduced in version 5.3).

Learn more about [Transifex Native](https://developers.transifex.com/docs/native).

The full SDK documentation is available at [https://transifex.github.io/transifex-swift/](https://transifex.github.io/transifex-swift/).

## Minimum Requirements

| Swift | Xcode | Platforms |
|-----------------|-----------------|---------------------------------------------------|
| Swift 5.3 | Xcode 12.3 | iOS 10.0 |
| Swift | Xcode | Platforms |
|-----------------|------------------|------------------------------------------------------|
| Swift 5.3 | Xcode 15.4 | iOS 12.0, watchOS 4.0, tvOS 12.0, macOS 10.13 |

## Usage

Expand Down
2 changes: 1 addition & 1 deletion Sources/Transifex/Core.swift
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ render '\(stringToRender)' locale code: \(localeCode) params: \(params). Error:
/// A static class that is the main point of entry for all the functionality of Transifex Native throughout the SDK.
public final class TXNative : NSObject {
/// The SDK version
internal static let version = "2.0.3"
internal static let version = "2.0.4"

/// The filename of the file that holds the translated strings and it's bundled inside the app.
public static let STRINGS_FILENAME = "txstrings.json"
Expand Down
2 changes: 1 addition & 1 deletion Tests/TransifexObjCTests/TXNativeObjcSwizzlerTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ - (void)testOneFloatOneString {
[TXNativeObjcSwizzler revertLocalizedString];
}

- (void)testAttributed API_AVAILABLE(macos(12.0)) {
- (void)testAttributed API_AVAILABLE(macos(12.0), ios(15.0), watchos(8.0), tvos(15.0)) {
TXMemoryCache *memoryCache = [TXMemoryCache new];
[memoryCache updateWithTranslations:@{
@"en": @{
Expand Down
Loading