Skip to content

Commit a50dcc8

Browse files
Merge pull request #609 from madeofpendletonwool/main
update mobile
2 parents b47ce87 + 4cbeea4 commit a50dcc8

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

.github/workflows/build-android-flutter.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ jobs:
3131
- name: Checkout repository
3232
uses: actions/checkout@v4
3333
with:
34+
fetch-depth: 0 # Fetch full git history for accurate commit count
3435
token: ${{ secrets.GITHUB_TOKEN }}
3536

3637
- name: Set up JDK 17
@@ -67,9 +68,9 @@ jobs:
6768
cd mobile
6869
# Update pubspec.yaml version to use Flutter format (version+build)
6970
if [[ "$IMAGE_TAG" != "latest" ]]; then
70-
# Remove 'v' prefix if present and create build number from commit hash
71+
# Remove 'v' prefix if present and create build number from git count with offset
7172
VERSION_NAME=${IMAGE_TAG#v}
72-
BUILD_NUMBER=$(git rev-parse --short HEAD)
73+
BUILD_NUMBER=$(($(git rev-list --count HEAD) + 20250000))
7374
sed -i "s/^version: .*/version: ${VERSION_NAME}+${BUILD_NUMBER}/" pubspec.yaml
7475
7576
# Also update environment.dart constants

mobile/lib/core/environment.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ class Environment {
3232
static const _applicationName = 'Pinepods';
3333
static const _applicationUrl =
3434
'https://github.com/madeofpendletonwool/pinepods';
35-
static const _projectVersion = '1.1.2';
36-
static const _build = '3b63d38';
35+
static const _projectVersion = '0.8.0';
36+
static const _build = '20252158';
3737

3838
static var _agentString = userAgentAppString;
3939

mobile/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: pinepods_mobile
22
description: Pinepods Podcast Server
33

4-
version: 1.1.2+3b63d38
4+
version: 0.8.0+20252158
55

66
environment:
77
sdk: ">=3.8.0 <4.0.0"

0 commit comments

Comments
 (0)