Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Module metadata configuration interfaces #648

Open
wants to merge 208 commits into
base: add-configurable-register-profile-contracts
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
208 commits
Select commit Hold shift + click to select a range
5942583
Update gradle version
rkodev Jun 24, 2020
018064d
Migrate to andorid X
rkodev Jun 24, 2020
4a7b7a1
run coveralls only for library
githengi Jun 24, 2020
dae8605
Fix tests
rkodev Jun 24, 2020
88ac385
Merge origin/fix_unit_tests
rkodev Jun 24, 2020
d26b638
Update broken anotation
rkodev Jun 24, 2020
d8725b4
Add fragment test
rkodev Jun 26, 2020
ad97180
Fix HttpResponse and AsyncTask
rkodev Jun 26, 2020
23ef322
Merge branch 'master' into android_x_support
rkodev Jun 29, 2020
6327b05
Fix tests
rkodev Jun 30, 2020
936822d
Merge branch 'android_x_support' of github.com:OpenSRP/opensrp-client…
rkodev Jun 30, 2020
cd1a934
Resolve conflits with master
rkodev Jul 20, 2020
5ba2a00
Merge branch 'master' into android_x_support
rkodev Jul 20, 2020
af9df04
Merge master
rkodev Aug 26, 2020
a1db750
Remove android old issues
rkodev Aug 26, 2020
a4c03de
Fix imports and codacy standards
rkodev Aug 26, 2020
ba031b9
Exclude android from evrnote
rkodev Aug 31, 2020
f250434
Merge branch 'master' into android_x_support
rkodev Aug 31, 2020
5ec59fc
Remove stacktrace from travis
rkodev Aug 31, 2020
6c1a97b
Remov andorid support
rkodev Aug 31, 2020
35b93cb
Fix import
rkodev Aug 31, 2020
4004fbe
Update issues
rkodev Aug 31, 2020
8589157
Fix broken tests
rkodev Sep 1, 2020
48f5893
Codacy clean up login activity
rkodev Sep 1, 2020
3f16d80
Codacy clean up secured activity
rkodev Sep 1, 2020
1206148
Merge origin/master 2.0 to AndoridX
rkodev Sep 1, 2020
6be2a2b
Fix imports form new code
rkodev Sep 1, 2020
c022f49
merge origin master to androidX
rkodev Sep 4, 2020
ce124bf
merge origin master to androidX
rkodev Sep 4, 2020
c029c29
Add test for sync using GET
Rkareko Sep 8, 2020
9e3488d
Add update progress and handle intent tests
Rkareko Sep 8, 2020
514f6e0
Merge branch 'master' into rkareko-tt-26
Rkareko Sep 14, 2020
75ddc0f
Add tests for P2PSenderTransferDao
ekigamba Sep 15, 2020
3c6456b
Add tests for P2PReceiverTransferDao
ekigamba Sep 15, 2020
26e8c59
Add tests for StructureRepository#addOrUpdate
ekigamba Sep 15, 2020
e0917cc
Code cleanup
ekigamba Sep 15, 2020
7086c84
Add Module metadata configuration interfaces
ekigamba Sep 21, 2020
9d85d06
Allow sync by location Ids for clients
githengi Sep 22, 2020
b63d2c4
If location filters are provided sync data by locationIds
githengi Sep 22, 2020
80f73d0
Support lookup by location Id for events and clients
githengi Sep 22, 2020
3d42027
build dynamic data types only when location filter is defined, other…
githengi Sep 22, 2020
cd923c8
extract locationId only if location filter is enabled
githengi Sep 22, 2020
1eabe1e
Cleanup
githengi Sep 22, 2020
4a2a0f3
Implement location filter for structure and task p2p sync
githengi Sep 23, 2020
1d8287e
pass p2p options in core library
githengi Sep 23, 2020
2f9ae5e
Code cleanup
githengi Sep 23, 2020
09f2352
location Id on event table
githengi Sep 23, 2020
4f12fdd
Populate locationId on event table
githengi Sep 23, 2020
6cb79df
Bump up version
githengi Sep 23, 2020
5489679
only populate locationId if its found on event
githengi Sep 23, 2020
f0619b1
PR review requested changes
githengi Sep 23, 2020
3838bee
populate location id when saving events
githengi Sep 23, 2020
20b0336
Optimize imports
githengi Sep 23, 2020
1da0ccb
Merge pull request #652 from OpenSRP/651-p2p-sync-by-locations
githengi Sep 23, 2020
e8d3918
Fix logout login exception
ndegwamartin Sep 23, 2020
55b8d06
Add check for null login presenter
ndegwamartin Sep 23, 2020
eebb416
Merge pull request #653 from OpenSRP/fix-login-logout-exception
ndegwamartin Sep 23, 2020
f0615b5
Save assigned jurisdiction Ids during login
githengi Sep 16, 2020
0a938a9
Remove unsed code used when reveal was using OpenMRS team management
githengi Sep 16, 2020
7ff2774
Send jurisdiction Ids when synching locations
githengi Sep 16, 2020
3cca027
Validate user assignments after sync
githengi Sep 16, 2020
7aa98aa
Validate user assignments only if keycloak is configured
githengi Sep 16, 2020
b801d29
Support retrieving boolean preferences
githengi Sep 16, 2020
fc2faf9
Set locationIds if they exist
githengi Sep 16, 2020
731f285
delete locations and plans that a user no longer has access to
githengi Sep 16, 2020
b5a8f5c
Remove locations from location tree
githengi Sep 16, 2020
0726380
remove jurisdictions that use no longer has access on preferences
githengi Sep 16, 2020
3b5c7aa
Unit test remove locations from hiearchy
githengi Sep 18, 2020
626281b
Unit test removing locations are removed from the location hierachy
githengi Sep 18, 2020
750799a
Correct logic of removing locations from lcation tree
githengi Sep 18, 2020
9c0b8bb
broadcast removed assignments if new assignments have not been added
githengi Sep 18, 2020
4a98862
Evict location heirarchy cache
githengi Sep 18, 2020
a94f9e7
Logoff if user default location is revoked
githengi Sep 18, 2020
49a2fad
reset sync when new assignments are assigned
githengi Sep 18, 2020
b096e71
bump up version as per semver
githengi Sep 21, 2020
0f1ca58
Add a receiver for removed assignments
githengi Sep 21, 2020
c3cb7d4
Broadcast receiver allow registration of multiple listeners
githengi Sep 21, 2020
be619bb
Add a unit testing if location is removed and parent is without child…
githengi Sep 21, 2020
3e506fa
Remove parent from hierarchy if only child is removed
githengi Sep 21, 2020
6e50942
Remove unsed fields and optimize imports
githengi Sep 24, 2020
d202162
Assert location cache is evicted
githengi Sep 24, 2020
cad29ed
Add unit tests for new assignments and removed assignments
githengi Sep 24, 2020
4b4e0bb
Remove internal try catch
githengi Sep 24, 2020
7e316c1
unit test removing default location user is logged off
githengi Sep 24, 2020
3a991fa
Add receiver Unit tests
githengi Sep 24, 2020
246538c
Add unit tests
githengi Sep 24, 2020
3235f0f
add teardown method and correct injecting mocks syntax
githengi Sep 24, 2020
c7e98bf
unit test get assignment throws error if null
githengi Sep 24, 2020
47439c3
Return boolean if validation succeeded
githengi Sep 24, 2020
f241d41
Add interfaces & default implementations for register page & library …
ekigamba Sep 24, 2020
4b89e5a
stub getFormattedBaseUrl
githengi Sep 24, 2020
96571be
fix app crash bugs
bennsimon Sep 25, 2020
7487912
PR requested changes
githengi Sep 25, 2020
a076c61
clean up
githengi Sep 25, 2020
c295cad
Merge pull request #647 from OpenSRP/640-track-user-assignents-and-lo…
githengi Sep 25, 2020
1909474
Merge branch 'master' into fix-crash-bugs
bennsimon Sep 25, 2020
3432552
Merge branch 'master' of github.com:OpenSRP/opensrp-client-core into …
bennsimon Sep 25, 2020
ca07347
update snapshot version
bennsimon Sep 25, 2020
050b567
Merge branch 'fix-crash-bugs' of github.com:OpenSRP/opensrp-client-co…
bennsimon Sep 25, 2020
39f9dee
add tests
bennsimon Sep 25, 2020
82675c1
Merge pull request #655 from OpenSRP/fix-crash-bugs
bennsimon Sep 25, 2020
cd640f5
Add default implementations of RegisterActivity & RegisterFragment
ekigamba Sep 25, 2020
611f0d7
Remove double forward slash causing security error on keycloack
vincent-karuri Sep 28, 2020
b5a2da6
Merge remote-tracking branch 'origin/master' into fix-security-bug
vincent-karuri Sep 28, 2020
308b4ed
Bump lib version
vincent-karuri Sep 28, 2020
98e48ff
Fix failing test
vincent-karuri Sep 28, 2020
a4c98a9
Merge pull request #657 from OpenSRP/fix-security-bug
vincent-karuri Sep 28, 2020
c712fcf
handle assignments ar higher level
githengi Sep 28, 2020
ea906f8
Check for higher level jurisdictions before removing
githengi Sep 28, 2020
58a2b95
update unit broken unit test, delete node return if node deos not exist
githengi Sep 28, 2020
4c625b3
Merge pull request #658 from OpenSRP/validate-assignment-handle-assig…
githengi Sep 28, 2020
81309e4
Fix import error in BaseConfigurableRegisterFragmen & add BaseConfig.…
ekigamba Sep 28, 2020
bf28bb2
Merge branch 'master' into kigamba-tt-15-09-2020
dubdabasoduba Sep 29, 2020
92e5ea8
Merge pull request #644 from OpenSRP/kigamba-tt-15-09-2020
ekigamba Sep 29, 2020
560f7f1
support checking if location and children and returning location chil…
githengi Sep 29, 2020
12a2f5f
Only check for locations assigned at higher levels i.e have children
githengi Sep 29, 2020
a504e44
Remove current assignment asssigned at higher levels
githengi Sep 29, 2020
5607396
Remove account disabled intent key after showing dialog
githengi Sep 29, 2020
c89fdde
optimize remove assigned locations at higher levels
githengi Sep 29, 2020
25ea17c
Show error dialog only if activity is not destroyed on not finishing
githengi Sep 29, 2020
4ae5f4a
Log off user only if session is active
githengi Sep 29, 2020
185b5ad
Add app version & DB version to CoreLibrary
ekigamba Sep 29, 2020
adaf2c0
correct logic for checking addition of new jurisdictions
githengi Sep 29, 2020
ab9d1f1
Add configurable register implementation in sample module
ekigamba Sep 29, 2020
6ef548e
Remove location tree calculation as the API should now return all lea…
githengi Sep 29, 2020
e12e937
Update unit test
githengi Sep 29, 2020
33b9ce2
remove unused functions
githengi Sep 29, 2020
8031816
Merge pull request #661 from OpenSRP/validate-assignment-handle-assig…
githengi Sep 30, 2020
04fdd19
Fix register configuration & starting registration form
ekigamba Sep 30, 2020
2cbf2d0
Enable processing registration forms
ekigamba Oct 1, 2020
45f61f4
Bug fixes :🐛
ndegwamartin Sep 28, 2020
0467740
Add account type check onAccountUpdated callback
ndegwamartin Oct 5, 2020
44ebe64
Add try catch for SyncUtils.isAppVersionAllowed
ndegwamartin Oct 5, 2020
9327b1a
:arrow_up: Update client-utils version
allan-on Oct 8, 2020
30cd332
:recycle: Add default implementations for starFormActivity
allan-on Oct 8, 2020
b43c0a9
Apply translations in sw
transifex-integration[bot] Oct 8, 2020
144b4d6
Remove OPD references
ekigamba Oct 1, 2020
2f2bb68
Add EventClientRepository method to fetch client as CommonPersonObjec…
ekigamba Oct 9, 2020
4e150d4
Merge pull request #664 from OpenSRP/translations_strings-xml--master_sw
ndegwamartin Oct 12, 2020
41dab6c
Bug fixes :🐛
ndegwamartin Sep 28, 2020
8ca791e
Add account type check onAccountUpdated callback
ndegwamartin Oct 5, 2020
3438591
Add try catch for SyncUtils.isAppVersionAllowed
ndegwamartin Oct 5, 2020
8ff27b5
Merge pull request #659 from OpenSRP/bug-fixes
ndegwamartin Oct 12, 2020
85d9315
Update with core version
rkodev Oct 13, 2020
b4b2aa2
Codacy clean up
rkodev Oct 13, 2020
9e78110
Merge branch 'master' of github.com:OpenSRP/opensrp-client-core
qiarie Oct 13, 2020
1d79b54
:hammer: add overload method to fetch LocationServiceHelper
Oct 7, 2020
8cecb1f
feedback implemented
Oct 8, 2020
c2f4e3e
:hammer: WIP
Oct 8, 2020
62f7f5d
Add method to sync location hierarchy by specifying parent id
vincent-karuri Oct 12, 2020
adf4bc8
Add unit tests for getLocationHierarchy
qiarie Oct 14, 2020
bb95a4f
Update unit tests
qiarie Oct 14, 2020
b0af7d9
Bump up version
qiarie Oct 14, 2020
1f8c2b9
Merge pull request #663 from OpenSRP/modify-location-service
vincent-karuri Oct 14, 2020
074a85c
Bump up major artifact version number
ndegwamartin Oct 15, 2020
8e29956
Merge branch 'master' into android_x_support
rkodev Oct 15, 2020
1426acb
Upgrade merged objects
rkodev Oct 15, 2020
0bf257b
Add method for cancelling task by identifier
Rkareko Oct 16, 2020
3039ca4
Bump up version
Rkareko Oct 16, 2020
298d9a4
Merge pull request #666 from OpenSRP/add-cancell-task-by-identifier-m…
Rkareko Oct 16, 2020
c5d6317
Merge branch 'master' into android_x_support
qiarie Oct 16, 2020
5132a05
Merge pull request #570 from OpenSRP/android_x_support
ndegwamartin Oct 16, 2020
94e5f06
:lipstick: Add Configurable Toolbar placeholder layouts
allan-on Oct 16, 2020
a2272e7
:construction: Add new Toolbar UI enabling config
allan-on Oct 16, 2020
678a97d
:construction: Add Toolbar and search drawables
allan-on Oct 18, 2020
1f44de3
:construction: Add/Modify new UI Toolbar layouts
allan-on Oct 18, 2020
18e5711
:construction: Add new UI colours, strings & styles
allan-on Oct 18, 2020
da65e43
Fix closing unique_id after registration for unique_ids labelled as o…
ekigamba Oct 19, 2020
a81955e
:arrow-up: Increment development version to 2.1.2.3-SNAPSHOT
ekigamba Oct 19, 2020
e4ea418
Enable saving form image as contract on ModuleFormProcessor
ekigamba Oct 19, 2020
5707a52
Run saveImage interface implementation
ekigamba Oct 21, 2020
d871b24
:globe_with_meridians: Update register title String
allan-on Oct 21, 2020
d01fbe3
Merge branch 'add-configurability-goldsmith-design' of github.com:Ope…
allan-on Oct 21, 2020
d410ec6
Merge branch 'master' of github.com:OpenSRP/opensrp-client-core into …
allan-on Oct 21, 2020
618ea52
:bug: Handle NPE when new layout is initialized
allan-on Oct 22, 2020
b57df84
:construction: Add 'Add new clients' FAB
allan-on Oct 22, 2020
2fd53c8
:construction: Add initialize new configurable views
allan-on Oct 22, 2020
c80e103
:construction: Add Toolbar back arrow
allan-on Oct 22, 2020
f70187c
:construction: Fix search UI & update Toolbar view references
allan-on Oct 22, 2020
b222da0
:lipstick: Add back arrow Vector
allan-on Oct 22, 2020
9afb800
:lipstick: Style FAB text
allan-on Oct 22, 2020
5685277
use username from server when creating account manager account
githengi Oct 23, 2020
97d9ec8
Merge pull request #668 from OpenSRP/627-account-store-based-on-response
githengi Oct 26, 2020
5b5a3d7
Save passphrase per user
githengi Oct 26, 2020
d521af6
add a method to migrate pashphrase
githengi Oct 26, 2020
402db73
Bump up version
githengi Oct 26, 2020
09bed3c
Migrate passphrase when app is starting
githengi Oct 26, 2020
6002805
Update unit tests
githengi Oct 26, 2020
a39c0c5
Getter for baseEntityId used when processing Case Models
Rkareko Oct 26, 2020
5740063
Bump up version
Rkareko Oct 26, 2020
1f9b248
Update java docs
Rkareko Oct 26, 2020
1f0a6bd
Merge pull request #671 from OpenSRP/add-base-entity-id-getter
Rkareko Oct 27, 2020
96ac72e
Merge branch 'master' into 669-users-of-same-team-requires-clear-data
githengi Oct 27, 2020
7a6ab18
Bump up version
githengi Oct 27, 2020
5df701d
Merge branch 'master' into rkareko-tt-26
Rkareko Oct 27, 2020
e12a68b
Merge pull request #670 from OpenSRP/669-users-of-same-team-requires-…
githengi Oct 27, 2020
5981629
Merge branch 'master' into rkareko-tt-26
Rkareko Oct 27, 2020
7f7e116
Merge pull request #638 from OpenSRP/rkareko-tt-26
Rkareko Oct 28, 2020
27132de
Use tilde to delimit P2P sender transfer dao datatype name and the lo…
Rkareko Oct 28, 2020
d9fd86d
:heavy_minus_sign: Remove duplicate dependencies
allan-on Oct 28, 2020
eeece39
Bump up version
Rkareko Oct 28, 2020
51534da
:bug: FIx search crash due to NPE
allan-on Oct 28, 2020
7f3427c
:construction: Add setting toolbar logo as Register config
allan-on Oct 28, 2020
52397ea
:construction: Set logo & set visible when logo is in config
allan-on Oct 28, 2020
8e61d7f
:lipstick: Change Toolbar icons to material defaults
allan-on Oct 28, 2020
748c31f
Merge pull request #675 from OpenSRP/674-update-p2p-sender-datatype-s…
Rkareko Oct 29, 2020
f2529ef
Merge branch 'master' of github.com:OpenSRP/opensrp-client-core into …
allan-on Oct 29, 2020
252ecd7
Merge pull request #654 from OpenSRP/add-configurability-goldsmith-de…
allan-on Oct 29, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ before_script:
- chmod +x gradlew

