Skip to content

Commit 7049a6c

Browse files
committed
chore: update version to 1.1.0
1 parent 05402f4 commit 7049a6c

3 files changed

Lines changed: 19 additions & 2 deletions

File tree

lib/app/app_metadata.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
const kickDefaultAppVersion = '0.1.0';
1+
// Keep this fallback in sync with pubspec.yaml; app_metadata_test.dart enforces it.
2+
const kickDefaultAppVersion = '1.1.0';
23
const kickBuildAppVersion = String.fromEnvironment(
34
'FLUTTER_BUILD_NAME',
45
defaultValue: kickDefaultAppVersion,

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: kick
22
description: "Kick: a local OpenAI-compatible proxy for Gemini CLI with a Flutter shell"
33
publish_to: "none"
4-
version: 1.0.4+4
4+
version: 1.1.0+5
55

66
environment:
77
sdk: ^3.11.1

test/app_metadata_test.dart

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import 'dart:io';
2+
3+
import 'package:flutter_test/flutter_test.dart';
4+
import 'package:kick/app/app_metadata.dart';
5+
6+
void main() {
7+
test('default app version matches pubspec version', () {
8+
final pubspec = File('pubspec.yaml').readAsStringSync();
9+
final match = RegExp(r'^version:\s*(.+)$', multiLine: true).firstMatch(pubspec);
10+
11+
expect(match, isNotNull, reason: 'pubspec.yaml must declare a version.');
12+
13+
final pubspecVersion = match!.group(1)!.trim().split('+').first;
14+
expect(kickDefaultAppVersion, pubspecVersion);
15+
});
16+
}

0 commit comments

Comments
 (0)