This repository has been archived by the owner on Apr 5, 2023. It is now read-only.
forked from optimizely/android-sdk
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
110 lines (95 loc) · 4.07 KB
/
build.gradle
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
/****************************************************************************
* Copyright 2016-2017, 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. *
***************************************************************************/
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
// def bintray_user = System.getenv('BINTRAY_USER')
// def bintray_api_key = System.getenv('BINTRAY_API_KEY')
// def version_name = System.getenv('TRAVIS_TAG')
// if (bintray_user != null && bintray_api_key != null && version_name != null) {
// rootProject.ext.bintray_user = bintray_user
// rootProject.ext.bintray_api_key = bintray_api_key
// rootProject.ext.version_name = version_name
// } else {
// rootProject.ext.bintray_user = ''
// rootProject.ext.bintray_api_key = ''
// rootProject.ext.version_name= 'debugVersion'
// }
rootProject.ext.version_name= '3.1.0-a1'
repositories {
jcenter()
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.4.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
google()
}
}
ext {
compile_sdk_version = 28
build_tools_version = "28.0.3"
min_sdk_version = 14
target_sdk_version = 28
java_core_ver = "3.2.1"
android_logger_ver = "1.3.6"
jacksonversion= "2.9.9.1"
support_annotations_ver = "24.2.1"
junit_ver = "4.12"
mockito_ver = "1.9.5"
support_test_runner_ver = "0.5"
dexmaker_ver = "1.2"
espresso_ver = "2.2.2"
gson_ver = "2.8.5"
group_id = "com.optimizely.ab"
mavPluginVersion = '1.0.3'
mavProjectName = 'optimizely-android-sdk'
mavLibraryDescription = "A custom version of Optimizely SDK with certificate pinning functionality"
mavSiteUrl = "https://github.com/activehours/optimizely-android-sdk"
mavGitUrl = mavSiteUrl + '.git'
}
task clean(type: Delete) {
delete rootProject.buildDir
}
//task ship() {
// dependsOn(':android-sdk:uploadArchives', ':shared:uploadArchives',
// 'event-handler:uploadArchives', 'user-profile:uploadArchives',
// 'datafile-handler:uploadArchives')
//}
task cleanAllModules () {
logger.info("Running clean for all modules")
}
cleanAllModules.dependsOn(':android-sdk:clean', ':event-handler:clean',
':user-profile:clean', ':shared:clean', ':datafile-handler:clean')
task testAllModules () {
logger.info("Running android tests for all modules")
}
task testAllModulesTravis () {
logger.info("Running android tests for Travis")
}
testAllModulesTravis.dependsOn(':android-sdk:connectedAndroidTest', ':android-sdk:test',
':event-handler:connectedAndroidTest', ':event-handler:test',
':datafile-handler:connectedAndroidTest', ':datafile-handler:test',
':user-profile:connectedAndroidTest', ':shared:connectedAndroidTest')
testAllModules.dependsOn('testAllModulesTravis', ':test-app:connectedAndroidTest')
subprojects {
tasks.withType(Javadoc).all { enabled = false }
}