Skip to content

Commit a32853c

Browse files
authored
Restore check_imports GDT exception (#9751)
1 parent 84de6ac commit a32853c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

scripts/check_imports.swift

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,10 @@ private func checkFile(_ file: String, logger: ErrorLogger, inRepo repoURL: URL)
7474
// Not a source file, give up and return.
7575
return
7676
}
77-
let isPublic = file.range(of: "/Public/") != nil
77+
let isPublic = file.range(of: "/Public/") != nil &&
78+
// TODO: Skip legacy GDTCCTLibrary file that isn't Public and should be moved.
79+
// This test is used in the GoogleDataTransport's repo's CI clone of this repo.
80+
file.range(of: "GDTCCTLibrary/Public/GDTCOREvent+GDTCCTSupport.h") == nil
7881
let isPrivate = file.range(of: "/Sources/Private/") != nil ||
7982
// Delete when FirebaseInstallations fixes directory structure.
8083
file.range(of: "Source/Library/Private/FirebaseInstallationsInternal.h") != nil ||

0 commit comments

Comments
 (0)