Skip to content

Commit a372ed2

Browse files
authored
import nanopb without touching CocoaPods imports (#6165)
1 parent 0b977bd commit a372ed2

File tree

6 files changed

+1
-21
lines changed

6 files changed

+1
-21
lines changed

Crashlytics/Crashlytics/Models/Record/FIRCLSReportAdapter.m

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,9 @@
2222

2323
#import "Crashlytics/Crashlytics/Components/FIRCLSUserLogging.h"
2424

25-
#if SWIFT_PACKAGE
26-
@import nanopb;
27-
#else
2825
#import <nanopb/pb.h>
2926
#import <nanopb/pb_decode.h>
3027
#import <nanopb/pb_encode.h>
31-
#endif
3228

3329
@implementation FIRCLSReportAdapter
3430

Crashlytics/Protogen/nanopb/crashlytics.nanopb.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,7 @@
1919

2020
#ifndef PB_GOOGLE_CRASHLYTICS_CRASHLYTICS_NANOPB_H_INCLUDED
2121
#define PB_GOOGLE_CRASHLYTICS_CRASHLYTICS_NANOPB_H_INCLUDED
22-
#if SWIFT_PACKAGE
23-
#include "nanopb.h"
24-
#else
2522
#include <nanopb/pb.h>
26-
#endif
2723

2824
/* @@protoc_insertion_point(includes) */
2925
#if PB_PROTO_HEADER_VERSION != 30

GoogleDataTransport/GDTCCTLibrary/GDTCCTNanopbHelpers.m

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,9 @@
2727
#import "GoogleDataTransport/GDTCORLibrary/Public/GDTCOREvent.h"
2828
#import "GoogleDataTransport/GDTCORLibrary/Public/GDTCORPlatform.h"
2929

30-
#if SWIFT_PACKAGE
31-
#import "nanopb.h"
32-
#else
3330
#import <nanopb/pb.h>
3431
#import <nanopb/pb_decode.h>
3532
#import <nanopb/pb_encode.h>
36-
#endif
3733

3834
#import "GoogleDataTransport/GDTCCTLibrary/Public/GDTCOREvent+GDTCCTSupport.h"
3935

GoogleDataTransport/GDTCCTLibrary/GDTCCTUploader.m

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,9 @@
2222
#import "GoogleDataTransport/GDTCORLibrary/Public/GDTCORRegistrar.h"
2323
#import "GoogleDataTransport/GDTCORLibrary/Public/GDTCORStorageProtocol.h"
2424

25-
#if SWIFT_PACKAGE
26-
#import "nanopb.h"
27-
#else
2825
#import <nanopb/pb.h>
2926
#import <nanopb/pb_decode.h>
3027
#import <nanopb/pb_encode.h>
31-
#endif
3228

3329
#import "GoogleDataTransport/GDTCCTLibrary/Private/GDTCCTCompressionHelper.h"
3430
#import "GoogleDataTransport/GDTCCTLibrary/Private/GDTCCTNanopbHelpers.h"

GoogleDataTransport/GDTCCTLibrary/Protogen/nanopb/cct.nanopb.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,7 @@
1919

2020
#ifndef PB_GDT_CCT_CCT_NANOPB_H_INCLUDED
2121
#define PB_GDT_CCT_CCT_NANOPB_H_INCLUDED
22-
#if SWIFT_PACKAGE
23-
#include "nanopb.h"
24-
#else
2522
#include <nanopb/pb.h>
26-
#endif
2723

2824
/* @@protoc_insertion_point(includes) */
2925
#if PB_PROTO_HEADER_VERSION != 30

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ let package = Package(
8282
.package(
8383
name: "nanopb",
8484
url: "https://github.com/paulb777/nanopb.git",
85-
.branch("swift-package-manager")
85+
.revision("82230e9998a35a3d2144884204db64f045c880c4")
8686
),
8787
.package(name: "OCMock", url: "https://github.com/paulb777/ocmock.git", .revision("7291762")),
8888
.package(name: "leveldb", url: "https://github.com/paulb777/leveldb.git", .revision("3f04697")),

0 commit comments

Comments
 (0)