You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by do...@apache.org on 2019/06/19 02:40:49 UTC

[incubator-weex] branch master updated: Use another way to copy stripped .so file (#2574)

This is an automated email from the ASF dual-hosted git repository.

dongyayun pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-weex.git


The following commit(s) were added to refs/heads/master by this push:
     new c6fa982  Use another way to copy stripped .so file (#2574)
c6fa982 is described below

commit c6fa98273384ab59a52ee6366ec283ff0e63ccfb
Author: YorkShen <sh...@gmail.com>
AuthorDate: Wed Jun 19 10:40:44 2019 +0800

    Use another way to copy stripped .so file (#2574)
---
 android/sdk/build.gradle | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/android/sdk/build.gradle b/android/sdk/build.gradle
index 566e200..27eff26 100755
--- a/android/sdk/build.gradle
+++ b/android/sdk/build.gradle
@@ -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}"
             }
         }
     }