| Index: libadblockplus-android/build.gradle |
| diff --git a/libadblockplus-android/build.gradle b/libadblockplus-android/build.gradle |
| index 069c44cf739f2aac8e3843c5d92bd7b4f7ee2e61..0ed290cc805777a94968ef8666cac8ba8f6a5b85 100644 |
| --- a/libadblockplus-android/build.gradle |
| +++ b/libadblockplus-android/build.gradle |
| @@ -29,4 +29,20 @@ android { |
| jni.srcDirs = ['jni'] |
| } |
| } |
| + |
| + def sharedV8LibFilesSet = [] |
| + def sharedV8LibFiles = System.getenv('SHARED_V8_LIB_FILENAMES') |
| + if (sharedV8LibFiles != null) { |
| + def sharedV8LibFilesArray = sharedV8LibFiles.split(' ') |
| + sharedV8LibFilesArray.each { eachFileName -> |
| + sharedV8LibFilesSet.add("**/" + eachFileName) |
| + println "[Configuration] Excluding shared v8 library " + eachFileName + " from AAR" |
| + } |
| + } else { |
| + println "[Configuration] No shared v8 libraries excluded from AAR" |
| + } |
| + |
| + packagingOptions { |
| + excludes = sharedV8LibFilesSet |
|
diegocarloslima
2017/10/16 10:04:28
I just think that instead of using the sharedV8Lib
|
| + } |
| } |