Skip to content

Commit

Permalink
fix: lockfile path saving
Browse files Browse the repository at this point in the history
  • Loading branch information
orteney committed Jun 13, 2022
1 parent 08c46e8 commit 4a8fc35
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
6 changes: 2 additions & 4 deletions lib/data/lcu_store.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import 'dart:io';

import 'package:path/path.dart' as path;
import 'package:shared_preferences/shared_preferences.dart';

const _spLockfilePathKey = 'lockfilePath';
Expand All @@ -20,8 +19,7 @@ class LcuStore {
return File(path);
}

Future<void> putLcuLockfilePath(String directoryPath) async {
final lockfilePath = File(path.join(directoryPath, 'lockfile'));
await _sharedPreferences.setString(_spLockfilePathKey, lockfilePath.path);
Future<void> putLcuLockfilePath(String lockfilePath) async {
await _sharedPreferences.setString(_spLockfilePathKey, lockfilePath);
}
}
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: champmastery
description: A new Flutter project.
publish_to: "none"
version: 2.0.0+1
version: 2.0.1+1

environment:
sdk: ">=2.17.0 <3.0.0"
Expand Down
4 changes: 2 additions & 2 deletions windows/runner/Runner.rc
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,13 @@ IDI_APP_ICON ICON "resources\\app_icon.ico"
#ifdef FLUTTER_BUILD_NUMBER
#define VERSION_AS_NUMBER FLUTTER_BUILD_NUMBER
#else
#define VERSION_AS_NUMBER 2,0,0
#define VERSION_AS_NUMBER 2,0,1
#endif

#ifdef FLUTTER_BUILD_NAME
#define VERSION_AS_STRING #FLUTTER_BUILD_NAME
#else
#define VERSION_AS_STRING "2.0.0"
#define VERSION_AS_STRING "2.0.1"
#endif

VS_VERSION_INFO VERSIONINFO
Expand Down

0 comments on commit 4a8fc35

Please sign in to comment.