Skip to content

Commit

Permalink
[#666] 修复打包丢失 account 等 module 导致快应用白屏问题 (#668)
Browse files Browse the repository at this point in the history
Signed-off-by: chaihua1 <chaihua1@xiaomi.com>
  • Loading branch information
charles-chai authored Mar 26, 2024
1 parent 48a586d commit 941f716
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,12 @@ class AnnotationGeneratorPlugin implements Plugin<Project> {
project.android.libraryVariants.all { variant ->
def buildType = variant.name
def capitalizeBuildType = buildType.capitalize()

def packageAssetsTask = project.tasks.getByName("package${capitalizeBuildType}Assets")
if (packageAssetsTask != null) {
def compileJavaTask = project.tasks.getByName("compile${capitalizeBuildType}JavaWithJavac")
packageAssetsTask.dependsOn(compileJavaTask)
}
def proguardType = project.properties['android.enableR8'] ==
'false' ? 'Proguard' : 'R8'
def proguardTask = project.tasks.findByName(
Expand Down
Binary file modified development/gradle-plugin/prebuilts/2.3.0/annotation-2.3.0.jar
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit 941f716

Please sign in to comment.