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

Commit 5c398f7

Browse files
YorkShenDarin726
authored andcommitted
* [Android] Update build.gradle (#2287)
1 parent 36f023e commit 5c398f7

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

android/sdk/build.gradle

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -65,15 +65,6 @@ checkstyle {
6565
version = project.hasProperty('weexVersion')? project.getProperty('weexVersion') : "0.20.0.1"
6666

6767
android {
68-
if(project.buildCpp) {
69-
delete 'libs/armeabi/libweexcore.so'
70-
delete 'libs/armeabi-v7a/libweexcore.so'
71-
delete 'libs/x86/libweexcore.so'
72-
delete 'libs/armeabi/libweexjss.so'
73-
delete 'libs/armeabi-v7a/libweexjss.so'
74-
delete 'libs/x86/libweexjss.so'
75-
}
76-
7768
compileSdkVersion project.compileSdkVersion
7869
buildToolsVersion project.buildToolsVersion
7970
resourcePrefix "weex"
@@ -375,7 +366,7 @@ bintray {
375366
licenses = ["Apache-2.0"]
376367
publish = true
377368
version {
378-
//这里填写需要发布的版本号
369+
//The version to be published
379370
name = project.version
380371
}
381372
}
@@ -414,9 +405,19 @@ def copy_so_and_backup() {
414405
}
415406
}
416407

408+
task deleteLibs(type: Delete){
409+
project.android.defaultConfig.ndk.abiFilters.each{
410+
delete "libs/${it}/libweexcore.so", "libs/${it}/libweexjss.so"
411+
}
412+
}
413+
417414
afterEvaluate { project ->
418415
project.tasks.find { (it.name.contains("assembleRelease")) }?.doLast {
419416
println("begin_copy_so")
420417
copy_so_and_backup()
421418
}
422-
}
419+
420+
if(project.buildCpp){
421+
transformNativeLibsWithStripDebugSymbolForRelease.dependsOn deleteLibs
422+
}
423+
}

0 commit comments

Comments
 (0)