mirror of
https://github.com/DungeonPaper/dungeon-paper-app.git
synced 2026-05-17 17:58:11 +00:00
* feat: intl poc * refactor: more translation migrations * refactor: move `tr` export to nicer path * refactor: more translation updates * feat: intl on many more files * feat: more i18n replacements * feat: more translation updates * feat: replace all left usages of S.current * chore: last forgotten cleanups * refactor: remove old intl files * chore: format all files * docs: update docs chore: use git version of i18n
16 lines
328 B
Dart
16 lines
328 B
Dart
import 'dart:io';
|
|
|
|
void main() {
|
|
// get version from pubspec.yaml
|
|
final pubspecFile = File('pubspec.yaml');
|
|
final version = pubspecFile
|
|
.readAsStringSync()
|
|
.split('\n')
|
|
.firstWhere((x) => x.startsWith('version:'))
|
|
.split(':')
|
|
.last
|
|
.trim();
|
|
// ignore: avoid_print
|
|
print(version);
|
|
}
|