-
Notifications
You must be signed in to change notification settings - Fork 429
/
build.gradle
166 lines (141 loc) · 5.35 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
165
166
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.github.triplet.gradle:play-publisher:1.1.5'
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'
}
}
apply plugin: 'com.github.triplet.play'
def version = "2.6.1-beta"
android {
compileSdkVersion 28
useLibrary 'org.apache.http.legacy'
def travisBuildNumber = System.getenv("TRAVIS_BUILD_NUMBER")
def buildNumber = (travisBuildNumber) ? (travisBuildNumber as int) : 1
def applicationVersion = version
def travisTag = System.getenv("TRAVIS_TAG")
def buildVersionName = (travisTag) ? travisTag : applicationVersion + "-debug." + buildNumber
defaultConfig {
applicationId "org.openmrs.mobile"
versionName buildVersionName
versionCode buildNumber
multiDexEnabled true
minSdkVersion 16
targetSdkVersion 28
testApplicationId "org.openmrs.mobile.test"
testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
}
configurations.all {
resolutionStrategy.force 'com.google.code.findbugs:jsr305:1.3.9'
}
signingConfigs {
release {
storeFile rootProject.file('release.keystore')
storePassword System.getenv("KEYSTORE_PASSWORD")
keyAlias System.getenv("KEYSTORE_ALIAS_NAME")
keyPassword System.getenv("KEYSTORE_ALIAS_PASS")
}
}
buildTypes {
debug {
testCoverageEnabled true
}
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
signingConfig signingConfigs.release
}
}
lintOptions {
warning 'InvalidPackage'
}
packagingOptions {
exclude 'META-INF/LICENSE'
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/DEPENDENCIES'
exclude 'META-INF/DEPENDENCIES.txt'
exclude 'META-INF/NOTICE'
exclude 'META-INF/NOTICE.txt'
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
testOptions {
unitTests {
returnDefaultValues = true
includeAndroidResources = true
}
}
}
repositories {
maven { url 'http://yanzm.github.io/MaterialTabHost/repository' }
mavenCentral()
jcenter()
maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
google()
}
dependencies {
def support_version = '1.0.0-beta01'
implementation 'com.google.code.gson:gson:2.8.2'
androidTestImplementation(
'junit:junit:4.12',
'androidx.test.ext:junit:1.0.0',
'androidx.test.espresso:espresso-core:3.1.0',
'androidx.test:rules:1.1.0-alpha4',
'androidx.test:runner:1.1.0-alpha4',
'org.mockito:mockito-core:1.10.19',
'com.google.dexmaker:dexmaker-mockito:1.2',
'com.google.dexmaker:dexmaker:1.2',
'com.jayway.android.robotium:robotium-solo:4.2'
)
androidTestImplementation files('libs/the-missing-android-xml-junit-test-runner-release-1.3_2.jar')
implementation 'com.google.guava:guava:23.0'
implementation "androidx.appcompat:appcompat:$support_version"
implementation "androidx.gridlayout:gridlayout:$support_version"
implementation "androidx.recyclerview:recyclerview:$support_version"
implementation "androidx.cardview:cardview:$support_version"
implementation "com.google.android.material:material:$support_version"
implementation 'com.squareup.retrofit2:retrofit:2.3.0'
implementation 'com.squareup.retrofit2:converter-gson:2.1.0'
implementation 'commons-codec:commons-codec:1.10'
implementation 'net.zetetic:android-database-sqlcipher:3.5.1@aar'
implementation 'org.jdeferred:jdeferred-android-aar:1.2.4'
implementation "androidx.legacy:legacy-support-v13:$support_version"
implementation 'com.michaelpardo:activeandroid:3.1.0-SNAPSHOT'
implementation 'com.squareup.okhttp3:logging-interceptor:3.8.0'
implementation 'androidx.multidex:multidex:2.0.0'
implementation 'joda-time:joda-time:2.0'
implementation 'net.sf.kxml:kxml2:2.3.0'
implementation 'io.reactivex:rxjava:1.3.4'
implementation 'io.reactivex:rxandroid:1.2.1'
implementation 'com.jakewharton.rxbinding:rxbinding:1.0.0'
implementation 'com.github.hotchemi:permissionsdispatcher:2.3.1'
annotationProcessor 'com.github.hotchemi:permissionsdispatcher-processor:2.3.1'
implementation 'org.adw.library:discrete-seekbar:1.0.1'
implementation 'com.github.PhilJay:MPAndroidChart:v3.0.2'
implementation 'com.github.amlcurran.showcaseview:library:5.4.3'
implementation 'org.mindrot:jbcrypt:0.4'
testImplementation(
'org.mockito:mockito-core:1.10.19',
'junit:junit:4.12',
'org.powermock:powermock-api-mockito:1.6.6',
'org.powermock:powermock-module-junit4:1.6.6'
)
}
play {
if (version.contains("alpha")) {
track = 'alpha'
} else if (version.contains("beta")) {
track = 'beta'
} else {
track = 'production'
}
serviceAccountEmail = System.getenv("PUBLISHER_ACCOUNT_ID")
jsonFile = rootProject.file('google_play.json')
}