@@ -48,8 +48,8 @@ android {
48
48
}
49
49
50
50
compileOptions {
51
- sourceCompatibility JavaVersion . VERSION_1_7
52
- targetCompatibility JavaVersion . VERSION_1_7
51
+ sourceCompatibility JavaVersion . VERSION_1_8
52
+ targetCompatibility JavaVersion . VERSION_1_8
53
53
}
54
54
55
55
dexOptions {
@@ -65,6 +65,7 @@ dependencies {
65
65
compile (" com.optimizely.ab:core-api:$java_core_ver " ) {
66
66
exclude group : ' com.google.code.findbugs'
67
67
}
68
+
68
69
compile " com.android.support:support-annotations:$support_annotations_ver "
69
70
70
71
testCompile " junit:junit:$junit_ver "
@@ -102,13 +103,14 @@ android.libraryVariants.all { variant ->
102
103
103
104
title = " Optimizely X Android SDK"
104
105
105
- options. links(" http://docs.oracle.com/javase/7 /docs/api/" );
106
+ options. links(" http://docs.oracle.com/javase/8 /docs/api/" );
106
107
options. linksOffline(" http://d.android.com/reference" , " ${ android.sdkDirectory} /docs/reference" );
107
108
108
- // First add all of your dependencies to the classpath, then add the android jars
109
- classpath + = files(variant. javaCompile. classpath. files)
110
- classpath + = files(android. getBootClasspath())
111
-
109
+ doFirst {
110
+ // First add all of your dependencies to the classpath, then add the android jars
111
+ classpath + = files(variant. javaCompile. classpath. files)
112
+ classpath + = files(android. getBootClasspath())
113
+ }
112
114
// We're excluding these generated files
113
115
exclude ' **/BuildConfig.java'
114
116
exclude ' **/R.java'
0 commit comments