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

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

Issue 29784577: Issue 6205 - Upload artifacs to maven repository (Closed)
Patch Set: Created May 17, 2018, 1:25 p.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
1 apply plugin: 'com.android.library' 1 apply plugin: 'com.android.library'
2 apply plugin: 'com.novoda.bintray-release'
2 3
3 android { 4 android {
4 compileSdkVersion 16 5 compileSdkVersion 16
5 buildToolsVersion "25.0.0" 6 buildToolsVersion "25.0.0"
6 7
7 defaultConfig { 8 defaultConfig {
8 minSdkVersion 16 9 minSdkVersion 16
9 targetSdkVersion 16 10 targetSdkVersion 16
10 versionCode 5
11 versionName "2.3"
12 } 11 }
13 12
14 publishNonDefault true 13 publishNonDefault true
15 14
16 productFlavors { 15 productFlavors {
17 abi_arm { 16 abi_arm {
18 ndk { 17 ndk {
19 abiFilters "armeabi-v7a" 18 abiFilters "armeabi-v7a"
20 } 19 }
21 20
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 52
54 sourceSets { 53 sourceSets {
55 main { 54 main {
56 manifest.srcFile 'AndroidManifest.xml' 55 manifest.srcFile 'AndroidManifest.xml'
57 java.srcDirs = ['src'] 56 java.srcDirs = ['src']
58 res.srcDirs = ['res'] 57 res.srcDirs = ['res']
59 jni.srcDirs = ['jni'] 58 jni.srcDirs = ['jni']
60 } 59 }
61 } 60 }
62 61
62 publish {
63 userOrg = rootProject.ext.bintrayUserOrg
64 groupId = rootProject.ext.bintrayGroupId
65 artifactId = 'adblock-android'
66 publishVersion = '2.3'
67 licences = rootProject.ext.bintrayLicences
68 desc = 'An Android library that provides the core functionality of Adblock P lus.'
69 website = rootProject.ext.bintrayWebsite
70 issueTracker = rootProject.ext.bintrayIssueTracker
71 repository = rootProject.ext.bintrayRepository
72 }
anton 2018/05/21 19:50:51 I think we need to add section to README describin
diegocarloslima 2018/06/04 20:41:20 Acknowledged.
73
63 def sharedV8LibFiles = System.getenv('SHARED_V8_LIB_FILENAMES') 74 def sharedV8LibFiles = System.getenv('SHARED_V8_LIB_FILENAMES')
64 if (sharedV8LibFiles != null) { 75 if (sharedV8LibFiles != null) {
65 def sharedV8LibFilesSet = [] 76 def sharedV8LibFilesSet = []
66 def sharedV8LibFilesArray = sharedV8LibFiles.split(' ') 77 def sharedV8LibFilesArray = sharedV8LibFiles.split(' ')
67 sharedV8LibFilesArray.each { eachFileName -> 78 sharedV8LibFilesArray.each { eachFileName ->
68 sharedV8LibFilesSet.add("**/" + eachFileName) 79 sharedV8LibFilesSet.add("**/" + eachFileName)
69 println "[Configuration] Excluding shared v8 library " + eachFileName + " from AAR" 80 println "[Configuration] Excluding shared v8 library " + eachFileName + " from AAR"
70 } 81 }
71 82
72 packagingOptions { 83 packagingOptions {
73 excludes = sharedV8LibFilesSet 84 excludes = sharedV8LibFilesSet
74 } 85 }
75 } else { 86 } else {
76 println "[Configuration] No shared v8 libraries excluded from AAR" 87 println "[Configuration] No shared v8 libraries excluded from AAR"
77 } 88 }
78 89
79 } 90 }
OLDNEW

Powered by Google App Engine
This is Rietveld