From d78c4f13ef07e9ff56ab6f15ef4ada1d40adc972 Mon Sep 17 00:00:00 2001 From: jacques Date: Sun, 22 May 2022 18:49:10 +0200 Subject: [PATCH 01/15] Change SimpleItemRecyclerView into RecyclerView --- .../java/net/foucry/pilldroid/DrugListActivity.java | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/app/src/main/java/net/foucry/pilldroid/DrugListActivity.java b/app/src/main/java/net/foucry/pilldroid/DrugListActivity.java index 628f7fb..cdc5cdb 100644 --- a/app/src/main/java/net/foucry/pilldroid/DrugListActivity.java +++ b/app/src/main/java/net/foucry/pilldroid/DrugListActivity.java @@ -22,6 +22,7 @@ import android.view.View; import android.view.ViewGroup; import android.widget.EditText; import android.widget.ImageView; +import android.widget.ListView; import android.widget.TextView; import android.widget.Toast; @@ -73,7 +74,7 @@ public class DrugListActivity extends AppCompatActivity { private List prescriptionList; // used for prescriptions - private SimpleItemRecyclerViewAdapter mAdapter; + private RecyclerViewAdapter mAdapter; @Override public void onStart() { @@ -463,19 +464,19 @@ public class DrugListActivity extends AppCompatActivity { */ private void setupRecyclerView(@NonNull RecyclerView recyclerView) { recyclerView.addItemDecoration(new SimpleDividerItemDecoration(getApplicationContext())); - mAdapter = new SimpleItemRecyclerViewAdapter(prescriptionList); + mAdapter = new RecyclerViewAdapter(prescriptionList); recyclerView.setAdapter(mAdapter); } /** * SimpleItemRecyclerViewAdapter */ - public class SimpleItemRecyclerViewAdapter extends - RecyclerView.Adapter { + public class RecyclerViewAdapter extends + RecyclerView.Adapter { private final List mValues; - SimpleItemRecyclerViewAdapter(List items) { + RecyclerViewAdapter(List items) { mValues = items; } From b78a4acc15b62aa2d188af066cb9a1969e16b828 Mon Sep 17 00:00:00 2001 From: jacques Date: Wed, 8 Jun 2022 11:27:34 +0200 Subject: [PATCH 02/15] Add trash icon --- app/src/main/res/drawable/ic_trash_can_outline.xml | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 app/src/main/res/drawable/ic_trash_can_outline.xml diff --git a/app/src/main/res/drawable/ic_trash_can_outline.xml b/app/src/main/res/drawable/ic_trash_can_outline.xml new file mode 100644 index 0000000..07e6108 --- /dev/null +++ b/app/src/main/res/drawable/ic_trash_can_outline.xml @@ -0,0 +1,4 @@ + + + From 38ec2cb9ebbfcacadec7604d81439c165be513cb Mon Sep 17 00:00:00 2001 From: jacques Date: Wed, 8 Jun 2022 11:27:57 +0200 Subject: [PATCH 03/15] Add undo and french translation --- app/src/main/res/values-fr-rFR/strings.xml | 2 ++ app/src/main/res/values/strings.xml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/app/src/main/res/values-fr-rFR/strings.xml b/app/src/main/res/values-fr-rFR/strings.xml index 28f8050..ffec178 100644 --- a/app/src/main/res/values-fr-rFR/strings.xml +++ b/app/src/main/res/values-fr-rFR/strings.xml @@ -68,4 +68,6 @@ Autorisation appareil photo manquante Oui, j\'ai compris Je comprends que le développeur de app_name n\'est pas responsable de la gestion de vos médicaments. CELA RELÈVE DE VOTRE SEULE RESPONSABILITË. + Annuler + Icone de poubelle \ No newline at end of file diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index dd34a09..1d2fd64 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -70,4 +70,6 @@ Missing camera permission Yes, I understood I understood that de developer of app_name cannot be responsible ot your medication management. IT\'S YOU OWN RESPONSIBILITY. + Undo + Trash icon From 846f6ecbe9d544466fefe900959ce8a706d60800 Mon Sep 17 00:00:00 2001 From: jacques Date: Wed, 8 Jun 2022 11:28:17 +0200 Subject: [PATCH 04/15] Remove old comment --- app/src/main/java/net/foucry/pilldroid/AlarmReceiver.java | 1 - 1 file changed, 1 deletion(-) diff --git a/app/src/main/java/net/foucry/pilldroid/AlarmReceiver.java b/app/src/main/java/net/foucry/pilldroid/AlarmReceiver.java index 26265c6..35f39e8 100644 --- a/app/src/main/java/net/foucry/pilldroid/AlarmReceiver.java +++ b/app/src/main/java/net/foucry/pilldroid/AlarmReceiver.java @@ -50,7 +50,6 @@ public class AlarmReceiver extends BroadcastReceiver { PrescriptionsDAO prescriptionsDAO = prescriptions.getPrescriptionsDAO(); List prescriptionList = prescriptionsDAO.getAllMedics(); Prescription firstPrescription = null ; - //List drugs = dbHelper.getAllDrugs(); try { firstPrescription = prescriptionList.get(1); From b2f1df63508a62318cbde6f33f55a8f2366c97fe Mon Sep 17 00:00:00 2001 From: jacques Date: Wed, 8 Jun 2022 11:29:43 +0200 Subject: [PATCH 05/15] Add swipe with icon to delete medic from prescription. The database update is not yet coded --- .../foucry/pilldroid/DrugListActivity.java | 88 ++++++++++++++++++- 1 file changed, 86 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/net/foucry/pilldroid/DrugListActivity.java b/app/src/main/java/net/foucry/pilldroid/DrugListActivity.java index cdc5cdb..d7beaf7 100644 --- a/app/src/main/java/net/foucry/pilldroid/DrugListActivity.java +++ b/app/src/main/java/net/foucry/pilldroid/DrugListActivity.java @@ -9,6 +9,9 @@ import android.content.Context; import android.content.Intent; import android.content.pm.ApplicationInfo; import android.content.pm.PackageManager; +import android.graphics.Canvas; +import android.graphics.Paint; +import android.graphics.drawable.Drawable; import android.os.Build; import android.os.Bundle; import android.text.Editable; @@ -22,7 +25,6 @@ import android.view.View; import android.view.ViewGroup; import android.widget.EditText; import android.widget.ImageView; -import android.widget.ListView; import android.widget.TextView; import android.widget.Toast; @@ -31,9 +33,12 @@ import androidx.annotation.NonNull; import androidx.appcompat.app.AlertDialog; import androidx.appcompat.app.AppCompatActivity; import androidx.appcompat.widget.Toolbar; +import androidx.core.content.ContextCompat; +import androidx.recyclerview.widget.ItemTouchHelper; import androidx.recyclerview.widget.RecyclerView; import androidx.room.Room; +import com.google.android.material.snackbar.Snackbar; import com.google.zxing.client.android.BuildConfig; import com.google.zxing.client.android.Intents; import com.journeyapps.barcodescanner.ScanOptions; @@ -466,7 +471,86 @@ public class DrugListActivity extends AppCompatActivity { recyclerView.addItemDecoration(new SimpleDividerItemDecoration(getApplicationContext())); mAdapter = new RecyclerViewAdapter(prescriptionList); recyclerView.setAdapter(mAdapter); - } + + new ItemTouchHelper(new ItemTouchHelper.SimpleCallback(0, (ItemTouchHelper.RIGHT|ItemTouchHelper.LEFT)) { + @Override + public boolean onMove(@NonNull RecyclerView recyclerView, @NonNull RecyclerView.ViewHolder viewHolder, @NonNull RecyclerView.ViewHolder target) { + return false; + } + + @Override + public void onSwiped(@NonNull RecyclerView.ViewHolder viewHolder, int direction) { + int position = viewHolder.getBindingAdapterPosition(); + + Prescription prescription = prescriptionList.get(position); + + + // TODO: remove item form database + prescriptionList.remove(position); + mAdapter.notifyItemRemoved(position); + + Snackbar.make(recyclerView, prescription.getName(), + Snackbar.LENGTH_LONG).setAction(R.string.Undo, new View.OnClickListener() { + @Override + public void onClick(View v) { + prescriptionList.add(position, prescription); + mAdapter.notifyItemInserted(position); + } + }).show(); + } + + @Override + public void onChildDraw(@NonNull Canvas c, @NonNull RecyclerView recyclerView, @NonNull RecyclerView.ViewHolder viewHolder, float dX, float dY, int actionState, boolean isCurrentlyActive) { + if (actionState == ItemTouchHelper.ACTION_STATE_SWIPE) { + // Get RecyclerView item from the ViewHolder + View itemView = viewHolder.itemView; + + Paint p = new Paint(); + p.setColor(getColor(R.color.bg_screen4)); + Drawable icon; + icon = ContextCompat.getDrawable(getApplicationContext(), R.drawable.ic_trash_can_outline); + + int xMarkMargin = (int) getApplicationContext().getResources().getDimension(R.dimen.fab_margin); + + assert icon != null; + int intrinsicWidth = icon.getIntrinsicWidth(); + int intrinsicHeight = icon.getIntrinsicHeight(); + int itemHeight = itemView.getBottom() - itemView.getTop(); + + + + if (dX > 0) { + // Draw Rect with varying right side, equal to displacement dX + c.drawRect((float) itemView.getLeft(), (float) itemView.getTop(), dX, + (float) itemView.getBottom(), p); + + int xMarkLeft = itemView.getLeft() + xMarkMargin; + int xMarkRight = 170; // Arbitrary value cannot find a way to make correct calculation + int xMarkTop = itemView.getTop() + (itemHeight - intrinsicHeight) / 2; + int xMarkBottom = itemView.getTop() + intrinsicHeight +xMarkTop; + icon.setBounds(xMarkLeft, xMarkTop, xMarkRight, xMarkBottom); + + icon.draw(c); + } else { + // Draw Rect with varying left side, equal to the item's right side plus negative displacement dX + c.drawRect((float) itemView.getRight() + dX, (float) itemView.getTop(), + (float) itemView.getRight(), (float) itemView.getBottom(), p); + + int xMarkLeft = itemView.getRight() - xMarkMargin - intrinsicWidth; + int xMarkRight = itemView.getRight() - xMarkMargin; + int xMarkTop = itemView.getTop() + (itemHeight - intrinsicHeight) / 2; + int xMarkBottom = xMarkTop + intrinsicHeight; + icon.setBounds(xMarkLeft, xMarkTop + 16, xMarkRight, xMarkBottom); + + icon.draw(c); + } + + super.onChildDraw(c, recyclerView, viewHolder, dX, dY, actionState, isCurrentlyActive); + } + } + }).attachToRecyclerView(recyclerView); + + } /** * SimpleItemRecyclerViewAdapter From 5043cda0fd18ad359e3bd1164a69d6e777f44788 Mon Sep 17 00:00:00 2001 From: jacques Date: Wed, 8 Jun 2022 19:01:24 +0200 Subject: [PATCH 06/15] Find a calculation to have same icon size in both swipe direction --- .../main/java/net/foucry/pilldroid/DrugListActivity.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/net/foucry/pilldroid/DrugListActivity.java b/app/src/main/java/net/foucry/pilldroid/DrugListActivity.java index d7beaf7..8f3b1f4 100644 --- a/app/src/main/java/net/foucry/pilldroid/DrugListActivity.java +++ b/app/src/main/java/net/foucry/pilldroid/DrugListActivity.java @@ -525,9 +525,9 @@ public class DrugListActivity extends AppCompatActivity { (float) itemView.getBottom(), p); int xMarkLeft = itemView.getLeft() + xMarkMargin; - int xMarkRight = 170; // Arbitrary value cannot find a way to make correct calculation + int xMarkRight = itemView.getLeft() + xMarkMargin + intrinsicWidth; int xMarkTop = itemView.getTop() + (itemHeight - intrinsicHeight) / 2; - int xMarkBottom = itemView.getTop() + intrinsicHeight +xMarkTop; + int xMarkBottom = xMarkTop + intrinsicHeight;// +xMarkTop; icon.setBounds(xMarkLeft, xMarkTop, xMarkRight, xMarkBottom); icon.draw(c); @@ -540,7 +540,7 @@ public class DrugListActivity extends AppCompatActivity { int xMarkRight = itemView.getRight() - xMarkMargin; int xMarkTop = itemView.getTop() + (itemHeight - intrinsicHeight) / 2; int xMarkBottom = xMarkTop + intrinsicHeight; - icon.setBounds(xMarkLeft, xMarkTop + 16, xMarkRight, xMarkBottom); + icon.setBounds(xMarkLeft, xMarkTop, xMarkRight, xMarkBottom); icon.draw(c); } From 38a6c47ef5d434c1fa2ca3d4c0e4ed4fcd1c311a Mon Sep 17 00:00:00 2001 From: jacques Date: Fri, 10 Jun 2022 20:53:18 +0200 Subject: [PATCH 07/15] Add pen icon --- app/src/main/res/drawable/ic_edit_black_48dp.xml | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 app/src/main/res/drawable/ic_edit_black_48dp.xml diff --git a/app/src/main/res/drawable/ic_edit_black_48dp.xml b/app/src/main/res/drawable/ic_edit_black_48dp.xml new file mode 100644 index 0000000..c027b1c --- /dev/null +++ b/app/src/main/res/drawable/ic_edit_black_48dp.xml @@ -0,0 +1,4 @@ + + + From 024b97751be17b27d5a035400dc726fb8b1b3f1c Mon Sep 17 00:00:00 2001 From: jacques Date: Fri, 10 Jun 2022 20:55:25 +0200 Subject: [PATCH 08/15] Add swipoe Right to Left to remove from list and prescription database Add swipe left to Right to edit prescription detail --- .../foucry/pilldroid/DrugListActivity.java | 28 +++++++++++++++---- 1 file changed, 22 insertions(+), 6 deletions(-) diff --git a/app/src/main/java/net/foucry/pilldroid/DrugListActivity.java b/app/src/main/java/net/foucry/pilldroid/DrugListActivity.java index 8f3b1f4..e506f99 100644 --- a/app/src/main/java/net/foucry/pilldroid/DrugListActivity.java +++ b/app/src/main/java/net/foucry/pilldroid/DrugListActivity.java @@ -485,9 +485,20 @@ public class DrugListActivity extends AppCompatActivity { Prescription prescription = prescriptionList.get(position); - // TODO: remove item form database - prescriptionList.remove(position); - mAdapter.notifyItemRemoved(position); + if (direction == ItemTouchHelper.LEFT) { + prescriptionList.remove(position); + mAdapter.notifyItemRemoved(position); + // Remove item form database + PrescriptionsDAO prescriptionsDAO = prescriptions.getPrescriptionsDAO();; + prescriptionsDAO.delete(prescription); + } else { + // Call DetailView + Intent intent = new Intent(getApplicationContext(), DrugDetailActivity.class); + intent.putExtra("prescription", prescription); + startActivityForResult(intent, CUSTOMIZED_REQUEST_CODE); + } + + Snackbar.make(recyclerView, prescription.getName(), Snackbar.LENGTH_LONG).setAction(R.string.Undo, new View.OnClickListener() { @@ -506,7 +517,6 @@ public class DrugListActivity extends AppCompatActivity { View itemView = viewHolder.itemView; Paint p = new Paint(); - p.setColor(getColor(R.color.bg_screen4)); Drawable icon; icon = ContextCompat.getDrawable(getApplicationContext(), R.drawable.ic_trash_can_outline); @@ -517,9 +527,10 @@ public class DrugListActivity extends AppCompatActivity { int intrinsicHeight = icon.getIntrinsicHeight(); int itemHeight = itemView.getBottom() - itemView.getTop(); - - if (dX > 0) { + p.setColor(getColor(R.color.bg_screen3)); + icon = ContextCompat.getDrawable(getApplicationContext(), R.drawable.ic_edit_black_48dp); + // Draw Rect with varying right side, equal to displacement dX c.drawRect((float) itemView.getLeft(), (float) itemView.getTop(), dX, (float) itemView.getBottom(), p); @@ -531,11 +542,15 @@ public class DrugListActivity extends AppCompatActivity { icon.setBounds(xMarkLeft, xMarkTop, xMarkRight, xMarkBottom); icon.draw(c); + + // TODO : goto edit details } else { + p.setColor(getColor(R.color.bg_screen4)); // Draw Rect with varying left side, equal to the item's right side plus negative displacement dX c.drawRect((float) itemView.getRight() + dX, (float) itemView.getTop(), (float) itemView.getRight(), (float) itemView.getBottom(), p); + int xMarkLeft = itemView.getRight() - xMarkMargin - intrinsicWidth; int xMarkRight = itemView.getRight() - xMarkMargin; int xMarkTop = itemView.getTop() + (itemHeight - intrinsicHeight) / 2; @@ -543,6 +558,7 @@ public class DrugListActivity extends AppCompatActivity { icon.setBounds(xMarkLeft, xMarkTop, xMarkRight, xMarkBottom); icon.draw(c); + // TODO : remove prescription from database } super.onChildDraw(c, recyclerView, viewHolder, dX, dY, actionState, isCurrentlyActive); From e42626fbfa43051db660005a96c61383594c19d9 Mon Sep 17 00:00:00 2001 From: jacques Date: Fri, 10 Jun 2022 21:01:04 +0200 Subject: [PATCH 09/15] Optimizations --- .../java/net/foucry/pilldroid/DrugListActivity.java | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/app/src/main/java/net/foucry/pilldroid/DrugListActivity.java b/app/src/main/java/net/foucry/pilldroid/DrugListActivity.java index e506f99..47eca77 100644 --- a/app/src/main/java/net/foucry/pilldroid/DrugListActivity.java +++ b/app/src/main/java/net/foucry/pilldroid/DrugListActivity.java @@ -489,7 +489,7 @@ public class DrugListActivity extends AppCompatActivity { prescriptionList.remove(position); mAdapter.notifyItemRemoved(position); // Remove item form database - PrescriptionsDAO prescriptionsDAO = prescriptions.getPrescriptionsDAO();; + PrescriptionsDAO prescriptionsDAO = prescriptions.getPrescriptionsDAO(); prescriptionsDAO.delete(prescription); } else { // Call DetailView @@ -539,11 +539,9 @@ public class DrugListActivity extends AppCompatActivity { int xMarkRight = itemView.getLeft() + xMarkMargin + intrinsicWidth; int xMarkTop = itemView.getTop() + (itemHeight - intrinsicHeight) / 2; int xMarkBottom = xMarkTop + intrinsicHeight;// +xMarkTop; + assert icon != null; icon.setBounds(xMarkLeft, xMarkTop, xMarkRight, xMarkBottom); - icon.draw(c); - - // TODO : goto edit details } else { p.setColor(getColor(R.color.bg_screen4)); // Draw Rect with varying left side, equal to the item's right side plus negative displacement dX @@ -557,9 +555,8 @@ public class DrugListActivity extends AppCompatActivity { int xMarkBottom = xMarkTop + intrinsicHeight; icon.setBounds(xMarkLeft, xMarkTop, xMarkRight, xMarkBottom); - icon.draw(c); - // TODO : remove prescription from database - } + } + icon.draw(c); super.onChildDraw(c, recyclerView, viewHolder, dX, dY, actionState, isCurrentlyActive); } From 6b6da518948b412b18b8f1d74766d51459216624 Mon Sep 17 00:00:00 2001 From: jacques Date: Fri, 10 Jun 2022 21:01:04 +0200 Subject: [PATCH 10/15] Optimizations --- app/src/main/java/net/foucry/pilldroid/DrugListActivity.java | 1 - 1 file changed, 1 deletion(-) diff --git a/app/src/main/java/net/foucry/pilldroid/DrugListActivity.java b/app/src/main/java/net/foucry/pilldroid/DrugListActivity.java index 47eca77..a6cd73c 100644 --- a/app/src/main/java/net/foucry/pilldroid/DrugListActivity.java +++ b/app/src/main/java/net/foucry/pilldroid/DrugListActivity.java @@ -484,7 +484,6 @@ public class DrugListActivity extends AppCompatActivity { Prescription prescription = prescriptionList.get(position); - if (direction == ItemTouchHelper.LEFT) { prescriptionList.remove(position); mAdapter.notifyItemRemoved(position); From d82b79437d1cb3148092d91db3467ae3f54a7667 Mon Sep 17 00:00:00 2001 From: jacques Date: Fri, 10 Jun 2022 21:46:23 +0200 Subject: [PATCH 11/15] remove android:fitsSystemWindows="true" --- app/src/main/res/layout/drug_list.xml | 1 - 1 file changed, 1 deletion(-) diff --git a/app/src/main/res/layout/drug_list.xml b/app/src/main/res/layout/drug_list.xml index 928091c..d798d15 100644 --- a/app/src/main/res/layout/drug_list.xml +++ b/app/src/main/res/layout/drug_list.xml @@ -6,7 +6,6 @@ android:name="net.foucry.pilldroid.MedicamentListFragment" android:layout_width="match_parent" android:layout_height="match_parent" - android:fitsSystemWindows="true" app:layoutManager="LinearLayoutManager" android:background="@drawable/list_selector" tools:context="net.foucry.pilldroid.DrugListActivity" From 49fbff90180a78a170859ad6eb6456d702da7f0a Mon Sep 17 00:00:00 2001 From: jacques Date: Fri, 10 Jun 2022 21:47:17 +0200 Subject: [PATCH 12/15] remove ChangeCompileSdk --- app/build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/build.gradle b/app/build.gradle index 4bd997d..251cd2b 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -26,7 +26,7 @@ android { keyPassword secretProperties['signing_key_password'] } } - compileSdkVersion 29 + compileSdk 31 defaultConfig { applicationId "net.foucry.pilldroid" From 27e96e989e4bf4e3cf52a6f38010d24e4f470458 Mon Sep 17 00:00:00 2001 From: jacques Date: Fri, 10 Jun 2022 21:47:49 +0200 Subject: [PATCH 13/15] Optimization --- app/src/main/res/layout/drug_list_content.xml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app/src/main/res/layout/drug_list_content.xml b/app/src/main/res/layout/drug_list_content.xml index b197ff1..93a2b46 100644 --- a/app/src/main/res/layout/drug_list_content.xml +++ b/app/src/main/res/layout/drug_list_content.xml @@ -36,15 +36,15 @@ android:id="@+id/endOfStock" android:layout_width="wrap_content" android:layout_height="wrap_content" + android:layout_alignParentEnd="true" + android:layout_alignParentBottom="true" + android:layout_marginEnd="30dp" + android:layout_marginBottom="5dp" android:gravity="end" android:text="@string/Date" - android:textSize="14sp" android:textColor="#212121" - android:textStyle="bold" - android:layout_alignParentBottom="true" - android:layout_alignParentEnd="true" - android:layout_marginEnd="30dp" - android:layout_marginBottom="5dp" /> + android:textSize="14sp" + android:textStyle="bold" /> From 76c9181f246a3c47d6740a38e8c20a014f4b4973 Mon Sep 17 00:00:00 2001 From: jacques Date: Sat, 11 Jun 2022 10:06:36 +0200 Subject: [PATCH 14/15] Add v0.300-beta changelogs in French and English. --- .../android/en-US/changelogs/v0.300-beta.txt | 51 +++++++++++++++++++ .../android/fr-FR/changelogs/v0.300-beta.txt | 51 +++++++++++++++++++ 2 files changed, 102 insertions(+) create mode 100644 fastlane/metadata/android/en-US/changelogs/v0.300-beta.txt create mode 100644 fastlane/metadata/android/fr-FR/changelogs/v0.300-beta.txt diff --git a/fastlane/metadata/android/en-US/changelogs/v0.300-beta.txt b/fastlane/metadata/android/en-US/changelogs/v0.300-beta.txt new file mode 100644 index 0000000..6e3f7e4 --- /dev/null +++ b/fastlane/metadata/android/en-US/changelogs/v0.300-beta.txt @@ -0,0 +1,51 @@ +# v0.300-beta - New features + +- The prescription list management have been revamp (the medics your taken); + - a swipe from right to left remove a medic from the list AND from the database; + - a swipe from left to right allow you to change the detail of the medic, exactly has taping + ont the right arrow. + +Those change allow you to remove medics with a take to zero (0) for a to long time and you'll never +take again. +They allow me to go to the next step of Pilldroid advancement. Instead of displaying the medic named, +Pilldroid will display the molecule (doliprane, efferalgant, daflagant will be displyed has paracétamol). +I will sais more soon. + +Thanks to make return of those new features, [Pilldroid](mailto:jacques+pilldroid@foucry.net) +or [Pilldroid](mailto:pilldroid@foucry.net). + +# v0.201-beta - fix bug in `alarmReceiver` + +The `alarmReceiver` was still using the old database that *should* be empty. I use `room` database +management now. + +# v0.200-beta – New semantic version number (VRelease.MajorMinorPatch) + +**REMEMBER** Pilldroid is a French people user only. + +I made a lot a tests but there must stay some bugs. + +## What's new + +A lot of things under the surface : +- Add an alert about non responsibility of the author in case of trouble; +- Using `Room` to manage databases; +- Migration of the old database to the new one, you should not see anything; +- Code cleaning. + +## What should work. +- QR-code scan on a dark background. The library have an option for that. + + +**WARNING**, Pilldroid does not manage creams, liquids +(like insulin). + +Thanks to use [github](https://github/jfoucry/pilldroid) for bugs +reports and new features. + +> I made Pilldroid on my free time which is not expandable. Please +do not stress me it will be unproductive. + +Pilldroid will available only from [f-droid](https://f-droid.org) + +You can reach me and discuss on [Pilldroid](mailto:jacques+pilldroid@foucry.net). diff --git a/fastlane/metadata/android/fr-FR/changelogs/v0.300-beta.txt b/fastlane/metadata/android/fr-FR/changelogs/v0.300-beta.txt new file mode 100644 index 0000000..d1aa858 --- /dev/null +++ b/fastlane/metadata/android/fr-FR/changelogs/v0.300-beta.txt @@ -0,0 +1,51 @@ +# v0.300-beta - Nouvelles fonctionnalités + +- La gestion de la liste des prescriptions (les médicaments que vous permet) à été revue ; + - un glissement de la droite vers la gauche supprime le médicament de la liste ET de + la base données ; + - un glissement de la gauche vers la droite permet de modifier les détails du médicament, + tout comme le tapotage sur la flèche à la droite de la ligne. + +Ces changements vont vous permettre de supprimer les médicaments dont la prise est à zéro (0) +depuis longtemps et que vous ne prendrez plus. +Ils vont également me permettre d'avancer sur la prochaine étape qui est de plus présenter les noms +des médicaments, mais la molécule (doliprane, efferalgant, daflagant deviendront paracétamol). +Je vous en dirais plus prochainement. + +Merci de me faire des retours sur ces nouveautés, [Pilldroid](mailto:jacques+pilldroid@foucry.net) +[Pilldroid](mailto:pilldroid@foucry.net)ou pilldroid@foucry.net. + +# v0.201-beta - déverminage dans `alarmReceiver` + +L'`alarmReceiver` utilisait encore l'anciennt base de données qui devait être vide. J'utilise désormais la gestion`room` +pour la base données. + +# v0.200 – Nouvelle numérotation sémantique (VMajor.Minor.Patch) + +Malgré de nombreux tests et une utilisation quotidienne, +tout est à tester. + +## Nouveautés + +Pas grand-chose de visible pour les personnes utilisatrices : +- Ajout d'une demande explicite de non-responsabilité de l'auteur en cas de problème ; +- Utilisation de `Room` pour gérer les bases de données ; +- Migration de l'ancienne base de données à la nouvelle, vous ne devriez rien voir ; +- Nettoyage du code. + +## Ce qui devrait fonctionner +- le scan de QR-code sur un fond foncé. La bibliothèque utilisée a un paramètre pour cela. + + +**ATTENTION**, Pilldroid ne sait pas gérer les crèmes, les liquides +(l'insuline par exemple). + +Merci d'utiliser [github](https://github/jfoucry/pilldroid) pour +rapporter des bogues et demander des fonctionnalités. + +> Je fais Pilldroid sur mon temps libre et accessible. Il est inutile +et contre-productif de me « mettre la pression ». + +Pilldroid ne sera diffusé que par [f-droid](https://f-droid.org) (pour l'instant) + +Vous pouvez m'écrire pour discuter de [Pilldroid](mailto:jacques+pilldroid@foucry.net). From e86d0189f935f8a1c4497179d3a0df0af68f8399 Mon Sep 17 00:00:00 2001 From: jacques Date: Sat, 11 Jun 2022 10:07:23 +0200 Subject: [PATCH 15/15] Change versionCode and versionName --- app/build.gradle | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 251cd2b..e41ca50 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -32,8 +32,8 @@ android { applicationId "net.foucry.pilldroid" minSdkVersion defaultMinSdkVersion targetSdkVersion defaultTargetSdkVersion - versionCode 201 - versionName "v0.201-beta" + versionCode 300 + versionName "v0.300-beta" multiDexEnabled true javaCompileOptions { annotationProcessorOptions {