[go: nahoru, domu]

Skip to content
This repository has been archived by the owner on Jun 3, 2021. It is now read-only.

Commit

Permalink
Use another way to copy stripped .so file (#2574)
Browse files Browse the repository at this point in the history
  • Loading branch information
YorkShen authored and Darin726 committed Jun 19, 2019
1 parent c86b48a commit c6fa982
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions android/sdk/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -325,15 +325,13 @@ bintray {
}

afterEvaluate { project ->
project.tasks.find { (it.name.contains("assembleRelease")) }?.doLast {
println("begin_copy_so")
transformNativeLibsWithStripDebugSymbolForRelease << {
copy{
from new File(project.buildDir, "intermediates/transforms/mergeJniLibs/release/0/lib")
into new File(project.buildDir, "outputs/aar")
from transformNativeLibsWithMergeJniLibsForRelease
into new File(project.buildDir, "unstrippedSo")
include '**/libweexjss.so', '**/libweexcore.so'
eachFile {
it.path = "${it.relativePath.segments.first()}_${it.name}"
println "dyy " + it.path
it.path = "${it.relativePath.segments[-2]}_${it.name}"
}
}
}
Expand Down

0 comments on commit c6fa982

Please sign in to comment.