From 6e1e69e42afddd2440697af62315d22f793c6cce Mon Sep 17 00:00:00 2001 From: AhsanSarwar45 Date: Mon, 11 Dec 2023 14:38:05 +0500 Subject: [PATCH] Fix tests --- .github/workflows/android-release.yml | 38 ++++++++++++++++++++--- lib/theme/widgets/theme_preview_card.dart | 1 + 2 files changed, 34 insertions(+), 5 deletions(-) diff --git a/.github/workflows/android-release.yml b/.github/workflows/android-release.yml index af85b427..24e89b76 100644 --- a/.github/workflows/android-release.yml +++ b/.github/workflows/android-release.yml @@ -35,10 +35,38 @@ jobs: flutter-version: "3.16.3" channel: 'stable' cache: true - # 12 - - name: Get dependencies + + # - name: Decode android/neumodore_key.jks + # run: echo "${{ secrets.KEYSTORE_JKS_PROD }}" | base64 --decode > android/keystore.jks + + # - name: Decode android/key.properties + # run: echo "${{ secrets.KEY_PROPERTIES_PROD }}" | base64 --decode > android/key.properties + + - uses: olegtarasov/get-tag@v2 # that generate $GIT_TAG_NAME env + id: tagName + with: + tagRegex: 'internal-v([0-9]+.[0-9]+.[0-9]+\+[0-9]+)' # Optional. Returns specified group text as tag name. Full tag string is returned if regex is not defined. + tagRegexGroup: 1 # Optional. Default is 1. + + - name: Replace YAML version with tag version + run: | + sed -i 's/99.99.99+99/'$GIT_TAG_NAME'/g' pubspec.yaml| + echo "Tag used version:"$GIT_TAG_NAME + - name: Pub Get Packages run: flutter pub get - # Runs a set of commands using the runners shell - - name: Start release build - run: flutter build appbundle + - name: Build APPBUNDLE + run: flutter build appbundle --release + + - name: Create Github Release + uses: ncipollo/release-action@v1 + with: + artifacts: "build/app/outputs/bundle/release/*.aab" + token: ${{ secrets.PERSONAL_RELEASE_TOKEN }} + + - name: Save APPBUNDLE to Artifacts + uses: actions/upload-artifact@v2 + with: + name: APPBUNDLE + path: build/app/outputs/bundle/release/app-release.aab + diff --git a/lib/theme/widgets/theme_preview_card.dart b/lib/theme/widgets/theme_preview_card.dart index 7b0ef8b4..eee9d581 100644 --- a/lib/theme/widgets/theme_preview_card.dart +++ b/lib/theme/widgets/theme_preview_card.dart @@ -36,6 +36,7 @@ class ThemePreviewCard extends StatelessWidget { Expanded( flex: 1, child: CardContainer( + color: colorScheme.surface, key: const Key("Preview Card - Card"), child: Padding( padding: const EdgeInsets.all(16.0),