Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: libadblockplus-android/build.gradle

Issue 29678581: Issue 6000 - Rename "libadblockplus-android" (Closed)
Patch Set: Created Jan. 24, 2018, 6:53 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 apply plugin: 'com.android.library'
2
3 android {
4 compileSdkVersion 16
5 buildToolsVersion "25.0.0"
6
7 defaultConfig {
8 minSdkVersion 16
9 targetSdkVersion 16
10 versionCode 2
11 versionName "2.0"
12 }
13
14 publishNonDefault true
15
16 productFlavors {
17 abi_arm {
18 ndk {
19 abiFilters "armeabi-v7a"
20 }
21
22 externalNativeBuild {
23 ndkBuild {
24 arguments "APP_ABI=armeabi-v7a"
25 }
26 }
27 }
28
29 abi_x86 {
30 ndk {
31 abiFilters "x86"
32 }
33
34 externalNativeBuild {
35 ndkBuild {
36 arguments "APP_ABI=x86"
37 }
38 }
39 }
40
41 abi_all {
42 ndk {
43 abiFilters 'armeabi-v7a', 'x86'
44 }
45 }
46 }
47
48 externalNativeBuild {
49 ndkBuild {
50 path 'jni/Android.mk'
51 }
52 }
53
54 sourceSets {
55 main {
56 manifest.srcFile 'AndroidManifest.xml'
57 java.srcDirs = ['src']
58 res.srcDirs = ['res']
59 jni.srcDirs = ['jni']
60 }
61 }
62
63 def sharedV8LibFiles = System.getenv('SHARED_V8_LIB_FILENAMES')
64 if (sharedV8LibFiles != null) {
65 def sharedV8LibFilesSet = []
66 def sharedV8LibFilesArray = sharedV8LibFiles.split(' ')
67 sharedV8LibFilesArray.each { eachFileName ->
68 sharedV8LibFilesSet.add("**/" + eachFileName)
69 println "[Configuration] Excluding shared v8 library " + eachFileName + " from AAR"
70 }
71
72 packagingOptions {
73 excludes = sharedV8LibFilesSet
74 }
75 } else {
76 println "[Configuration] No shared v8 libraries excluded from AAR"
77 }
78
79 }
OLDNEW

Powered by Google App Engine
This is Rietveld