Skip to content

Commit 1de3d2f

Browse files
committed
Undo agp upgrade
1 parent 9765ba2 commit 1de3d2f

File tree

35 files changed

+39
-117
lines changed

35 files changed

+39
-117
lines changed

build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ buildscript {
2929
}
3030

3131
dependencies {
32-
classpath 'com.android.tools.build:gradle:4.1.0-rc01'
32+
classpath 'com.android.tools.build:gradle:4.0.0'
3333
classpath 'com.google.protobuf:protobuf-gradle-plugin:0.8.12'
3434
classpath 'net.ltgt.gradle:gradle-errorprone-plugin:1.2.1'
3535
classpath 'org.jsoup:jsoup:1.13.1'

buildSrc/build.gradle

+2-6
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
// limitations under the License.
1414

1515
plugins {
16-
id "org.gradle.kotlin.kotlin-dsl" version "1.3.6"
16+
id "org.gradle.kotlin.kotlin-dsl" version "1.2.6"
1717
id "org.jlleitschuh.gradle.ktlint" version "9.2.1"
1818
}
1919

@@ -47,7 +47,7 @@ dependencies {
4747
runtime 'io.opencensus:opencensus-impl:0.18.0'
4848
implementation group: 'com.google.code.gson', name: 'gson', version: '2.8.6'
4949
implementation 'org.jetbrains.dokka:dokka-android-gradle-plugin:0.9.17-g013-9b8280a'
50-
implementation 'com.android.tools.build:gradle:4.1.0-rc01'
50+
implementation 'com.android.tools.build:gradle:3.4.2'
5151

5252
testImplementation 'junit:junit:4.13-rc-1'
5353
testImplementation group: 'com.google.code.gson', name: 'gson', version: '2.8.6'
@@ -92,7 +92,3 @@ test {
9292
}
9393
enabled = rootProject.properties.get('enablePluginTests', false).toBoolean()
9494
}
95-
96-
tasks.named("validatePlugins") {
97-
failOnWarning = false
98-
}

buildSrc/src/main/java/com/google/firebase/gradle/plugins/FirebaseLibraryPlugin.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818

1919
import com.android.build.gradle.LibraryExtension;
2020
import com.android.build.gradle.api.AndroidSourceSet;
21-
import com.android.build.gradle.internal.dsl.TestOptions;
2221
import com.google.common.collect.ImmutableList;
2322
import com.google.common.collect.ImmutableMap;
2423
import com.google.firebase.gradle.plugins.apiinfo.ApiInformationTask;
@@ -59,7 +58,7 @@ public void apply(Project project) {
5958

6059
// see https://github.com/robolectric/robolectric/issues/5456
6160
android.testOptions(
62-
(TestOptions options) ->
61+
options ->
6362
options
6463
.getUnitTests()
6564
.all(

buildSrc/src/main/java/com/google/firebase/gradle/plugins/ci/Coverage.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public static void apply(FirebaseLibraryExtension firebaseLibrary) {
6666
.add("**Manifest*.*")
6767
.build();
6868

69-
task.getClassDirectories().from(
69+
task.setClassDirectories(
7070
project.files(
7171
project.fileTree(
7272
ImmutableMap.of(
@@ -80,8 +80,8 @@ public static void apply(FirebaseLibraryExtension firebaseLibrary) {
8080
project.getBuildDir() + "/tmp/kotlin-classes/release",
8181
"excludes",
8282
excludes))));
83-
task.getSourceDirectories().from(project.files("src/main/java", "src/main/kotlin"));
84-
task.getExecutionData().from(
83+
task.setSourceDirectories(project.files("src/main/java", "src/main/kotlin"));
84+
task.setExecutionData(
8585
project.fileTree(
8686
ImmutableMap.of(
8787
"dir",

buildSrc/src/test/kotlin/com/google/firebase/gradle/plugins/VendorTests.kt

+2-2
Original file line numberDiff line numberDiff line change
@@ -139,9 +139,9 @@ class VendorPluginTests {
139139
google()
140140
jcenter()
141141
}
142-
142+
143143
android.compileSdkVersion = 26
144-
144+
145145
dependencies {
146146
$deps
147147
}

firebase-common/firebase-common.gradle

-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ android {
3333
versionName version
3434
multiDexEnabled true
3535
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
36-
testInstrumentationRunnerArguments 'hello': 'world', 'foo': 'bar'
3736
}
3837
sourceSets {
3938
androidTest {

firebase-common/gradle.properties

+1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
version=19.3.1
22
latestReleasedVersion=19.3.0
3+
android.enableUnitTestBinaryResources=true

firebase-common/ktx/gradle.properties

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
android.enableUnitTestBinaryResources=true

firebase-config/gradle.properties

+2
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,5 @@
1616

1717
version=19.2.1
1818
latestReleasedVersion=19.2.0
19+
android.enableUnitTestBinaryResources=true
20+

firebase-config/ktx/gradle.properties

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
android.enableUnitTestBinaryResources=true
2+

firebase-crashlytics-ndk/.cxx/ndk_locator_record_1s6d6z5g.json

-11
This file was deleted.

firebase-crashlytics-ndk/.cxx/ndk_locator_record_1s6d6z5g.log

-26
This file was deleted.

firebase-crashlytics-ndk/.cxx/ndk_locator_record_1s6d6z5g_key.json

-7
This file was deleted.

firebase-crashlytics-ndk/.cxx/ndk_locator_record_3nr3d4x5.json

-11
This file was deleted.

firebase-crashlytics-ndk/.cxx/ndk_locator_record_3nr3d4x5.log

-38
This file was deleted.

firebase-crashlytics-ndk/.cxx/ndk_locator_record_3nr3d4x5_key.json

-6
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
android.enableUnitTestBinaryResources=true

firebase-database/gradle.properties

+1
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@
1414

1515
version=19.3.2
1616
latestReleasedVersion=19.3.1
17+
android.enableUnitTestBinaryResources=true
+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
android.enableUnitTestBinaryResources=true
+1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
version=17.0.7
22
latestReleasedVersion=17.0.6
3+
android.enableUnitTestBinaryResources=true

firebase-dynamic-links/gradle.properties

+1
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@
1414

1515
version=19.1.1
1616
latestReleasedVersion=19.1.0
17+
android.enableUnitTestBinaryResources=true
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
android.enableUnitTestBinaryResources=true
2+
+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
android.enableUnitTestBinaryResources=true
2+

firebase-functions/gradle.properties

+1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
version=19.0.3
22
latestReleasedVersion=19.0.2
3+
android.enableUnitTestBinaryResources=true
+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
android.enableUnitTestBinaryResources=true
2+

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

-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@ dependencies {
9393
testImplementation "junit:junit:4.12"
9494
testImplementation "org.mockito:mockito-core:2.25.0"
9595
testImplementation "com.google.truth:truth:1.0"
96-
testImplementation 'androidx.test:core:1.2.0'
9796
testImplementation 'com.google.guava:guava:27.1-android'
9897

9998
androidTestImplementation "org.mockito:mockito-core:2.25.0"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
android.enableUnitTestBinaryResources=true
2+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
android.enableUnitTestBinaryResources=true
2+
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
version=20.2.5
22
latestReleasedVersion=20.2.4
3+
android.enableUnitTestBinaryResources=true

firebase-messaging-directboot/src/main/AndroidManifest.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
-->
1616
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
1717
package="com.google.firebase.messaging.directboot">
18-
<!-- <uses-sdk android:minSdkVersion="16"/>-->
18+
<uses-sdk android:minSdkVersion="16"/>
1919

2020
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
2121
<uses-permission android:name="android.permission.INTERNET" />

firebase-messaging/gradle.properties

+1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
version=20.2.5
22
latestReleasedVersion=20.2.4
3+
android.enableUnitTestBinaryResources=true

firebase-storage/gradle.properties

+1
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@
1414

1515
version=19.1.2
1616
latestReleasedVersion=19.1.1
17+
android.enableUnitTestBinaryResources=true
+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
android.enableUnitTestBinaryResources=true
2+
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-6.5.1-all.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.4-bin.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

transport/transport-runtime/gradle.properties

+1
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@
1414

1515
version=2.2.4
1616
latestReleasedVersion=2.2.3
17+
android.enableUnitTestBinaryResources=true

0 commit comments

Comments
 (0)