Skip to content

Commit

Permalink
上传
Browse files Browse the repository at this point in the history
  • Loading branch information
puy1017 committed Apr 11, 2022
1 parent bb8ac91 commit dd1e55c
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions puymvpjava/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -33,28 +33,28 @@ android {
}
}
//自动追加版本号和版本名称
android.libraryVariants.all { variant ->
if(variant.name.equalsIgnoreCase("release")) {
// 修改aar名称
variant.outputs.all { output ->
def f = output.outputFileName
if (f != null && f.endsWith('.aar')) {
output.outputFileName = "Mvp_"+defaultConfig.versionName+".aar"
}
}
// 复制aar到指定目录
variant.assemble.doLast {
variant.outputs.all { output ->
// 输出目录在:项目目录/libs/
def outputPath = [project.rootDir.absolutePath, "app", "libs"].join(File.separator)
copy {
from output.outputFile
into outputPath
}
}
}
}
}
// android.libraryVariants.all { variant ->
// if(variant.name.equalsIgnoreCase("release")) {
// // 修改aar名称
// variant.outputs.all { output ->
// def f = output.outputFileName
// if (f != null && f.endsWith('.aar')) {
// output.outputFileName = "Mvp_"+defaultConfig.versionName+".aar"
// }
// }
// // 复制aar到指定目录
// variant.assemble.doLast {
// variant.outputs.all { output ->
// // 输出目录在:项目目录/libs/
// def outputPath = [project.rootDir.absolutePath, "app", "libs"].join(File.separator)
// copy {
// from output.outputFile
// into outputPath
// }
// }
// }
// }
// }
}


Expand Down

0 comments on commit dd1e55c

Please sign in to comment.