@@ -48,8 +48,8 @@ android {
4848 }
4949
5050 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
5353 }
5454
5555 dexOptions {
@@ -65,6 +65,7 @@ dependencies {
6565 compile (" com.optimizely.ab:core-api:$java_core_ver " ) {
6666 exclude group : ' com.google.code.findbugs'
6767 }
68+
6869 compile " com.android.support:support-annotations:$support_annotations_ver "
6970
7071 testCompile " junit:junit:$junit_ver "
@@ -102,13 +103,14 @@ android.libraryVariants.all { variant ->
102103
103104 title = " Optimizely X Android SDK"
104105
105- options. links(" http://docs.oracle.com/javase/7 /docs/api/" );
106+ options. links(" http://docs.oracle.com/javase/8 /docs/api/" );
106107 options. linksOffline(" http://d.android.com/reference" , " ${ android.sdkDirectory} /docs/reference" );
107108
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+ }
112114 // We're excluding these generated files
113115 exclude ' **/BuildConfig.java'
114116 exclude ' **/R.java'
0 commit comments