Skip to content

Commit 941f716

Browse files
authored
[#666] 修复打包丢失 account 等 module 导致快应用白屏问题 (#668)
Signed-off-by: chaihua1 <[email protected]>
1 parent 48a586d commit 941f716

File tree

5 files changed

+6
-0
lines changed

5 files changed

+6
-0
lines changed

development/gradle-plugin/annotation-generator/src/main/groovy/org/hapjs/build/AnnotationGeneratorPlugin.groovy

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,12 @@ class AnnotationGeneratorPlugin implements Plugin<Project> {
4747
project.android.libraryVariants.all { variant ->
4848
def buildType = variant.name
4949
def capitalizeBuildType = buildType.capitalize()
50+
51+
def packageAssetsTask = project.tasks.getByName("package${capitalizeBuildType}Assets")
52+
if (packageAssetsTask != null) {
53+
def compileJavaTask = project.tasks.getByName("compile${capitalizeBuildType}JavaWithJavac")
54+
packageAssetsTask.dependsOn(compileJavaTask)
55+
}
5056
def proguardType = project.properties['android.enableR8'] ==
5157
'false' ? 'Proguard' : 'R8'
5258
def proguardTask = project.tasks.findByName(
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)