Skip to content

Commit 31b43e5

Browse files
authored
Fix SPM analytics warning introduced yesterday (#6504)
1 parent 8cfe3b4 commit 31b43e5

File tree

4 files changed

+36
-3
lines changed

4 files changed

+36
-3
lines changed

FirebaseAnalyticsWrapper/dummy.m

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
/*
2+
* Copyright 2020 Google LLC
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
// Swift Package Manager needs at least one source file.
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/*
2+
* Copyright 2020 Google LLC
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
// Swift Package Manager needs at least one header to prevent a warning. See
18+
// https://github.com/firebase/firebase-ios-sdk/pull/6504.

Package.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,6 @@ let package = Package(
214214
.product(name: "nanopb", package: "nanopb"),
215215
],
216216
path: "FirebaseAnalyticsWrapper",
217-
publicHeadersPath: "Public",
218217
linkerSettings: [
219218
.linkedLibrary("sqlite3"),
220219
.linkedLibrary("c++"),

scripts/check_copyright.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@ options=(
2424
list=$(git grep "${options[@]}" -- \
2525
'*.'{c,cc,cmake,h,js,m,mm,py,rb,sh,swift} \
2626
CMakeLists.txt '**/CMakeLists.txt' \
27-
':(exclude)**/third_party/**' \
28-
':(exclude)FirebaseAnalyticsWrapper/**')
27+
':(exclude)**/third_party/**')
2928

3029
# Allow copyrights before 2020 without LLC.
3130
result=$(grep -L 'Copyright 20[0-1][0-9].*Google' $list)

0 commit comments

Comments
 (0)