Fix iOS RCTSwiftLog naming collision with rive-react-native
This commit is contained in:
parent
2349fad25f
commit
a7f0efd27f
@ -1,6 +1,9 @@
|
|||||||
## Changelog
|
## Changelog
|
||||||
|
### Version 6.0.0-alpha4
|
||||||
|
- Fix iOS RCTSwiftLog naming collision [#2868](https://github.com/react-native-video/react-native-video/issues/2868)
|
||||||
|
|
||||||
### Version 6.0.0-alpha3
|
### Version 6.0.0-alpha3
|
||||||
- fix ios build [#2854](https://gthub.com/react-native-video/react-native-video/pull/2854)
|
- Fix ios build [#2854](https://github.com/react-native-video/react-native-video/pull/2854)
|
||||||
|
|
||||||
### Version 6.0.0-alpha.2
|
### Version 6.0.0-alpha.2
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#import <Foundation/Foundation.h>
|
#import <Foundation/Foundation.h>
|
||||||
|
|
||||||
@interface RCTSwiftLog : NSObject
|
@interface RCTVideoSwiftLog : NSObject
|
||||||
|
|
||||||
+ (void)error:(NSString * _Nonnull)message file:(NSString * _Nonnull)file line:(NSUInteger)line;
|
+ (void)error:(NSString * _Nonnull)message file:(NSString * _Nonnull)file line:(NSUInteger)line;
|
||||||
+ (void)warn:(NSString * _Nonnull)message file:(NSString * _Nonnull)file line:(NSUInteger)line;
|
+ (void)warn:(NSString * _Nonnull)message file:(NSString * _Nonnull)file line:(NSUInteger)line;
|
@ -1,8 +1,8 @@
|
|||||||
#import <React/RCTLog.h>
|
#import <React/RCTLog.h>
|
||||||
|
|
||||||
#import "RCTSwiftLog.h"
|
#import "RCTVideoSwiftLog.h"
|
||||||
|
|
||||||
@implementation RCTSwiftLog
|
@implementation RCTVideoSwiftLog
|
||||||
|
|
||||||
+ (void)info:(NSString *)message file:(NSString *)file line:(NSUInteger)line
|
+ (void)info:(NSString *)message file:(NSString *)file line:(NSUInteger)line
|
||||||
{
|
{
|
@ -26,23 +26,23 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
func RCTLogError(_ message: String, _ file: String=#file, _ line: UInt=#line) {
|
func RCTLogError(_ message: String, _ file: String=#file, _ line: UInt=#line) {
|
||||||
RCTSwiftLog.error(message, file: file, line: line)
|
RCTVideoSwiftLog.error(message, file: file, line: line)
|
||||||
}
|
}
|
||||||
|
|
||||||
func RCTLogWarn(_ message: String, _ file: String=#file, _ line: UInt=#line) {
|
func RCTLogWarn(_ message: String, _ file: String=#file, _ line: UInt=#line) {
|
||||||
RCTSwiftLog.warn(message, file: file, line: line)
|
RCTVideoSwiftLog.warn(message, file: file, line: line)
|
||||||
}
|
}
|
||||||
|
|
||||||
func RCTLogInfo(_ message: String, _ file: String=#file, _ line: UInt=#line) {
|
func RCTLogInfo(_ message: String, _ file: String=#file, _ line: UInt=#line) {
|
||||||
RCTSwiftLog.info(message, file: file, line: line)
|
RCTVideoSwiftLog.info(message, file: file, line: line)
|
||||||
}
|
}
|
||||||
|
|
||||||
func RCTLog(_ message: String, _ file: String=#file, _ line: UInt=#line) {
|
func RCTLog(_ message: String, _ file: String=#file, _ line: UInt=#line) {
|
||||||
RCTSwiftLog.log(message, file: file, line: line)
|
RCTVideoSwiftLog.log(message, file: file, line: line)
|
||||||
}
|
}
|
||||||
|
|
||||||
func RCTLogTrace(_ message: String, _ file: String=#file, _ line: UInt=#line) {
|
func RCTLogTrace(_ message: String, _ file: String=#file, _ line: UInt=#line) {
|
||||||
RCTSwiftLog.trace(message, file: file, line: line)
|
RCTVideoSwiftLog.trace(message, file: file, line: line)
|
||||||
}
|
}
|
||||||
|
|
||||||
func DebugLog(_ message: String) {
|
func DebugLog(_ message: String) {
|
Loading…
Reference in New Issue
Block a user