-
Couldn't load subscription status.
- Fork 243
feat: Support for Multiple LED Badge sizes #1347
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
Open
samruddhi-Rahegaonkar
wants to merge
40
commits into
fossasia:development
Choose a base branch
from
samruddhi-Rahegaonkar:issue1344
base: development
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
40 commits
Select commit
Hold shift + click to select a range
b92b0c3
Update workflows to run on development branch instead of flutter_app
samruddhi-Rahegaonkar e6430aa
Merge branch 'development' into development
samruddhi-Rahegaonkar 6a4091a
feat: Add multiple badge Sizes
samruddhi-Rahegaonkar 1ba24ff
resolved conflicts and added fetched upstream
samruddhi-Rahegaonkar 9082861
fix: formatted file
samruddhi-Rahegaonkar a8c36d3
fix: updated test
samruddhi-Rahegaonkar fa53f47
fix: make the screensize selection less prominent
samruddhi-Rahegaonkar d1e72e9
fix: updated UI for screensize selection
samruddhi-Rahegaonkar 115a8d0
fix: formated file
samruddhi-Rahegaonkar 61815a9
updated the UI accordingly
samruddhi-Rahegaonkar 4dc91fa
fix: added dialog for screen size while saving
samruddhi-Rahegaonkar 4b84300
fix: added seamless screensize selection throughout app
samruddhi-Rahegaonkar 0d055a6
fix: formated files
samruddhi-Rahegaonkar a4ff1ca
Merge branch 'development' into issue1344
samruddhi-Rahegaonkar 63798ad
Merge branch 'development' into issue1344
mariobehling b2bfdc8
Merge branch 'development' into issue1344
mariobehling 19a31a9
fix: added upstream
samruddhi-Rahegaonkar 06ef264
fix: the failing build
samruddhi-Rahegaonkar c2c110a
Merge branch 'development' into issue1344
samruddhi-Rahegaonkar 8bbcae7
fix: reduced the extra white space, added error for unequal screens
samruddhi-Rahegaonkar 17a40aa
fix: fixed the character spacing
samruddhi-Rahegaonkar 35f05f0
Merge branch 'development' into issue1344
samruddhi-Rahegaonkar c759e6b
fix: resolved conflicts and formatted files
samruddhi-Rahegaonkar 87c5fc9
fix: failing screenshots
samruddhi-Rahegaonkar d048fd6
fix: increase font size little bit of select screen size
samruddhi-Rahegaonkar 26f9101
Merge branch 'development' into issue1344
samruddhi-Rahegaonkar d896b84
fix: made a screensize widget more hugged to the badge
samruddhi-Rahegaonkar 6e5d9ec
Merge branch 'development' into issue1344
samruddhi-Rahegaonkar e21d864
Merge branch 'development' into issue1344
samruddhi-Rahegaonkar f1308e8
fix: added required parameter
samruddhi-Rahegaonkar 11d998a
Merge branch 'development' into issue1344
samruddhi-Rahegaonkar b5849af
fix: resolved conflicts but the font rendering has issues
samruddhi-Rahegaonkar 1eb5a0e
fix: message renders according to selected size
samruddhi-Rahegaonkar fa750a7
fix: added the font related logic still there are some flaws
samruddhi-Rahegaonkar 76b4207
Merge branch 'development' into issue1344
samruddhi-Rahegaonkar 54620d1
resolved conflcits
samruddhi-Rahegaonkar 939d799
Merge branch 'development' into issue1344
samruddhi-Rahegaonkar 7387ada
resolved conflicts
samruddhi-Rahegaonkar 9900c17
Update lib/virtualbadge/view/draw_badge.dart
samruddhi-Rahegaonkar f41eb8b
Update lib/view/homescreen.dart
samruddhi-Rahegaonkar File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -10,6 +10,16 @@ env: | |
| ANDROID_EMULATOR_ARCH: x86_64 | ||
| IPHONE_DEVICE_MODEL: iPhone 16 Pro Max | ||
| IPAD_DEVICE_MODEL: iPad Pro 13-inch (M4) | ||
| BARECHECK_GITHUB_APP_TOKEN: ${{ secrets.BARECHECK_GITHUB_APP_TOKEN }} | ||
| ENCRYPTED_F10B5E0E5262_IV: ${{ secrets.ENCRYPTED_F10B5E0E5262_IV }} | ||
| ENCRYPTED_F10B5E0E5262_KEY: ${{ secrets.ENCRYPTED_F10B5E0E5262_KEY }} | ||
| ENCRYPTED_IOS_IV: ${{ secrets.ENCRYPTED_IOS_IV }} | ||
| ENCRYPTED_IOS_KEY: ${{ secrets.ENCRYPTED_IOS_KEY }} | ||
| STORE_PASS: ${{ secrets.STORE_PASS }} | ||
| ALIAS: ${{ secrets.ALIAS }} | ||
| KEY_PASS: ${{ secrets.KEY_PASS }} | ||
| MATCH_GIT_BASIC_AUTHORIZATION: ${{ secrets.MATCH_GIT_BASIC_AUTHORIZATION }} | ||
| MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }} | ||
|
|
||
| jobs: | ||
| common: | ||
|
|
@@ -19,7 +29,7 @@ jobs: | |
| VERSION_NAME: ${{ steps.flutter-version.outputs.VERSION_NAME }} | ||
| VERSION_CODE: ${{ steps.flutter-version.outputs.VERSION_CODE }} | ||
| steps: | ||
| - uses: actions/checkout@v5 | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - name: Common Workflow | ||
| uses: ./.github/actions/common | ||
|
|
@@ -71,7 +81,7 @@ jobs: | |
| needs: common | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v5 | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - name: Prepare Build Keys | ||
| if: ${{ github.repository == 'fossasia/badgemagic-app' }} | ||
|
|
@@ -121,8 +131,8 @@ jobs: | |
|
|
||
| echo "Copying new build files" | ||
|
|
||
| find ../build/app/outputs/flutter-apk -type f \( -name '*release.apk' -o -name '*release.aab' \) -exec cp -v {} . \; | ||
| find ../build/app/outputs/bundle -type f \( -name '*release.apk' -o -name '*release.aab' \) -exec cp -v {} . \; | ||
| find ../build/app/outputs/flutter-apk -type f \( -name '*.apk' -o -name '*.aab' \) -exec cp -v {} . \; | ||
| find ../build/app/outputs/bundle -type f \( -name '*.apk' -o -name '*.aab' \) -exec cp -v {} . \; | ||
|
|
||
| ls | ||
|
|
||
|
|
@@ -163,7 +173,7 @@ jobs: | |
| with: | ||
| xcode-version: latest-stable | ||
|
|
||
| - uses: actions/checkout@v5 | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - name: Prepare Build Keys | ||
| if: ${{ github.repository == 'fossasia/badgemagic-app' }} | ||
|
|
@@ -207,7 +217,7 @@ jobs: | |
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Download repository | ||
| uses: actions/checkout@v5 | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Run Release Drafter | ||
| id: run-release-drafter | ||
|
|
@@ -226,162 +236,28 @@ jobs: | |
| screenshots-android: | ||
| name: Screenshots (Android) | ||
| runs-on: ubuntu-latest | ||
| timeout-minutes: 30 | ||
| steps: | ||
| - uses: actions/checkout@v5 | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - name: Android Screenshot Workflow | ||
| uses: ./.github/actions/screenshot-android | ||
| with: | ||
| ANDROID_EMULATOR_API: ${{ env.ANDROID_EMULATOR_API }} | ||
| ANDROID_EMULATOR_ARCH: ${{ env.ANDROID_EMULATOR_ARCH }} | ||
|
|
||
| screenshots-iphone: | ||
| name: Screenshots (iPhone) | ||
| screenshots-ios: | ||
| name: Screenshots (iOS) | ||
| runs-on: macos-latest | ||
| timeout-minutes: 30 | ||
| steps: | ||
| - name: Set up Xcode | ||
| uses: maxim-lobanov/[email protected] | ||
| with: | ||
| xcode-version: latest-stable | ||
|
|
||
| - uses: actions/checkout@v5 | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - name: iPhone Screenshot Workflow | ||
| uses: ./.github/actions/screenshot-iphone | ||
| with: | ||
| IPHONE_DEVICE_MODEL: ${{ env.IPHONE_DEVICE_MODEL }} | ||
|
|
||
| screenshots-ipad: | ||
| name: Screenshots (iPad) | ||
| runs-on: macos-latest | ||
| timeout-minutes: 30 | ||
| steps: | ||
| - name: Set up Xcode | ||
| uses: maxim-lobanov/[email protected] | ||
| with: | ||
| xcode-version: latest-stable | ||
|
|
||
| - uses: actions/checkout@v5 | ||
|
|
||
| - name: iPad Screenshot Workflow | ||
| uses: ./.github/actions/screenshot-ipad | ||
| with: | ||
| IPAD_DEVICE_MODEL: ${{ env.IPAD_DEVICE_MODEL }} | ||
|
|
||
| debian: | ||
| name: Debian Flutter Build | ||
| needs: common | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v5 | ||
|
|
||
| - name: Debian Workflow | ||
| uses: ./.github/actions/debian | ||
| with: | ||
| VERSION_NAME: ${{ needs.common.outputs.VERSION_NAME }} | ||
| VERSION_CODE: ${{ needs.common.outputs.VERSION_CODE }} | ||
|
|
||
| - name: Upload Debian Build | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: Debian Build | ||
| path: build/linux/x64/release/bundle/ | ||
|
|
||
| - name: Push Debian Build to app branch | ||
| shell: bash | ||
| run: | | ||
| git config --global user.name "github-actions[bot]" | ||
| git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com" | ||
|
|
||
| git clone --branch=app https://${{ github.repository_owner }}:${{ github.token }}@github.com/${{ github.repository }} app | ||
| cd app | ||
| branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}} | ||
| cp -r ../build/linux/x64/release/bundle/* . | ||
| git checkout --orphan temporary | ||
| git add --all | ||
| git commit -m "[Auto] Update Debian build from $branch ($(date +%Y-%m-%d.%H:%M:%S))" | ||
| git branch -D app | ||
| git branch -m app | ||
| git push --force origin app | ||
|
|
||
| macos: | ||
| name: macOS Flutter Build | ||
| needs: common | ||
| runs-on: macos-latest | ||
| steps: | ||
| - uses: actions/checkout@v5 | ||
|
|
||
| - name: macOS Workflow | ||
| uses: ./.github/actions/macos | ||
| with: | ||
| VERSION_NAME: ${{ needs.common.outputs.VERSION_NAME }} | ||
| VERSION_CODE: ${{ needs.common.outputs.VERSION_CODE }} | ||
|
|
||
| - name: Upload macOS Build | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: macOS Build | ||
| path: build/macos/Build/Products/Release/ | ||
|
|
||
| - name: Push macOS Build to app branch | ||
| shell: bash | ||
| run: | | ||
| git config --global user.name "github-actions[bot]" | ||
| git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com" | ||
|
|
||
| git clone --branch=app https://${{ github.repository_owner }}:${{ github.token }}@github.com/${{ github.repository }} app | ||
| cd app | ||
| branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}} | ||
|
|
||
| # Copy all macOS build artifacts to root | ||
| cp -r ../build/macos/Build/Products/Release/* . | ||
|
|
||
| git checkout --orphan temporary | ||
| git add --all | ||
| git commit -m "[Auto] Update macOS build from $branch ($(date +%Y-%m-%d.%H:%M:%S))" | ||
| git branch -D app | ||
| git branch -m app | ||
| git push --force origin app | ||
|
|
||
|
|
||
| windows: | ||
| name: Windows Flutter Build | ||
| needs: common | ||
| runs-on: windows-latest | ||
| steps: | ||
| - uses: actions/checkout@v5 | ||
|
|
||
| - name: Windows Workflow | ||
| uses: ./.github/actions/windows | ||
| - name: iOS Screenshot Workflow | ||
| uses: ./.github/actions/screenshot-ios | ||
| with: | ||
| VERSION_NAME: ${{ needs.common.outputs.VERSION_NAME }} | ||
| VERSION_CODE: ${{ needs.common.outputs.VERSION_CODE }} | ||
|
|
||
| - name: Upload Windows Build | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: Windows Build | ||
| path: build/windows/x64/runner/Release/ | ||
|
|
||
| - name: Push Windows Build to app branch | ||
| shell: bash | ||
| run: | | ||
| git config --global user.name "github-actions[bot]" | ||
| git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com" | ||
|
|
||
| git clone --branch=app https://${{ github.repository_owner }}:${{ github.token }}@github.com/${{ github.repository }} app | ||
| cd app | ||
| branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}} | ||
|
|
||
| # Copy all Windows build artifacts to root | ||
| cp -r ../build/windows/x64/runner/Release/* . | ||
|
|
||
| git checkout --orphan temporary | ||
| git add --all | ||
| git commit -m "[Auto] Update Windows build from $branch ($(date +%Y-%m-%d.%H:%M:%S))" | ||
| git branch -D app | ||
| git branch -m app | ||
| git push --force origin app | ||
|
|
||
| IPHONE_DEVICE_MODEL: ${{ env.IPHONE_DEVICE_MODEL }} | ||
| IPAD_DEVICE_MODEL: ${{ env.IPAD_DEVICE_MODEL }} | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| class ScreenSize { | ||
| final int width; | ||
| final int height; | ||
| final String name; | ||
|
|
||
| const ScreenSize( | ||
| {required this.width, required this.height, required this.name}); | ||
|
|
||
| @override | ||
| bool operator ==(Object other) => | ||
| identical(this, other) || | ||
| other is ScreenSize && | ||
| runtimeType == other.runtimeType && | ||
| width == other.width && | ||
| height == other.height && | ||
| name == other.name; | ||
|
|
||
| @override | ||
| int get hashCode => width.hashCode ^ height.hashCode ^ name.hashCode; | ||
| } | ||
|
|
||
| const List<ScreenSize> supportedScreenSizes = [ | ||
| ScreenSize(width: 44, height: 11, name: "Small (44x11)"), | ||
| ScreenSize(width: 64, height: 16, name: "Medium (64x16)"), | ||
| ScreenSize(width: 128, height: 32, name: "Large (128x32)"), | ||
| ]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.