Fix stub APK building in app

This commit is contained in:
topjohnwu 2023-03-02 21:27:48 -08:00
parent 8adf27859d
commit 2717feac21

View File

@ -264,7 +264,7 @@ fun Project.setupApp() {
tasks.getByPath("merge${variantCapped}JniLibFolders").dependsOn(syncLibs) tasks.getByPath("merge${variantCapped}JniLibFolders").dependsOn(syncLibs)
processJavaResourcesProvider.configure { dependsOn(syncResources) } processJavaResourcesProvider.configure { dependsOn(syncResources) }
val stubTask = tasks.getByPath(":stub:package$variantCapped") val stubTask = tasks.getByPath(":stub:comment$variantCapped")
val stubApk = stubTask.outputs.files.asFileTree.filter { val stubApk = stubTask.outputs.files.asFileTree.filter {
it.name.endsWith(".apk") it.name.endsWith(".apk")
} }