Set version to 26.03.01.1 (YY.MM.DD.iteration format)
pubspec: 26.03.01+1 (Flutter uses + to separate versionName/versionCode) Update checker combines version + buildNumber → "26.03.01.1" for comparison against Forgejo release tags in the same format. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -51,7 +51,9 @@ class UpdateNotifier extends Notifier<UpdateState> {
|
|||||||
state = state.copyWith(status: UpdateStatus.checking);
|
state = state.copyWith(status: UpdateStatus.checking);
|
||||||
try {
|
try {
|
||||||
final packageInfo = await PackageInfo.fromPlatform();
|
final packageInfo = await PackageInfo.fromPlatform();
|
||||||
final currentVersion = packageInfo.version;
|
// Combine versionName + buildNumber to match the YY.MM.DD.N tag format.
|
||||||
|
final currentVersion =
|
||||||
|
'${packageInfo.version}.${packageInfo.buildNumber}';
|
||||||
|
|
||||||
// Parse repo URL → Forgejo API endpoint
|
// Parse repo URL → Forgejo API endpoint
|
||||||
final uri = Uri.parse(repoUrl);
|
final uri = Uri.parse(repoUrl);
|
||||||
|
|||||||
+1
-1
@@ -2,7 +2,7 @@ name: fabled_app
|
|||||||
description: "FabledAssistant mobile client for Android."
|
description: "FabledAssistant mobile client for Android."
|
||||||
publish_to: 'none'
|
publish_to: 'none'
|
||||||
|
|
||||||
version: 1.0.0+1
|
version: 26.03.01+1
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
sdk: ^3.11.0
|
sdk: ^3.11.0
|
||||||
|
|||||||
Reference in New Issue
Block a user