Skip to content

Commit 3c797e2

Browse files
Merge branch 'master' into enable-multiple-column-mappings
2 parents 405b57f + d552685 commit 3c797e2

File tree

82 files changed

+1982
-424
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

82 files changed

+1982
-424
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
[![Dristhi](opensrp-app/res/drawable-mdpi/login_logo.png)](https://smartregister.atlassian.net/wiki/dashboard.action)
55

66

7-
# Table of Contents
7+
# Table of Contents
88

99
* [Introduction](#introduction)
1010
* [Features](#features)

gradle.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
VERSION_NAME=1.7.2-SNAPSHOT
1+
VERSION_NAME=1.7.26-SNAPSHOT
22
VERSION_CODE=1
33
GROUP=org.smartregister
44
POM_SETTING_DESCRIPTION=OpenSRP Client Core Application

maven.gradle

+8-4
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@ apply plugin: 'maven'
22
apply plugin: 'signing'
33

44
def sonatypeRepositoryURL
5-
def mavenLocalFlag = hasProperty('mavenLocal') ? mavenLocal.toBoolean() : true;
6-
5+
def mavenLocalFlag = hasProperty('mavenLocal') ? mavenLocal.toBoolean() : true
6+
def timestampMsg = " at " + getDate()
77
if (isReleaseBuild()) {
8-
println 'PROCESSING MAVEN ' + (mavenLocalFlag ? 'LOCAL' : 'REMOTE') + ' RELEASE BUILD VERSION ' + project.VERSION_NAME + '...'
8+
println 'PROCESSING MAVEN ' + (mavenLocalFlag ? 'LOCAL' : 'REMOTE') + ' RELEASE BUILD VERSION ' + project.VERSION_NAME + timestampMsg + '...'
99
sonatypeRepositoryURL = hasProperty('RELEASE_REPOSITORY_URL') ? RELEASE_REPOSITORY_URL
1010
: "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
1111
} else {
12-
println 'PROCESSING MAVEN ' + (mavenLocalFlag ? 'LOCAL' : 'REMOTE') + ' SNAPSHOT BUILD VERSION ' + project.VERSION_NAME + '...'
12+
println 'PROCESSING MAVEN ' + (mavenLocalFlag ? 'LOCAL' : 'REMOTE') + ' SNAPSHOT BUILD VERSION ' + project.VERSION_NAME + timestampMsg + '...'
1313
sonatypeRepositoryURL = hasProperty('SNAPSHOT_REPOSITORY_URL') ? SNAPSHOT_REPOSITORY_URL
1414
: "https://oss.sonatype.org/content/repositories/snapshots/"
1515

@@ -131,4 +131,8 @@ afterEvaluate { project ->
131131
username getRepositoryUsername()
132132
password getRepositoryPassword()
133133
}
134+
}
135+
136+
def getDate() {
137+
return new Date().format('yyyy-MM-dd HH:mm:ss')
134138
}

opensrp-app/build.gradle

+12-24
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ buildscript {
1414
}
1515
}
1616

17-
18-
1917
allprojects {
2018
repositories {
2119
maven { url 'https://oss.sonatype.org/content/repositories/snapshots/' }
@@ -104,7 +102,6 @@ android {
104102
androidTest.setRoot('src/androidTest')
105103
}
106104

107-
108105
aaptOptions {
109106
noCompress 'apk'
110107
}
@@ -159,65 +156,60 @@ dependencies {
159156
implementation 'com.android.support:appcompat-v7:28.0.0'
160157
implementation 'com.android.support:support-v4:28.0.0'
161158
implementation "org.apache.httpcomponents:httpmime:4.2.3"
162-
implementation 'com.google.code.gson:gson:2.3'
163-
implementation group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.1.1'
164159
implementation group: 'commons-codec', name: 'commons-codec', version: '1.10'
165160
implementation group: 'com.google.guava', name: 'guava', version: '20.0'
166161
implementation group: 'commons-io', name: 'commons-io', version: '2.4'
167162
implementation 'org.apache.commons:commons-lang3:3.2'
168163
implementation 'org.mozilla:rhino:1.7R4'
169164
implementation 'com.ocpsoft:ocpsoft-pretty-time:1.0.7'
170-
implementation 'joda-time:joda-time:2.3'
165+
api 'joda-time:joda-time:2.10.3'
171166
implementation 'com.github.bmelnychuk:atv:1.2.9'
172167
implementation 'com.github.johnkil.print:print:1.2.3'
168+
173169
implementation('com.crashlytics.sdk.android:crashlytics:2.10.1@aar') {
174170
transitive = true
175171
}
172+
176173
implementation('ch.acra:acra:4.5.0') {
177174
exclude group: 'org.json', module: 'json'
178175
}
179-
implementation 'com.github.ybq:Android-SpinKit:1.2.0'
180176

181-
implementation 'com.google.guava:guava:18.0'
177+
implementation 'com.github.ybq:Android-SpinKit:1.2.0'
182178
implementation 'com.mcxiaoke.volley:library:1.0.19'
179+
183180
implementation fileTree(include: ['*.jar'], dir: 'libs')
184181
annotationProcessor fileTree(include: ['butterknife*.jar'], dir: 'libs')
185-
implementation 'com.cloudant:cloudant-http:2.7.0'
186182

183+
implementation 'com.cloudant:cloudant-http:2.7.0'
187184
implementation 'com.android.support:recyclerview-v7:28.0.0'
188185

189186
implementation('com.android.support:design:28.0.0') {
190187
exclude group: 'com.android.support', module: 'recyclerview-v7'
191188
exclude group: 'com.android.support', module: 'cardview-v7'
192-
193189
}
194190

195191
implementation 'com.evernote:android-job:1.2.6'
196-
implementation 'com.rengwuxian.materialedittext:library:2.1.4'
197-
implementation 'com.google.android.gms:play-services-vision:17.0.2'
198192
implementation group: 'commons-validator', name: 'commons-validator', version: '1.6'
199193
implementation 'de.hdodenhof:circleimageview:2.2.0'
200194

201-
implementation ('org.smartregister:android-p2p-sync:0.3.1-SNAPSHOT') {
195+
implementation('org.smartregister:android-p2p-sync:0.3.1-SNAPSHOT') {
202196
exclude group: 'com.android.support', module: 'support-v4'
203197
exclude group: 'com.android.support', module: 'appcompat-v7'
204198
exclude group: 'android.arch.core', module: 'runtime'
205199
}
206200
}
207201

208202
dependencies {
209-
androidTestImplementation 'com.jayway.android.robotium:robotium-solo:4.3'
210-
androidTestImplementation 'com.google.dexmaker:dexmaker-mockito:1.0'
203+
204+
implementation fileTree(include: ['*.jar'], dir: 'libs')
211205
androidTestImplementation 'junit:junit:4.12'
212206

213207
testImplementation group: 'com.google.android', name: 'android-test', version: '4.1.1.4'
214208
testImplementation 'org.apache.maven:maven-ant-tasks:2.1.3'
215209
testImplementation 'org.mockito:mockito-core:1.9.5'
216-
testImplementation('com.squareup:fest-android:1.0.3') { exclude module: 'support-v4' }
217-
implementation fileTree(include: ['*.jar'], dir: 'libs')
218210
testAnnotationProcessor fileTree(include: ['butterknife*.jar'], dir: 'libs')
219-
testImplementation('org.robolectric:robolectric:3.8') {
220211

212+
testImplementation('org.robolectric:robolectric:3.8') {
221213
exclude group: 'com.google.guava', module: 'guava'
222214
exclude group: 'org.apache.maven', module: 'maven-model'
223215
exclude group: 'com.android.support'
@@ -226,24 +218,20 @@ dependencies {
226218
testImplementation('org.robolectric:shadows-multidex:3.8') {
227219
exclude group: 'com.google.guava', module: 'guava'
228220
}
221+
229222
testImplementation('org.robolectric:shadows-support-v4:3.3.2') {
230223
exclude group: 'com.google.guava', module: 'guava'
231224
}
232225

233-
androidTestImplementation('com.android.support.test.espresso:espresso-core:2.+') {
234-
235-
exclude group: 'com.android.support', module: 'support-annotations'
236-
exclude group: 'junit', module: 'junit'
237-
}
238226
testImplementation "org.robolectric:shadows-support-v4:3.3.2"
239227
// PowerMock
240228
def powerMockVersion = '1.7.1'
241229
testImplementation "org.powermock:powermock-module-junit4:$powerMockVersion"
242230
testImplementation "org.powermock:powermock-module-junit4-rule:$powerMockVersion"
243231
testImplementation "org.powermock:powermock-api-mockito2:$powerMockVersion"
244232
testImplementation("org.powermock:powermock-classloading-xstream:$powerMockVersion")
245-
246233
}
234+
247235
task clearJar(type: Delete) {
248236
delete 'build/libs/myCompiledLibrary.jar'
249237
}

opensrp-app/jacoco.exec

616 Bytes
Binary file not shown.

opensrp-app/res/values-ar/strings.xml

+16
Original file line numberDiff line numberDiff line change
@@ -398,5 +398,21 @@
398398
<string name="do_not_edit_client_records_until_complete">Do not edit client records until complete.</string>
399399
<string name="processing_disclaimer">Records will be processed for up to 10 minutes before your records will be updated. Do not edit medical records until the process is complete.</string>
400400

401+
<!-- Duration -->
402+
<string name="x_seconds">%1$dث</string>
403+
<string name="x_minutes">%1$dد</string>
404+
<string name="x_hours">%1$dس</string>
405+
<string name="x_days">%1$dيـ</string>
406+
<string name="x_weeks">%1$dأ</string>
407+
<string name="x_weeks_days">%1$dأ
408+
%2$dيـ
409+
</string>
410+
<string name="x_months">%1$dش</string>
411+
<string name="x_months_weeks">%1$dش
412+
%2$dأ
413+
</string>
414+
<string name="x_years">%1$dس</string>
415+
<string name="x_years_months">%1$dس
416+
%2$dش</string>
401417

402418
</resources>

0 commit comments

Comments
 (0)