This repository has been archived by the owner on Apr 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Release AppMetrica Unity Plugin 3.6.0
- Loading branch information
Aliaksei Nestsiarovich
committed
Jul 15, 2020
1 parent
fbfcf70
commit 353a4dc
Showing
18 changed files
with
394 additions
and
25 deletions.
There are no files selected for viewing
Git LFS file not shown
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 0 additions & 3 deletions
3
YandexMetricaPluginSample/Assets/AppMetrica/Plugins/Android/mobmetricalib-3.13.1.aar
This file was deleted.
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
YandexMetricaPluginSample/Assets/AppMetrica/Plugins/Android/mobmetricalib-3.14.3.aar
Git LFS file not shown
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
67 changes: 67 additions & 0 deletions
67
...uginSample/Assets/AppMetrica/Plugins/iOS/YandexMobileMetrica.framework/Headers/YMMError.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
/* | ||
* Version for iOS | ||
* © 2012–2020 YANDEX | ||
* You may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* https://yandex.com/legal/appmetrica_sdk_agreement/ | ||
*/ | ||
|
||
#import <Foundation/Foundation.h> | ||
|
||
#if __has_include("YMMErrorRepresentable.h") | ||
#import "YMMErrorRepresentable.h" | ||
#else | ||
#import <YandexMobileMetrica/YMMErrorRepresentable.h> | ||
#endif | ||
|
||
NS_ASSUME_NONNULL_BEGIN | ||
|
||
/** The default implementation of the `YMMErrorRepresentable` protocol. | ||
*/ | ||
@interface YMMError : NSObject <YMMErrorRepresentable> | ||
|
||
/** Creates the error instance with its ID. | ||
@note For more information, see `YMMErrorRepresentable`. | ||
@param identifier Unique error identifier | ||
@return The `YMMError` instance | ||
*/ | ||
+ (instancetype)errorWithIdentifier:(NSString *)identifier; | ||
|
||
/** Creates the error instance with its ID and other properties. | ||
@note For more information on parameters, see `YMMErrorRepresentable`. | ||
@param identifier Unique error identifier | ||
@param message Arbitrary description of the error | ||
@param parameters Addittional error parameters | ||
@return The `YMMError` instance | ||
*/ | ||
+ (instancetype)errorWithIdentifier:(NSString *)identifier | ||
message:(nullable NSString *)message | ||
parameters:(nullable NSDictionary<NSString *, id> *)parameters; | ||
|
||
/** Creates the error instance with its ID and other properties. | ||
@note For more information on parameters, see `YMMErrorRepresentable`. | ||
@param identifier Unique error identifier | ||
@param message Arbitrary description of the error | ||
@param parameters Addittional error parameters | ||
@param backtrace Custom error backtrace | ||
@param underlyingError Underlying error instance that conforms to the `YMMErrorRepresentable` protocol | ||
@return The `YMMError` instance | ||
*/ | ||
+ (instancetype)errorWithIdentifier:(NSString *)identifier | ||
message:(nullable NSString *)message | ||
parameters:(nullable NSDictionary<NSString *, id> *)parameters | ||
backtrace:(nullable NSArray<NSNumber *> *)backtrace | ||
underlyingError:(nullable id<YMMErrorRepresentable>)underlyingError; | ||
|
||
- (instancetype)init NS_UNAVAILABLE; | ||
+ (instancetype)new NS_UNAVAILABLE; | ||
|
||
@end | ||
|
||
NS_ASSUME_NONNULL_END |
88 changes: 88 additions & 0 deletions
88
...sets/AppMetrica/Plugins/iOS/YandexMobileMetrica.framework/Headers/YMMErrorRepresentable.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
/* | ||
* Version for iOS | ||
* © 2012–2020 YANDEX | ||
* You may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* https://yandex.com/legal/appmetrica_sdk_agreement/ | ||
*/ | ||
|
||
#import <Foundation/Foundation.h> | ||
|
||
NS_ASSUME_NONNULL_BEGIN | ||
|
||
/** A key from the user info dictionary of NSError. It should contain error backtrace. | ||
You can get it from `NSThread.callStackReturnAddresses` (Objective-C) or `Thread.callStackReturnAddresses`(Swift). | ||
AppMetrica automatically parses the passed value. | ||
*/ | ||
extern NSErrorUserInfoKey const YMMBacktraceErrorKey; | ||
|
||
/** Reporting options enumeration. | ||
*/ | ||
typedef NS_OPTIONS(NSUInteger, YMMErrorReportingOptions) { | ||
|
||
/** Option that does not attach the backtrace of the current thread to an error. This option might speed up the reporting. | ||
*/ | ||
YMMErrorReportingOptionsNoBacktrace = 1 << 0, | ||
}; | ||
|
||
/** The protocol for errors that can be reported to AppMetrica. | ||
Each error instance should have the specified `identifier` property. AppMetrica uses the property value to group errors. | ||
All reported information on error is displayed in the AppMetrica report. | ||
You can implement this protocol to send custom errors. Also, you can use the default protocol implementation `YMMError`. | ||
*/ | ||
@protocol YMMErrorRepresentable <NSObject> | ||
|
||
#pragma mark - Required | ||
|
||
@required | ||
|
||
/** Unique error identifier. | ||
AppMetrica uses it for grouping. | ||
The maximum length is 300 characters. | ||
If the value exceeds the limit, AppMetrica truncates it. | ||
@note AppMetrica doesn't use the IDs of underlying errors for grouping. | ||
*/ | ||
@property (nonatomic, copy, readonly) NSString *identifier; | ||
|
||
#pragma mark - Optional | ||
|
||
@optional | ||
|
||
/** Arbitrary description of the error. | ||
The maximum length is 1000 characters. | ||
If the value exceeds the limit, AppMetrica truncates it. | ||
*/ | ||
@property (nonatomic, copy, readonly, nullable) NSString *message; | ||
|
||
/** Addittional error parameters. | ||
Parameters are cast to key-value pairs, where key and value are strings. If the key or value differs from a string, the library automatically invokes the `description` method to create a textual representation of an object. | ||
The maximum number of key-value parameters is 50. The maximum length is 100 characters for the key and 2000 for the value. | ||
If the value exceeds the limit, AppMetrica truncates it. | ||
*/ | ||
@property (nonatomic, copy, readonly, nullable) NSDictionary<NSString *, id> *parameters; | ||
|
||
/** Custom error backtrace. | ||
You can get it from `NSThread.callStackReturnAddresses` (Objective-C) or `Thread.callStackReturnAddresses`(Swift). | ||
The maximum number of stack frames in a backtrace is 200. | ||
If the value exceeds the limit, AppMetrica truncates it. | ||
*/ | ||
@property (nonatomic, copy, readonly, nullable) NSArray<NSNumber *> *backtrace; | ||
|
||
/** Underlying error instance that conforms to the `YMMErrorRepresentable` protocol. | ||
The maximum number of underlying errors is 10. | ||
If the value exceeds the limit, AppMetrica truncates it. | ||
*/ | ||
@property (nonatomic, strong, readonly, nullable) id<YMMErrorRepresentable> underlyingError; | ||
|
||
@end | ||
|
||
NS_ASSUME_NONNULL_END |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.