diff --git a/.github/changelog_to_fastlane.py b/.github/changelog_to_fastlane.py new file mode 100644 index 000000000..6c62b45d3 --- /dev/null +++ b/.github/changelog_to_fastlane.py @@ -0,0 +1,27 @@ +#!/usr/bin/python3 + +import os +import re + +changelogs = {} + +with open('CHANGELOG.md') as changelog: + version_code = None + text = [] + + for line in changelog: + if line.startswith("## "): + if version_code != None: + changelogs[version_code] = text + + text = [] + match = re.match("## \S* - (\d*) \(\d{4}-\d{2}-\d{2}\)", line) + if not match: + raise ValueError(f"Invalid version line: {line}") + version_code = match.group(1) + else: + text.append(line) + +for version, description in changelogs.items(): + with open(os.path.join("fastlane", "metadata", "android", "en-US", "changelogs", f"{version}.txt"), "w") as fastlane_file: + fastlane_file.write("".join(description).strip()) \ No newline at end of file diff --git a/.github/workflows/changelog-to-fastlane.yml b/.github/workflows/changelog-to-fastlane.yml new file mode 100644 index 000000000..e1c289d71 --- /dev/null +++ b/.github/workflows/changelog-to-fastlane.yml @@ -0,0 +1,24 @@ +name: Convert CHANGELOG to Fastlane +on: + push: + branches: [ master ] + +jobs: + convert_changelog_to_fastlane: + runs-on: ubuntu-latest + name: Convert CHANGELOG to Fastlane + steps: + - name: Checkout repo + id: checkout + uses: actions/checkout@v2 + - name: Setup Python + uses: actions/setup-python@v2 + with: + python-version: '3.x' + - name: Run converter script + run: python .scripts/changelog_to_fastlane.py + - name: Create Pull Request + uses: peter-evans/create-pull-request@v3 + with: + title: "Update Fastlane changelogs" + commit-message: "Update Fastlane changelogs" \ No newline at end of file diff --git a/.github/workflows/contributors-to-file.yml b/.github/workflows/contributors-to-file.yml index 4359c3ebb..ed2a3da5f 100644 --- a/.github/workflows/contributors-to-file.yml +++ b/.github/workflows/contributors-to-file.yml @@ -1,3 +1,4 @@ +name: Write contributors to file on: push: branches: [ master ] diff --git a/CHANGELOG.md b/CHANGELOG.md index 9337afcb7..25c108b02 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ # Changelog -## v2.4.0 (2021-08-29) +## v2.4.0 - 81 (2021-08-29) Changes: @@ -9,27 +9,27 @@ Changes: - Don't close scan activity on camera error (so manual entry is still possible) - Add all contributors to the about dialog -## v2.3.0 (2021-08-19) +## v2.3.0 - 80 (2021-08-19) Changes: - Fix images not imported from backup - Option to override language -## v2.2.3 (2021-08-13) +## v2.2.3 - 79 (2021-08-13) Changes: - Fix widget creating different-looking shortcut than app shortcuts - Replace default Android black screen with splash screen -## v2.2.2 (2021-08-08) +## v2.2.2 - 78 (2021-08-08) Changes: - Fix crash on rotation in loyalty card edit activity -## v2.2.1 (2021-08-07) +## v2.2.1 - 77 (2021-08-07) Changes: @@ -38,7 +38,7 @@ Changes: - Scale card title in acceptable range - Animation improvements -## v2.2.0 (2021-08-02) +## v2.2.0 - 76 (2021-08-02) Changes: @@ -47,7 +47,7 @@ Changes: - Comma-separate group names in loyalty card view - Fix maximize button appearing on no barcode -## v2.1.0 (2021-08-01) +## v2.1.0 - 75 (2021-08-01) Changes: @@ -56,7 +56,7 @@ Changes: - Fix possible ArithmeticException when resizing image - Fix fullscreen is closed when rotating device -## v2.0.4 (2021-07-27) +## v2.0.4 - 74 (2021-07-27) Changes: @@ -64,26 +64,26 @@ Changes: - Generate card-specific shortcut icon - Fix ability to change loyalty card colour -## v2.0.3 (2021-07-25) +## v2.0.3 - 73 (2021-07-25) Changes: - Fix loading photos when editing existing card -## v2.0.2 (2021-07-25) +## v2.0.2 - 72 (2021-07-25) Changes: - Fix inability to configure photos in new loyalty card -## v2.0.1 (2021-07-21) +## v2.0.1 - 71 (2021-07-21) Changes: - Several minor translation and UI fixes - Fix crash in import/sharing loyalty card on Android 6 -## v2.0 (2021-07-14) +## v2.0 - 70 (2021-07-14) Breaking changes: - The backup format changed, see https://github.com/TheLastProject/Catima/wiki/Export-format @@ -101,7 +101,7 @@ Changes: - Fix Floating Action Buttons being behind other UI elements on Android 4 - Fix loyalty card viewer appbar top margin -## v1.14.1 (2021-06-14) +## v1.14.1 - 69 (2021-06-14) Changes: @@ -109,7 +109,7 @@ Changes: - Don't show update barcode dialog if value is the same as card ID - Add Finnish translation -## v1.14 (2021-06-07) +## v1.14 - 68 (2021-06-07) Changes: @@ -118,7 +118,7 @@ Changes: - Support sharing multiple loyalty cards at once - Ask to update barcode value if card ID changes -## v1.13 (2021-04-10) +## v1.13 - 67 (2021-04-10) Changes: @@ -129,7 +129,7 @@ Changes: - Always show all barcode types in manual entry - Remove privacy policy first start dialog -## v1.12 (2021-03-30) +## v1.12 - 66 (2021-03-30) Changes: @@ -138,13 +138,13 @@ Changes: - Fix multiline note cutoff - Change "Thank you" text on privacy dialog to "Accept" because Huawei is overly pedantic -## v1.11 (2021-03-21) +## v1.11 - 64 (2021-03-21) Changes: - Add privacy policy dialog on first start (required by Huawei) -## v1.10 (2021-03-07) +## v1.10 - 63 (2021-03-07) Changes: @@ -152,33 +152,33 @@ Changes: - Option to keep the screen on while viewing a loyalty card - Option to suspend the lock screen while viewing a loyalty card -## v1.9.2 (2021-02-24) +## v1.9.2 - 62 (2021-02-24) Changes: - Fix parsing balance for countries using space as separator -## v1.9.1 (2021-02-23) +## v1.9.1 - 61 (2021-02-23) Changes: - Improve balance parsing logic - Fix currency decimal display on main screen -## v1.9 (2021-02-22) +## v1.9 - 59 (2021-02-22) Changes: - Add balance support - Reorganize barcode tab of edit view -## v1.8.1 (2021-02-12) +## v1.8.1 - 58 (2021-02-12) Changes: - Fix Crash on versions before Android 7 -## v1.8 (2021-01-28) +## v1.8 - 57 (2021-01-28) Changes: @@ -187,32 +187,32 @@ Changes: - Make header in loyalty card view small in landscape mode - Fix cards not staying in group when group gets renamed -## v1.7.1 (2021-01-18) +## v1.7.1 - 56 (2021-01-18) Changes: - Fix crash on switching to barcode tab in edit view if there is no barcode -## v1.7.0 (2021-01-18) +## v1.7.0 - 55 (2021-01-18) Changes: - Separate edit UI in tabs to make it feel more spacious - Add expiry field support -## v1.6.2 (2021-01-04) +## v1.6.2 - 54 (2021-01-04) Changes: - Fix edit button or more info bottom sheet drawing over barcode ID -## v1.6.1 (2020-12-16) +## v1.6.1 - 64 (2020-12-16) Changes: - Fix regression causing manual barcode entry to not be saved -## v1.6.0 (2020-12-15) +## v1.6.0 - 52 (2020-12-15) Changes: @@ -220,27 +220,27 @@ Changes: - Fix blurry icons (use SVG everywhere) - Always open camera but add manual scan button to camera view -## v1.5.1 (2020-12-03) +## v1.5.1 - 51 (2020-12-03) Changes: - Fix bottomsheet background being transparent -## v1.5.0 (2020-12-03) +## v1.5.0 - 50 (2020-12-03) Changes: - Improve contrast by always using white text on red buttons - Draggable bottom sheet in loyalty card view -## v1.4.1 (2020-12-01) +## v1.4.1 - 49 (2020-12-01) Changes: - Improved translations - Small UI fixes -## v1.4.0 (2020-11-28) +## v1.4.0 - 48 (2020-11-28) Changes: @@ -248,33 +248,33 @@ Changes: - Ask user if they want to use their camera or manually enter ID on add/edit card - Make group ordering manual instead of forced alphabetically -## v1.3.0 (2020-11-22) +## v1.3.0 - 47 (2020-11-22) Changes: - Always show all import/export options and show a toast on actual issues (improves compat with XPrivacyLua) - Ask for confirmation when leaving edit view after making changes without saving -## v1.2.2 (2020-11-19) +## v1.2.2 - 46 (2020-11-19) Changes: - Remember active group tab between screens and sessions -## v1.2.1 (2020-11-17) +## v1.2.1 - 45 (2020-11-17) Changes: - Fix home screen swiping triggering during vertical swipes too -## v1.2.0 (2020-11-17) +## v1.2.0 - 44 (2020-11-17) Changes: - Add swiping between groups on the home screen - Fix crash with cards lacking header colour -## v1.1.0 (2020-11-11) +## v1.1.0 - 43 (2020-11-11) Changes: @@ -282,20 +282,20 @@ Changes: - Removed header text colour option (now automatically generated based on brightness) - Updated translations -## v1.0.1 (2020-11-07) +## v1.0.1 - 42 (2020-11-07) Changes: - Fix crash in search with no groups -## v1.0 (2020-11-06) +## v1.0 - 41 (2020-11-06) Changes: - Added rounded edges to card icons on main overview - Added support for grouping entries -## v0.29 (2020-10-29) +## v0.29 - 40 (2020-10-29) Changes: @@ -306,7 +306,7 @@ Changes: - Add favourites support - Fix disabled auto-rotate being ignored -## v0.28 (2020-03-09) +## v0.28 - 39 (2020-03-09) Changes: @@ -314,7 +314,7 @@ Changes: - Allow backup export location to be selected ([#352](https://github.com/brarcher/loyalty-card-locker/pull/352)) - Update translations ([#357](https://github.com/brarcher/loyalty-card-locker/pull/357)) & ([#362](https://github.com/brarcher/loyalty-card-locker/pull/362)) -## v0.27 (2020-01-26) +## v0.27 - 38 (2020-01-26) Changes: @@ -322,13 +322,13 @@ Changes: - Add white space around barcodes to improve scanning in dark mode ([#328](https://github.com/brarcher/loyalty-card-locker/issues/328)) - Fix swapped import buttons. ([#346](https://github.com/brarcher/loyalty-card-locker/pull/346)) -## v0.26.1 (2020-01-09) +## v0.26.1 - 37 (2020-01-09) Changes: - Fix issue with sharing cards without background color ([#343](https://github.com/brarcher/loyalty-card-locker/pull/343)) -## v0.26 (2020-01-05) +## v0.26 - 36 (2020-01-05) Changes: @@ -347,39 +347,39 @@ Changes: - Polish - Russian -## v0.25.4 (2019-10-04) +## v0.25.4 - 35 (2019-10-04) Changes: - Enable app backups - Update French and Slovenian translations -## v0.25.3 (2019-03-02) +## v0.25.3 - 34 (2019-03-02) Changes: - Update Russian translations -## v0.25.2 (2019-01-05) +## v0.25.2 - 33 (2019-01-05) Changes: - Update and add translations -## v0.25.1 (2018-10-14) +## v0.25.1 - 32 (2018-10-14) Changes: - Fix creating new card by manually entering barcode ([issue #272](https://github.com/brarcher/loyalty-card-locker/issues/272)) -## v0.25 (2018-10-07) +## v0.25 - 31 (2018-10-07) Changes: - Sort card list case insensitive ([pull #266](https://github.com/brarcher/loyalty-card-locker/pull/266)) - Add setting to lock orientation for all cards ([pull #269](https://github.com/brarcher/loyalty-card-locker/pull/269) -## v0.24 (2018-07-31) +## v0.24 - 30 (2018-07-31) Changes: @@ -388,14 +388,14 @@ Changes: - Add Slovenian translations ([pull #260](https://github.com/brarcher/loyalty-card-locker/pull/260)) - Update translations ([pull #260](https://github.com/brarcher/loyalty-card-locker/pull/260), [pull #254](https://github.com/brarcher/loyalty-card-locker/pull/254)) -## v0.23.4 (2018-05-12) +## v0.23.4 - 29 (2018-05-12) Changes: - Fix Spanish translations ([pull #244](https://github.com/brarcher/loyalty-card-locker/pull/244)) - Update translations ([pull #244](https://github.com/brarcher/loyalty-card-locker/pull/244)) -## v0.23.3 (2018-05-05) +## v0.23.3 - 28 (2018-05-05) Changes: @@ -405,27 +405,27 @@ Changes: - Slovak ([pull #232](https://github.com/brarcher/loyalty-card-locker/pull/232)) - Updated translations ([pull #239](https://github.com/brarcher/loyalty-card-locker/pull/239)) -## v0.23.2 (2018-03-11) +## v0.23.2 - 27 (2018-03-11) Changes: - Reduce min SDK from 17 to 15. ([pull #226](https://github.com/brarcher/loyalty-card-locker/pull/226)) - Remove usage of legacy apache library, used only in unit tests but no longer needed. ([pull #225](https://github.com/brarcher/loyalty-card-locker/pull/225)) -## v0.23.1 (2018-03-07) +## v0.23.1 - 26 (2018-03-07) Changes: - Prevent crash when rendering a barcode exhausts the application's memory. ([pull #219](https://github.com/brarcher/loyalty-card-locker/pull/219)) -## v0.23 (2018-02-28) +## v0.23 - 25 (2018-02-28) Changes: - Reduce space in header when viewing a card. ([pull #213](https://github.com/brarcher/loyalty-card-locker/pull/213)) - Disable beep when scanning a barcode. ([pull #216](https://github.com/brarcher/loyalty-card-locker/pull/216)) -## v0.22 (2018-02-19) +## v0.22 - 24 (2018-02-19) Changes: @@ -434,7 +434,7 @@ Changes: - Reload card view activity when screen is rotated, so barcode image is correct size. - Render 1D barcodes in a larger space, allowing them to better fill the screen. -## v0.21 (2018-02-17) +## v0.21 - 23 (2018-02-17) Changes: @@ -442,26 +442,26 @@ Changes: - Add options to configure the colors used for the store name font and background. ([pull #203](https://github.com/brarcher/loyalty-card-locker/pull/203)) - Add options to adjust font sizes on the card listing page and single card page. ([pull #204](https://github.com/brarcher/loyalty-card-locker/pull/204)) -## v0.20 (2018-02-10) +## v0.20 - 22 (2018-02-10) Changes: - Changes to Card view to display the note, allow the card ID to take multiple lines, and show the store name. ([pull #197](https://github.com/brarcher/loyalty-card-locker/pull/197)) -## v0.19 (2018-02-01) +## v0.19 - 21 (2018-02-01) Changes: - Improved layout for card list. ([pull #188](https://github.com/brarcher/loyalty-card-locker/pull/188)) - Improved layout when viewing a card. ([pull #190](https://github.com/brarcher/loyalty-card-locker/pull/190)) -## v0.18.1 (2018-01-24) +## v0.18.1 - 20 (2018-01-24) Changes: - Workaround crash during install on some Android versions (likely Android 5 and below). ([pull #184](https://github.com/brarcher/loyalty-card-locker/pull/184)) -## v0.18 (2018-01-19) +## v0.18 - 19 (2018-01-19) Changes: @@ -469,21 +469,21 @@ Changes: - Fix importing backups directly from the file system. ([pull #180](https://github.com/brarcher/loyalty-card-locker/pull/180)) - Fix importing backups from certain types of content providers. ([pull #179](https://github.com/brarcher/loyalty-card-locker/pull/179)) -## v0.17 (2018-01-11) +## v0.17 - 18 (2018-01-11) Changes: - Fix issue on Android SDK 24+ where using the file chooser import option would cause a crash. ([pull #170](https://github.com/brarcher/loyalty-card-locker/pull/170)) - New icon and color scheme. ([pull #171](https://github.com/brarcher/loyalty-card-locker/pull/171)) -## v0.16 (2017-11-29) +## v0.16 - 17 (2017-11-29) Changes: - Add support for adding loyalty card shortcuts from the launcher/homescreen. ([pull #161](https://github.com/brarcher/loyalty-card-locker/pull/161)) - Remove support for adding loyalty card shortcuts from the app itself. This removes the need for the shortcut permission. ([pull #163](https://github.com/brarcher/loyalty-card-locker/pull/163)) -## v0.15 (2017-11-25) +## v0.15 - 16 (2017-11-25) Changes: @@ -493,14 +493,14 @@ Changes: - Report more accurate mime type when exporting backup data. ([pull #156](https://github.com/brarcher/loyalty-card-locker/pull/156)) - Fix bug where a card could not be edited. ([pull #155](https://github.com/brarcher/loyalty-card-locker/pull/155)) -## v0.14 (2017-10-26) +## v0.14 - 15 (2017-10-26) Changes: - Add support for app shortcuts (Android 7.1+), where the most recently used cards will appear as shortcuts. ([pull #145](https://github.com/brarcher/loyalty-card-locker/pull/145)) - Add a widget which works like a pinned app shortcut, to support devices which run below Android 7.1. ([pull #142](https://github.com/brarcher/loyalty-card-locker/pull/142)) -## v0.13 (2017-07-25) +## v0.13 - 14 (2017-07-25) Changes: @@ -508,20 +508,20 @@ Changes: - If a card is selected from the main screen but cannot be loaded, the application fails gracefully and posts a message. ([pull #132](https://github.com/brarcher/loyalty-card-locker/pull/132)) - Fix case where layout IDs for intro wizard could not be found. ([pull #128](https://github.com/brarcher/loyalty-card-locker/pull/128)) -## v0.12 (2017-07-16) +## v0.12 - 13 (2017-07-16) Changes: - A change in v0.11 reduced the memory usage of barcode drawing, but affected the barcode dimensions. This is now changed to maintain the barcode dimensions while reducing memory usage. ([pull #126](https://github.com/brarcher/loyalty-card-locker/pull/126)) - Update German and French translations. ([pull #122](https://github.com/brarcher/loyalty-card-locker/pull/122), [pull #124](https://github.com/brarcher/loyalty-card-locker/pull/124), [pull #125](https://github.com/brarcher/loyalty-card-locker/pull/125)) -## v0.11.1 (2017-06-29) +## v0.11.1 - 12 (2017-06-29) Changes: - Prevent a crash when rotation the screen in the first run intro wizard. -## v0.11 (2017-06-26) +## v0.11 - 11 (2017-06-26) Improvements: @@ -531,7 +531,7 @@ Improvements: - Change the color scheme to be softer and compatible with the app icon, and change the layout when viewing a card to be cleaner. ([pull #107](https://github.com/brarcher/loyalty-card-locker/pull/107)) - Add an intro wizard which launches on the app's first launch. ([pull #108](https://github.com/brarcher/loyalty-card-locker/pull/108)) -## v0.10 (2017-02-12) +## v0.10 - 10 (2017-02-12) Improvements: @@ -539,7 +539,7 @@ Improvements: - Correct string on the import/export page. ([pull #87](https://github.com/brarcher/loyalty-card-locker/pull/87)) - Improve layout of card view page. The text should be easier to read, and is selectable with a long click. ([pull #91](https://github.com/brarcher/loyalty-card-locker/pull/91)) -## v0.9 (2017-01-17) +## v0.9 - 9 (2017-01-17) The "Locker" part of the name was not intuitive. To help remedy this a new application icon was created by betsythefc which better represents the purpose of the application: to store loyalty cards which use barcodes. Along with this new icon the name of the application has been changed to "Loyalty Card Keychain". @@ -549,7 +549,7 @@ Additional features/improvements: - Translations for Lithuanian added. ([pull #62](https://github.com/brarcher/loyalty-card-locker/pull/62)) - Translations for French added. ([pull #80](https://github.com/brarcher/loyalty-card-locker/pull/80)) -## v0.8 (2016-11-22) +## v0.8 - 8 (2016-11-22) New features/improvements: @@ -558,7 +558,7 @@ New features/improvements: - Add translations for German ([pull #57](https://github.com/brarcher/loyalty-card-locker/pull/57)) and Czech ([pull #58](https://github.com/brarcher/loyalty-card-locker/pull/58)). - Clarification change for Italian translation. ([pull #66](https://github.com/brarcher/loyalty-card-locker/pull/66)) -## v0.7 (2016-07-14) +## v0.7 - 7 (2016-07-14) New features/improvements: @@ -568,7 +568,7 @@ Bug fixes: - Back button on Input/Export view now works, moving user to main view -## v0.6 (2016-05-23) +## v0.6 - 6 (2016-05-23) New features/improvements: @@ -578,14 +578,14 @@ Bug fixes: - Resolve issue where some displayed barcodes were blurry. ([issue #37](https://github.com/brarcher/loyalty-card-locker/issues/37)) -## v0.5 (2016-05-16) +## v0.5 - 5 (2016-05-16) New features/improvements: - An about dialog can be opened from the main screen, which gives details about the application and project on GitHub ([issue #19](https://github.com/brarcher/loyalty-card-locker/issues/19)) - Allow loyalty card information to be imported from/exported to a CSV file in external storage ([issue #36](https://github.com/brarcher/loyalty-card-locker/issues/36), [issue #20](https://github.com/brarcher/loyalty-card-locker/issues/20)) -## v0.4 (2016-04-09) +## v0.4 - 4 (2016-04-09) New features/improvements: @@ -597,7 +597,7 @@ Bug fixes: - Resolve all issues identified by FindBugs and require all FindBugs issues be resolved prior to pull request acceptance -## v0.3 (2016-02-11) +## v0.3 - 3 (2016-02-11) - Now officially supports the following list of 1D and 2D barcodes: - AZTEC @@ -614,13 +614,13 @@ Bug fixes: - Generated barcodes are larger, easier to scan from a scanning device -## v0.2 (2016-02-07) +## v0.2 - 2 (2016-02-07) - Italian translations - Support for all 1D barcode types. (Originally only product 1D barcodes were supported) - Add required camera permission, which was initially missing. -## v0.1 (2016-01-30) +## v0.1 - 1 (2016-01-30) - Ability to create/edit/delete loyalty cards - Capture barcode of loyalty card using a camera diff --git a/fastlane/metadata/android/en-US/changelogs/.keep b/fastlane/metadata/android/en-US/changelogs/.keep new file mode 100644 index 000000000..e69de29bb