Revert "Migrate integration_test plugin to Gradle Kotlin DSL (#142008)" (#143329)

This reverts https://github.com/flutter/flutter/pull/142008 because it broke the Flutter --> packages roller.
This commit is contained in:
Camille Simon 2024-02-12 15:26:18 -08:00 committed by GitHub
parent 525cffd717
commit 0650b76884
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 65 additions and 64 deletions

View file

@ -0,0 +1,64 @@
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
group 'dev.flutter.plugins.integration_test'
version '1.0-SNAPSHOT'
buildscript {
repositories {
google()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:7.3.1'
}
}
rootProject.allprojects {
repositories {
google()
mavenCentral()
}
}
// project.getTasks().withType(JavaCompile){
// options.compilerArgs << "-Xlint:all" << "-Werror"
// }
apply plugin: 'com.android.library'
android {
// Conditional for compatibility with AGP <4.2.
if (project.android.hasProperty("namespace")) {
namespace 'dev.flutter.integration_test'
}
compileSdk 34
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
defaultConfig {
minSdkVersion 21
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles 'lib-proguard-rules.txt'
}
dependencies {
// TODO(egarciad): These dependencies should not be added to release builds.
// https://github.com/flutter/flutter/issues/56591
testImplementation 'junit:junit:4.12'
testImplementation 'org.mockito:mockito-inline:5.0.0'
// https://developer.android.com/jetpack/androidx/releases/test/#1.2.0
api 'androidx.test:runner:1.2.0'
api 'androidx.test:rules:1.2.0'
api 'androidx.test.espresso:espresso-core:3.2.0'
implementation 'com.google.guava:guava:28.1-android'
}
}

View file

@ -1,63 +0,0 @@
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
group = "dev.flutter.plugins.integration_test"
version = "1.0-SNAPSHOT"
buildscript {
repositories {
google()
mavenCentral()
}
dependencies {
classpath("com.android.tools.build:gradle:7.3.1")
}
}
plugins {
id("com.android.library")
}
rootProject.allprojects {
repositories {
google()
mavenCentral()
}
}
android {
// Conditional for compatibility with AGP <4.2.
if (project.findProject("android")?.hasProperty("namespace") == true) {
namespace = "dev.flutter.integration_test"
}
namespace = "dev.flutter.integration_test"
compileSdk = 34
compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
defaultConfig {
minSdk = 21
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles("lib-proguard-rules.txt")
}
dependencies {
// TODO(egarciad): These dependencies should not be added to release builds.
// https://github.com/flutter/flutter/issues/56591
testImplementation("junit:junit:4.12")
testImplementation("org.mockito:mockito-inline:5.0.0")
// https://developer.android.com/jetpack/androidx/releases/test/#1.2.0
api("androidx.test:runner:1.2.0")
api("androidx.test:rules:1.2.0")
api("androidx.test.espresso:espresso-core:3.2.0")
implementation("com.google.guava:guava:28.1-android")
}
}

View file

@ -2,4 +2,4 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
rootProject.name = "integrationTest"
rootProject.name = 'integrationTest'