Skip to content

Commit 0816190

Browse files
author
man.li
committed
remove protobuf
1 parent a199767 commit 0816190

File tree

67 files changed

+65
-42693
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+65
-42693
lines changed

CocoaDebug.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Pod::Spec.new do |s|
1111
s.requires_arc = true
1212
s.platform = :ios, "8.0"
1313
s.swift_version = '5.0'
14-
s.version = '0.8.0'
14+
s.version = '0.8.1'
1515
s.source = { :git => "https://github.com/CocoaDebug/CocoaDebug.git", :branch => 'master', :tag => s.version.to_s }
1616
s.requires_arc = false
1717
s.requires_arc =

Example_Objc.xcodeproj/project.pbxproj

Lines changed: 0 additions & 188 deletions
Large diffs are not rendered by default.

Sources/Core/CocoaDebug+Extensions.swift

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -151,17 +151,17 @@ extension Data {
151151
return str
152152
} else {
153153
//2.protobuf
154-
if let message = try? _GPBMessage.parse(from: self) {
155-
if message.serializedSize() > 0 {
156-
return message.description
157-
} else {
158-
//3.utf-8 string
159-
return String(data: self, encoding: .utf8)
160-
}
161-
} else {
154+
// if let message = try? _GPBMessage.parse(from: self) {
155+
// if message.serializedSize() > 0 {
156+
// return message.description
157+
// } else {
158+
// //3.utf-8 string
159+
// return String(data: self, encoding: .utf8)
160+
// }
161+
// } else {
162162
//3.utf-8 string
163163
return String(data: self, encoding: .utf8)
164-
}
164+
// }
165165
}
166166
}
167167
}

Sources/Core/CocoaDebug.h

