Skip to content

Commit 6f6407a

Browse files
committed
fix gradle settings
1 parent 8d660b3 commit 6f6407a

File tree

4 files changed

+26
-1
lines changed

4 files changed

+26
-1
lines changed

build.gradle

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,9 @@ configure(publishedProjects) {
205205

206206
title = docTitle
207207

208+
// Set unique output directory for each variant
209+
destinationDir = file("${project.buildDir}/docs/javadoc/${variant.name}")
210+
208211
options.links("http://docs.oracle.com/javase/7/docs/api/");
209212

210213
// First add all of your dependencies to the classpath, then add the android jars
@@ -239,6 +242,17 @@ configure(publishedProjects) {
239242
}
240243

241244
android {
245+
compileOptions {
246+
sourceCompatibility JavaVersion.VERSION_17
247+
targetCompatibility JavaVersion.VERSION_17
248+
}
249+
250+
lint {
251+
disable 'GradleDependency', 'VisibleForTesting', 'UnsafeProtectedBroadcastReceiver'
252+
abortOnError true
253+
warningsAsErrors false
254+
}
255+
242256
publishing {
243257
singleVariant("release") {
244258
withSourcesJar()

event-handler/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ android {
4444
testCoverageEnabled true
4545
}
4646
}
47+
4748
buildToolsVersion build_tools_version
4849
}
4950

event-handler/src/main/java/com/optimizely/ab/android/event_handler/EventDispatcher.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
*
4040
* This abstraction makes unit testing much simpler
4141
*/
42-
@VisibleForTesting(otherwise = VisibleForTesting.PROTECTED)
42+
@VisibleForTesting(otherwise = VisibleForTesting.PACKAGE_PRIVATE)
4343
public class EventDispatcher {
4444

4545
@NonNull private final Context context;

test-app/build.gradle

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,16 @@ android {
3030
signingConfig signingConfigs.debug
3131
}
3232
}
33+
34+
compileOptions {
35+
sourceCompatibility JavaVersion.VERSION_17
36+
targetCompatibility JavaVersion.VERSION_17
37+
}
38+
39+
kotlinOptions {
40+
jvmTarget = '17'
41+
}
42+
3343
packagingOptions {
3444
resources {
3545
excludes += ['META-INF/LICENSE.txt', 'META-INF/NOTICE.txt', 'META-INF/LICENSE', 'META-INF/NOTICE']

0 commit comments

Comments
 (0)