Skip to content

Commit

Permalink
fix(android): fix incremental build
Browse files Browse the repository at this point in the history
  • Loading branch information
iPel authored and zealotchen0 committed Aug 1, 2023
1 parent c779738 commit 06c22c2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 12 deletions.
14 changes: 4 additions & 10 deletions framework/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,11 @@ dependencies {
}
}


embed project(path: ":${path.reverse().join('-')}", configuration: 'default')
if (it == 'renderer/native') {
embed project(path: ':renderer-native', configuration: 'default')
}
}
compileOnly project(path: ':renderer-native')
//noinspection GradleDependency
Expand Down Expand Up @@ -312,13 +316,3 @@ task dealAfterAssembleRelease() {
}
}
}

project.afterEvaluate {
project.android.libraryVariants.all { variant ->
def variantName = variant.name.capitalize()
def taskMergeClasses = project.tasks.named("mergeClasses${variantName}")
project.tasks.named("bundleLibCompileToJar${variantName}").configure {
dependsOn(taskMergeClasses)
}
}
}
3 changes: 1 addition & 2 deletions framework/android/connector/renderer/native/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
apply plugin: 'com.android.library'
apply plugin: 'com.kezong.fat-aar'

allprojects {
repositories {
Expand Down Expand Up @@ -39,7 +38,7 @@ android {
}

dependencies {
embed project(path: ':renderer-native', configuration: 'default')
implementation project(path: ':renderer-native')

compileOnly project(path: ':connector-support')
compileOnly project(path: ':hippy-support')
Expand Down

0 comments on commit 06c22c2

Please sign in to comment.