🚫 Removed RCTSwiftLog
This commit is contained in:
parent
cb7d504ebb
commit
ebfa1cc5f4
@ -12,8 +12,6 @@
|
||||
88DAC6B6273DE44B00AB068F /* RCTContextMenuButtonManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 88DAC6A2273DE44A00AB068F /* RCTContextMenuButtonManager.m */; };
|
||||
88DAC6B7273DE44B00AB068F /* RCTContextMenuButton.swift in Sources */ = {isa = PBXBuildFile; fileRef = 88DAC6A3273DE44A00AB068F /* RCTContextMenuButton.swift */; };
|
||||
88DAC6B8273DE44B00AB068F /* RCTContextMenuButtonManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = 88DAC6A4273DE44A00AB068F /* RCTContextMenuButtonManager.swift */; };
|
||||
88DAC6B9273DE44B00AB068F /* RCTSwiftLog.m in Sources */ = {isa = PBXBuildFile; fileRef = 88DAC6A6273DE44A00AB068F /* RCTSwiftLog.m */; };
|
||||
88DAC6BA273DE44B00AB068F /* RCTLog.swift in Sources */ = {isa = PBXBuildFile; fileRef = 88DAC6A7273DE44A00AB068F /* RCTLog.swift */; };
|
||||
88DAC6BB273DE44B00AB068F /* RCTContextMenuViewManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = 88DAC6AA273DE44A00AB068F /* RCTContextMenuViewManager.swift */; };
|
||||
88DAC6BC273DE44B00AB068F /* RCTContextMenuView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 88DAC6AB273DE44B00AB068F /* RCTContextMenuView.swift */; };
|
||||
88DAC6BD273DE44B00AB068F /* RCTContextMenuViewManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 88DAC6AC273DE44B00AB068F /* RCTContextMenuViewManager.m */; };
|
||||
@ -216,7 +214,6 @@
|
||||
isa = PBXSourcesBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
88DAC6BA273DE44B00AB068F /* RCTLog.swift in Sources */,
|
||||
88DAC6BD273DE44B00AB068F /* RCTContextMenuViewManager.m in Sources */,
|
||||
88DAC6BE273DE44B00AB068F /* RCTContextMenuPreviewController.swift in Sources */,
|
||||
88DAC6B7273DE44B00AB068F /* RCTContextMenuButton.swift in Sources */,
|
||||
@ -224,7 +221,6 @@
|
||||
88DAC6C1273DE44B00AB068F /* RCTMenuElement.swift in Sources */,
|
||||
88DAC6BB273DE44B00AB068F /* RCTContextMenuViewManager.swift in Sources */,
|
||||
88DAC6C2273DE44B00AB068F /* RCTMenuImageType.swift in Sources */,
|
||||
88DAC6B9273DE44B00AB068F /* RCTSwiftLog.m in Sources */,
|
||||
88DAC6C3273DE44B00AB068F /* RCTMenuItem.swift in Sources */,
|
||||
88DAC6BF273DE44B00AB068F /* RCTMenuPreviewConfig.swift in Sources */,
|
||||
88DAC6B5273DE44B00AB068F /* Encodable+Helpers.swift in Sources */,
|
||||
|
||||
@ -10,6 +10,3 @@
|
||||
#import <React/RCTConvert.h>
|
||||
#import <React/RCTImageSource.h>
|
||||
#import <React/RCTImageLoader.h>
|
||||
|
||||
#import "RCTSwiftLog.h"
|
||||
#import <React/RCTLog.h>
|
||||
|
||||
@ -1,33 +0,0 @@
|
||||
//
|
||||
// RCTLog.swift
|
||||
// nativeUIModulesTest
|
||||
//
|
||||
// Created by Dominic Go on 6/27/20.
|
||||
//
|
||||
|
||||
import Foundation
|
||||
|
||||
internal class RCTSwiftLog {
|
||||
func error(_ message: String, _ file: String=#file, _ line: UInt=#line) {
|
||||
RCTContextMenuSwiftLog.error(message, file: file, line: line);
|
||||
};
|
||||
|
||||
func warn(_ message: String, _ file: String=#file, _ line: UInt=#line) {
|
||||
RCTContextMenuSwiftLog.warn(message, file: file, line: line);
|
||||
};
|
||||
|
||||
func info(_ message: String, _ file: String=#file, _ line: UInt=#line) {
|
||||
RCTContextMenuSwiftLog.info(message, file: file, line: line);
|
||||
};
|
||||
|
||||
func log(_ message: String, _ file: String=#file, _ line: UInt=#line) {
|
||||
RCTContextMenuSwiftLog.log(message, file: file, line: line);
|
||||
};
|
||||
|
||||
func trace(_ message: String, _ file: String=#file, _ line: UInt=#line) {
|
||||
RCTContextMenuSwiftLog.trace(message, file: file, line: line);
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
|
||||
@ -1,18 +0,0 @@
|
||||
//
|
||||
// RCTSwiftLog.h
|
||||
// nativeUIModulesTest
|
||||
//
|
||||
// Created by Dominic Go on 6/27/20.
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
@interface RCTContextMenuSwiftLog : NSObject
|
||||
|
||||
+ (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)info:(NSString * _Nonnull)message file:(NSString * _Nonnull)file line:(NSUInteger)line;
|
||||
+ (void)log:(NSString * _Nonnull)message file:(NSString * _Nonnull)file line:(NSUInteger)line;
|
||||
+ (void)trace:(NSString * _Nonnull)message file:(NSString * _Nonnull)file line:(NSUInteger)line;
|
||||
|
||||
@end
|
||||
@ -1,38 +0,0 @@
|
||||
//
|
||||
// RCTSwiftLog.m
|
||||
// nativeUIModulesTest
|
||||
//
|
||||
// Created by Dominic Go on 6/27/20.
|
||||
//
|
||||
|
||||
#import <React/RCTLog.h>
|
||||
#import "RCTSwiftLog.h"
|
||||
|
||||
@implementation RCTContextMenuSwiftLog
|
||||
|
||||
+ (void)info:(NSString *)message file:(NSString *)file line:(NSUInteger)line
|
||||
{
|
||||
_RCTLogNativeInternal(RCTLogLevelInfo, file.UTF8String, (int)line, @"%@", message);
|
||||
}
|
||||
|
||||
+ (void)warn:(NSString *)message file:(NSString *)file line:(NSUInteger)line
|
||||
{
|
||||
_RCTLogNativeInternal(RCTLogLevelWarning, file.UTF8String, (int)line, @"%@", message);
|
||||
}
|
||||
|
||||
+ (void)error:(NSString *)message file:(NSString *)file line:(NSUInteger)line
|
||||
{
|
||||
_RCTLogNativeInternal(RCTLogLevelError, file.UTF8String, (int)line, @"%@", message);
|
||||
}
|
||||
|
||||
+ (void)log:(NSString *)message file:(NSString *)file line:(NSUInteger)line
|
||||
{
|
||||
_RCTLogNativeInternal(RCTLogLevelInfo, file.UTF8String, (int)line, @"%@", message);
|
||||
}
|
||||
|
||||
+ (void)trace:(NSString *)message file:(NSString *)file line:(NSUInteger)line
|
||||
{
|
||||
_RCTLogNativeInternal(RCTLogLevelTrace, file.UTF8String, (int)line, @"%@", message);
|
||||
}
|
||||
|
||||
@end
|
||||
Loading…
Reference in New Issue
Block a user