Skip to content

Commit

Permalink
Merge pull request #178 from LZX284/master
Browse files Browse the repository at this point in the history
Assets实现flavor分化及其它一些优化
  • Loading branch information
SuperMonster003 authored Nov 16, 2023
2 parents 66d4fc2 + 8232c8d commit afc0bce
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit afc0bce

Please sign in to comment.