From 7c4c8678539a2577e5f5fb41bea64803186acb11 Mon Sep 17 00:00:00 2001 From: mib-iqbal Date: Wed, 8 Nov 2017 10:12:26 +0800 Subject: [PATCH] MI | refactoring package and class #6 Signed-off-by: mib-iqbal --- opensrp-gizi/build.gradle | 2 +- opensrp-gizi/src/main/AndroidManifest.xml | 14 +- .../www/form/kartu_ibu_registration/form.json | 1117 +++++++++++++++++ .../www/form/kartu_ibu_registration/form.xml | 467 +++++++ .../form_definition.json | 193 +++ .../www/form/kartu_ibu_registration/model.xml | 63 + .../GiziDetailActivity.java | 2 +- .../GiziGrowthChartActivity.java | 2 +- .../gizi/{ => activity}/GiziHomeActivity.java | 8 +- .../GiziSmartRegisterActivity.java | 4 +- .../GiziZScoreChartActivity.java | 2 +- .../gizi/{ => activity}/LoginActivity.java | 3 +- .../gizi/{ => activity}/SettingsActivity.java | 3 +- .../gizi/application/GiziApplication.java | 4 +- .../GiziNavigationController.java | 5 +- .../fragment/GiziSmartRegisterFragment.java | 14 +- .../{child => libs}/ErrorReportingFacade.java | 2 +- .../gizi/{child => libs}/FlurryFacade.java | 2 +- .../CommonObjectFilterOption.java | 2 +- .../{child => option}/GiziSearchOption.java | 2 +- .../GiziServiceModeOption.java | 2 +- .../KICommonObjectFilterOption.java | 2 +- .../GiziSmartClientsProvider.java | 2 +- .../gizi/{child => utils}/GiziDateSort.java | 2 +- .../gizi/{child => utils}/KmsHandler.java | 2 +- .../src/main/res/xml/captured_images_path.xml | 4 + opensrp-gizi/src/main/res/xml/preferences.xml | 15 + 27 files changed, 1902 insertions(+), 38 deletions(-) create mode 100644 opensrp-gizi/src/main/assets/www/form/kartu_ibu_registration/form.json create mode 100644 opensrp-gizi/src/main/assets/www/form/kartu_ibu_registration/form.xml create mode 100644 opensrp-gizi/src/main/assets/www/form/kartu_ibu_registration/form_definition.json create mode 100644 opensrp-gizi/src/main/assets/www/form/kartu_ibu_registration/model.xml rename opensrp-gizi/src/main/java/org/smartregister/gizi/{child => activity}/GiziDetailActivity.java (99%) rename opensrp-gizi/src/main/java/org/smartregister/gizi/{child => activity}/GiziGrowthChartActivity.java (99%) rename opensrp-gizi/src/main/java/org/smartregister/gizi/{ => activity}/GiziHomeActivity.java (98%) rename opensrp-gizi/src/main/java/org/smartregister/gizi/{child => activity}/GiziSmartRegisterActivity.java (99%) rename opensrp-gizi/src/main/java/org/smartregister/gizi/{child => activity}/GiziZScoreChartActivity.java (99%) rename opensrp-gizi/src/main/java/org/smartregister/gizi/{ => activity}/LoginActivity.java (99%) rename opensrp-gizi/src/main/java/org/smartregister/gizi/{ => activity}/SettingsActivity.java (97%) rename opensrp-gizi/src/main/java/org/smartregister/gizi/{ => controller}/GiziNavigationController.java (94%) rename opensrp-gizi/src/main/java/org/smartregister/gizi/{child => libs}/ErrorReportingFacade.java (90%) rename opensrp-gizi/src/main/java/org/smartregister/gizi/{child => libs}/FlurryFacade.java (96%) rename opensrp-gizi/src/main/java/org/smartregister/gizi/{child => option}/CommonObjectFilterOption.java (97%) rename opensrp-gizi/src/main/java/org/smartregister/gizi/{child => option}/GiziSearchOption.java (98%) rename opensrp-gizi/src/main/java/org/smartregister/gizi/{child => option}/GiziServiceModeOption.java (98%) rename opensrp-gizi/src/main/java/org/smartregister/gizi/{child => option}/KICommonObjectFilterOption.java (95%) rename opensrp-gizi/src/main/java/org/smartregister/gizi/{child => provider}/GiziSmartClientsProvider.java (99%) rename opensrp-gizi/src/main/java/org/smartregister/gizi/{child => utils}/GiziDateSort.java (98%) rename opensrp-gizi/src/main/java/org/smartregister/gizi/{child => utils}/KmsHandler.java (99%) create mode 100644 opensrp-gizi/src/main/res/xml/captured_images_path.xml create mode 100644 opensrp-gizi/src/main/res/xml/preferences.xml diff --git a/opensrp-gizi/build.gradle b/opensrp-gizi/build.gradle index 310ea13..50a9b66 100644 --- a/opensrp-gizi/build.gradle +++ b/opensrp-gizi/build.gradle @@ -33,7 +33,7 @@ android { multiDexEnabled true buildConfigField "long", "MAX_SERVER_TIME_DIFFERENCE", "1800000l" buildConfigField "boolean", "TIME_CHECK", "false" - resValue "string", 'opensrp_url', '"http://46.101.51.199:8181/opensrp"' + resValue "string", 'opensrp_url', '"http://192.168.1.253:8080/opensrp"' } dexOptions { diff --git a/opensrp-gizi/src/main/AndroidManifest.xml b/opensrp-gizi/src/main/AndroidManifest.xml index 5f474a6..0c05afa 100644 --- a/opensrp-gizi/src/main/AndroidManifest.xml +++ b/opensrp-gizi/src/main/AndroidManifest.xml @@ -20,7 +20,7 @@ android:value="b74c58c94d8965151212e8ecf1f4fdfbf5b7f4e4" /> - - - - - --> - + + +

