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

Commit

Permalink
* [Android] delete .cpp file only if project.buildCpp is true. (#2286)
Browse files Browse the repository at this point in the history
  • Loading branch information
YorkShen authored Apr 8, 2019
1 parent 2a2377a commit 494a55c
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions android/sdk/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,14 @@ checkstyle {
version = project.hasProperty('weexVersion')? project.getProperty('weexVersion') : "0.20.0.1"

android {
delete 'libs/armeabi/libweexcore.so'
delete 'libs/armeabi-v7a/libweexcore.so'
delete 'libs/x86/libweexcore.so'
delete 'libs/armeabi/libweexjss.so'
delete 'libs/armeabi-v7a/libweexjss.so'
delete 'libs/x86/libweexjss.so'
if(project.buildCpp) {
delete 'libs/armeabi/libweexcore.so'
delete 'libs/armeabi-v7a/libweexcore.so'
delete 'libs/x86/libweexcore.so'
delete 'libs/armeabi/libweexjss.so'
delete 'libs/armeabi-v7a/libweexjss.so'
delete 'libs/x86/libweexjss.so'
}

compileSdkVersion project.compileSdkVersion
buildToolsVersion project.buildToolsVersion
Expand Down

0 comments on commit 494a55c

Please sign in to comment.