script:
- ./gradlew opensrp-app:clean opensrp-app:jacocoTestReport --stacktrace
- ./gradlew opensrp-app:clean opensrp-app:jacocoTestReport --stacktrace

after_success:
- ./gradlew opensrp-app:coveralls --stacktrace
Expand Down
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ buildscript {

dependencies {
classpath "io.codearte.gradle.nexus:gradle-nexus-staging-plugin:0.11.0"
classpath 'com.android.tools.build:gradle:4.0.0'
classpath 'gradle.plugin.org.kt3k.gradle.plugin:coveralls-gradle-plugin:2.10.1'
classpath 'org.smartregister:gradle-jarjar-plugin:1.0.0-SNAPSHOT'
}
Expand Down
4 changes: 3 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VERSION_NAME=2.1.2.1-SNAPSHOT
VERSION_NAME=3.0.4.1-SNAPSHOT
VERSION_CODE=1
GROUP=org.smartregister
POM_SETTING_DESCRIPTION=OpenSRP Client Core Application
Expand All @@ -11,5 +11,7 @@ POM_SETTING_LICENCE_URL=http://www.apache.org/licenses/LICENSE-2.0.txt
POM_SETTING_LICENCE_DIST=repo
POM_SETTING_DEVELOPER_ID=opensrp
POM_SETTING_DEVELOPER_NAME=OpenSRP Onadev
android.useAndroidX=true
android.enableJetifier=true

org.gradle.jvmargs=-Xmx2048m
13 changes: 7 additions & 6 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
#Tue May 15 18:45:24 EAT 2018
org.gradle.daemon=true
zipStorePath=wrapper/dists
org.gradle.parallel=true
#Wed Jun 24 12:56:07 EAT 2020
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
org.gradle.daemon=true
distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-all.zip
org.gradle.configureondemand=true
distributionPath=wrapper/dists
distributionBase=GRADLE_USER_HOME
org.gradle.parallel=true
org.gradle.jvmargs=-Xmx2048m
6 changes: 6 additions & 0 deletions opensrp-app/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,12 @@
android:launchMode="singleTask"
android:screenOrientation="portrait" />

<activity
android:name=".view.activity.BaseConfigurableRegisterActivity"
android:exported="false"
android:screenOrientation="portrait"
android:theme="@style/MaterialAppThemeNoActionBarAndTitle" />

<receiver
android:name=".view.receiver.SyncBroadcastReceiver"
android:exported="false" />
Expand Down
91 changes: 45 additions & 46 deletions opensrp-app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,14 @@ buildscript {
google()
jcenter()
maven { url 'https://maven.fabric.io/public' }
maven{ url "https://plugins.gradle.org/m2/" }
}

dependencies {

classpath "com.android.tools.build:gradle:$androidToolsBuildGradle"
classpath 'org.apache.commons:commons-lang3:3.3.2'
classpath 'io.fabric.tools:gradle:1.30.0'
classpath 'org.apache.commons:commons-lang3:3.10'
classpath 'io.fabric.tools:gradle:1.31.2'
}
}

