@@ -6,12 +6,11 @@ apply plugin: 'com.android.library'
66apply plugin : ' maven-publish'
77
88android {
9- compileSdkVersion 24
10- buildToolsVersion " 23.0.3"
9+ compileSdkVersion 27
1110
1211 defaultConfig {
1312 minSdkVersion 21
14- targetSdkVersion 24
13+ targetSdkVersion 27
1514 versionCode 1
1615 versionName " 1.0"
1716 testInstrumentationRunner " android.support.test.runner.AndroidJUnitRunner"
@@ -21,33 +20,44 @@ android {
2120 minifyEnabled false
2221 }
2322 }
24- sourceSets {
25- instrumentTest. setRoot(' src/androidTest/' )
23+
24+ packagingOptions {
25+ exclude ' error_prone/Annotations.gwt.xml'
26+ exclude ' third_party/java_src/error_prone/project/annotations/Annotations.gwt.xml'
27+ exclude ' third_party/java_src/error_prone/project/annotations/Google_internal.gwt.xml'
28+ exclude ' jsr305_annotations/Jsr305_annotations.gwt.xml'
2629 }
2730}
2831
2932configurations {
3033 doclava
3134}
3235
36+ ext {
37+ appCompatVersion = ' 27.1.0'
38+ playServicesVersion = ' 12.0.0'
39+ supportTestVersion = ' 1.0.1'
40+ }
41+
3342dependencies {
3443 compile fileTree(dir : ' libs' , include : [' *.jar' ])
35- compile ' com.android.support:appcompat-v7:24.0.0 '
36- compile ' com.android.support:leanback-v17:24.0.0 '
44+ compile " com.android.support:appcompat-v7:$a ppCompatVersion "
45+ compile " com.android.support:leanback-v17:$a ppCompatVersion "
3746 compile ' com.google.ads.interactivemedia.v3:interactivemedia:3.2.1'
38- compile ' com.google.android.gms:play-services-ads:8.4.0 '
47+ compile " com.google.android.gms:play-services-ads:$p layServicesVersion "
3948
4049 testCompile ' junit:junit:4.12'
41- testCompile ' org.mockito:mockito-core:1.10.19'
42- testCompile " org.robolectric:robolectric:3.1"
43- androidTestCompile ' com.android.support:support-annotations:24.0.0'
44- androidTestCompile ' com.android.support.test:runner:0.4.1'
45- androidTestCompile ' com.android.support.test:rules:0.4.1'
46- androidTestCompile ' com.android.support.test.uiautomator:uiautomator-v18:2.1.2'
50+ testCompile ' org.mockito:mockito-core:2.8.9'
51+ testCompile " org.robolectric:robolectric:3.8"
52+
53+ androidTestCompile " com.android.support:support-annotations:$appCompatVersion "
54+ androidTestCompile " com.android.support.test:runner:$supportTestVersion "
55+ androidTestCompile " com.android.support.test:rules:$supportTestVersion "
56+ androidTestCompile ' com.android.support.test.uiautomator:uiautomator-v18:2.1.3'
4757 doclava ' com.google.doclava:doclava:1.0.6'
4858}
4959
50- def packageVersion = ' 0.3 '
60+ def packageVersion = ' 0.4 '
5161
5262task sourceJar (type : Jar ) {
5363 classifier = ' sources'
@@ -99,9 +109,14 @@ publishing {
99109 }
100110}
101111
112+ // Load keystore
113+ def keystorePropertiesFile = rootProject. file(" keystore.properties" );
114+ def keystoreProperties = new Properties ()
115+ keystoreProperties. load(new FileInputStream (keystorePropertiesFile))
116+
102117bintray {
103- user = System . getenv( ' BINTRAY_USER' )
104- key = System . getenv( ' BINTRAY_API_KEY' )
118+ user = keystoreProperties[ ' BINTRAY_USER' ]
119+ key = keystoreProperties[ ' BINTRAY_API_KEY' ]
105120 publications = [' libraryPublish' ]
106121 publish = true
107122 pkg {
0 commit comments