Comments (13)
I'll take a look at doing the cleanups and writing the tests in #150 myself. I'll also try to support Fidme's export format in #168 (the GDPR is so amazing for requiring users to be allowed to export their data).
from android.
Comment by brarcher
Sunday Oct 27, 2019 at 03:51 GMT
Pretty cool!
Are you up for adding some Robolectric tests for this new feature? Much of the app has automated tests, which helps prevent breakage and regressions.
from android.
Comment by franga2000
Sunday Oct 27, 2019 at 07:12 GMT
Sure. I'm not familiar with Robolectric, but I'll look into it.
from android.
Comment by TheLastProject
Wednesday Nov 20, 2019 at 09:11 GMT
I'm quite interested in this feature too. I don't normally do Android development but I'm willing to try to help if useful
from android.
Comment by franga2000
Wednesday Nov 20, 2019 at 10:06 GMT
I got a bunch of uni work dumped on me so I haven't had any time to work on this. It looks like I'll be clear beginning of December, so you can expect this finished around then.
@TheLastProject thanks for the offer. I'm not sure GitHub would be very happy about mixing remote branches in one PR, but it's been a while since I've tried. If you can wait the two weeks, it's probably not worth the hassle of setting up Android Studio π
from android.
Comment by TheLastProject
Wednesday Nov 20, 2019 at 10:59 GMT
Okay, I'll just wait then :)
from android.
Comment by franga2000
Thursday Nov 28, 2019 at 00:01 GMT
I've been working on testing image importing by generating a barcode image, saving it and sending a fake pick intent response to the app. I have discovered, however, that the version of Robolectric used here doesn't actually implement image compression and is as such unable to save images to disk in a way that can read back.
It seems that the feature was only implemented in v4.3.1. While the actual migration to v4 and up is not too difficult, it does, however, require compiling on SDK 28 or higher.
Should I try to migrate the project to a newer version of Robolectric?
from android.
Comment by TheLastProject
Thursday Nov 28, 2019 at 06:41 GMT
I actually did a migration to Roboelectric 4 in my pull request in the hope it would fix things for me. It sadly didn't, but you may still want to take a look at brarcher/loyalty-card-locker@0a9611e to save yourself some time if you end up going that path
from android.
Comment by brarcher
Friday Nov 29, 2019 at 04:30 GMT
While the actual migration to v4 and up is not too difficult, it does, however, require compiling on SDK 28 or higher.
The Play Store has a target SDK requirement which updates each year. As of Nov 1 this app will need to compile against SDK 28, else an update cannot be pushed to the Play Store.
https://support.google.com/googleplay/android-developer/answer/113469#targetsdk
If you would be so kind as to update it to 28 (or 29) that would be much appreciated. I'm also fine with updating the version of Robolectric being used to the latest.
from android.
Comment by brarcher
Tuesday Dec 31, 2019 at 03:52 GMT
Should I try to migrate the project to a newer version of Robolectric?
To follow-up, brarcher/loyalty-card-locker#334 recently was accepted which updates the SDK version compiled against to 29 and updates Robolectric to 4.0.2.
If you are willing to upgrade the version of Robolectric used from 4.0.2 to 4.3.1 go for it. I've not looked into it; hopefully nothing that the existing tests use is deprecated and removed between those two versions. If you run into snags, let me know.
from android.
@franga2000 Are you still interested in working on this? Otherwise I'll see if I can integrate this into Catima myself.
from android.
I just got the app, and can't migrate from my old app (Fidme) to Catima quickly.
I don't own cards I added in Fidme anymore, so this feature would help me migrate π
from android.
Fixed in c93b752, going to give the translators a few days to translate stuff and then I'll push out a new release.
from android.
Related Issues (20)
- Barcode scanner error unreadable on Samsung in light mode
- Front of Card Image not the default HOT 4
- Width of Barcode Display HOT 4
- GUI feature/accessibility request: different number of columns HOT 1
- Search by Card ID and Barcode value HOT 1
- In the list of cards, some names are not fully displayed
- Do not reset search results after exiting the card view window HOT 2
- Save button is covered by OSK when last action is text editing HOT 1
- The barcode value does not match the text below the barcode HOT 2
- In case of an error "No barcode was found" prompt the user to manually specify the area of ββthe image to rescan HOT 3
- Group checkboxes lack contrast in dark theme
- PNG with transparency is not displayed correctly as thumbnail HOT 1
- Add Front β Back Image Button HOT 3
- The general search results should include all cards of the group whose name matches the search query HOT 6
- Custom global full screen barcode display height does not save its value HOT 1
- Swiping to dismiss keyboard also dismisses search HOT 2
- Keep the screen on during export HOT 1
- Request during import: do you want to replace the current ones or add to them? HOT 1
- Handle click outside of import process notification HOT 1
- Migrate codebase to Kotlin HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from android.