Lines changed: 39 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -22,44 +22,6 @@
2222
#import "_HttpDatasource.h"
2323
#import "_HttpModel.h"
2424
#import "_NetworkHelper.h"
25-
#import "_Any.pbobjc.h"
26-
#import "_Api.pbobjc.h"
27-
#import "_Duration.pbobjc.h"
28-
#import "_Empty.pbobjc.h"
29-
#import "_FieldMask.pbobjc.h"
30-
#import "_SourceContext.pbobjc.h"
31-
#import "_Struct.pbobjc.h"
32-
#import "_Timestamp.pbobjc.h"
33-
#import "_Type.pbobjc.h"
34-
#import "_Wrappers.pbobjc.h"
35-
#import "_GPBArray.h"
36-
#import "_GPBArray_PackagePrivate.h"
37-
#import "_GPBBootstrap.h"
38-
#import "_GPBCodedInputStream.h"
39-
#import "_GPBCodedInputStream_PackagePrivate.h"
40-
#import "_GPBCodedOutputStream.h"
41-
#import "_GPBCodedOutputStream_PackagePrivate.h"
42-
#import "_GPBDescriptor.h"
43-
#import "_GPBDescriptor_PackagePrivate.h"
44-
#import "_GPBDictionary.h"
45-
#import "_GPBDictionary_PackagePrivate.h"
46-
#import "_GPBExtensionInternals.h"
47-
#import "_GPBExtensionRegistry.h"
48-
#import "_GPBMessage.h"
49-
#import "_GPBMessage_PackagePrivate.h"
50-
#import "_GPBProtocolBuffers.h"
51-
#import "_GPBProtocolBuffers_RuntimeSupport.h"
52-
#import "_GPBRootObject.h"
53-
#import "_GPBRootObject_PackagePrivate.h"
54-
#import "_GPBRuntimeTypes.h"
55-
#import "_GPBUnknownField.h"
56-
#import "_GPBUnknownFieldSet.h"
57-
#import "_GPBUnknownFieldSet_PackagePrivate.h"
58-
#import "_GPBUnknownField_PackagePrivate.h"
59-
#import "_GPBUtilities.h"
60-
#import "_GPBUtilities_PackagePrivate.h"
61-
#import "_GPBWellKnownTypes.h"
62-
#import "_GPBWireFormat.h"
6325
#import "_MLBDirectoryContentsTableViewController.h"
6426
#import "_MLBFileInfo.h"
6527
#import "_MLBFilePreviewController.h"
@@ -76,5 +38,44 @@
7638
#import "_WHDebugMemoryMonitor.h"
7739
#import "_WHDebugMonitor.h"
7840
#import "_fishhook.h"
41+
//#import "_Any.pbobjc.h"
42+
//#import "_Api.pbobjc.h"
43+
//#import "_Duration.pbobjc.h"
44+
//#import "_Empty.pbobjc.h"
45+
//#import "_FieldMask.pbobjc.h"
46+
//#import "_SourceContext.pbobjc.h"
47+
//#import "_Struct.pbobjc.h"
48+
//#import "_Timestamp.pbobjc.h"
49+
//#import "_Type.pbobjc.h"
50+
//#import "_Wrappers.pbobjc.h"
51+
//#import "_GPBArray.h"
52+
//#import "_GPBArray_PackagePrivate.h"
53+
//#import "_GPBBootstrap.h"
54+
//#import "_GPBCodedInputStream.h"
55+
//#import "_GPBCodedInputStream_PackagePrivate.h"
56+
//#import "_GPBCodedOutputStream.h"
57+
//#import "_GPBCodedOutputStream_PackagePrivate.h"
58+
//#import "_GPBDescriptor.h"
59+
//#import "_GPBDescriptor_PackagePrivate.h"
60+
//#import "_GPBDictionary.h"
61+
//#import "_GPBDictionary_PackagePrivate.h"
62+
//#import "_GPBExtensionInternals.h"
63+
//#import "_GPBExtensionRegistry.h"
64+
//#import "_GPBMessage.h"
65+
//#import "_GPBMessage_PackagePrivate.h"
66+
//#import "_GPBProtocolBuffers.h"
67+
//#import "_GPBProtocolBuffers_RuntimeSupport.h"
68+
//#import "_GPBRootObject.h"
69+
//#import "_GPBRootObject_PackagePrivate.h"
70+
//#import "_GPBRuntimeTypes.h"
71+
//#import "_GPBUnknownField.h"
72+
//#import "_GPBUnknownFieldSet.h"
73+
//#import "_GPBUnknownFieldSet_PackagePrivate.h"
74+
//#import "_GPBUnknownField_PackagePrivate.h"
75+
//#import "_GPBUtilities.h"
76+
//#import "_GPBUtilities_PackagePrivate.h"
77+
//#import "_GPBWellKnownTypes.h"
78+
//#import "_GPBWireFormat.h"
79+
7980

8081

Sources/Logs/_TCPLogger.m

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
#import "_TCPLogger.h"
1010
#import "_OCLogHelper.h"
11-
#import "_GPBMessage.h"
11+
//#import "_GPBMessage.h"
1212

1313
@implementation _TCPLogger
1414

@@ -22,24 +22,24 @@ + (void)logWithData:(NSData *)data {
2222
}
2323

2424
//2.protobuf
25-
_GPBMessage *message = [_GPBMessage parseFromData:data error:nil];
26-
if (message) {
27-
28-
if ([message serializedSize] > 0) {
29-
[self logWithString:[message description]];
30-
return;
31-
32-
} else {
33-
//3.utf-8 string
34-
[self logWithString:[[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding]];
35-
return;
36-
}
37-
38-
} else {
25+
// _GPBMessage *message = [_GPBMessage parseFromData:data error:nil];
26+
// if (message) {
27+
//
28+
// if ([message serializedSize] > 0) {
29+
// [self logWithString:[message description]];
30+
// return;
31+
//
32+
// } else {
33+
// //3.utf-8 string
34+
// [self logWithString:[[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding]];
35+
// return;
36+
// }
37+
//
38+
// } else {
3939
//3.utf-8 string
4040
[self logWithString:[[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding]];
4141
return;
42-
}
42+
// }
4343
}
4444

4545

0 commit comments

Comments
 (0)