forked from uport-project/uport-android-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
85 lines (67 loc) · 2.14 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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext {
kotlin_version = '1.2.41'
android_tools_version = "3.1.2"
build_tools_version = "27.0.3"
min_sdk_version = 23 //the uport-android-signer lib as of v0.0.1 requires minSDK 23
compile_sdk_version = 27
target_sdk_version = compile_sdk_version
test_runner_version = "1.0.1"
support_lib_version = "27.0.2"
play_services_version = "15.0.0"
espresso_version = "3.0.1"
junit_version = "4.12"
mockito_version = "2.12.0"
coroutines_version = "0.22.5"
moshi_version = "1.6.0"
okhttp_version = "3.10.0"
bivrost_version = "v0.6.2"
kmnid_version = "0.1"
kethereum_version = "0.40"
khex_version = "0.5"
uport_signer_version = "0.1.1"
uport_sdk_version = "0.0.2"
}
repositories {
google()
jcenter()
}
dependencies {
classpath "com.android.tools.build:gradle:$android_tools_version"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
allprojects {
repositories {
google()
jcenter()
maven { url 'https://jitpack.io' }
mavenLocal()
}
}
subprojects { subproject ->
afterEvaluate {
if (subproject.plugins.hasPlugin('maven')) {
group "me.uport.sdk"
version uport_sdk_version
uploadArchives {
repositories {
mavenDeployer {
if (project.hasProperty("MAVEN_REPOSITORY")) {
//nop
} else {
repository(url: mavenLocal().url)
}
}
}
}
}
if (subproject.plugins.hasPlugin("com.android.application") || subproject.plugins.hasPlugin("com.android.library") ) {
subproject.android.packagingOptions.exclude("META-INF/main.kotlin_module")
}
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}