File tree Expand file tree Collapse file tree 12 files changed +40
-23
lines changed
Crashlytics/Models/Record
Analytics/Protogen/nanopb
Sources/Analytics/Protogen/nanopb Expand file tree Collapse file tree 12 files changed +40
-23
lines changed Original file line number Diff line number Diff line change 22
22
23
23
#import " Crashlytics/Crashlytics/Components/FIRCLSUserLogging.h"
24
24
25
- #import " pb.h"
26
- #import " pb_decode.h"
27
- #import " pb_encode.h"
25
+ #if SWIFT_PACKAGE
26
+ @import nanopb;
27
+ #else
28
+ #import < nanopb/pb.h>
29
+ #import < nanopb/pb_decode.h>
30
+ #import < nanopb/pb_encode.h>
31
+ #endif
28
32
29
33
@implementation FIRCLSReportAdapter
30
34
Original file line number Diff line number Diff line change @@ -262,8 +262,8 @@ def nanopb_rename_delete(lines):
262
262
263
263
264
264
def nanopb_use_module_import (lines ):
265
- """Changes #include <pb.h> to include " pb.h" """ # Don't let Copybara alter these lines.
266
- return [line .replace ('#include <pb.h>' , '{}include " pb.h" ' .format ("#" )) for line in lines ]
265
+ """Changes #include <pb.h> to include <nanopb/ pb.h> """ # Don't let Copybara alter these lines.
266
+ return [line .replace ('#include <pb.h>' , '{}include <nanopb/ pb.h> ' .format ("#" )) for line in lines ]
267
267
268
268
269
269
def strip_trailing_whitespace (lines ):
Original file line number Diff line number Diff line change 19
19
20
20
#ifndef PB_GOOGLE_CRASHLYTICS_CRASHLYTICS_NANOPB_H_INCLUDED
21
21
#define PB_GOOGLE_CRASHLYTICS_CRASHLYTICS_NANOPB_H_INCLUDED
22
-
23
- #include "pb.h"
22
+ #if SWIFT_PACKAGE
23
+ #include "nanopb.h"
24
+ #else
25
+ #include <nanopb/pb.h>
26
+ #endif
24
27
25
28
/* @@protoc_insertion_point(includes) */
26
29
#if PB_PROTO_HEADER_VERSION != 30
Original file line number Diff line number Diff line change 19
19
20
20
#ifndef PB_LOGS_PROTO_FIREBASE_INAPPMESSAGING_FIAM_NANOPB_H_INCLUDED
21
21
#define PB_LOGS_PROTO_FIREBASE_INAPPMESSAGING_FIAM_NANOPB_H_INCLUDED
22
- #include " pb.h"
22
+ #include <nanopb/ pb.h>
23
23
24
24
/* @@protoc_insertion_point(includes) */
25
25
#if PB_PROTO_HEADER_VERSION != 30
Original file line number Diff line number Diff line change @@ -262,8 +262,8 @@ def nanopb_rename_delete(lines):
262
262
263
263
264
264
def nanopb_use_module_import (lines ):
265
- """Changes #include <pb.h> to include " pb.h" """ # Don't let Copybara alter these lines.
266
- return [line .replace ('#include <pb.h>' , '{}include " pb.h" ' .format ("#" )) for line in lines ]
265
+ """Changes #include <pb.h> to include <nanopb/ pb.h> """ # Don't let Copybara alter these lines.
266
+ return [line .replace ('#include <pb.h>' , '{}include <nanopb/ pb.h> ' .format ("#" )) for line in lines ]
267
267
268
268
269
269
def strip_trailing_whitespace (lines ):
Original file line number Diff line number Diff line change 19
19
20
20
#ifndef PB_LOGS_PROTO_FIREBASE_INAPPMESSAGING_FIAM_NANOPB_H_INCLUDED
21
21
#define PB_LOGS_PROTO_FIREBASE_INAPPMESSAGING_FIAM_NANOPB_H_INCLUDED
22
- #include " pb.h"
22
+ #include <nanopb/ pb.h>
23
23
24
24
/* @@protoc_insertion_point(includes) */
25
25
#if PB_PROTO_HEADER_VERSION != 30
Original file line number Diff line number Diff line change 27
27
#import " GoogleDataTransport/GDTCORLibrary/Public/GDTCOREvent.h"
28
28
#import " GoogleDataTransport/GDTCORLibrary/Public/GDTCORPlatform.h"
29
29
30
- #import " pb.h"
31
- #import " pb_decode.h"
32
- #import " pb_encode.h"
30
+ #if SWIFT_PACKAGE
31
+ #import " nanopb.h"
32
+ #else
33
+ #import < nanopb/pb.h>
34
+ #import < nanopb/pb_decode.h>
35
+ #import < nanopb/pb_encode.h>
36
+ #endif
33
37
34
38
#import " GoogleDataTransport/GDTCCTLibrary/Public/GDTCOREvent+GDTCCTSupport.h"
35
39
Original file line number Diff line number Diff line change 22
22
#import " GoogleDataTransport/GDTCORLibrary/Public/GDTCORRegistrar.h"
23
23
#import " GoogleDataTransport/GDTCORLibrary/Public/GDTCORStorageProtocol.h"
24
24
25
- #import " pb.h"
26
- #import " pb_decode.h"
27
- #import " pb_encode.h"
25
+ #if SWIFT_PACKAGE
26
+ #import " nanopb.h"
27
+ #else
28
+ #import < nanopb/pb.h>
29
+ #import < nanopb/pb_decode.h>
30
+ #import < nanopb/pb_encode.h>
31
+ #endif
28
32
29
33
#import " GoogleDataTransport/GDTCCTLibrary/Private/GDTCCTCompressionHelper.h"
30
34
#import " GoogleDataTransport/GDTCCTLibrary/Private/GDTCCTNanopbHelpers.h"
Original file line number Diff line number Diff line change 19
19
20
20
#ifndef PB_GDT_CCT_CCT_NANOPB_H_INCLUDED
21
21
#define PB_GDT_CCT_CCT_NANOPB_H_INCLUDED
22
-
23
- #include "pb.h"
22
+ #if SWIFT_PACKAGE
23
+ #include "nanopb.h"
24
+ #else
25
+ #include <nanopb/pb.h>
26
+ #endif
24
27
25
28
/* @@protoc_insertion_point(includes) */
26
29
#if PB_PROTO_HEADER_VERSION != 30
Original file line number Diff line number Diff line change @@ -262,8 +262,8 @@ def nanopb_rename_delete(lines):
262
262
263
263
264
264
def nanopb_use_module_import (lines ):
265
- """Changes #include <pb.h> to include " pb.h" """ # Don't let Copybara alter these lines.
266
- return [line .replace ('#include <pb.h>' , '{}include " pb.h" ' .format ("#" )) for line in lines ]
265
+ """Changes #include <pb.h> to include <nanopb/ pb.h> """ # Don't let Copybara alter these lines.
266
+ return [line .replace ('#include <pb.h>' , '{}include <nanopb/ pb.h> ' .format ("#" )) for line in lines ]
267
267
268
268
269
269
def strip_trailing_whitespace (lines ):
You can’t perform that action at this time.
0 commit comments