Merge pull request #178 from LZX284/master

Assets实现flavor分化及其它一些优化
This commit is contained in:
SuperMonster003
2023-11-16 10:09:24 +08:00
committed by GitHub

View File

@@ -409,6 +409,21 @@ android {
}
sourceSets {
// @Hint by LZX284 on Nov 15, 2023.
// ! The assets file is divided into three directories according to different flavors.
// ! But the files are not actually moved to avoid conflicts with the latest modifications.
getByName("main"){
assets.srcDirs("src/main/assets")
}
getByName(flavorNameApp){
assets.srcDirs("src/main/assets_$flavorNameApp")
}
getByName(flavorNameInrt){
assets.srcDirs("src/main/assets_$flavorNameInrt")
}
}
compileOptions {
isCoreLibraryDesugaringEnabled = true
sourceCompatibility = versions.javaVersion