Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
.DS_Store
/build
/captures
libs/
values.gradle
jacoco.exec
.vscode/

11 changes: 8 additions & 3 deletions android-sdk/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,13 @@ dependencies {
api project(':event-handler')
api project(':user-profile')
api project(':odp')
api ("com.optimizely.ab:core-api:$java_core_ver") {
exclude group: 'com.google.code.findbugs'
// Enable using a local core-api jar for testing when the 'useLocalJars' property is specified
if (project.hasProperty('useLocalJars') && file('../libs/core-api.jar').exists()) {
api files('../libs/core-api.jar')
} else {
api ("com.optimizely.ab:core-api:$java_core_ver") {
exclude group: 'com.google.code.findbugs'
}
}
implementation "org.slf4j:slf4j-api:$slf4j_ver"

Expand All @@ -100,7 +105,7 @@ dependencies {
androidTestImplementation "com.noveogroup.android:android-logger:$android_logger_ver"
androidTestImplementation "com.google.code.gson:gson:$gson_ver"
androidTestImplementation "com.fasterxml.jackson.core:jackson-databind:$jacksonversion"

implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
}

Expand Down
9 changes: 7 additions & 2 deletions shared/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,13 @@ android {
}

dependencies {
api ("com.optimizely.ab:core-api:$java_core_ver") {
exclude group: 'com.google.code.findbugs'
// Enable using a local core-api jar for testing when the 'useLocalJars' property is specified
if (project.hasProperty('useLocalJars') && file('../libs/core-api.jar').exists()) {
api files('../libs/core-api.jar')
} else {
api ("com.optimizely.ab:core-api:$java_core_ver") {
exclude group: 'com.google.code.findbugs'
}
}

implementation "androidx.annotation:annotation:$annotations_ver"
Expand Down
Loading