Expand Down Expand Up @@ -53,7 +55,6 @@ android {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
coreLibraryDesugaringEnabled true

}

buildTypes {
Expand Down Expand Up @@ -91,8 +92,8 @@ android {
//applicationId "org.smartregister"
minSdkVersion androidMinSdkVersion
targetSdkVersion androidTargetSdkVersion
versionCode Integer.parseInt(project.VERSION_CODE)
versionName project.VERSION_NAME
versionCode 12
versionName "12"
testInstrumentationRunner "android.test.InstrumentationTestRunner"
buildConfigField "long", "BUILD_TIMESTAMP", System.currentTimeMillis() + "L"
buildConfigField "int", "DB_ENCRYPTION_VERSION", '1'
Expand Down Expand Up @@ -159,21 +160,26 @@ configurations.all {

dependencies {
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:1.0.5'
implementation 'net.zetetic:android-database-sqlcipher:4.1.3'
implementation 'com.android.support:multidex:1.0.3'
implementation 'net.zetetic:android-database-sqlcipher:4.2.0'
implementation 'androidx.multidex:multidex:2.0.1'
implementation 'org.codehaus.jackson:jackson-core-asl:1.9.13'
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support:support-v4:28.0.0'
implementation "org.apache.httpcomponents:httpmime:4.2.3"
implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation "org.apache.httpcomponents:httpmime:4.5.6"
implementation group: 'commons-codec', name: 'commons-codec', version: '1.10'
implementation group: 'com.google.guava', name: 'guava', version: '20.0'
implementation group: 'com.google.guava', name: 'guava', version: '24.1-jre'
implementation group: 'commons-io', name: 'commons-io', version: '2.4'
implementation 'org.apache.commons:commons-lang3:3.2'
implementation 'org.apache.commons:commons-lang3:3.9'
implementation 'org.mozilla:rhino:1.7R4'
implementation 'com.ocpsoft:ocpsoft-pretty-time:1.0.7'
api 'joda-time:joda-time:2.10.3'
implementation 'com.github.bmelnychuk:atv:1.2.9'
implementation 'com.github.johnkil.print:print:1.2.3'
api 'joda-time:joda-time:2.10.5'
implementation ('com.github.bmelnychuk:atv:1.2.9'){
exclude group: 'com.google.android', module: 'android'
}

implementation ('com.github.johnkil.print:print:1.3.1'){
exclude group: 'com.google.android', module: 'android'
}

implementation('com.crashlytics.sdk.android:crashlytics:2.10.1@aar') {
transitive = true
Expand All @@ -183,81 +189,72 @@ dependencies {
exclude group: 'org.json', module: 'json'
}

implementation 'com.github.ybq:Android-SpinKit:1.2.0'
implementation 'com.github.ybq:Android-SpinKit:1.4.0'
implementation 'com.mcxiaoke.volley:library:1.0.19'

implementation fileTree(include: ['*.jar'], dir: 'libs')
annotationProcessor fileTree(include: ['butterknife*.jar'], dir: 'libs')

implementation 'com.cloudant:cloudant-http:2.7.0'
implementation 'com.android.support:recyclerview-v7:28.0.0'
implementation 'androidx.recyclerview:recyclerview:1.1.0'

implementation('com.android.support:design:28.0.0') {
implementation('com.google.android.material:material:1.1.0') {
exclude group: 'com.android.support', module: 'recyclerview-v7'
}

implementation 'com.evernote:android-job:1.2.6'
implementation ('com.evernote:android-job:1.2.6'){
exclude group: 'com.google.android', module: 'android'
}

implementation group: 'commons-validator', name: 'commons-validator', version: '1.6'
implementation 'de.hdodenhof:circleimageview:2.2.0'
implementation ('de.hdodenhof:circleimageview:3.1.0'){
exclude group: 'com.google.android', module: 'android'
}

implementation('org.smartregister:android-p2p-sync:0.3.7-SNAPSHOT') {
exclude group: 'com.android.support', module: 'support-v4'
exclude group: 'com.android.support', module: 'appcompat-v7'
exclude group: 'android.arch.core', module: 'runtime'
}

implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0'
compileOnly 'org.projectlombok:lombok:1.18.12'
annotationProcessor 'org.projectlombok:lombok:1.18.12'

implementation 'org.smartregister:opensrp-client-utils:0.0.2-SNAPSHOT'

implementation 'org.smartregister:opensrp-plan-evaluator:0.1.3-SNAPSHOT'

implementation 'xerces:xercesImpl:2.12.0'

implementation('ch.acra:acra:4.5.0') {
exclude group: 'org.json', module: 'json'
api ('org.smartregister:opensrp-client-utils:0.0.4-SNAPSHOT'){
transitive = true
}

implementation 'com.github.ybq:Android-SpinKit:1.2.0'
implementation 'com.mcxiaoke.volley:library:1.0.19'
api ('org.smartregister:opensrp-plan-evaluator:0.1.3-SNAPSHOT'){
transitive = true
}

implementation fileTree(include: ['*.jar'], dir: 'libs')
annotationProcessor fileTree(include: ['butterknife*.jar'], dir: 'libs')
implementation 'xerces:xercesImpl:2.12.0'

implementation 'com.cloudant:cloudant-http:2.7.0'
implementation 'com.android.support:recyclerview-v7:28.0.0'

implementation('com.android.support:design:28.0.0') {
exclude group: 'com.android.support', module: 'recyclerview-v7'
}

implementation 'com.evernote:android-job:1.2.6'
implementation group: 'commons-validator', name: 'commons-validator', version: '1.6'
implementation 'de.hdodenhof:circleimageview:2.2.0'
implementation 'xerces:xercesImpl:2.12.0'
androidTestImplementation 'junit:junit:4.13'

implementation fileTree(include: ['*.jar'], dir: 'libs')

androidTestImplementation 'junit:junit:4.12'

testImplementation group: 'com.google.android', name: 'android-test', version: '4.1.1.4'
testImplementation 'org.apache.maven:maven-ant-tasks:2.1.3'
testImplementation 'org.mockito:mockito-core:1.9.5'
testImplementation 'org.mockito:mockito-core:3.1.0'
testAnnotationProcessor fileTree(include: ['butterknife*.jar'], dir: 'libs')

testImplementation('org.robolectric:robolectric:4.0') {
testImplementation('org.robolectric:robolectric:4.3.1') {
exclude group: 'com.google.guava', module: 'guava'
exclude group: 'org.apache.maven', module: 'maven-model'
exclude group: 'com.android.support'
exclude group: 'androidx.test'
exclude group: 'com.thoughtworks.xstream', module: 'xstream'
}
testImplementation('org.robolectric:shadows-multidex:4.0') {

testImplementation('org.robolectric:shadows-multidex:4.3.1') {
exclude group: 'com.google.guava', module: 'guava'
}

testImplementation "org.robolectric:shadows-support-v4:3.3.2"
// PowerMock
def powerMockVersion = '2.0.4'
testImplementation "org.powermock:powermock-module-junit4:$powerMockVersion"
Expand All @@ -266,6 +263,8 @@ dependencies {
testImplementation "org.powermock:powermock-api-mockito2:$powerMockVersion"
testImplementation("org.powermock:powermock-classloading-xstream:$powerMockVersion")

def fragmentVersion = "1.2.5"
testImplementation "androidx.fragment:fragment-testing:$fragmentVersion"
}

task clearJar(type: Delete) {
Expand Down
6 changes: 5 additions & 1 deletion opensrp-app/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
POM_SETTING_NAME=OpenSRP Client Core
POM_SETTING_ARTIFACT_ID=opensrp-client-core
POM_SETTING_PACKAGING=aar
POM_SETTING_PACKAGING=aar

android.useAndroidX=true
android.enableJetifier=true
android.jetifier.blacklist=shadows
2 changes: 1 addition & 1 deletion opensrp-app/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-all.zip
Binary file added opensrp-app/res/drawable-hdpi/ic_action_back.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added opensrp-app/res/drawable-hdpi/ic_action_filter.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added opensrp-app/res/drawable-hdpi/ic_action_map.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added opensrp-app/res/drawable-hdpi/ic_action_register.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added opensrp-app/res/drawable-mdpi/ic_action_back.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added opensrp-app/res/drawable-mdpi/ic_action_filter.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added opensrp-app/res/drawable-mdpi/ic_action_map.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added opensrp-app/res/drawable-mdpi/ic_action_register.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added opensrp-app/res/drawable-xhdpi/ic_action_back.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added opensrp-app/res/drawable-xhdpi/ic_action_filter.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added opensrp-app/res/drawable-xhdpi/ic_action_map.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added opensrp-app/res/drawable-xxhdpi/ic_action_back.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added opensrp-app/res/drawable-xxhdpi/ic_action_filter.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added opensrp-app/res/drawable-xxhdpi/ic_action_map.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added opensrp-app/res/drawable-xxxhdpi/ic_action_back.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added opensrp-app/res/drawable-xxxhdpi/ic_action_map.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions opensrp-app/res/drawable/curved_search_edit_text.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<corners android:radius="19dp" />
<solid android:color="#F7F7F7" />
<size
android:width="344dp"
android:height="33dp" />
<stroke
android:width="1dp"
android:color="#C5C5C5" />
</shape>
16 changes: 8 additions & 8 deletions opensrp-app/res/layout/activity_base_profile.xml
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".view.activity.BaseProfileActivity">

<android.support.design.widget.AppBarLayout
<com.google.android.material.appbar.AppBarLayout
android:id="@+id/collapsing_toolbar_appbarlayout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/customAppThemeBlue">

<android.support.design.widget.CollapsingToolbarLayout
<com.google.android.material.appbar.CollapsingToolbarLayout
android:id="@+id/collapsing_toolbar_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
Expand Down Expand Up @@ -122,16 +122,16 @@
tools:text="Registration info" />
</LinearLayout>

<android.support.v7.widget.Toolbar
<androidx.appcompat.widget.Toolbar
android:id="@+id/collapsing_toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
app:layout_collapseMode="pin" />

</android.support.design.widget.CollapsingToolbarLayout>
</com.google.android.material.appbar.CollapsingToolbarLayout>


<android.support.design.widget.TabLayout
<com.google.android.material.tabs.TabLayout
android:id="@+id/tabs"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
Expand All @@ -143,8 +143,8 @@
app:tabSelectedTextColor="@color/white"
app:tabTextAppearance="@style/CustomFontTextViewStyle.tabIndicator.sub.white" />

</android.support.design.widget.AppBarLayout>
</com.google.android.material.appbar.AppBarLayout>

<include layout="@layout/content_base_profile" />

</android.support.design.widget.CoordinatorLayout>
</androidx.coordinatorlayout.widget.CoordinatorLayout>
2 changes: 1 addition & 1 deletion opensrp-app/res/layout/activity_base_register.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
android:layout_width="match_parent"
android:layout_height="match_parent" />

<android.support.design.widget.BottomNavigationView
<com.google.android.material.bottomnavigation.BottomNavigationView
android:id="@+id/bottom_navigation"
android:layout_width="match_parent"
android:layout_height="wrap_content"
Expand Down
Loading