Skip to content

Commit e9ce620

Browse files
authored
Fix 3p license files (#7453)
Fix the third party license files. All the 3p libs we bundle happen to be Apache-2.0, which makes this easy. We need to include the apache-2.0 text, as well as each lib's attribution notice Tested by extracting the maven artifact and inspecting the third_party_licenses.txt file
1 parent e25e52c commit e9ce620

File tree

13 files changed

+36
-212
lines changed

13 files changed

+36
-212
lines changed

firebase-appdistribution/firebase-appdistribution.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ android {
5353
}
5454

5555
thirdPartyLicenses {
56-
add 'Dagger', "${rootDir}/third_party/licenses/apache-2.0.txt"
56+
add 'Apache-2.0', "${rootDir}/third_party/licenses/apache-2.0.txt"
57+
add 'Dagger', "${rootDir}/third_party/licenses/dagger.txt"
5758
}
5859

5960
dependencies {

firebase-crashlytics-ndk/firebase-crashlytics-ndk.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,8 @@ android {
105105
}
106106

107107
thirdPartyLicenses {
108-
add 'Crashpad', "${rootDir}/third_party/licenses/apache-2.0.txt"
108+
add 'Apache-2.0', "${rootDir}/third_party/licenses/apache-2.0.txt"
109+
add 'Crashpad', "${rootDir}/third_party/licenses/crashpad.txt"
109110
}
110111

111112
dependencies {

firebase-crashlytics/firebase-crashlytics.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ android {
6363
kotlin { compilerOptions { jvmTarget = JvmTarget.JVM_1_8 } }
6464

6565
thirdPartyLicenses {
66-
add 'Tape', "${projectDir}/third_party_licenses/tape/LICENSE"
66+
add 'Apache-2.0', "${rootDir}/third_party/licenses/apache-2.0.txt"
67+
add 'Tape', "${rootDir}/third_party/licenses/tape.txt"
6768
}
6869

6970
dependencies {

firebase-crashlytics/third_party_licenses/tape/LICENSE

Lines changed: 0 additions & 202 deletions
This file was deleted.

firebase-functions/firebase-functions.gradle.kts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,10 @@ kotlin {
6262
explicitApi()
6363
}
6464

65-
thirdPartyLicenses { add("dagger2", "${projectDir}/third_party/dagger2/LICENSE") }
65+
thirdPartyLicenses {
66+
add("Apache-2.0", "${rootDir}/third_party/licenses/apache-2.0.txt")
67+
add("Dagger", "${rootDir}/third_party/licenses/dagger.txt")
68+
}
6669

6770
dependencies {
6871
javadocClasspath("org.codehaus.mojo:animal-sniffer-annotations:1.21")

firebase-inappmessaging-display/firebase-inappmessaging-display.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,8 @@ android {
8181
kotlin { compilerOptions { jvmTarget = JvmTarget.JVM_1_8 } }
8282

8383
thirdPartyLicenses {
84-
add 'Dagger', "${rootDir}/third_party/licenses/apache-2.0.txt"
84+
add 'Apache-2.0', "${rootDir}/third_party/licenses/apache-2.0.txt"
85+
add 'Dagger', "${rootDir}/third_party/licenses/dagger.txt"
8586
}
8687

8788
dependencies {

firebase-inappmessaging/firebase-inappmessaging.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,8 @@ android {
105105
kotlin { compilerOptions { jvmTarget = JvmTarget.JVM_1_8 } }
106106

107107
thirdPartyLicenses {
108-
add 'Dagger', "${rootDir}/third_party/licenses/apache-2.0.txt"
108+
add 'Apache-2.0', "${rootDir}/third_party/licenses/apache-2.0.txt"
109+
add 'Dagger', "${rootDir}/third_party/licenses/dagger.txt"
109110
}
110111

111112
dependencies {

firebase-ml-modeldownloader/firebase-ml-modeldownloader.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,8 @@ android {
7979
kotlin { compilerOptions { jvmTarget = JvmTarget.JVM_1_8 } }
8080

8181
thirdPartyLicenses {
82-
add 'Dagger', "${rootDir}/third_party/licenses/apache-2.0.txt"
82+
add 'Apache-2.0', "${rootDir}/third_party/licenses/apache-2.0.txt"
83+
add 'Dagger', "${rootDir}/third_party/licenses/dagger.txt"
8384
}
8485

8586
dependencies {

firebase-sessions/firebase-sessions.gradle.kts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,10 @@ kotlin {
6767
compilerOptions { jvmTarget = JvmTarget.JVM_1_8 }
6868
}
6969

70-
thirdPartyLicenses { add("dagger2", "${projectDir}/third_party/dagger2/LICENSE") }
70+
thirdPartyLicenses {
71+
add("Apache-2.0", "${rootDir}/third_party/licenses/apache-2.0.txt")
72+
add("Dagger", "${rootDir}/third_party/licenses/dagger.txt")
73+
}
7174

7275
dependencies {
7376
api(libs.firebase.common)

third_party/licenses/crashpad.txt

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
Copyright 2020 The Crashpad Authors
2+
3+
Licensed under the Apache License, Version 2.0 (the "License");
4+
you may not use this file except in compliance with the License.
5+
You may obtain a copy of the License at
6+
7+
http://www.apache.org/licenses/LICENSE-2.0
8+
9+
Unless required by applicable law or agreed to in writing, software
10+
distributed under the License is distributed on an "AS IS" BASIS,
11+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
See the License for the specific language governing permissions and
13+
limitations under the License.

0 commit comments

Comments
 (0)