Markus Fisch
643a935852
Move buildConfig from properties into build.gradle
...
Apparently setting 'android.defaults.buildfeatures.buildconfig=true'
is deprecated and will be removed in version 9.0 of the Android Gradle
plugin.
2024-03-30 12:46:15 +01:00
solokot
4fcb836b53
Update Russian translation
2024-03-26 12:12:30 +01:00
Markus Fisch
48ed5f1a2c
Add history shortcut
2024-03-25 21:36:53 +01:00
Markus Fisch
3aa2371eeb
Advance version number to 1.63.5
2024-03-24 21:15:31 +01:00
solokot
88f92943c0
Update Russian translation
2024-03-24 14:53:36 +01:00
Sergiy Stupar
39710d4ab9
Update Ukrainian translation
2024-03-24 14:53:03 +01:00
Markus Fisch
93f7cd3cb8
Map old ignore setting to new one
...
For existing installations that changed this value.
2024-03-23 20:21:08 +01:00
Markus Fisch
69baa3b824
Add an option to ignore any duplicates
...
As requested in issue #439 .
2024-03-23 14:20:42 +01:00
KamaleiZestri
554f5a5e73
Fix failing send due to invalid bluetooth connection
...
Try reconnect to socket once before failing.
2024-03-21 21:19:51 +01:00
Markus Fisch
3c7012e3c4
Advance version number to 1.63.4
2024-03-17 13:35:31 +01:00
Markus Fisch
08e11c3c40
Update ZXingCpp to fix support for old devices
2024-03-16 21:38:51 +01:00
Unknownman820
31854dab0c
Update Chinese translation
2024-03-16 21:38:04 +01:00
Markus Fisch
4f12c3e270
Advance version number to 1.63.3
2024-03-04 21:06:50 +01:00
Markus Fisch
0d4f536f71
Fix returning barcode format in return Intent
...
The class `BarcodeFormat` is not known to callers, of course.
2024-03-03 18:30:55 +01:00
Markus Fisch
d124c29919
Advance version number to 1.63.2
2024-02-19 22:08:22 +01:00
Markus Fisch
2e89f1530a
Add DX_FILM_EDGE barcode format
...
And add it to the selected barcodes so it's immediately
available for existing installations too.
2024-02-17 13:41:49 +01:00
Markus Fisch
f680533819
Update ZXingCpp for DX_FILM_EDGE format
2024-02-17 13:21:06 +01:00
Oğuz Ersen
a8c977c40e
Update Turkish translation
2024-01-21 17:31:20 +01:00
Markus Fisch
1e89b22953
Update ZXingCpp to latest version
...
For QRCode: fix crash reported in #700
2024-01-15 20:14:50 +01:00
Sergiy Stupar
41581d07ec
Update Ukrainian translation
2024-01-14 20:53:17 +01:00
Markus Fisch
dc819a6e1a
Advance version number to 1.63.1
2024-01-13 13:47:32 +01:00
Markus Fisch
5b51072f1a
Include custom label in json/csv exports/shares
2024-01-13 13:29:45 +01:00
solokot
1b10e82cb2
Update Russian translation
2024-01-12 08:55:55 +01:00
Markus Fisch
eeae1eb0ad
Advance version number to 1.63.0
2024-01-11 20:27:27 +01:00
Markus Fisch
21c29ca373
Set sendScanActive to false by default
...
Was enabled by default because this setting came after `sendScanUrl`
and I didn't want to annoy users using this feature already.
But it's probably too suspicious to have it enabled by default, even
if it does nothing, of course.
2024-01-11 17:10:22 +01:00
Markus Fisch
8bcb72e91b
Use getParcelableExtra(String, Class) on Tiramisu+
2024-01-11 00:23:15 +01:00
Markus Fisch
8f345fbfbe
Remove redundant suppress annotation
2024-01-11 00:14:04 +01:00
Markus Fisch
2c88dbca02
Reformat scanWithinBounds()
...
Apply autoformat.
2024-01-11 00:12:45 +01:00
Markus Fisch
bd1c629c85
Reformat imports
...
Let Android Studio do its thing.
2024-01-11 00:11:48 +01:00
Markus Fisch
f89e6612c4
Replace Enum.values() with Enum.entries
...
Following the recommendation.
2024-01-11 00:09:27 +01:00
Markus Fisch
7a0cd0ce19
Use isNullOrEmpty instead of checking both
2024-01-11 00:08:22 +01:00
Markus Fisch
8544affa1e
Edit scan label in DecodeFragment
...
Which makes this feature more prominent and also easier to access.
2024-01-10 23:56:44 +01:00
Markus Fisch
48d3588341
Add a button to add generated codes to the history
...
So generated barcodes can be saved, too.
2024-01-10 23:37:51 +01:00
Markus Fisch
783f6e4892
Refactor edit_scan to edit_label
...
This action is used to edit the (optional) label of a scan.
2024-01-10 23:03:24 +01:00
Markus Fisch
032cd64daf
Avoid asking multiple times for camera permission
...
Otherwise ActivityCompat.requestPermissions() will trigger onResume()
again and again.
2024-01-11 10:59:29 +01:00
Markus Fisch
96626e6b00
Move origin subtraction out of min()
...
Simplifies the calculation of the width and height of the crop
section.
2024-01-10 22:38:31 +01:00
Markus Fisch
11ae65ec3e
Refactor Bitmap.erect to rotate
...
The original task of this function was to straighten a picture
lying on its side. However, the function is now used for any rotation.
2024-01-10 22:36:02 +01:00
Markus Fisch
91e3acb647
Disable free rotation by default
...
This is probably too delicate to use, most barcodes are still
recognized when skewed (a little), and it can be quite an expensive
operation to rotate a very big image. So it's better to disable
this feature by default (for new installations).
2024-01-09 20:25:21 +01:00
Markus Fisch
40c2f5947b
Crop imported images in background thread
...
Because rotating and cropping a big photo can take some time.
2024-01-09 20:03:26 +01:00
Markus Fisch
58b9466cfc
Fix margin/error correction for recreated codes
...
The `margin` argument position was incorrectly used for the
error correction level.
2024-01-09 19:28:50 +01:00
Markus Fisch
12210e1768
Update CameraView library
2024-01-09 12:13:12 +01:00
Sergiy Stupar
ad2ac457c9
Update Ukrainian translation
2024-01-09 12:06:05 +01:00
Markus Fisch
634b6e8d2b
Limit duration of error beep to 1s
...
Since `ToneGenerator.TONE_SUP_ERROR` keeps on playing which
is quite annoying.
2024-01-03 19:21:29 +01:00
CertainBot
6dd47f4dd0
Update Spanish translation
2023-12-19 22:00:31 +01:00
Markus Fisch
8426f66cfb
Fix indent in settings.gradle
...
Match this with the rest of the project.
2023-12-18 12:27:34 +01:00
Meen Beese
3dfa84a33e
Simplification and clean up of Gradle files
...
* Some linting suggestions by Android Studio
* Move all repository declarations to settings
2023-12-18 09:41:07 +01:00
Markus Fisch
38f658e253
Advance version number to 1.62.3
2023-12-15 12:18:14 +01:00
Markus Fisch
287d99e2b4
Make clicks select list items when in action mode
...
Avoids having to do long presses for every item you want to add
to the selection.
2023-12-14 22:57:31 +01:00
Markus Fisch
5cfcde9d4a
Update pt-br translation
...
Thanks to m_s_
2023-12-12 23:05:47 +01:00
Markus Fisch
b2730259fc
Advance version number to 1.62.2
2023-12-12 21:56:37 +01:00
Markus Fisch
61a2d3023c
Add rMQR Code on existing installations
...
So it's working immediately after an update.
2023-12-12 21:50:28 +01:00
CertainBot
239ac7bd1a
Update Spanish translation
...
- New strings translated. Typos ammended.
- Términos nuevos traducidos. Corrección de erratas.
2023-12-11 21:58:35 +01:00
Markus Fisch
4048314cf7
Advance version number to 1.62.1
2023-12-11 20:19:18 +01:00
Markus Fisch
3dbd772847
Add rMQR Code to barcode format resources
...
To make it selectable, too.
2023-12-11 20:12:23 +01:00
Markus Fisch
92e3669ee5
Advance version number to 1.62.0
2023-12-10 15:49:33 +01:00
Markus Fisch
8b297f4768
Ignore plurals warning for qr_version_and_modules
...
Because a QR Code always has more than one module.
2023-12-10 15:45:13 +01:00
Markus Fisch
42b7f1179b
Remove incomplete zh-rTW locales translation
...
Because this got incomplete and so won't work with the values
array anymore.
Also it's probably a really bad idea to translate locales anyway.
If you pick a wrong one by accident, you'll have a hard time
changing it back to something you can understand.
2023-12-10 15:40:37 +01:00
Markus Fisch
9d6854c282
Suppress false-positive warning about TileService
...
`TileService#startActivityAndCollapse(Intent)` is only ever run
below UpsideDownCake, but Lint doesn't understand this yet.
2023-12-10 15:37:48 +01:00
Markus Fisch
d943b7deff
Suppress warning about commit()ing prefs
...
Because `commit()` is intentional where it's used.
2023-12-10 15:36:10 +01:00
Markus Fisch
194338a0d2
Remove "many" quantity from French plural
...
Lint says this isn't relevant to French.
2023-12-10 15:34:27 +01:00
Markus Fisch
7eb8fdcce1
Add Brave search to and de/fa/tr locales
...
This was missing from the original commit.
2023-12-10 15:33:21 +01:00
Markus Fisch
2bf1796340
Improve naming of shared wrapper files
...
And add extensions so it's easier to deal with these files
in other contexts.
2023-12-10 15:14:31 +01:00
Markus Fisch
cc42015da2
Wipe share file in HistoryFragment too
2023-12-09 22:20:33 +01:00
Markus Fisch
648c39c439
Rename share file to just "contents"
...
A better fit when sharing the history in this file.
2023-12-09 22:20:00 +01:00
Markus Fisch
8c25b05cda
Remove menu group to make actions fold
2023-12-09 22:16:16 +01:00
Markus Fisch
780bebc9d1
Share history as a file
...
To make sharing the history via Bluetooth more easily, as Android
converts plain text to HTML there.
2023-12-09 22:01:51 +01:00
Markus Fisch
bf7eb7efd5
Update tools version and gradle wrapper
...
And finally add the `compileOptions` block to make Gradle 8
work, because the Google guys are still unable to fix their bugs.
2023-12-09 16:29:48 +01:00
Markus Fisch
d00d08bae3
Update to latest ZXingCpp
2023-12-09 15:13:45 +01:00
Markus Fisch
379256a7fe
Share selected scans only from history
...
If there is a selection. Otherwise use the search filter as before.
2023-11-26 19:54:08 +01:00
Markus Fisch
180339269f
Advance version number to 1.61.2
2023-11-22 19:16:16 +01:00
v72807647
49af17cba8
Fix quick setting tile failed to launch on Android 14
...
SDK 34 deprecates startActivityAndCollapse(Intent), making it
throws an UnsupportedOperationException on Android 14 devices
instead of launching the app.
Added new function call for API 34, tested with Android 14 and
Android 9 devices.
2023-11-22 09:24:30 +01:00
Markus Fisch
a03a187d2d
Escape apostrophes in french translation
...
Apostrophe characters need to be escaped in XML.
2023-11-20 10:55:29 +01:00
solokot
84806e70d7
Update Russian translation
2023-11-20 10:09:02 +01:00
Nathan
058de5a141
Update french locale
2023-11-18 12:28:07 +01:00
Kryštof Černý
d330fbd195
Update CZ translation
2023-11-16 13:45:59 +01:00
Markus Fisch
f5bc6f664f
Fix Xiaomi MIUI lockscreen barcode shortcut
2023-11-15 22:07:50 +01:00
Markus Fisch
464279807c
Advance version number to 1.61.1
2023-11-14 23:10:09 +01:00
Markus Fisch
f7e5ef473a
Add menu item to share scanned contents as a file
...
Because when sharing plain text via Bluetooth, Android explicitly
converts anything to HTML, which is not always what we want.
Details here:
https://stackoverflow.com/q/29907030
This feature is also useful to share binary contents more easily.
2023-11-13 20:26:31 +01:00
Markus Fisch
ff733ef59e
Fix opening recreated barcodes with binary content
...
Use the raw bytes not only for the recreated image but also
when opening the barcode in BarcodeFragment.
2023-11-10 21:16:05 +01:00
Markus Fisch
35b110a472
Fix key of general format restriction preference
...
Makes this setting have an effect again.
I somehow forgot to update the keys in the XMLs as well.
2023-11-08 20:41:32 +01:00
Markus Fisch
58eabf4754
Update to SDK 34
2023-11-01 18:12:57 +01:00
Markus Fisch
1f273a48a5
Catch IAE when parsing a WIFI configuration
...
Because some arguments may be out of range.
For example, SSIDs cannot be longer than 32 characters in some
versions of Android.
See: https://github.com/markusfisch/BinaryEye/issues/402
2023-10-29 13:53:58 +01:00
solokot
785a64725d
Update Russian translation
2023-10-24 08:56:32 +02:00
Markus Fisch
7a42e1de73
Recreate binary barcodes too
...
Since this is easily possible now.
2023-10-23 21:11:01 +02:00
7heMech
9856ab7b6b
Add Bulgarian translation and Brave search engine
2023-10-20 14:14:36 +02:00
Markus Fisch
746ff143d8
Advance version number to 1.61.0
2023-10-13 23:49:38 +02:00
Markus Fisch
b0d4d94973
Add test for a VCARD with an explicit TYPE
...
And make the other tests fail if null was returned.
2023-10-13 21:11:22 +02:00
Markus Fisch
c604ad5ef2
Fix type regex for VCARDs
...
The previous regex captured just the first letter of the type argument
because it was modified to be not greedy.
2023-10-13 21:08:01 +02:00
Markus Fisch
91c2b324ac
Refactor pick_file to pick_image_file
...
And use `pick_file` to pick any file, not just an image.
2023-10-12 22:23:27 +02:00
Markus Fisch
df59fd7446
Update Kotlin and coroutines library version
2023-10-12 22:15:19 +02:00
Markus Fisch
449fd1f26c
Limit read binary data for encoding
...
And use just the first 4096 bytes, which is way too optimistic
as there is no barcode format available that can save that much
data.
This is just to avoid an OutOfMemoryError. Maybe it's better to
just show an error message for files that are too big?
2023-10-13 13:16:24 +02:00
Markus Fisch
72d839c6e2
Support encoding binary data from a file
...
So binary data can finally be re-encoded too.
2023-10-13 12:48:13 +02:00
Markus Fisch
ab8c993a81
Add padding for spinners on encode fragment
...
Enlarges the touch area and makes the spinners easier to use.
2023-10-13 11:47:36 +02:00
Markus Fisch
5f5bd913d6
Move content EditText to the top
...
As this is probably the most important input field.
2023-10-13 11:47:36 +02:00
Markus Fisch
92fe4dd55f
Reformat code with Android Studio
...
And apply the latest style changes.
2023-10-12 20:32:01 +02:00
Markus Fisch
dab95176f0
Remember last selected margin for generation
...
More convenient.
Maybe we should store these settings for each barcode format.
2023-10-12 20:29:23 +02:00
Markus Fisch
650503ba70
Update camera library to latest version
2023-10-08 20:17:58 +02:00
solokot
61078f214e
Update Russian translation
2023-10-02 13:33:45 +02:00
Markus Fisch
a4b639edfe
Add margin parameter for encoding barcodes
2023-09-20 13:46:34 +02:00
Markus Fisch
f37878dbb8
Replace toUpperCase() with uppercase()
...
Because toUpperCase(Locale) is deprecated.
2023-09-19 22:19:35 +02:00