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

Release: 2.0.6 #76

Merged
merged 4 commits into from
Jul 9, 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 @@ -138,3 +138,9 @@ logic now normalizes the locale name to match the format that iOS accepts.
* Ensures Designed for iPhone/iPad apps use the proper device name.
* Discloses that completion handlers are called from background threads.
* Improves cache update after a `fetchTranslations` call.

## Transifex iOS SDK 2.0.6

*July 9, 2024*

* Minor documentation updates.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ 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.
Both Objective-C and Swift projects are supported. SwiftUI is also supported as of v2.0.3.

The package is built using Swift 5.3, as it currently requires a bundled resource to be
present in the package (feature introduced in version 5.3).
Expand Down
10 changes: 10 additions & 0 deletions Sources/Transifex/CDSHandler.swift
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,16 @@ public final class TXPushConfiguration : NSObject {
@objc
public let dryRun: Bool

/// Initialize the push configuration object with the provided parameters.
///
/// Refer to the documentation of each property for default values and more information.
///
/// - Parameters:
/// - purge: The purge content boolean flag.
/// - overrideTags: The override tags boolean flag.
/// - overrideOccurrences: The override occurrences boolean flag.
/// - keepTranslations: The keep translations boolean flag.
/// - dryRun: The dry run boolean flag.
@objc
public init(purge: Bool = false,
overrideTags: Bool = false,
Expand Down
2 changes: 1 addition & 1 deletion Sources/Transifex/Core.swift
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,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.5"
internal static let version = "2.0.6"

/// 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
6 changes: 3 additions & 3 deletions Sources/Transifex/Plurals.swift
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,7 @@ final class XMLPluralParser: NSObject {
}

extension XMLPluralParser : XMLParserDelegate {
public func parser(_ parser: XMLParser, didStartElement elementName: String,
func parser(_ parser: XMLParser, didStartElement elementName: String,
namespaceURI: String?, qualifiedName qName: String?,
attributes attributeDict: [String : String] = [:]) {
guard elementName == TXNative.CDS_XML_TAG_NAME,
Expand All @@ -569,7 +569,7 @@ extension XMLPluralParser : XMLParserDelegate {
pendingString = ""
}

public func parser(_ parser: XMLParser, didEndElement elementName: String,
func parser(_ parser: XMLParser, didEndElement elementName: String,
namespaceURI: String?, qualifiedName qName: String?) {
guard let cdsUnitID = pendingCDSUnitID else {
return
Expand All @@ -579,7 +579,7 @@ extension XMLPluralParser : XMLParserDelegate {
pendingString = ""
}

public func parser(_ parser: XMLParser, foundCharacters string: String) {
func parser(_ parser: XMLParser, foundCharacters string: String) {
guard let _ = pendingCDSUnitID else {
return
}
Expand Down
Loading