-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from xendit/feature/xen-token
update version to 2.0.0
- Loading branch information
Showing
17 changed files
with
212 additions
and
2 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -17,3 +17,4 @@ xcuserdata/ | |
*.moved-aside | ||
*.xccheckout | ||
*.xcscmblueprint | ||
.DS_Store |
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,14 @@ | ||
// | ||
// IDFAHelper.h | ||
// Xendit | ||
// | ||
// Created by Vladimir Lyukov on 22/11/2018. | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
|
||
NS_ASSUME_NONNULL_BEGIN | ||
|
||
NSString * _Nullable XENweakGetIDFA(void); | ||
|
||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,158 @@ | ||
// | ||
// ISHLogDNAService.h | ||
// ISHLogDNA | ||
// | ||
// Created by Felix Lamouroux on 13.06.17. | ||
// Copyright © 2017 iosphere. All rights reserved. | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
|
||
NS_ASSUME_NONNULL_BEGIN | ||
|
||
#pragma mark - Default Meta Keys | ||
|
||
extern NSString * const ISHLogDNAServiceKeyBundleShortVersion; | ||
extern NSString * const ISHLogDNAServiceKeyBundleVersion; | ||
extern NSString * const ISHLogDNAServiceKeyErrorCode; | ||
extern NSString * const ISHLogDNAServiceKeyErrorDescription; | ||
extern NSString * const ISHLogDNAServiceKeyErrorDomain; | ||
extern NSString * const ISHLogDNAServiceKeyModelName; | ||
extern NSString * const ISHLogDNAServiceKeySystemVersion; | ||
extern NSString * const ISHLogDNAServiceKeyUnderlyingError; | ||
|
||
#pragma mark - Log Levels | ||
|
||
typedef NS_ENUM(NSUInteger, ISHLogDNALevel) { | ||
ISHLogDNALevelDebug, | ||
ISHLogDNALevelInfo, | ||
ISHLogDNALevelWarn, | ||
ISHLogDNALevelError, | ||
ISHLogDNALevelFatal, | ||
}; | ||
|
||
#pragma mark - Message | ||
|
||
/** | ||
* A log message can be sent to LogDNA via the ISHLogDNAService. | ||
*/ | ||
@interface ISHLogDNAMessage : NSObject | ||
|
||
/** | ||
* The line that will be logged. | ||
*/ | ||
@property (nonatomic, readonly) NSString *line; | ||
|
||
/** | ||
* The timestamp of the creation of the message object. | ||
*/ | ||
@property (nonatomic, readonly) NSDate *timestamp; | ||
|
||
/** | ||
* Meta data associated with the message. Contains user-defined | ||
* entries and entries added by `messageWithLine:level:meta:`. | ||
* | ||
* @sa messageWithLine:level:meta: | ||
*/ | ||
@property (nonatomic, readonly) NSDictionary<NSString *, id> *meta; | ||
|
||
/** | ||
* The log level used for this message. | ||
*/ | ||
@property (nonatomic, readonly) ISHLogDNALevel level; | ||
|
||
/** | ||
* Create messages using this constructor. | ||
* | ||
* @param line The message line should not be empty. | ||
* @param level The log level of this message. | ||
* @param meta The optional meta field must be encodable into JSON using NSJSONSerialization. | ||
* | ||
* @return An immutable timestamped message to be logged via the ISHLogDNAService. | ||
* | ||
* @note You have to provide a consistent type per key across all messages' meta fields. | ||
* If inconsistent value types are used, that line's metadata will not be parsed. | ||
* For example, if a line is passed with a meta object, such as meta.myfield of type | ||
* String, any subsequent lines with meta.myfield must have a String as its value type | ||
* for meta.myfield. | ||
* | ||
* This method will add the bundle's version (build number), short version, operating | ||
* system version, and model identifer to meta automatically, but will never overwrite | ||
* the given meta information if keys overlap. | ||
* | ||
* Use the following keys to overwrite the respective information: | ||
* | ||
* * ISHLogDNAServiceKeyBundleShortVersion | ||
* * ISHLogDNAServiceKeyBundleVersion | ||
* * ISHLogDNAServiceKeyModelName | ||
* * ISHLogDNAServiceKeySystemVersion | ||
* | ||
*/ | ||
+ (instancetype)messageWithLine:(NSString *)line level:(ISHLogDNALevel)level meta:(nullable NSDictionary<NSString *, id> *)meta; | ||
|
||
/** | ||
* Helper method to create meta entries from the given error. | ||
* | ||
* Will set ISHLogDNAServiceKeyErrorDescription, ISHLogDNAServiceKeyErrorCode, and | ||
* ISHLogDNAServiceKeyErrorDomain, if available. | ||
* | ||
* Will add the same information for the recursive underlying errors | ||
* (via ISHLogDNAServiceKeyUnderlyingError), if present. | ||
* | ||
* Will return an empty dictionary if the error parameter was nil. | ||
*/ | ||
+ (NSDictionary<NSString *, id> *)metaDictionaryWithError:(nullable NSError *)error; | ||
|
||
/** | ||
* @sa messageWithLine:level:meta: | ||
*/ | ||
- (instancetype)init NS_UNAVAILABLE; | ||
|
||
/** | ||
* @sa messageWithLine:level:meta: | ||
*/ | ||
+ (instancetype)new NS_UNAVAILABLE; | ||
|
||
@end | ||
|
||
#pragma mark - Service | ||
|
||
/** | ||
* This service provides remote logging methods via LogDNA. | ||
* | ||
* Make sure to call +[ISHLogDNAService setupWithIngestionKey:hostName:appName:] | ||
* before using any logging methods. | ||
*/ | ||
@interface ISHLogDNAService : NSObject | ||
|
||
/** | ||
* Setup the ISHLogDNAService. Must be called before logging any messages. | ||
*/ | ||
+ (instancetype)setupWithIngestionKey:(NSString *)key hostName:(NSString *)host appName:(NSString *)appName; | ||
|
||
/** | ||
* Sends an array of log messages to LogDNA. Make sure to setup the service before calling this method. | ||
*/ | ||
+ (void)logMessages:(NSArray<ISHLogDNAMessage *> *)messages; | ||
|
||
/** | ||
* Log messages are only sent to the server if the service is enabled and will silently be ignored otherwise. | ||
* | ||
* The default value is set to the user's advertising preferences, if AdSupport is available. Defaults to `NO` | ||
* on other platforms. | ||
*/ | ||
@property (class, nonatomic) BOOL enabled; | ||
|
||
/** | ||
* @sa setupWithIngestionKey:hostName:appName: | ||
*/ | ||
- (instancetype)init NS_UNAVAILABLE; | ||
|
||
/** | ||
* @sa setupWithIngestionKey:hostName:appName: | ||
*/ | ||
+ (instancetype)new NS_UNAVAILABLE; | ||
|
||
@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
Binary 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
The MIT License (MIT) | ||
|
||
Copyright (c) 2017 iosphere GmbH | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
Binary file not shown.
Binary file modified
BIN
+31.1 KB
(130%)
Xendit.framework/Modules/Xendit.swiftmodule/arm.swiftmodule
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+31.1 KB
(130%)
Xendit.framework/Modules/Xendit.swiftmodule/arm64.swiftmodule
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+31.1 KB
(130%)
Xendit.framework/Modules/Xendit.swiftmodule/i386.swiftmodule
Binary file not shown.
Binary file modified
BIN
-16 Bytes
(96%)
Xendit.framework/Modules/Xendit.swiftmodule/x86_64.swiftdoc
Binary file not shown.
Binary file modified
BIN
+31.1 KB
(130%)
Xendit.framework/Modules/Xendit.swiftmodule/x86_64.swiftmodule
Binary file not shown.
Binary 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