This repository was archived by the owner on Jun 3, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +12
-11
lines changed Expand file tree Collapse file tree 1 file changed +12
-11
lines changed Original file line number Diff line number Diff line change @@ -65,15 +65,6 @@ checkstyle {
65
65
version = project. hasProperty(' weexVersion' )? project. getProperty(' weexVersion' ) : " 0.20.0.1"
66
66
67
67
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
-
77
68
compileSdkVersion project. compileSdkVersion
78
69
buildToolsVersion project. buildToolsVersion
79
70
resourcePrefix " weex"
@@ -375,7 +366,7 @@ bintray {
375
366
licenses = [" Apache-2.0" ]
376
367
publish = true
377
368
version {
378
- // 这里填写需要发布的版本号
369
+ // The version to be published
379
370
name = project. version
380
371
}
381
372
}
@@ -414,9 +405,19 @@ def copy_so_and_backup() {
414
405
}
415
406
}
416
407
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
+
417
414
afterEvaluate { project ->
418
415
project. tasks. find { (it. name. contains(" assembleRelease" )) }?. doLast {
419
416
println (" begin_copy_so" )
420
417
copy_so_and_backup()
421
418
}
422
- }
419
+
420
+ if (project. buildCpp){
421
+ transformNativeLibsWithStripDebugSymbolForRelease. dependsOn deleteLibs
422
+ }
423
+ }
You can’t perform that action at this time.
0 commit comments