Identitas Ibu

+ + + +
+
+ + Apakah ibu adalah pasien wilayah Anda? + Is the mother living in your catchment area? + * + +
+ + +
+
+ This field is required +
+
+
+ + Apakah ibu adalah warga pindahan dari desa lain? + Is the mother moving in to this village? + * + +
+ + +
+
+ This field is required +
+ + +
+
+ + Lokasi Periksa + Location of Service + + +
+ + + + + + +
+
+ This field is required +
+ + + + + + + + + + + + + + +
+
+ + Gakin/ Tidak + Poor Family/not + Apakah Ibu termasuk keluarga miskin atau tidak + Does mother belong to poor family or not? (Low-Income Population / Financially poor) + +
+ + +
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/opensrp-gizi/src/main/assets/www/form/kartu_ibu_registration/form_definition.json b/opensrp-gizi/src/main/assets/www/form/kartu_ibu_registration/form_definition.json new file mode 100644 index 0000000..b640a52 --- /dev/null +++ b/opensrp-gizi/src/main/assets/www/form/kartu_ibu_registration/form_definition.json @@ -0,0 +1,193 @@ +{ + "form_data_definition_version": "3", + "form": { + "bind_type": "kartu_ibu", + "ec_bind_type": "ec_kartu_ibu", + "default_bind_path": "/model/instance/Kartu_ibu/", + "fields": [ + { + "name": "id", + "shouldLoadValue": true + }, + { + "name": "start", + "bind": "/model/instance/Kartu_ibu/start" + }, + { + "name": "end", + "bind": "/model/instance/Kartu_ibu/end" + }, + { + "name": "existing_location", + "bind": "/model/instance/Kartu_ibu/existing_location", + "shouldLoadValue": true + }, + { + "name": "lokasiPeriksa", + "bind": "/model/instance/Kartu_ibu/Lokasi_periksa" + }, + { + "name": "pasienWilayah", + "bind": "/model/instance/Kartu_ibu/pasien_wilayah" + }, + { + "name": "pasienPindahan", + "bind": "/model/instance/Kartu_ibu/pasien_pindahan" + }, + { + "name": "tglPindah", + "bind": "/model/instance/Kartu_ibu/tgl_pindah" + }, + { + "name": "unique_id", + "bind": "/model/instance/Kartu_ibu/unique_id", + "shouldLoadValue" : true + }, + { + "name": "Village", + "bind": "/model/instance/Kartu_ibu/Village", + "shouldLoadValue" : true + }, + { + "name": "Province", + "bind": "/model/instance/Kartu_ibu/Province", + "shouldLoadValue" : true + }, + { + "name": "nik", + "bind": "/model/instance/Kartu_ibu/nik" + }, + { + "name": "Sub-district", + "bind": "/model/instance/Kartu_ibu/Sub-district", + "shouldLoadValue" : true + }, + { + "name": "District", + "bind": "/model/instance/Kartu_ibu/District", + "shouldLoadValue" : true + }, + { + "name": "Sub-village", + "bind": "/model/instance/Kartu_ibu/Sub-village", + "shouldLoadValue" : true + }, + { + "name": "dusun", + "bind": "/model/instance/Kartu_ibu/dusun" + }, + { + "name": "provinsi", + "bind": "/model/instance/Kartu_ibu/provinsi" + }, + { + "name": "kabupaten", + "bind": "/model/instance/Kartu_ibu/kabupaten" + }, + { + "name": "kecamatan", + "bind": "/model/instance/Kartu_ibu/kecamatan" + }, + { + "name": "desa", + "bind": "/model/instance/Kartu_ibu/desa" + }, + { + "name": "puskesmas", + "bind": "/model/instance/Kartu_ibu/puskesmas" + }, + { + "name": "noIbu", + "bind": "/model/instance/Kartu_ibu/no_ibu" + }, + { + "name": "namalengkap", + "bind": "/model/instance/Kartu_ibu/nama_lengkap" + }, + { + "name": "namaSuami", + "bind": "/model/instance/Kartu_ibu/nama_suami" + }, + { + "name": "tanggalLahir", + "bind": "/model/instance/Kartu_ibu/tanggal_lahir_ibu" + }, + { + "name": "umur", + "bind": "/model/instance/Kartu_ibu/umur" + }, + { + "name": "alamatDomisili", + "bind": "/model/instance/Kartu_ibu/alamat_domisili" + }, + { + "name": "pendidikan", + "bind": "/model/instance/Kartu_ibu/pendidikan" + }, + { + "name": "agama", + "bind": "/model/instance/Kartu_ibu/agama" + }, + { + "name": "pekerjaan", + "bind": "/model/instance/Kartu_ibu/pekerjaan" + }, + { + "name": "gakinTidak", + "bind": "/model/instance/Kartu_ibu/gakin_tidak" + }, + { + "name": "posyandu", + "bind": "/model/instance/Kartu_ibu/posyandu" + }, + { + "name": "namaKader", + "bind": "/model/instance/Kartu_ibu/nama_kader" + }, + { + "name": "namaDukun", + "bind": "/model/instance/Kartu_ibu/nama_dukun" + }, + { + "name": "asuransiJiwa", + "bind": "/model/instance/Kartu_ibu/asuransi_jiwa" + }, + { + "name": "golonganDarah", + "bind": "/model/instance/Kartu_ibu/golongan_darah" + }, + { + "name": "NomorTelponHp", + "bind": "/model/instance/Kartu_ibu/nomor_telpon_hp" + }, + { + "name": "highRiskPregnancyYoungMaternalAge", + "bind": "/model/instance/Kartu_ibu/High_Risk_Pregnancy_Young_maternal_age" + }, + { + "name": "highRiskPregnancyOldMaternalAge", + "bind": "/model/instance/Kartu_ibu/High_Risk_Pregnancy_Old_maternal_age" + }, + { + "name": "jenisKontrasepsi", + "bind": "/model/instance/Kartu_ibu/jenis_kontrasepsi" + }, + { + "name": "isOutOfArea", + "value": "false" + }, + { + "name": "isClosed", + "value": "false" + }, + { + "name": "submissionDate", + "bind": "/model/instance/Kartu_ibu/today" + }, + { + "name": "registrationDate", + "bind": "/model/instance/Kartu_ibu/reg_date" + } + ] + } +} diff --git a/opensrp-gizi/src/main/assets/www/form/kartu_ibu_registration/model.xml b/opensrp-gizi/src/main/assets/www/form/kartu_ibu_registration/model.xml new file mode 100644 index 0000000..81a65a8 --- /dev/null +++ b/opensrp-gizi/src/main/assets/www/form/kartu_ibu_registration/model.xml @@ -0,0 +1,63 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Ibu rumah tangga + + + + + + + + + 0 + + + + + + + + + + \ No newline at end of file diff --git a/opensrp-gizi/src/main/java/org/smartregister/gizi/child/GiziDetailActivity.java b/opensrp-gizi/src/main/java/org/smartregister/gizi/activity/GiziDetailActivity.java similarity index 99% rename from opensrp-gizi/src/main/java/org/smartregister/gizi/child/GiziDetailActivity.java rename to opensrp-gizi/src/main/java/org/smartregister/gizi/activity/GiziDetailActivity.java index cb6f237..678cadf 100644 --- a/opensrp-gizi/src/main/java/org/smartregister/gizi/child/GiziDetailActivity.java +++ b/opensrp-gizi/src/main/java/org/smartregister/gizi/activity/GiziDetailActivity.java @@ -1,4 +1,4 @@ -package org.smartregister.gizi.child; +package org.smartregister.gizi.activity; import android.app.Activity; import android.content.Intent; diff --git a/opensrp-gizi/src/main/java/org/smartregister/gizi/child/GiziGrowthChartActivity.java b/opensrp-gizi/src/main/java/org/smartregister/gizi/activity/GiziGrowthChartActivity.java similarity index 99% rename from opensrp-gizi/src/main/java/org/smartregister/gizi/child/GiziGrowthChartActivity.java rename to opensrp-gizi/src/main/java/org/smartregister/gizi/activity/GiziGrowthChartActivity.java index 38707a3..dd16904 100644 --- a/opensrp-gizi/src/main/java/org/smartregister/gizi/child/GiziGrowthChartActivity.java +++ b/opensrp-gizi/src/main/java/org/smartregister/gizi/activity/GiziGrowthChartActivity.java @@ -1,4 +1,4 @@ -package org.smartregister.gizi.child; +package org.smartregister.gizi.activity; import android.app.Activity; import android.content.Intent; diff --git a/opensrp-gizi/src/main/java/org/smartregister/gizi/GiziHomeActivity.java b/opensrp-gizi/src/main/java/org/smartregister/gizi/activity/GiziHomeActivity.java similarity index 98% rename from opensrp-gizi/src/main/java/org/smartregister/gizi/GiziHomeActivity.java rename to opensrp-gizi/src/main/java/org/smartregister/gizi/activity/GiziHomeActivity.java index dd64a1e..6ea894d 100644 --- a/opensrp-gizi/src/main/java/org/smartregister/gizi/GiziHomeActivity.java +++ b/opensrp-gizi/src/main/java/org/smartregister/gizi/activity/GiziHomeActivity.java @@ -1,4 +1,4 @@ -package org.smartregister.gizi; +package org.smartregister.gizi.activity; import android.database.Cursor; import android.os.StrictMode; @@ -16,11 +16,13 @@ import org.smartregister.cursoradapter.SmartRegisterQueryBuilder; import org.smartregister.event.Listener; +import org.smartregister.gizi.R; +import org.smartregister.gizi.controller.GiziNavigationController; import org.smartregister.service.PendingFormSubmissionService; import org.smartregister.sync.SyncAfterFetchListener; import org.smartregister.sync.SyncProgressIndicator; import org.smartregister.sync.UpdateActionsTask; -import org.smartregister.gizi.child.FlurryFacade; +import org.smartregister.gizi.libs.FlurryFacade; import org.smartregister.view.activity.SecuredActivity; import org.smartregister.view.contract.HomeContext; import org.smartregister.view.controller.NativeAfterANMDetailsFetchListener; @@ -129,7 +131,7 @@ protected void onCreation() { //home dashboard setContentView(R.layout.smart_registers_gizi_home); // FlurryFacade.logEvent("gizi_home_dashboard"); - navigationController = new org.smartregister.gizi.GiziNavigationController(this,anmController,context()); + navigationController = new GiziNavigationController(this,anmController,context()); setupViews(); initialize(); DisplayFormFragment.formInputErrorMessage = getResources().getString(R.string.forminputerror); diff --git a/opensrp-gizi/src/main/java/org/smartregister/gizi/child/GiziSmartRegisterActivity.java b/opensrp-gizi/src/main/java/org/smartregister/gizi/activity/GiziSmartRegisterActivity.java similarity index 99% rename from opensrp-gizi/src/main/java/org/smartregister/gizi/child/GiziSmartRegisterActivity.java rename to opensrp-gizi/src/main/java/org/smartregister/gizi/activity/GiziSmartRegisterActivity.java index 0aeba80..6bbd783 100755 --- a/opensrp-gizi/src/main/java/org/smartregister/gizi/child/GiziSmartRegisterActivity.java +++ b/opensrp-gizi/src/main/java/org/smartregister/gizi/activity/GiziSmartRegisterActivity.java @@ -1,4 +1,4 @@ -package org.smartregister.gizi.child; +package org.smartregister.gizi.activity; import android.app.AlertDialog; import android.content.DialogInterface; @@ -16,7 +16,7 @@ import org.smartregister.cursoradapter.SmartRegisterQueryBuilder; import org.smartregister.domain.form.FieldOverrides; import org.smartregister.domain.form.FormSubmission; -import org.smartregister.gizi.LoginActivity; +import org.smartregister.gizi.utils.KmsHandler; import org.smartregister.gizi.fragment.GiziSmartRegisterFragment; import org.smartregister.gizi.pageradapter.BaseRegisterActivityPagerAdapter; import org.smartregister.provider.SmartRegisterClientsProvider; diff --git a/opensrp-gizi/src/main/java/org/smartregister/gizi/child/GiziZScoreChartActivity.java b/opensrp-gizi/src/main/java/org/smartregister/gizi/activity/GiziZScoreChartActivity.java similarity index 99% rename from opensrp-gizi/src/main/java/org/smartregister/gizi/child/GiziZScoreChartActivity.java rename to opensrp-gizi/src/main/java/org/smartregister/gizi/activity/GiziZScoreChartActivity.java index dac696a..798556b 100644 --- a/opensrp-gizi/src/main/java/org/smartregister/gizi/child/GiziZScoreChartActivity.java +++ b/opensrp-gizi/src/main/java/org/smartregister/gizi/activity/GiziZScoreChartActivity.java @@ -1,4 +1,4 @@ -package org.smartregister.gizi.child; +package org.smartregister.gizi.activity; import android.app.Activity; import android.content.Intent; diff --git a/opensrp-gizi/src/main/java/org/smartregister/gizi/LoginActivity.java b/opensrp-gizi/src/main/java/org/smartregister/gizi/activity/LoginActivity.java similarity index 99% rename from opensrp-gizi/src/main/java/org/smartregister/gizi/LoginActivity.java rename to opensrp-gizi/src/main/java/org/smartregister/gizi/activity/LoginActivity.java index addacdf..5b37c0b 100644 --- a/opensrp-gizi/src/main/java/org/smartregister/gizi/LoginActivity.java +++ b/opensrp-gizi/src/main/java/org/smartregister/gizi/activity/LoginActivity.java @@ -1,4 +1,4 @@ -package org.smartregister.gizi; +package org.smartregister.gizi.activity; import android.app.Activity; import android.app.AlertDialog; @@ -25,6 +25,7 @@ import com.flurry.android.FlurryAgent; +import org.smartregister.gizi.R; import org.smartregister.gizi.application.GiziApplication; import org.smartregister.Context; import org.smartregister.domain.LoginResponse; diff --git a/opensrp-gizi/src/main/java/org/smartregister/gizi/SettingsActivity.java b/opensrp-gizi/src/main/java/org/smartregister/gizi/activity/SettingsActivity.java similarity index 97% rename from opensrp-gizi/src/main/java/org/smartregister/gizi/SettingsActivity.java rename to opensrp-gizi/src/main/java/org/smartregister/gizi/activity/SettingsActivity.java index eaf7a86..9f40cb9 100644 --- a/opensrp-gizi/src/main/java/org/smartregister/gizi/SettingsActivity.java +++ b/opensrp-gizi/src/main/java/org/smartregister/gizi/activity/SettingsActivity.java @@ -1,4 +1,4 @@ -package org.smartregister.gizi; +package org.smartregister.gizi.activity; import android.content.SharedPreferences; import android.os.Bundle; @@ -8,6 +8,7 @@ import android.preference.PreferenceFragment; import android.preference.PreferenceManager; +import org.smartregister.gizi.R; import org.smartregister.repository.AllSharedPreferences; import java.net.MalformedURLException; diff --git a/opensrp-gizi/src/main/java/org/smartregister/gizi/application/GiziApplication.java b/opensrp-gizi/src/main/java/org/smartregister/gizi/application/GiziApplication.java index cd823e0..3fcfffa 100644 --- a/opensrp-gizi/src/main/java/org/smartregister/gizi/application/GiziApplication.java +++ b/opensrp-gizi/src/main/java/org/smartregister/gizi/application/GiziApplication.java @@ -7,8 +7,8 @@ import org.smartregister.Context; import org.smartregister.CoreLibrary; import org.smartregister.commonregistry.CommonFtsObject; -import org.smartregister.gizi.LoginActivity; -import org.smartregister.gizi.child.FlurryFacade; +import org.smartregister.gizi.activity.LoginActivity; +import org.smartregister.gizi.libs.FlurryFacade; import org.smartregister.repository.Repository; import org.smartregister.sync.DrishtiSyncScheduler; import org.smartregister.view.activity.DrishtiApplication; diff --git a/opensrp-gizi/src/main/java/org/smartregister/gizi/GiziNavigationController.java b/opensrp-gizi/src/main/java/org/smartregister/gizi/controller/GiziNavigationController.java similarity index 94% rename from opensrp-gizi/src/main/java/org/smartregister/gizi/GiziNavigationController.java rename to opensrp-gizi/src/main/java/org/smartregister/gizi/controller/GiziNavigationController.java index fca9c61..d4b1dec 100644 --- a/opensrp-gizi/src/main/java/org/smartregister/gizi/GiziNavigationController.java +++ b/opensrp-gizi/src/main/java/org/smartregister/gizi/controller/GiziNavigationController.java @@ -1,4 +1,4 @@ -package org.smartregister.gizi; +package org.smartregister.gizi.controller; import android.app.Activity; import android.content.Intent; @@ -7,7 +7,8 @@ //import org.ei.opensrp.gizi.test.TestSmartRegisterActivity; -import org.smartregister.gizi.child.GiziSmartRegisterActivity; +import org.smartregister.gizi.R; +import org.smartregister.gizi.activity.GiziSmartRegisterActivity; import org.smartregister.view.controller.ANMController; import org.json.JSONObject; diff --git a/opensrp-gizi/src/main/java/org/smartregister/gizi/fragment/GiziSmartRegisterFragment.java b/opensrp-gizi/src/main/java/org/smartregister/gizi/fragment/GiziSmartRegisterFragment.java index c76b7cd..5b5b299 100644 --- a/opensrp-gizi/src/main/java/org/smartregister/gizi/fragment/GiziSmartRegisterFragment.java +++ b/opensrp-gizi/src/main/java/org/smartregister/gizi/fragment/GiziSmartRegisterFragment.java @@ -23,13 +23,13 @@ import org.smartregister.cursoradapter.SecuredNativeSmartRegisterCursorAdapterFragment; import org.smartregister.cursoradapter.SmartRegisterPaginatedCursorAdapter; import org.smartregister.cursoradapter.SmartRegisterQueryBuilder; -import org.smartregister.gizi.LoginActivity; -import org.smartregister.gizi.child.GiziDetailActivity; -import org.smartregister.gizi.child.GiziGrowthChartActivity; -import org.smartregister.gizi.child.GiziServiceModeOption; -import org.smartregister.gizi.child.GiziSmartClientsProvider; -import org.smartregister.gizi.child.GiziSmartRegisterActivity; -import org.smartregister.gizi.child.KICommonObjectFilterOption; +import org.smartregister.gizi.activity.LoginActivity; +import org.smartregister.gizi.activity.GiziDetailActivity; +import org.smartregister.gizi.activity.GiziGrowthChartActivity; +import org.smartregister.gizi.option.GiziServiceModeOption; +import org.smartregister.gizi.provider.GiziSmartClientsProvider; +import org.smartregister.gizi.activity.GiziSmartRegisterActivity; +import org.smartregister.gizi.option.KICommonObjectFilterOption; import org.smartregister.provider.SmartRegisterClientsProvider; import org.smartregister.gizi.R; diff --git a/opensrp-gizi/src/main/java/org/smartregister/gizi/child/ErrorReportingFacade.java b/opensrp-gizi/src/main/java/org/smartregister/gizi/libs/ErrorReportingFacade.java similarity index 90% rename from opensrp-gizi/src/main/java/org/smartregister/gizi/child/ErrorReportingFacade.java rename to opensrp-gizi/src/main/java/org/smartregister/gizi/libs/ErrorReportingFacade.java index 1f9ced1..fe83ff4 100644 --- a/opensrp-gizi/src/main/java/org/smartregister/gizi/child/ErrorReportingFacade.java +++ b/opensrp-gizi/src/main/java/org/smartregister/gizi/libs/ErrorReportingFacade.java @@ -1,4 +1,4 @@ -package org.smartregister.gizi.child; +package org.smartregister.gizi.libs; /** * Created by Dimas on 9/22/2015. diff --git a/opensrp-gizi/src/main/java/org/smartregister/gizi/child/FlurryFacade.java b/opensrp-gizi/src/main/java/org/smartregister/gizi/libs/FlurryFacade.java similarity index 96% rename from opensrp-gizi/src/main/java/org/smartregister/gizi/child/FlurryFacade.java rename to opensrp-gizi/src/main/java/org/smartregister/gizi/libs/FlurryFacade.java index c827134..2a19add 100644 --- a/opensrp-gizi/src/main/java/org/smartregister/gizi/child/FlurryFacade.java +++ b/opensrp-gizi/src/main/java/org/smartregister/gizi/libs/FlurryFacade.java @@ -1,4 +1,4 @@ -package org.smartregister.gizi.child; +package org.smartregister.gizi.libs; import android.content.Context; diff --git a/opensrp-gizi/src/main/java/org/smartregister/gizi/child/CommonObjectFilterOption.java b/opensrp-gizi/src/main/java/org/smartregister/gizi/option/CommonObjectFilterOption.java similarity index 97% rename from opensrp-gizi/src/main/java/org/smartregister/gizi/child/CommonObjectFilterOption.java rename to opensrp-gizi/src/main/java/org/smartregister/gizi/option/CommonObjectFilterOption.java index 5f8435c..c968f36 100644 --- a/opensrp-gizi/src/main/java/org/smartregister/gizi/child/CommonObjectFilterOption.java +++ b/opensrp-gizi/src/main/java/org/smartregister/gizi/option/CommonObjectFilterOption.java @@ -1,4 +1,4 @@ -package org.smartregister.gizi.child; +package org.smartregister.gizi.option; import org.smartregister.commonregistry.CommonPersonObjectClient; import org.smartregister.view.contract.SmartRegisterClient; diff --git a/opensrp-gizi/src/main/java/org/smartregister/gizi/child/GiziSearchOption.java b/opensrp-gizi/src/main/java/org/smartregister/gizi/option/GiziSearchOption.java similarity index 98% rename from opensrp-gizi/src/main/java/org/smartregister/gizi/child/GiziSearchOption.java rename to opensrp-gizi/src/main/java/org/smartregister/gizi/option/GiziSearchOption.java index bc10b56..5f02727 100644 --- a/opensrp-gizi/src/main/java/org/smartregister/gizi/child/GiziSearchOption.java +++ b/opensrp-gizi/src/main/java/org/smartregister/gizi/option/GiziSearchOption.java @@ -1,4 +1,4 @@ -package org.smartregister.gizi.child; +package org.smartregister.gizi.option; import org.smartregister.Context; import org.smartregister.commonregistry.CommonPersonObjectClient; diff --git a/opensrp-gizi/src/main/java/org/smartregister/gizi/child/GiziServiceModeOption.java b/opensrp-gizi/src/main/java/org/smartregister/gizi/option/GiziServiceModeOption.java similarity index 98% rename from opensrp-gizi/src/main/java/org/smartregister/gizi/child/GiziServiceModeOption.java rename to opensrp-gizi/src/main/java/org/smartregister/gizi/option/GiziServiceModeOption.java index 7857ddd..a2100cd 100755 --- a/opensrp-gizi/src/main/java/org/smartregister/gizi/child/GiziServiceModeOption.java +++ b/opensrp-gizi/src/main/java/org/smartregister/gizi/option/GiziServiceModeOption.java @@ -1,4 +1,4 @@ -package org.smartregister.gizi.child; +package org.smartregister.gizi.option; import android.view.View; diff --git a/opensrp-gizi/src/main/java/org/smartregister/gizi/child/KICommonObjectFilterOption.java b/opensrp-gizi/src/main/java/org/smartregister/gizi/option/KICommonObjectFilterOption.java similarity index 95% rename from opensrp-gizi/src/main/java/org/smartregister/gizi/child/KICommonObjectFilterOption.java rename to opensrp-gizi/src/main/java/org/smartregister/gizi/option/KICommonObjectFilterOption.java index cb01b69..69943ec 100644 --- a/opensrp-gizi/src/main/java/org/smartregister/gizi/child/KICommonObjectFilterOption.java +++ b/opensrp-gizi/src/main/java/org/smartregister/gizi/option/KICommonObjectFilterOption.java @@ -1,4 +1,4 @@ -package org.smartregister.gizi.child; +package org.smartregister.gizi.option; import org.smartregister.cursoradapter.CursorFilterOption; import org.smartregister.view.contract.SmartRegisterClient; diff --git a/opensrp-gizi/src/main/java/org/smartregister/gizi/child/GiziSmartClientsProvider.java b/opensrp-gizi/src/main/java/org/smartregister/gizi/provider/GiziSmartClientsProvider.java similarity index 99% rename from opensrp-gizi/src/main/java/org/smartregister/gizi/child/GiziSmartClientsProvider.java rename to opensrp-gizi/src/main/java/org/smartregister/gizi/provider/GiziSmartClientsProvider.java index 9e718bb..7135486 100755 --- a/opensrp-gizi/src/main/java/org/smartregister/gizi/child/GiziSmartClientsProvider.java +++ b/opensrp-gizi/src/main/java/org/smartregister/gizi/provider/GiziSmartClientsProvider.java @@ -1,4 +1,4 @@ -package org.smartregister.gizi.child; +package org.smartregister.gizi.provider; import android.app.Activity; import android.content.Context; diff --git a/opensrp-gizi/src/main/java/org/smartregister/gizi/child/GiziDateSort.java b/opensrp-gizi/src/main/java/org/smartregister/gizi/utils/GiziDateSort.java similarity index 98% rename from opensrp-gizi/src/main/java/org/smartregister/gizi/child/GiziDateSort.java rename to opensrp-gizi/src/main/java/org/smartregister/gizi/utils/GiziDateSort.java index 8bad1f3..7aea0f8 100644 --- a/opensrp-gizi/src/main/java/org/smartregister/gizi/child/GiziDateSort.java +++ b/opensrp-gizi/src/main/java/org/smartregister/gizi/utils/GiziDateSort.java @@ -1,4 +1,4 @@ -package org.smartregister.gizi.child; +package org.smartregister.gizi.utils; import org.smartregister.commonregistry.CommonPersonObjectClient; import org.smartregister.view.contract.SmartRegisterClient; diff --git a/opensrp-gizi/src/main/java/org/smartregister/gizi/child/KmsHandler.java b/opensrp-gizi/src/main/java/org/smartregister/gizi/utils/KmsHandler.java similarity index 99% rename from opensrp-gizi/src/main/java/org/smartregister/gizi/child/KmsHandler.java rename to opensrp-gizi/src/main/java/org/smartregister/gizi/utils/KmsHandler.java index ec6311e..5a1279c 100644 --- a/opensrp-gizi/src/main/java/org/smartregister/gizi/child/KmsHandler.java +++ b/opensrp-gizi/src/main/java/org/smartregister/gizi/utils/KmsHandler.java @@ -1,4 +1,4 @@ -package org.smartregister.gizi.child; +package org.smartregister.gizi.utils; import org.smartregister.commonregistry.AllCommonsRepository; import org.smartregister.commonregistry.CommonPersonObject; diff --git a/opensrp-gizi/src/main/res/xml/captured_images_path.xml b/opensrp-gizi/src/main/res/xml/captured_images_path.xml new file mode 100644 index 0000000..1a64744 --- /dev/null +++ b/opensrp-gizi/src/main/res/xml/captured_images_path.xml @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/opensrp-gizi/src/main/res/xml/preferences.xml b/opensrp-gizi/src/main/res/xml/preferences.xml new file mode 100644 index 0000000..ce3198e --- /dev/null +++ b/opensrp-gizi/src/main/res/xml/preferences.xml @@ -0,0 +1,15 @@ + + + + + + + + \ No newline at end of file