Bug 1802817 - Migrate packagingOptions DSL properties to resources sub-block.
exclude, pickFirst methods are deprecated.
This commit is contained in:
@@ -216,15 +216,14 @@ subprojects {
|
||||
}
|
||||
|
||||
packagingOptions {
|
||||
exclude 'META-INF/atomicfu.kotlin_module'
|
||||
exclude 'META-INF/AL2.0'
|
||||
exclude 'META-INF/LGPL2.1'
|
||||
|
||||
resources {
|
||||
excludes += ['META-INF/atomicfu.kotlin_module', 'META-INF/AL2.0', 'META-INF/LGPL2.1']
|
||||
// Required dependencies using byte-buddy; remove after this is
|
||||
// fixed by: https://issuetracker.google.com/issues/170131605
|
||||
exclude "META-INF/licenses/ASM"
|
||||
pickFirst "win32-x86-64/attach_hotspot_windows.dll"
|
||||
pickFirst "win32-x86/attach_hotspot_windows.dll"
|
||||
excludes.add("META-INF/licenses/ASM")
|
||||
|
||||
pickFirsts += ['win32-x86-64/attach_hotspot_windows.dll', 'win32-x86/attach_hotspot_windows.dll']
|
||||
}
|
||||
}
|
||||
|
||||
androidResources {
|
||||
|
||||
@@ -38,7 +38,9 @@ android {
|
||||
}
|
||||
|
||||
packagingOptions {
|
||||
exclude 'META-INF/proguard/androidx-annotations.pro'
|
||||
resources {
|
||||
excludes += ['META-INF/proguard/androidx-annotations.pro']
|
||||
}
|
||||
}
|
||||
|
||||
namespace 'mozilla.components.browser.engine.gecko'
|
||||
|
||||
@@ -22,7 +22,9 @@ android {
|
||||
}
|
||||
|
||||
packagingOptions {
|
||||
exclude 'META-INF/proguard/androidx-annotations.pro'
|
||||
resources {
|
||||
excludes += ['META-INF/proguard/androidx-annotations.pro']
|
||||
}
|
||||
}
|
||||
|
||||
sourceSets {
|
||||
|
||||
@@ -32,7 +32,9 @@ android {
|
||||
}
|
||||
|
||||
packagingOptions {
|
||||
exclude 'META-INF/proguard/androidx-annotations.pro'
|
||||
resources {
|
||||
excludes += ['META-INF/proguard/androidx-annotations.pro']
|
||||
}
|
||||
}
|
||||
|
||||
namespace 'mozilla.components.browser.state'
|
||||
|
||||
@@ -22,7 +22,9 @@ android {
|
||||
}
|
||||
|
||||
packagingOptions {
|
||||
exclude 'META-INF/proguard/androidx-annotations.pro'
|
||||
resources {
|
||||
excludes += ['META-INF/proguard/androidx-annotations.pro']
|
||||
}
|
||||
}
|
||||
|
||||
namespace 'mozilla.components.browser.thumbnails'
|
||||
|
||||
@@ -23,7 +23,9 @@ android {
|
||||
}
|
||||
|
||||
packagingOptions {
|
||||
exclude 'META-INF/proguard/androidx-annotations.pro'
|
||||
resources {
|
||||
excludes += ['META-INF/proguard/androidx-annotations.pro']
|
||||
}
|
||||
}
|
||||
|
||||
namespace 'mozilla.components.feature.accounts.push'
|
||||
|
||||
@@ -23,7 +23,9 @@ android {
|
||||
}
|
||||
|
||||
packagingOptions {
|
||||
exclude 'META-INF/proguard/androidx-annotations.pro'
|
||||
resources {
|
||||
excludes += ['META-INF/proguard/androidx-annotations.pro']
|
||||
}
|
||||
}
|
||||
|
||||
namespace 'mozilla.components.feature.app.links'
|
||||
|
||||
@@ -35,7 +35,9 @@ android {
|
||||
}
|
||||
|
||||
packagingOptions {
|
||||
exclude 'META-INF/proguard/androidx-annotations.pro'
|
||||
resources {
|
||||
excludes += ['META-INF/proguard/androidx-annotations.pro']
|
||||
}
|
||||
}
|
||||
|
||||
sourceSets {
|
||||
|
||||
@@ -29,7 +29,9 @@ android {
|
||||
}
|
||||
|
||||
packagingOptions {
|
||||
exclude 'META-INF/proguard/androidx-annotations.pro'
|
||||
resources {
|
||||
excludes += ['META-INF/proguard/androidx-annotations.pro']
|
||||
}
|
||||
}
|
||||
|
||||
sourceSets {
|
||||
|
||||
@@ -22,7 +22,9 @@ android {
|
||||
}
|
||||
|
||||
packagingOptions {
|
||||
exclude 'META-INF/proguard/androidx-annotations.pro'
|
||||
resources {
|
||||
excludes += ['META-INF/proguard/androidx-annotations.pro']
|
||||
}
|
||||
}
|
||||
|
||||
namespace 'mozilla.components.feature.media'
|
||||
|
||||
@@ -207,12 +207,12 @@ android {
|
||||
lintConfig file("lint.xml")
|
||||
baseline file("lint-baseline.xml")
|
||||
}
|
||||
|
||||
packagingOptions {
|
||||
exclude 'META-INF/atomicfu.kotlin_module'
|
||||
exclude 'META-INF/AL2.0'
|
||||
exclude 'META-INF/LGPL2.1'
|
||||
resources {
|
||||
excludes += ['META-INF/atomicfu.kotlin_module', 'META-INF/AL2.0', 'META-INF/LGPL2.1']
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
testOptions {
|
||||
unitTests.returnDefaultValues = true
|
||||
|
||||
@@ -158,11 +158,13 @@ android {
|
||||
focusNightly.root = 'src/focusNightly'
|
||||
klarNightly.root = 'src/klarNightly'
|
||||
}
|
||||
|
||||
packagingOptions {
|
||||
pickFirst 'META-INF/atomicfu.kotlin_module'
|
||||
pickFirst 'META-INF/proguard/coroutines.pro'
|
||||
resources {
|
||||
pickFirsts += ['META-INF/atomicfu.kotlin_module', 'META-INF/proguard/coroutines.pro']
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
namespace 'org.mozilla.focus'
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user