-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
164 lines (141 loc) · 4.79 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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
/*
* Copyright (C) by MinterTeam. 2019
* @link <a href="https://github.com/MinterTeam">Org Github</a>
* @link <a href="https://github.com/edwardstock">Maintainer Github</a>
*
* The MIT License
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
buildscript {
repositories {
mavenLocal()
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.6.2'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.4'
}
}
allprojects {
repositories {
mavenLocal()
google()
jcenter()
maven { url 'https://clojars.org/repo/' }
maven { url 'https://jitpack.io' }
maven { url 'https://dl.bintray.com/minterteam/android' }
maven { url 'https://oss.sonatype.org/content/repositories/snapshots/' }
}
}
apply plugin: 'com.android.library'
apply plugin: 'maven'
apply plugin: 'maven-publish'
apply plugin: 'com.jfrog.bintray'
group = 'network.minter.android'
version = '0.2.6'
ext {
minterMinSdk = 16
minterMaxSdk = 29
minterBuildTools = "29.0.2"
minterCoreSDK = "0.7.1"
buildArtifactName = project.name
buildArtifactVersion = version
buildArtifactGroup = group
pomName = "Minter Profile"
pomUrl = "https://github.com/MinterTeam/minter-android-profile"
pomScm = {
connection = "scm:git:git://github.com/MinterTeam/minter-android-profile.git"
url = pomUrl
}
pomInceptionYear = "2018"
pomContributors = {}
pomDescription = "Android Profile API SDK"
pomDevelopers = {
developer {
id = "edwardstock"
name = "Eduard Maximovich"
email = "edwatd.vstock@gmail.com"
roles = ["maintainer"]
timezone = "Europe/Moscow"
}
}
pomLicenses = {
license {
name = "MIT License"
url = "https://opensource.org/licenses/MIT"
distribution = "repo"
}
}
}
android {
compileSdkVersion minterMaxSdk
buildToolsVersion minterBuildTools
defaultConfig {
minSdkVersion minterMinSdk
targetSdkVersion minterMaxSdk
versionCode 2
versionName version
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
lintOptions {
disable 'CheckResult', 'DefaultLocale'
}
buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
debug {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility 1.8
targetCompatibility 1.8
}
flavorDimensions "env"
productFlavors {
// can't use name starts with 'test'
netMain {
dimension "env"
buildConfigField "String", "BASE_API_URL", '"https://my.apps.minter.network"'
}
netTest {
dimension "env"
buildConfigField "String", "BASE_API_URL", '"https://my.beta.minter.network"'
}
}
}
dependencies {
netTestImplementation "network.minter.android:minter-android-core-testnet:${minterCoreSDK}"
netMainImplementation "network.minter.android:minter-android-core:${minterCoreSDK}"
compileOnly 'com.google.code.findbugs:jsr305:3.0.2'
// network
implementation 'com.squareup.okhttp3:okhttp:4.5.0'
implementation 'com.squareup.okhttp3:logging-interceptor:4.5.0'
implementation 'com.squareup.retrofit2:retrofit:2.8.1'
implementation 'com.squareup.retrofit2:converter-gson:2.8.1'
// stuff
implementation 'org.parceler:parceler-api:1.1.12'
annotationProcessor 'org.parceler:parceler:1.1.12'
}
apply from: 'scripts/maven_publish.gradle'