Migration guide to branch 3.x.x
This guide contains examples that demonstrate the differences between the SDK versions 2.9.6 and 3.0.0. This section only covers methods that do not have backward compatibility.
Added
- Reporter activation
- Called before any actions with the reporter. If you already get the reporter, activation cannot change the parameters. Example:
YMMMutableReporterConfiguration *configuration = [[YMMMutableReporterConfiguration alloc] initWithApiKey:reporter_API_key]; configuration.sessionTimeout = 32; // Session timeout of the reporter. configuration.logs = YES; // Enabling reporter logging. [YMMYandexMetrica activateReporterWithConfiguration:[configuration copy]];
Copied to clipboard - Profiles
- Added the following classes to work with user profiles:
YMMUserProfileUpdate
.
Added the following methods to the
YMMYandexMetrica
class for user profiles:Added the following methods to the
YMMYandexMetricaReporting
class for user profiles: - Revenue
- Added the
YMMRevenueInfo
class for revenue tracking.Added the following method to the
YMMYandexMetrica
class:Added the following method to the
YMMYandexMetricaReporting
protocol:
Renamed
Version 2.9.6 | Version 3.0.0 |
---|---|
| The |
| The |
| The |
| The |
| The |
| The |
Version 2.9.6 | Version 3.0.0 |
---|---|
| The |
| The |
| The |
| The |
| The |
| The |
Deleted
Version 2.9.6 | Version 3.0.0 |
---|---|
Activation with the API key
| You can activate the library using the extended configuration |
Setting the session length.
| You can set the session timeout using the extended configuration |
Monitoring app crashes.
| You can enable the crash reporting using the extended configuration |
Setting the app version
| You can set the application version using the extended configuration |
Enabling logs
| You can enable the library logging using the extended configuration |
Setting environment values.
| Deleted. |
Enables deeplink tracking by using provided application's URL scheme.
| Deleted. This attribution method is no longer supported. |
Activation with the numberic key.
| Deleted. |
Version 2.9.6 | Version 3.0.0 |
---|---|
Activation with the API key
| You can activate the library using the extended configuration |
Setting the session length.
| You can set the session timeout using the extended configuration |
Monitoring app crashes.
| You can enable the crash reporting using the extended configuration |
Setting the app version
| You can set the application version using the extended configuration |
Enabling logs
| You can enable the library logging using the extended configuration |
Setting environment values.
| Deleted. |
Enables deeplink tracking by using provided application's URL scheme.
| Deleted. This attribution method is no longer supported. |
Activation with the numberic key.
| Deleted. |