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

Delta Between Two Patch Sets: libadblockplus-android/build.gradle

Issue 29351744: Issue 4399 - Add WebView inheritor with ad blocking (Closed)
Left Patch Set: now loading elemhide selectors beforehand in bg thread Created Sept. 20, 2016, 11:42 a.m.
Right Patch Set: changed packages, now using AdblockEngine (original ABPEngine), improved demo app Created Oct. 25, 2016, 11:20 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « libadblockplus-android/AndroidManifest.xml ('k') | libadblockplus-android/jni/JniFilterEngine.cpp » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 apply plugin: 'com.android.model.library' 1 apply plugin: 'com.android.library'
2 2
3 model { 3 android {
4 compileSdkVersion 16
5 buildToolsVersion "24.0.1"
4 6
5 repositories { 7 defaultConfig {
6 libs(PrebuiltLibraries) { 8 minSdkVersion 9
7 libadblockplus { 9 targetSdkVersion 16
8 headers.srcDir 'jni/libadblockplus-binaries/include/' 10 versionCode 1
9 binaries.withType(SharedLibraryBinary) { 11 versionName "1.0"
10 sharedLibraryFile = file("jni/libadblockplus-binaries/android_${target Platform.getName()}/libadblockplus.a")
11 }
12 }
13 12
14 v8_base { 13 ndk {
15 headers.srcDir 'jni/libadblockplus-binaries/include/' 14 abiFilters 'armeabi-v7a', 'x86'
16 binaries.withType(SharedLibraryBinary) {
17 sharedLibraryFile = file("jni/libadblockplus-binaries/android_${target Platform.getName()}/libv8_base.a")
18 }
19 }
20
21 v8_snapshot {
22 headers.srcDir 'jni/libadblockplus-binaries/include/'
23 binaries.withType(SharedLibraryBinary) {
24 sharedLibraryFile = file("jni/libadblockplus-binaries/android_${target Platform.getName()}/libv8_snapshot.a")
25 }
26 }
27 } 15 }
28 } 16 }
29 17
30 android { 18 externalNativeBuild {
31 compileSdkVersion 19 19 ndkBuild {
32 buildToolsVersion "22.0.1" 20 path 'jni/Android.mk'
21 }
22 }
33 23
34 ndk { 24 sourceSets {
35 moduleName = "adblockplus-jni" 25 main {
36 cppFlags.add("-std=c++11") 26 manifest.srcFile 'AndroidManifest.xml'
37 cppFlags.add("-fexceptions") 27 java.srcDirs = ['src']
38 stl = "c++_static" 28 res.srcDirs = ['res']
39 29 jni.srcDirs = ['jni']
40 abiFilters.addAll(['armeabi-v7a', 'x86']) // supported abis only
41 }
42
43 defaultConfig {
44 minSdkVersion.apiLevel 17
45 targetSdkVersion.apiLevel 17
46 versionCode 359
47 versionName "1.3"
48 }
49
50 sources {
51 main {
52 manifest {
53 source {
54 srcDir '.'
55 include 'AndroidManifest.xml'
56 }
57 }
58 java { source { srcDirs = ['src'] } }
59 resources { source { srcDirs = ['src'] } }
60 res { source { srcDirs = ['res'] } }
61 assets { source { srcDirs = ['assets'] } }
62 jni {
63 source { srcDirs = ['jni'] }
64 dependencies {
65 library "libadblockplus"
66 library "v8_base"
67 library "v8_snapshot"
68 }
69 }
70 }
71 } 30 }
72 } 31 }
73 } 32 }
LEFTRIGHT

Powered by Google App Engine
This is Rietveld