Skip to content

Commit 1ae855f

Browse files
committed
bug fix: remerge dex failed.
1 parent cffa095 commit 1ae855f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

buildSrc/src/main/groovy/com/iqiyi/qigsaw/buildtool/gradle/QigsawAppBasePlugin.groovy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ class QigsawAppBasePlugin extends QigsawPlugin {
244244
}
245245
packageApp.doFirst {
246246
if (versionAGP < VersionNumber.parse("3.5.0")) {
247-
Task dexSplitterTask = AGPCompat.getDexSplitterTask(project, variantName)
247+
Task dexSplitterTask = AGPCompat.getDexSplitterTask(project, baseVariant.name.capitalize())
248248
if (dexSplitterTask != null) {
249249
List<File> dexFiles = new ArrayList<>()
250250
inputs.files.each { File file ->
@@ -254,7 +254,7 @@ class QigsawAppBasePlugin extends QigsawPlugin {
254254
}
255255
}
256256
}
257-
DexReMergeHandler handler = new DexReMergeHandler(project, variant)
257+
DexReMergeHandler handler = new DexReMergeHandler(project, baseVariant)
258258
handler.reMerge(dexFiles)
259259
}
260260
}

0 commit comments

Comments
 (0)