mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00

- Set exported proguard rules for consumers of integration_test using AGP 8.0 - Updated proguard usage in example to test setting custom proguard rules works. #127388 Documentation for how consumerProguardFiles works. https://developer.android.com/studio/projects/android-library#Considerations Unknown why we had to use ** instead of matching exactly.
60 lines
1.5 KiB
Groovy
60 lines
1.5 KiB
Groovy
// 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 'com.example.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()
|
|
}
|
|
}
|
|
|
|
apply plugin: 'com.android.library'
|
|
|
|
android {
|
|
// Conditional for compatibility with AGP <4.2.
|
|
if (project.android.hasProperty("namespace")) {
|
|
namespace 'dev.flutter.integration_test'
|
|
}
|
|
|
|
compileSdkVersion 33
|
|
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
}
|
|
|
|
defaultConfig {
|
|
minSdkVersion 19
|
|
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
|
|
api 'junit:junit:4.12'
|
|
|
|
// 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'
|
|
}
|
|
}
|