Skip to content

Releases: nstack-io/nstack-ios-sdk

5.1 - tvOS support

17 Mar 17:24
cfa54fb
Compare
Choose a tag to compare

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

27 Feb 08:59
87eab85
Compare
Choose a tag to compare
5.0-beta Pre-release
Pre-release

Uses the updated LocalizationManager (old TranslationManager) and nstack-translations-generatorBundle 5.0

How to migrate

  1. Point to 5.0 in your Cartfile

    github "nstack-io/nstack-ios-sdk" ~> 5.0
    
  2. Replace the TranslationManager framework from your embedded libraries with LocalizationManager

  3. Update the Carthage copy-frameworks build phase to deal with LocalizationManager instead of TranslationManager

  4. Replace all import TranslationManager with import LocalizationManager

  5. Replace all NStack.sharedInstance.translationsManager with NStack.sharedInstance.localizationManager

  6. Replace calls to NStack.sharedInstance.translationsManager?.updateTranslations with NStack.sharedInstance.localizationManager?.updateLocalizations

  7. 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()
     }
    
  1. Replace TranslationManager.Language with LocalizationManager.DefaultLanguage
  2. Reference your translations with lo. instead of tr.. For example, lo.default.ok.

4.1.0

20 Feb 13:43
72466b1
Compare
Choose a tag to compare
  • adds url to Messages alert
  • adds localization to Messages
  • adds feedback endpoint and feeedback submission
  • removes cocoapods
  • removes circleCI
  • adds bitrise
  • tests pass
  • cleanup
  • uses dev=true when fetching localizations to get all keys for all languages

Update translation manager version

19 Sep 12:23
c68c878
Compare
Choose a tag to compare
4.0.8

Update Cartfile.resolved

4.0.7

10 Sep 14:06
Compare
Choose a tag to compare
4.0.7 Pre-release
Pre-release

Fixes for parsing of Message & Update features in app open response

4.0.6

05 Sep 11:24
Compare
Choose a tag to compare
4.0.6 Pre-release
Pre-release
  • Fix to get available languages call
  • Fix to parsing of language apis and other apis with configurable key coding strategy

4.0.5

04 Sep 14:48
Compare
Choose a tag to compare
4.0.5 Pre-release
Pre-release
  • Fix for language override, resolving an issue where it would get overwritten when reopening an app

4.0.4

04 Sep 13:27
73fa95b
Compare
Choose a tag to compare
  • 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

02 Sep 11:32
Compare
Choose a tag to compare
4.0.3 Pre-release
Pre-release

Fix to cartfile to point to latest release of TranslationManager SDK

4.0.2

29 Aug 10:41
Compare
Choose a tag to compare

Minor Fixes

  • Update to point to newest TranslationManager
  • Exposure of language override and available languages through the LocalizationWrapper protocol
  • Callback fixes