-
Notifications
You must be signed in to change notification settings - Fork 37
Expand file tree
/
Copy pathbuild.gradle
More file actions
83 lines (74 loc) · 3.75 KB
/
build.gradle
File metadata and controls
83 lines (74 loc) · 3.75 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
/****************************************************************************
* Copyright 2016, Optimizely, Inc. and contributors *
* *
* Licensed under the Apache License, Version 2.0 (the "License"); *
* you may not use this file except in compliance with the License. *
* You may obtain a copy of the License at *
* *
* http://www.apache.org/licenses/LICENSE-2.0 *
* *
* Unless required by applicable law or agreed to in writing, software *
* distributed under the License is distributed on an "AS IS" BASIS, *
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. *
* See the License for the specific language governing permissions and *
* limitations under the License. *
***************************************************************************/
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
android {
namespace "com.optimizely.ab.android.shared"
compileSdk compile_sdk_version
buildToolsVersion build_tools_version
defaultConfig {
minSdkVersion min_sdk_version
targetSdkVersion target_sdk_version
versionCode 1
versionName "1.0"
multiDexEnabled true
testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
}
testOptions {
unitTests.returnDefaultValues = true
}
buildTypes {
release {
minifyEnabled false
}
debug {
testCoverageEnabled true
}
}
buildToolsVersion build_tools_version
}
dependencies {
// 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"
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
implementation "androidx.work:work-runtime:$work_runtime"
// the default json parser for java-sdk core-api (app can exclude it to replace with other parsers)
implementation "com.google.code.gson:gson:$gson_ver"
// Base64
implementation "commons-codec:commons-codec:1.15"
compileOnly "com.noveogroup.android:android-logger:$android_logger_ver"
testImplementation "junit:junit:$junit_ver"
testImplementation "org.mockito:mockito-core:$mockito_ver"
testImplementation "com.noveogroup.android:android-logger:$android_logger_ver"
androidTestImplementation "androidx.work:work-testing:$work_runtime"
androidTestImplementation "androidx.test.ext:junit:$androidx_test_junit"
androidTestImplementation "androidx.test.espresso:espresso-core:$espresso_ver"
// Set this dependency to use JUnit 4 rules
androidTestImplementation "androidx.test:rules:$androidx_test_rules"
androidTestImplementation "androidx.test:core:$androidx_test_core"
androidTestImplementation "androidx.test:core-ktx:$androidx_test_core"
androidTestImplementation "org.mockito:mockito-core:$mockito_ver_sdk_module"
androidTestImplementation "org.mockito:mockito-android:$mockito_ver_sdk_module"
androidTestImplementation "com.noveogroup.android:android-logger:$android_logger_ver"
androidTestImplementation "com.fasterxml.jackson.core:jackson-databind:$jacksonversion"
}