Commit Graph
92 Commits
Author SHA1 Message Date
Branden Archer fe0bb7b870 Add a confirmation before deleting card
https://github.com/brarcher/loyalty-card-locker/issues/53
2016-07-22 07:56:22 -04:00
Branden Archer 925f780599 Merge pull request #54 from brarcher/screen-brightness
Adjust brightness to its maximum when displaying a card
2016-07-20 00:04:42 -04:00
Branden Archer 9492d206d9 Adjust brightness to its maximum when displaying a card
Some users have mentioned that a barcode scanner has the best
success when the screen is at its brightest. To enable the best
results, the screen brightness will now be adjusted to its
maximum when displaying a loyalty card.

https://github.com/brarcher/loyalty-card-locker/issues/21
2016-07-19 23:42:36 -04:00
Branden Archer a32415b4d2 Reduce the number of cards tested in import/export tests
There is no need to have so many cards tested in the test, just
a few will do to prove the point.
2016-07-19 23:41:31 -04:00
Branden Archer 5965b82251 Merge pull request #51 from brarcher/pre-v0.7
Update for release v0.7
v0.7
2016-07-14 16:00:10 -04:00
Branden Archer a5650e6382 Update for release v0.7 2016-07-14 15:37:35 -04:00
Branden Archer 6befc99ccc Merge pull request #50 from brarcher/id-to-clipboard
Copy card id to clipboard
2016-07-14 14:56:20 -04:00
Branden Archer 0e124b2550 Allow long-click of card to copy id to clipboard
https://github.com/brarcher/loyalty-card-locker/issues/49
2016-07-14 13:38:42 -04:00
Branden Archer 06a7db0e6d Update Android gradle plugin to 2.1.2 2016-07-14 13:38:42 -04:00
Branden Archer f2f56b06dd Merge pull request #47 from brarcher/back-button
Let pushing back button in menu end import/export activity
2016-05-26 23:12:22 -04:00
Branden Archer 518f339c7a Let pushing back button in menu end import/export activity 2016-05-24 07:55:04 -04:00
Branden Archer bbe6ec3741 Merge pull request #46 from brarcher/pre-v0.6
Update for release v0.6
v0.6
2016-05-23 09:08:06 -04:00
Branden Archer 18310fdd25 Update for release v0.6 2016-05-23 08:52:27 -04:00
Branden Archer 19bd64c48c Merge pull request #44 from brarcher/manual-barcode-entry
Allow manual barcode entry
2016-05-23 08:51:28 -04:00
Branden Archer c86819fc74 Allow user to enter a barcode manually
If a user is unable to scan a barcode, this commit allows a
user to enter is manually.

If the user selects to Enter Card instead of Capture Card,
the user may enter the card's id. As it may not be known which barcode
format the user expects, and the user may not know what barcode
type is what, all barcode types are generated from the user
input. Those that are valid are displayed to the user. The user
may then select the barcode image which matches what the user wants.

Italian translations provided by Michael Moroni (Airon90)
Dutch translations provided by PanderMusubi
2016-05-23 08:43:52 -04:00
Branden Archer 8edc9ce5fd Set barcode image visibility upon completion
If the barcode generation succeeds set it as visible, otherwise
make it gone.
2016-05-21 22:58:08 -04:00
Branden Archer a3a5a3a8db Remove GlobalLayoutListener when no longer needed 2016-05-21 22:58:08 -04:00
Branden Archer 793247a48c Remove unused context 2016-05-21 22:58:08 -04:00
Branden Archer 2f86de4c1b Protect against unexpected failures when encoding barcodes
It was observed that some barcode encoders will fail if the
data passed to them is not valid for the format. For example,
the ITF encoder will throw an ArrayIndexOutOfBoundsException
on the input "this is a test".
2016-05-21 22:58:08 -04:00
Branden Archer 0aa1804258 Allow home button to back out to previous activity 2016-05-21 22:58:08 -04:00
Branden Archer 1c8ef34b8a Remove unneeded parentActivtyName attributes 2016-05-21 22:58:08 -04:00
Branden Archer 3fd45af7d9 Add dependency on Guava 2016-05-21 22:58:08 -04:00
Branden Archer 227af54de7 Merge pull request #43 from brarcher/datamatrix-scaling
Datamatrix scaling
2016-05-21 18:46:57 -04:00
Branden Archer b89c5eb91c Change padding of card list on main screen
The entire space for the ListView was not being used, which
appeared odd.
2016-05-21 18:32:29 -04:00
Branden Archer cecec15762 Scale barcodes to ImageView's size without filtering
It turns out that the library used to create datamatrix barcodes
returns the smallest image necessary to contain the barcode. That
is, the size passed into the barcode writer. If the ImageView
scales the tiny image itself into the full size it will use
bi-linear filtering, which results in a blurry barcode.

