Skip to content

Commit af5aa62

Browse files
committed
Add workaround to other gradle files.
1 parent a9f4705 commit af5aa62

File tree

30 files changed

+192
-0
lines changed

30 files changed

+192
-0
lines changed

analytics/build.gradle

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15+
import com.android.build.gradle.internal.tasks.CheckAarMetadataTask
16+
1517
buildscript {
1618
repositories {
1719
google()
@@ -86,4 +88,7 @@ apply from: "$rootDir/android_build_files/generate_proguard.gradle"
8688
project.afterEvaluate {
8789
generateProguardFile('analytics')
8890
preBuild.dependsOn(':app:build')
91+
project.tasks.withType(CheckAarMetadataTask::class.java).configureEach {
92+
enabled = false
93+
}
8994
}

analytics/integration_test/build.gradle

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
// limitations under the License.
1414

1515
// Top-level build file where you can add configuration options common to all sub-projects/modules.
16+
import com.android.build.gradle.internal.tasks.CheckAarMetadataTask
17+
1618
buildscript {
1719
repositories {
1820
mavenLocal()
@@ -96,3 +98,9 @@ task copyIntegrationTestFiles(type:Exec) {
9698
}
9799

98100
build.dependsOn(copyIntegrationTestFiles)
101+
102+
project.afterEvaluate {
103+
project.tasks.withType(CheckAarMetadataTask::class.java).configureEach {
104+
enabled = false
105+
}
106+
}

app/build.gradle

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15+
import com.android.build.gradle.internal.tasks.CheckAarMetadataTask
16+
1517
buildscript {
1618
repositories {
1719
google()
@@ -81,4 +83,7 @@ project.afterEvaluate {
8183
setupDexDependencies(':app:app_resources')
8284
setupDexDependencies(':app:google_api_resources')
8385
setupDexDependencies(':app:invites_resources')
86+
project.tasks.withType(CheckAarMetadataTask::class.java).configureEach {
87+
enabled = false
88+
}
8489
}

app/integration_test/build.gradle

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
// limitations under the License.
1414

1515
// Top-level build file where you can add configuration options common to all sub-projects/modules.
16+
import com.android.build.gradle.internal.tasks.CheckAarMetadataTask
17+
1618
buildscript {
1719
repositories {
1820
mavenLocal()
@@ -96,3 +98,9 @@ task copyIntegrationTestFiles(type:Exec) {
9698
}
9799

98100
build.dependsOn(copyIntegrationTestFiles)
101+
102+
project.afterEvaluate {
103+
project.tasks.withType(CheckAarMetadataTask::class.java).configureEach {
104+
enabled = false
105+
}
106+
}

app_check/build.gradle

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15+
import com.android.build.gradle.internal.tasks.CheckAarMetadataTask
16+
1517
buildscript {
1618
repositories {
1719
google()
@@ -87,4 +89,7 @@ project.afterEvaluate {
8789
generateProguardFile('app_check')
8890
setupDexDependencies(':app_check:app_check_resources')
8991
preBuild.dependsOn(':app:build')
92+
project.tasks.withType(CheckAarMetadataTask::class.java).configureEach {
93+
enabled = false
94+
}
9095
}

app_check/integration_test/build.gradle

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
// limitations under the License.
1414

1515
// Top-level build file where you can add configuration options common to all sub-projects/modules.
16+
import com.android.build.gradle.internal.tasks.CheckAarMetadataTask
17+
1618
buildscript {
1719
repositories {
1820
mavenLocal()
@@ -113,3 +115,9 @@ task copyIntegrationTestFiles(type:Exec) {
113115
}
114116

115117
build.dependsOn(copyIntegrationTestFiles)
118+
119+
project.afterEvaluate {
120+
project.tasks.withType(CheckAarMetadataTask::class.java).configureEach {
121+
enabled = false
122+
}
123+
}

auth/build.gradle

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15+
import com.android.build.gradle.internal.tasks.CheckAarMetadataTask
16+
1517
buildscript {
1618
repositories {
1719
google()
@@ -87,4 +89,7 @@ project.afterEvaluate {
8789
generateProguardFile('auth')
8890
setupDexDependencies(':auth:auth_resources')
8991
preBuild.dependsOn(':app:build')
92+
project.tasks.withType(CheckAarMetadataTask::class.java).configureEach {
93+
enabled = false
94+
}
9095
}

auth/integration_test/build.gradle

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
// limitations under the License.
1414

1515
// Top-level build file where you can add configuration options common to all sub-projects/modules.
16+
import com.android.build.gradle.internal.tasks.CheckAarMetadataTask
17+
1618
buildscript {
1719
repositories {
1820
mavenLocal()
@@ -100,3 +102,9 @@ task copyIntegrationTestFiles(type:Exec) {
100102
}
101103

102104
build.dependsOn(copyIntegrationTestFiles)
105+
106+
project.afterEvaluate {
107+
project.tasks.withType(CheckAarMetadataTask::class.java).configureEach {
108+
enabled = false
109+
}
110+
}

database/build.gradle

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15+
import com.android.build.gradle.internal.tasks.CheckAarMetadataTask
16+
1517
buildscript {
1618
repositories {
1719
google()
@@ -88,4 +90,7 @@ project.afterEvaluate {
8890
setupDexDependencies(':database:database_resources')
8991
preBuild.dependsOn(':app:build')
9092
preBuild.dependsOn(':auth:build')
93+
project.tasks.withType(CheckAarMetadataTask::class.java).configureEach {
94+
enabled = false
95+
}
9196
}

database/integration_test/build.gradle

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
// limitations under the License.
1414

1515
// Top-level build file where you can add configuration options common to all sub-projects/modules.
16+
import com.android.build.gradle.internal.tasks.CheckAarMetadataTask
17+
1618
buildscript {
1719
repositories {
1820
mavenLocal()
@@ -101,3 +103,9 @@ task copyIntegrationTestFiles(type:Exec) {
101103
}
102104

103105
build.dependsOn(copyIntegrationTestFiles)
106+
107+
project.afterEvaluate {
108+
project.tasks.withType(CheckAarMetadataTask::class.java).configureEach {
109+
enabled = false
110+
}
111+
}

dynamic_links/build.gradle

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15+
import com.android.build.gradle.internal.tasks.CheckAarMetadataTask
16+
1517
buildscript {
1618
repositories {
1719
google()
@@ -85,4 +87,7 @@ apply from: "$rootDir/android_build_files/generate_proguard.gradle"
8587
project.afterEvaluate {
8688
generateProguardFile('dynamic_links')
8789
preBuild.dependsOn(':app:build')
90+
project.tasks.withType(CheckAarMetadataTask::class.java).configureEach {
91+
enabled = false
92+
}
8893
}

dynamic_links/integration_test/build.gradle

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
// limitations under the License.
1414

1515
// Top-level build file where you can add configuration options common to all sub-projects/modules.
16+
import com.android.build.gradle.internal.tasks.CheckAarMetadataTask
17+
1618
buildscript {
1719
repositories {
1820
mavenLocal()
@@ -96,3 +98,9 @@ task copyIntegrationTestFiles(type:Exec) {
9698
}
9799

98100
build.dependsOn(copyIntegrationTestFiles)
101+
102+
project.afterEvaluate {
103+
project.tasks.withType(CheckAarMetadataTask::class.java).configureEach {
104+
enabled = false
105+
}
106+
}

firestore/build.gradle

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15+
import com.android.build.gradle.internal.tasks.CheckAarMetadataTask
16+
1517
buildscript {
1618
repositories {
1719
google()
@@ -89,4 +91,7 @@ project.afterEvaluate {
8991
setupDexDependencies(':firestore:firestore_resources')
9092
preBuild.dependsOn(':app:build')
9193
preBuild.dependsOn(':auth:build')
94+
project.tasks.withType(CheckAarMetadataTask::class.java).configureEach {
95+
enabled = false
96+
}
9297
}

firestore/integration_test/build.gradle

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
// limitations under the License.
1414

1515
// Top-level build file where you can add configuration options common to all sub-projects/modules.
16+
import com.android.build.gradle.internal.tasks.CheckAarMetadataTask
17+
1618
buildscript {
1719
repositories {
1820
mavenLocal()
@@ -101,3 +103,9 @@ task copyIntegrationTestFiles(type:Exec) {
101103
}
102104

103105
build.dependsOn(copyIntegrationTestFiles)
106+
107+
project.afterEvaluate {
108+
project.tasks.withType(CheckAarMetadataTask::class.java).configureEach {
109+
enabled = false
110+
}
111+
}

firestore/integration_test_internal/build.gradle

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
// limitations under the License.
1414

1515
// Top-level build file where you can add configuration options common to all sub-projects/modules.
16+
import com.android.build.gradle.internal.tasks.CheckAarMetadataTask
17+
1618
buildscript {
1719
repositories {
1820
mavenLocal()
@@ -119,3 +121,9 @@ task copyIntegrationTestFiles(type:Exec) {
119121
}
120122

121123
build.dependsOn(copyIntegrationTestFiles)
124+
125+
project.afterEvaluate {
126+
project.tasks.withType(CheckAarMetadataTask::class.java).configureEach {
127+
enabled = false
128+
}
129+
}

functions/build.gradle

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15+
import com.android.build.gradle.internal.tasks.CheckAarMetadataTask
16+
1517
buildscript {
1618
repositories {
1719
google()
@@ -86,4 +88,7 @@ project.afterEvaluate {
8688
generateProguardFile('functions')
8789
preBuild.dependsOn(':app:build')
8890
preBuild.dependsOn(':auth:build')
91+
project.tasks.withType(CheckAarMetadataTask::class.java).configureEach {
92+
enabled = false
93+
}
8994
}

functions/integration_test/build.gradle

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
// limitations under the License.
1414

1515
// Top-level build file where you can add configuration options common to all sub-projects/modules.
16+
import com.android.build.gradle.internal.tasks.CheckAarMetadataTask
17+
1618
buildscript {
1719
repositories {
1820
mavenLocal()
@@ -101,3 +103,9 @@ task copyIntegrationTestFiles(type:Exec) {
101103
}
102104

103105
build.dependsOn(copyIntegrationTestFiles)
106+
107+
project.afterEvaluate {
108+
project.tasks.withType(CheckAarMetadataTask::class.java).configureEach {
109+
enabled = false
110+
}
111+
}

gma/build.gradle

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15+
import com.android.build.gradle.internal.tasks.CheckAarMetadataTask
16+
1517
buildscript {
1618
repositories {
1719
google()
@@ -87,4 +89,7 @@ project.afterEvaluate {
8789
generateProguardFile('gma')
8890
setupDexDependencies(':gma:gma_resources')
8991
preBuild.dependsOn(':app:build')
92+
project.tasks.withType(CheckAarMetadataTask::class.java).configureEach {
93+
enabled = false
94+
}
9095
}

gma/integration_test/build.gradle

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
// limitations under the License.
1414

1515
// Top-level build file where you can add configuration options common to all sub-projects/modules.
16+
import com.android.build.gradle.internal.tasks.CheckAarMetadataTask
17+
1618
buildscript {
1719
repositories {
1820
mavenLocal()
@@ -100,3 +102,9 @@ task copyIntegrationTestFiles(type:Exec) {
100102
}
101103

102104
build.dependsOn(copyIntegrationTestFiles)
105+
106+
project.afterEvaluate {
107+
project.tasks.withType(CheckAarMetadataTask::class.java).configureEach {
108+
enabled = false
109+
}
110+
}

installations/build.gradle

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15+
import com.android.build.gradle.internal.tasks.CheckAarMetadataTask
16+
1517
buildscript {
1618
repositories {
1719
google()
@@ -85,4 +87,7 @@ apply from: "$rootDir/android_build_files/generate_proguard.gradle"
8587
project.afterEvaluate {
8688
generateProguardFile('installations')
8789
preBuild.dependsOn(':app:build')
90+
project.tasks.withType(CheckAarMetadataTask::class.java).configureEach {
91+
enabled = false
92+
}
8893
}

installations/integration_test/build.gradle

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
// limitations under the License.
1414

1515
// Top-level build file where you can add configuration options common to all sub-projects/modules.
16+
import com.android.build.gradle.internal.tasks.CheckAarMetadataTask
17+
1618
buildscript {
1719
repositories {
1820
mavenLocal()
@@ -96,3 +98,9 @@ task copyIntegrationTestFiles(type:Exec) {
9698
}
9799

98100
build.dependsOn(copyIntegrationTestFiles)
101+
102+
project.afterEvaluate {
103+
project.tasks.withType(CheckAarMetadataTask::class.java).configureEach {
104+
enabled = false
105+
}
106+
}

messaging/build.gradle

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15+
import com.android.build.gradle.internal.tasks.CheckAarMetadataTask
16+
1517
buildscript {
1618
repositories {
1719
google()
@@ -87,4 +89,7 @@ apply from: "$rootDir/android_build_files/generate_proguard.gradle"
8789
project.afterEvaluate {
8890
generateProguardFile('messaging')
8991
preBuild.dependsOn(':app:build')
92+
project.tasks.withType(CheckAarMetadataTask::class.java).configureEach {
93+
enabled = false
94+
}
9095
}

0 commit comments

Comments
 (0)