Commit Graph

852 Commits

Author SHA1 Message Date
aradxxx
47e598ede1 Rename .java to .kt 2025-10-15 21:40:27 +04:00
Sylvia van Os
8094b7cc47 Merge pull request #2760 from aradxxx/manage_group_activity_to_kt
Convert ManageGroupActivity to Kotlin
2025-10-13 23:18:36 +02:00
Sylvia van Os
abd8716b56 Minor cleanups 2025-10-13 23:01:36 +02:00
aradxxx
a0ef9b8d1b Convert ManageGroupActivity.java to Kotlin 2025-10-13 15:04:29 +04:00
aradxxx
802717c7a4 Rename .java to .kt 2025-10-08 21:16:30 +04:00
amlwin
303b40e572 Convert ImportExportActivity to Kotlin
Refactored `ImportExportActivity` and its corresponding test class from Java to Kotlin. The new implementation uses modern Kotlin idioms and syntax while preserving the original functionality.
2025-10-06 11:34:45 +08:00
amlwin
622ea37554 Rename .java to .kt 2025-10-06 11:34:45 +08:00
Aung Myo Lwin
ce3dbaf902 Convert SettingsActivity to Kotlin (#2744)
* Rename .java to .kt

* Convert SettingsActivity to Kotlin

Refactored the `SettingsActivity` and its inner `SettingsFragment` from Java to Kotlin, adopting modern Kotlin idioms and syntax. The functionality remains unchanged.

* Address PR comment: by removing null safety with non-null asserted call operator

* Apply Android Studio suggested fixup

---------

Co-authored-by: Sylvia van Os <sylvia@hackerchick.me>
2025-10-05 21:13:17 +02:00
Sylvia van Os
f91b94d100 Dep/bump ucrop (#2748)
* Bump com.github.yalantis:ucrop from 2.2.10 to 2.2.11

Bumps [com.github.yalantis:ucrop](https://github.com/Yalantis/uCrop) from 2.2.10 to 2.2.11.
- [Release notes](https://github.com/Yalantis/uCrop/releases)
- [Commits](https://github.com/Yalantis/uCrop/compare/2.2.10...2.2.11)

---
updated-dependencies:
- dependency-name: com.github.yalantis:ucrop
  dependency-version: 2.2.11
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* Fix build

While testing on Android 15, no difference was found in the status bar
colour on Android 15 with or without the setting

* Use non-native release

* Apply autogenerated ProGuard missing rules

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-10-04 14:11:42 +02:00
Sylvia van Os
a34a091cdb Fix crash on missing header colors
An off-by-one error caused invalid colour info to sometimes be generated
if no header colour was set. Under normal conditions, a header colour
should always be set, but due to some bugs in the past in some cases
they may not be set.

Sadly this does change the card colours for cards which are not properly
initialized. But that's better than a crash at least.
2025-09-30 23:27:11 +02:00
Sylvia van Os
2f37e2a9c7 Merge pull request #2713 from vijay2909/fix/remove-image-crash
fix: Crash after removing image while viewing image
2025-09-27 12:45:37 +02:00
hritikRitss
9ae02ddb15 fix: reset mainImageIndex if it exceeds available image count 2025-09-26 23:47:37 +05:30
Sylvia van Os
c21159c571 Update used libraries 2025-09-26 19:03:31 +02:00
PRATHAMESH BHAGAT
81db39d4e1 Migrate Enums and Interfaces to kotlin (#2710)
Co-authored-by: Sylvia van Os <sylvia@hackerchick.me>
2025-09-26 18:57:10 +02:00
Sylvia van Os
dc9f4fafde Set up ACRA with email crash alerts for foss build 2025-09-25 19:14:39 +02:00
Sylvia van Os
c7fdd63d7d Add some FIXMEs 2025-09-24 18:31:22 +02:00
Sylvia van Os
412077e2ab Remove rotation hack and add warning to not rotate to import/export
This is suboptimal, but rotation support is being removed by Google for
over 600dp screen sizes
2025-09-24 18:31:22 +02:00
Sylvia van Os
0f1005c193 Remove rotation support
With the release of targetSdk 36, the Android platform will no longer
always apply rotation. To lower the chance of user confusion, this
support is being removed completely.

I know some of you really love this, but I can't do anything about this.
This is Google's decision and my opinion doesn't matter.
2025-09-24 18:31:19 +02:00
PRATHAMESH BHAGAT
d047c38bc2 Migrating ThirdPartyInfo class to kotlin (#2699)
* Migrating ThirdPartyINfo class to kotlin

* Removing null allowance in strings
2025-09-23 18:30:00 +02:00
Sylvia van Os
8419122193 Fix wrong SDK_INT 2025-09-10 23:24:36 +02:00
Sylvia van Os
20559d1506 Workaround widget crash by disabling images on Android 12L and below 2025-09-10 21:49:32 +02:00
Sylvia van Os
1fc5a1e04a Remove Stocard importer
Stocard no longer exists as a company and these import files are no
longer generated
2025-09-08 19:55:10 +02:00
Sylvia van Os
67701840bb Add support for .pkpasses 2025-09-06 12:49:50 +02:00
Sylvia van Os
2c96b11725 Various widget bugfixes
Widget now updates on sorting order change and no cards is correctly
detected
2025-07-31 21:50:59 +02:00
Sylvia van Os
acc72c0937 Rename from CatimaWidget to ListWidget
This makes the codebase easier to understand if we get more widget types
in the future
2025-07-30 21:23:14 +02:00
Sylvia van Os
54c27f7038 Refactor widget to be the same size as regular cards
This isn't as automatic as I would've liked, but with some manual
trial-and-error I think this works well enough in keeping the aspect
ratio while somewhat "scaling" based on size (at least the number of
columns are scaled)
2025-07-30 21:23:14 +02:00
Sylvia van Os
7277ff26fc Refactor deprecated widget code
This replaces the deprecated widget method with the new one and ensures
it consistently updates on changes.
2025-07-30 21:23:14 +02:00
realwk
9a0149def8 Initial widget work
Co-authored-by: Sylvia van Os <sylvia@hackerchick.me>
2025-07-30 21:23:14 +02:00
StellarSand
96359e5942 minor changes 2025-07-28 04:03:06 +05:30
StellarSand
bf63390f65 convert BarcodeSelectorActivity to kotlin 2025-07-28 02:47:58 +05:30
StellarSand
6f54981333 Rename .java to .kt 2025-07-28 02:47:58 +05:30
StellarSand
aed145239b convert CardShortcutConfigure to kotlin 2025-07-28 02:47:44 +05:30
StellarSand
99a8c917b9 Rename .java to .kt 2025-07-28 02:47:44 +05:30
StellarSand
996cd2cd2c Proper fix for FAB being hidden by keyboard (#2579) 2025-07-25 20:04:24 +02:00
StellarSand
b3356b6575 close keypad if open on back pressed 2025-07-18 02:24:26 +05:30
Yash R. Dhake
bcb7df24ec Optimize resizeBitmap(): Skip resizing for already-small images (#2565)
Co-authored-by: Sylvia van Os <sylvia@hackerchick.me>
2025-06-29 21:24:12 +02:00
Sylvia van Os
4cb601e0ce Rewrite loop that stopped working in Kotlin 2.1.21 2025-06-02 23:11:43 +02:00
Sylvia van Os
e893923164 Remove spotBugs
We've been running an old version for very long because there hasn't
been any time to update it. A newer version doesn't support Java 21.
Given Java 21 ihas more priority, let's just get rid of spotBugs.
2025-05-14 20:53:14 +02:00
Sylvia van Os
caeba57a42 Fix crash on pkpass with no barcodes 2025-05-12 19:34:51 +02:00
Sylvia van Os
88019dcae3 Also apply inverted scanning to camera 2025-05-07 22:56:48 +02:00
herodotos
35f88ca386 Fix for coloured QR code fails to scan #2366 2025-05-07 08:19:13 +02:00
Sylvia van Os
e3e1e0c85b Fix icons having white/black lines
It's extremely hard to perfectly reach the 85.6:53.98 ratio, so if the
image is cropped close enough to it, we enable center cropping. This
allows a bit of the edges to be cut off to fully fill the image area.
2025-04-24 18:16:49 +02:00
perepujal
4b77700b97 Merge pull request #2254 from perepujal/main
Adding the ability to resize the width in the fullscreen view.
2025-04-21 17:06:49 +02:00
Sylvia van Os
ac5d15578f Remove confusing import from app function 2025-04-06 20:54:22 +02:00
Sylvia van Os
2c77dcadb5 Support pkpass files without any extra data
Previously, the code assumed one of "boardingPass", "coupon", "eventTicket", "generic" existed and refused to pass a pkpass file without any of them
2025-03-17 18:37:28 +01:00
Sylvia van Os
91ee846054 Fix pkpass reading crashing Catima 2025-03-14 22:09:04 +01:00
Sylvia van Os
cc7553850a Target Android 15
We apply window insets to basically not draw behind the top and bottom
bar. While this is a slight visual downgrade (we used to draw behind the
top bar before), it at least allows us to target Android 15.
2025-03-09 16:51:06 +01:00
juuce79
1a892b2de3 Kotlin conversion of AboutActivity with tests also in Kotlin (#2360) 2025-03-02 13:30:10 +01:00
Christos Tsingiropoylos
9a1d7d2e44 Sort by valid from date (#2297) 2025-01-15 22:01:25 +01:00
Sylvia van Os
d6bbd16945 Add unofficial support for espass
While espass files aren't pkpass files, they are so similar we can
generally parse them fine with the pkpass parser. While this feature
shouldn't be advertised as it is kinda hacky, it does make it easier for
PassAndroid users to share cards with Catima users.
2025-01-11 12:38:03 +01:00