To avoid this, if scaling is needed do so without using filtering.
2016-05-21 18:32:29 -04:00
Branden Archer dc4a41088c Generate barcode after ImageView size is known
The size of the ImageView may not yet be known when the
barcode generation is needed. If this is the case, wait
until the final layout is complete then start the
barcode generation.
2016-05-21 18:32:29 -04:00
Branden Archer b91d4c934a Generate barcode in an AsyncTask
This change moves the generation of the barcode into its
own async task. In addition, the size of the ImageView is
used to determine the barcode size to use.

There will be cases when the size of the ImageView will not
be known when the barcode generation starts. This will be resolved
in a future commit.
2016-05-21 18:32:29 -04:00
Branden Archer b8d4eaacad Merge pull request #42 from brarcher/min-sdk-11
Reduce min SDK version to 11
2016-05-17 18:23:11 -04:00
Branden Archer 0a7d5d89cf Reduce min SDK version to 11
The selection of SDK 17 was arbitrarily based on the version
available on my device at the time. As no APIs are being used
at that level, a lower SDK version can be targeted.

According to the current distribution of Android device versions,
99.9% of devices are at SDK 11+. Changing to this for the min SDK
for now.
2016-05-17 14:30:40 -04:00
Branden Archer 7bbcc52ba6 Remove usage of emulator in Travis-CI
The emulator was never used, no reason to download it on every build
2016-05-16 23:26:31 -04:00
Branden Archer 14972c9cc9 Merge pull request #40 from brarcher/pre-v0.5
Update for release v0.5
v0.5
2016-05-16 21:15:18 -04:00
Branden Archer 213d1f64a6 Update for release v0.5 2016-05-16 21:06:29 -04:00
Branden Archer f4f22055fc Merge pull request #38 from brarcher/import-export
Add support for backing up cards to CSV file on external storage
2016-05-16 21:00:38 -04:00
Branden Archer b99704a3d8 Add an About page
This about page layout is borrowed from K-9 Mail:
https://github.com/k9mail

Italian translations provided by Airon90.
Dutch translations provided by PanderMusubi.
2016-05-16 20:51:59 -04:00
Branden Archer 715d726ea3 Update Gradle to 2.10 2016-05-16 20:51:59 -04:00
Branden Archer 8b887a2ee9 Update Gradle Android plugin to 2.0.0 2016-05-16 20:51:59 -04:00
Branden Archer 0248df532a Use gradle wrapper script on Travis-CI 2016-05-16 20:51:59 -04:00
Branden Archer 8c83b85cea Request external storage permission if necessary
Starting on Android 6.0 permissions may be requested at
runtime. To allow import/exporting on 6.0+, request permission
to external storage.
2016-05-16 20:51:59 -04:00
Branden Archer b8f3d891ea Allow user to import/export cards to/from CSV on external storage
Italian translations provided by Airon90.
Dutch translations provided by PanderMusubi
2016-05-16 20:51:59 -04:00
Branden Archer 20338eb09b Add task for importing/exporting 2016-05-16 20:51:59 -04:00
Branden Archer ce272fe7f1 Add ability to import/export cards to/from CSV 2016-05-16 20:51:59 -04:00
Branden Archer fb34fb7451 Add call for writing card entry to specific id
This will be necessary when importing card entries later
2016-05-16 20:51:59 -04:00
Branden Archer 7b2d022e92 Merge pull request #35 from brarcher/gradle-wrappers
Add wrapper scripts and instructions for building
2016-04-22 09:27:49 -04:00
Branden Archer 283858a6e3 Add wrapper scripts and instructions for building 2016-04-22 08:58:38 -04:00
Branden Archer d46b3c0810 Merge pull request #31 from brarcher/note-translation
Update Italian translation for note
2016-04-12 09:04:54 -04:00
Branden Archer a2ff1a9e05 Update Italian translation for note
Airon90 mentioned that although "Nota" is Italian for "Note", it would be better to use the plural
form "Note" here.
2016-04-12 08:58:05 -04:00
Branden Archer b2e333c379 Merge pull request #30 from brarcher/pre-v0.4
Update for release v0.4
v0.4
2016-04-09 22:26:30 -04:00
Branden Archer 2b058ee766 Update for release v0.4 2016-04-09 22:21:23 -04:00
Branden Archer fc3302219e Merge pull request #29 from brarcher/note-field
Add a note field
2016-04-09 22:18:35 -04:00
Branden Archer e0a77e9628 display store and note on card summary view
Dutch translation provided by PanderMusubi

Related issues:
https://github.com/brarcher/loyalty-card-locker/issues/23
https://github.com/brarcher/loyalty-card-locker/issues/24
2016-04-09 22:11:20 -04:00