diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 79158a85..a4b89880 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -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