Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dynamic Branding Name Support Added For Export File Name Prefix #8382

Merged
merged 14 commits into from
Oct 23, 2024

Conversation

shamim-emon
Copy link
Contributor

@shamim-emon shamim-emon commented Oct 22, 2024

  • Added capability of dynamic branding for export file name prefix.

Fixes #8280

@cketti
Copy link
Member

cketti commented Oct 22, 2024

I don't think the brand name is a good fit for this. "K-9 Mail" contains a space and some translations even localize it.

The prefix for K-9 Mail should remain "k9". The prefix for Thunderbird can be "thunderbird".

I suggest adding a FilePrefixProvider interface. For now it can live in the package com.fsck.k9.preferences.

K9AppNameProvider and TbAppNameProvider could then also implement this interface and provide the language-independent values mentioned above.

@shamim-emon
Copy link
Contributor Author

I don't think the brand name is a good fit for this. "K-9 Mail" contains a space and some translations even localize it.

The prefix for K-9 Mail should remain "k9". The prefix for Thunderbird can be "thunderbird".

I suggest adding a FilePrefixProvider interface. For now it can live in the package com.fsck.k9.preferences.

K9AppNameProvider and TbAppNameProvider could then also implement this interface and provide the language-independent values mentioned above.

@cketti done! Please let me know if anything else needed. Thanks

@shamim-emon shamim-emon requested a review from cketti October 22, 2024 16:48
shamim-emon and others added 3 commits October 23, 2024 00:50
…er/TbAppNameProvider.kt

Co-authored-by: cketti <ck@cketti.de>
…rter.kt

Co-authored-by: cketti <ck@cketti.de>
@shamim-emon shamim-emon requested a review from cketti October 22, 2024 18:52
@cketti
Copy link
Member

cketti commented Oct 22, 2024

Looks like there are only code style issues left. You can fix these by running ./gradlew spotlessApply

@shamim-emon
Copy link
Contributor Author

shamim-emon commented Oct 22, 2024

Looks like there are only code style issues left. You can fix these by running ./gradlew spotlessApply

@cketti spotless issues are fixed now. Fixed the style issues with Spotless Gradle plugin(As some configuration needs to be done in my device before I could run above command from terminal and get result). Please allow the workflow execution.
In-case of failure I will do the necessary configuration and run ./gradlew spotlessApply

@shamim-emon
Copy link
Contributor Author

Looks like there are only code style issues left. You can fix these by running ./gradlew spotlessApply

@cketti spotless issues are fixed now. Fixed the style issues with Spotless Gradle plugin(As some configuration needs to be done in my device before I could run above command from terminal and get result). Please allow the workflow execution. In-case of failure I will do the necessary configuration and run ./gradlew spotlessApply

@cketti there was an detekt linting issue that I have fixed. for future reference could you please point me to the docs/ provide list to checks I can perform locally to ensure all checks pass in CI?
Thanks

@cketti cketti merged commit 6d19a99 into thunderbird:main Oct 23, 2024
2 checks passed
@cketti
Copy link
Member

cketti commented Oct 23, 2024

Thanks 👍

You can see what checks are run here:

- name: Quality - Spotless
run: ./gradlew spotlessCheck
- name: Quality - Detekt
run: ./gradlew detekt
- name: Quality - Lint
run: ./gradlew lint
- name: Quality - Dependency Guard
run: ./gradlew dependencyGuard
- name: Build
run: ./gradlew assembleDebug
- name: Test
run: ./gradlew testsOnCi

@shamim-emon shamim-emon deleted the fix-issue-8280 branch October 23, 2024 13:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Export file name branding should be Thunderbird not K-9 mail
2 participants