-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
RUM-4407: Add test for the duplicate resources issue with AGP 8.4.x
- Loading branch information
Showing
2 changed files
with
70 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
55 changes: 55 additions & 0 deletions
55
dd-sdk-android-gradle-plugin/src/test/resources/build_with_android_components.gradle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
plugins { | ||
id("com.android.application") | ||
id("kotlin-android") | ||
id("com.datadoghq.dd-sdk-android-gradle-plugin") | ||
} | ||
|
||
repositories { | ||
google() | ||
mavenCentral() | ||
} | ||
|
||
extensions.configure("androidComponents") { extension -> | ||
extension.onVariants(extension.selector().all()) { variant -> | ||
// just request assets, this will be enough to reproduce | ||
// https://issuetracker.google.com/issues/342428022 when using new Variant API + legacy one | ||
// with AGP 8.4.0 | ||
variant.getSources().getAssets() | ||
} | ||
} | ||
|
||
android { | ||
compileSdkVersion = rootProject.ext.targetSdkVersion | ||
buildToolsVersion = rootProject.ext.buildToolsVersion | ||
|
||
defaultConfig { | ||
applicationId "com.example.variants" | ||
minSdkVersion 21 | ||
targetSdkVersion rootProject.ext.targetSdkVersion | ||
versionCode 1 | ||
versionName "1.0" | ||
multiDexEnabled = true | ||
} | ||
|
||
buildTypes { | ||
release { | ||
minifyEnabled true | ||
proguardFiles getDefaultProguardFile ('proguard-android-optimize.txt'), 'proguard-rules.pro' | ||
} | ||
} | ||
|
||
namespace = "com.example.variants" | ||
|
||
compileOptions { | ||
sourceCompatibility = rootProject.ext.jvmTarget | ||
targetCompatibility = rootProject.ext.jvmTarget | ||
} | ||
|
||
kotlinOptions { | ||
jvmTarget = rootProject.ext.jvmTarget | ||
} | ||
} | ||
|
||
dependencies { | ||
implementation(rootProject.ext.datadogSdkDependency) | ||
} |