Releases: nstack-io/nstack-ios-sdk
5.1 - tvOS support
Now (again) with tvOS support. For info on migrating from previous versions, check the steps detailed here https://github.com/nstack-io/nstack-ios-sdk/releases/tag/5.0-beta
5.0-beta
Uses the updated LocalizationManager (old TranslationManager) and nstack-translations-generatorBundle 5.0
How to migrate
-
Point to 5.0 in your Cartfile
github "nstack-io/nstack-ios-sdk" ~> 5.0
-
Replace the
TranslationManager
framework from your embedded libraries withLocalizationManager
-
Update the Carthage copy-frameworks build phase to deal with
LocalizationManager
instead ofTranslationManager
-
Replace all
import TranslationManager
withimport LocalizationManager
-
Replace all
NStack.sharedInstance.translationsManager
withNStack.sharedInstance.localizationManager
-
Replace calls to
NStack.sharedInstance.translationsManager?.updateTranslations
withNStack.sharedInstance.localizationManager?.updateLocalizations
-
Update the way to setup NStack from
private func setupNStack(with launchOptions: [UIApplication.LaunchOptionsKey: Any]? ) { let appConfig = AppConfiguration() var nStackConfig = Configuration(plistName: appConfig.nstackPlist, environment: appConfig.nstackEnv, translationsClass: Translations.self) nStackConfig.updateOptions = [.onDidBecomeActive] NStack.start(configuration: nStackConfig, launchOptions: launchOptions) NStack.sharedInstance.translationsManager?.updateTranslations() }
to
private func setupNStack(with launchOptions: [UIApplication.LaunchOptionsKey: Any]? ) {
let appConfig = AppConfiguration()
var nStackConfig = Configuration(plistName: appConfig.nstackPlist,
environment: appConfig.nstackEnv,
localizationClass: Localizations.self)
nStackConfig.updateOptions = [.onDidBecomeActive]
NStack.start(configuration: nStackConfig, launchOptions: launchOptions)
NStack.sharedInstance.localizationManager?.updateLocalizations()
}
- Replace
TranslationManager.Language
withLocalizationManager.DefaultLanguage
- Reference your translations with
lo.
instead oftr.
. For example,lo.default.ok
.
4.1.0
Update translation manager version
4.0.8 Update Cartfile.resolved
4.0.7
Fixes for parsing of Message & Update features in app open response
4.0.6
- Fix to get available languages call
- Fix to parsing of language apis and other apis with configurable key coding strategy
4.0.5
- Fix for language override, resolving an issue where it would get overwritten when reopening an app
4.0.4
- Fix to cache and use last updated date when getting localization configs.
- Merge of property wrapper available for Swift 5.1 and up.
4.0.3
Fix to cartfile to point to latest release of TranslationManager SDK
4.0.2
Minor Fixes
- Update to point to newest TranslationManager
- Exposure of language override and available languages through the LocalizationWrapper protocol
- Callback fixes