Swiftpack.co - Swift Packages by Kameleoon

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.

Packages published by Kameleoon

Kameleoon/client-swift 4.2.0
This repository hosts our Swift (iOS) mobile SDK.
⭐️ 7
🕓 3 days ago
🔖 Release Notes

Releases

The markdown parsing is broken/disabled for release notes. Sorry about that, I'm chasing the source of a crash that's been bringing this website down for the last couple of days.
iOS (Swift) SDK 4.2.0
3 days ago
### Features - Added a privacy manifest file in accordance with the new [Apple privacy policy](https://developer.apple.com/documentation/bundleresources/privacy_manifest_files).
iOS (Swift) SDK 4.1.4
1 week ago
### Bug Fixes - Fixed and issue that hides fields of external `Types.Variation` class.
iOS (Swift) SDK 4.1.3
5 weeks ago
### Bug Fixes - Fixed a critical issue that could lead to application crashes during startup.
iOS (Swift) SDK 4.1.2
9 weeks ago
### Features - Added support for additional Data API servers across the world for even faster network requests.
iOS (Swift) SDK 4.1.1
11 weeks ago
### Bug Fixes - Stability and performance improvements.
iOS (Swift) SDK 4.1.0
14 weeks ago
### Features - [`addData`] method now accepts an array of `[KameleoonData]`. Variadic parameters are still supported. - Added method [`getRemoteVisitorData`](https://developers.kameleoon.com/feature-management-and-experimentation/mobile-sdks/ios-sdk/#getremotevisitordata) fetches the remote visitor's data (with an optional capability to add the data for the visitor): - Added a new parameter `completion` to some methods to replace the deprecated `completionHandler`. The `completion` parameter now represents the `Result` value. Methods with the `completion` parameter no longer throw errors directly. Instead, the `.failure` case contains information about issues that occurred during the request. The change is related to the following methods: - [`getVisitorWarehouseAudience(warehouseKey:customDataIndex:completion:)`](https://developers.kameleoon.com/feature-management-and-experimentation/mobile-sdks/ios-sdk/#getvisitorwarehouseaudience) instead of `getVisitorWarehouseAudience(warehouseKey:customDataIndex:completionHandler:)` - [`getRemoteData(key:completion:)`](https://developers.kameleoon.com/feature-management-and-experimentation/mobile-sdks/ios-sdk/#getremotedata) instead of `getRemoteData(key:completionHandler:)`
iOS (Swift) SDK 4.0.0
16 weeks ago
### Breaking changes - The minimum supported iOS version has been increased to 12.0. - Removed the `visitorCode` parameter from all methods that accepted it. You must now specify the visitor code during initialization. As a result, a `KameleoonClient` instance only works for a single visitor: - [`addData`](https://developers.kameleoon.com/feature-management-and-experimentation/mobile-sdks/ios-sdk/#adddata) - [`flush`](https://developers.kameleoon.com/feature-management-and-experimentation/mobile-sdks/ios-sdk/#flush) - [`isFeatureActive`](https://developers.kameleoon.com/feature-management-and-experimentation/mobile-sdks/ios-sdk/#isfeatureactive) - [`getFeatureVariationKey`](https://developers.kameleoon.com/feature-management-and-experimentation/mobile-sdks/ios-sdk/#getfeaturevariationkey) - [`getFeatureVariable`](https://developers.kameleoon.com/feature-management-and-experimentation/mobile-sdks/ios-sdk/#getfeaturevariable) - [`trackConversion`](https://developers.kameleoon.com/feature-management-and-experimentation/mobile-sdks/ios-sdk/#trackconversion) - [`getActiveFeatureList`](https://developers.kameleoon.com/feature-management-and-experimentation/mobile-sdks/ios-sdk/#getactivefeaturelist) - [`getVisitorWarehouseAudience`](https://developers.kameleoon.com/feature-management-and-experimentation/mobile-sdks/ios-sdk/#getvisitorwarehouseaudience) - Removed all methods and errors related to **experiments**: - Methods: - `triggerExperiment` - `getVariationAssociatedData` - `getExperimentList` - Error types: - `experimentNotFound` - `notTargeted` - `notAllocated` - `siteCodeDisabled` - Removed the `activateFeature` method that was deprecated in 3.x versions. - Changed the following classes, methods, fields and exceptions: - Methods: - Renamed `getFeatureAllVariables` to [`getFeatureVariationVariables`](https://developers.kameleoon.com/feature-management-and-experimentation/mobile-sdks/ios-sdk/#getfeaturevariationvariables). - Fields: - Renamed `value` to `values` in [`CustomData.init`](https://developers.kameleoon.com/feature-management-and-experimentation/mobile-sdks/ios-sdk/#customdata). - Renamed `refreshIntervalMinutes` to `refreshIntervalMinute` in [`KameleoonClientConfig`](https://developers.kameleoon.com/feature-management-and-experimentation/mobile-sdks/ios-sdk/#initialize-the-kameleoon-client). - Renamed `refresh_interval_minutes` to `refresh_interval_minute` in the [configuration](https://developers.kameleoon.com/feature-management-and-experimentation/mobile-sdks/ios-sdk/#additional-configuration) file. - Renamed `sitecode` to `siteCode` in [`KameleoonClientFactory.create`](https://developers.kameleoon.com/feature-management-and-experimentation/mobile-sdks/ios-sdk/#create) - Exceptions: - Removed `KameleoonError.credentialsNotFound` (`clientId` and `clientSecret` credentials are now optional). - Renamed `KameleoonError.configurationInvalid` to `KameleoonError.dataFileInvalid`. - Renamed `KameleoonError.visitorCodeNotValid` to `KameleoonError.visitorCodeInvalid`. - Renamed `KameleoonError.featureFlagNotFound` to `KameleoonError.Feature.notFound`. - Renamed `KameleoonError.variationNotFound` to `KameleoonError.Feature.variationNotFound`. - Renamed `KameleoonError.variableNotFound` to `KameleoonError.Feature.variableNotFound`. - Added new exception `KameleoonError.Feature.environmentDisabled` indicating that the feature flag is disabled for certain environments. The following methods can throw the new exception: - [`getFeatureVariationKey`](https://developers.kameleoon.com/feature-management-and-experimentation/mobile-sdks/ios-sdk/#getfeaturevariationkey) - [`getFeatureVariable`](https://developers.kameleoon.com/feature-management-and-experimentation/mobile-sdks/ios-sdk/#getfeaturevariable) - [`getFeatureVariationVariables`](https://developers.kameleoon.com/feature-management-and-experimentation/mobile-sdks/ios-sdk/#getfeaturevariationvariables) - Added new exception `KameleoonError.siteCodeIsEmpty` for method [`KameleoonClientFactory.create`](https://developers.kameleoon.com/feature-management-and-experimentation/mobile-sdks/ios-sdk/#create) indicating that the provided sitecode is empty. - Changed the data type of the `revenue` value from `Float` to `Double` in two methods: - [`Conversion`](https://developers.kameleoon.com/feature-management-and-experimentation/mobile-sdks/ios-sdk/#conversion) init method - [`trackConversion`](https://developers.kameleoon.com/feature-management-and-experimentation/mobile-sdks/ios-sdk/#trackconversion) method ### Features - Added [`setLegalConsent`](https://developers.kameleoon.com/feature-management-and-experimentation/mobile-sdks/ios-sdk/#setlegalconsent) method to determine the types data Kameleoon includes in tracking requests. This helps you adhere to legal and regulatory requirements while responsibly managing visitor data. You can find more information in the [Consent management policy](https://help.kameleoon.com/consent-management-policy/). - [`KameleoonClientFactory.create`](https://developers.kameleoon.com/feature-management-and-experimentation/mobile-sdks/ios-sdk/#create) method accepts `visitorCode` as a parameter to use for all SDK methods. If you omit the `visitorCode`, the SDK generates a new visitor code value that it uses until you overwrite it. To overwrite a `visitorCode`, provide it as a parameter explicitly to the method. The method throws `KameleoonError.visitorCodeInvalid` if the provided `visitorCode` is invalid (empty or longer than 255 characters). - Added new configuration fields to [`KameleoonClientConfig`](https://developers.kameleoon.com/feature-management-and-experimentation/mobile-sdks/ios-sdk/#initialize-the-kameleoon-client) and external [configuration](https://developers.kameleoon.com/csharp-sdk.html#additional-configuration) file: - `dataExpirationIntervalMinute` (`data_expiration_interval_minute`) specifies the time (in minutes) that the SDK retains the visitor's data on the device. By default, the TTL (time to live) is `Date.distantFuture`. - `defaultTimeoutMillisecond` (`default_timeout_millisecond`) designates the predefined timeout for network requests. - Changed the `key` parameter in the [`getRemoteData`](https://developers.kameleoon.com/feature-management-and-experimentation/mobile-sdks/ios-sdk/#getremotedata) method from required to optional. If you don't provide a `key` parameter, the SDK uses the `visitorCode` specified during initialization.
iOS (Swift) SDK 3.1.0
27 weeks ago
### Features - Added [`getVisitorWarehouseAudience`](https://developers.kameleoon.com/ios-sdk.html#getvisitorwarehouseaudience) method to retrieve all data associated with a visitor's warehouse audiences and adds it to the visitor.
iOS (Swift) SDK 3.0.6
34 weeks ago
### Features Changed the `KameleoonClientConfig` parameters `clientId` and `clientSecret` and the external configuration file parameters, `client_id` and `client_secret` from required to optional. This means you can now successfully initialize a configuration without providing credentials. Previously, you would receive a `credentialsNotFound` exception.
iOS (Swift) SDK 3.0.5
40 weeks ago
- Added new conditions for targeting: - Visitor Code - SDK Language - [Device](https://developers.kameleoon.com/feature-management-and-experimentation/web-sdks/ios-sdk/#device) - [Conversion](https://developers.kameleoon.com/feature-management-and-experimentation/web-sdks/ios-sdk/#trackconversion)
iOS

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics