Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
ksyeo1010 committed Aug 16, 2023
1 parent 522abbb commit 2f51325
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions binding/android/CheetahTestApp/cheetah-test-app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,11 @@ android {
}
}

task("copyParams", type: Copy) {
from("$projectDir/../../../../lib/common/")
include("cheetah_params.pv")
into("$projectDir/src/main/assets/models")
}
task("copyAudio", type: Copy) {
description = "Copy audio resources"
from("$projectDir/../../../../resources/audio_samples/")
Expand Down Expand Up @@ -131,6 +136,8 @@ task copyParams(type: Copy) {
preBuild.dependsOn(copyParams)

afterEvaluate {
tasks."mergeDebugAssets".dependsOn "copyParams"
tasks."mergeReleaseAssets".dependsOn "copyParams"
tasks."mergeDebugAssets".dependsOn "copyAudio"
tasks."mergeReleaseAssets".dependsOn "copyAudio"
}

0 comments on commit 2f51325

Please sign in to comment.