Migrate packagingOptions exclusions to packagingOptions / resources / exclusions

Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
Andy Scherzinger 2022-05-18 18:32:26 +02:00
parent 2c2d4aa306
commit c7e204172f
No known key found for this signature in database
GPG Key ID: 6CADC7E3523C308B

View File

@ -95,15 +95,19 @@ android {
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
packagingOptions {
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/LICENSE'
exclude 'META-INF/NOTICE.txt'
exclude 'META-INF/NOTICE'
exclude 'META-INF/DEPENDENCIES'
exclude 'META-INF/rxjava.properties'
resources {
excludes += [
'META-INF/LICENSE.txt',
'META-INF/LICENSE',
'META-INF/NOTICE.txt',
'META-INF/NOTICE',
'META-INF/DEPENDENCIES',
'META-INF/rxjava.properties'
]
}
}
android.applicationVariants.all { variant ->
String variantName = variant.name