mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-03-22 15:19:02 +00:00
chenge app version
This commit is contained in:
commit
55bd5ebf6b
3 changed files with 16 additions and 4 deletions
|
@ -12,6 +12,7 @@ import 'package:cake_wallet/src/stores/action_list/action_list_display_mode.dart
|
||||||
import 'package:cake_wallet/src/screens/settings/items/item_headers.dart';
|
import 'package:cake_wallet/src/screens/settings/items/item_headers.dart';
|
||||||
import 'package:cake_wallet/generated/i18n.dart';
|
import 'package:cake_wallet/generated/i18n.dart';
|
||||||
import 'package:cake_wallet/src/domain/common/default_settings_migration.dart';
|
import 'package:cake_wallet/src/domain/common/default_settings_migration.dart';
|
||||||
|
import 'package:package_info/package_info.dart';
|
||||||
|
|
||||||
part 'settings_store.g.dart';
|
part 'settings_store.g.dart';
|
||||||
|
|
||||||
|
@ -47,7 +48,10 @@ abstract class SettingsStoreBase with Store {
|
||||||
serializeActionlistDisplayModes(actionlistDisplayMode)),
|
serializeActionlistDisplayModes(actionlistDisplayMode)),
|
||||||
fireImmediately: false);
|
fireImmediately: false);
|
||||||
|
|
||||||
currentVersion = _sharedPreferences.getInt('current_default_settings_migration_version');
|
PackageInfo.fromPlatform().then((PackageInfo packageInfo) {
|
||||||
|
currentVersion = packageInfo.version;
|
||||||
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static const currentNodeIdKey = 'current_node_id';
|
static const currentNodeIdKey = 'current_node_id';
|
||||||
|
@ -145,7 +149,7 @@ abstract class SettingsStoreBase with Store {
|
||||||
|
|
||||||
SharedPreferences _sharedPreferences;
|
SharedPreferences _sharedPreferences;
|
||||||
Box<Node> _nodes;
|
Box<Node> _nodes;
|
||||||
int currentVersion;
|
String currentVersion;
|
||||||
|
|
||||||
@action
|
@action
|
||||||
Future setAllowBiometricalAuthentication(
|
Future setAllowBiometricalAuthentication(
|
||||||
|
@ -268,7 +272,7 @@ abstract class SettingsStoreBase with Store {
|
||||||
ItemHeaders.support: S.current.settings_support,
|
ItemHeaders.support: S.current.settings_support,
|
||||||
ItemHeaders.termsAndConditions: S.current.settings_terms_and_conditions,
|
ItemHeaders.termsAndConditions: S.current.settings_terms_and_conditions,
|
||||||
ItemHeaders.faq: S.current.faq,
|
ItemHeaders.faq: S.current.faq,
|
||||||
ItemHeaders.version: 'Version 1.0.$currentVersion'
|
ItemHeaders.version: 'Version $currentVersion'
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -476,6 +476,13 @@ packages:
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "1.1.0"
|
version: "1.1.0"
|
||||||
|
package_info:
|
||||||
|
dependency: "direct main"
|
||||||
|
description:
|
||||||
|
name: package_info
|
||||||
|
url: "https://pub.dartlang.org"
|
||||||
|
source: hosted
|
||||||
|
version: "0.4.0+13"
|
||||||
package_resolver:
|
package_resolver:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
|
|
|
@ -11,7 +11,7 @@ description: Cake Wallet.
|
||||||
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
|
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
|
||||||
# Read more about iOS versioning at
|
# Read more about iOS versioning at
|
||||||
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
|
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
|
||||||
version: 1.0.0+2
|
version: 1.0.3+1
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
sdk: ">=2.2.2 <3.0.0"
|
sdk: ">=2.2.2 <3.0.0"
|
||||||
|
@ -46,6 +46,7 @@ dependencies:
|
||||||
hive: ^1.2.0
|
hive: ^1.2.0
|
||||||
hive_flutter: ^0.2.1
|
hive_flutter: ^0.2.1
|
||||||
local_auth: ^0.6.1
|
local_auth: ^0.6.1
|
||||||
|
package_info: ^0.4.0+13
|
||||||
|
|
||||||
# The following adds the Cupertino Icons font to your application.
|
# The following adds the Cupertino Icons font to your application.
|
||||||
# Use with the CupertinoIcons class for iOS style icons.
|
# Use with the CupertinoIcons class for iOS style icons.
|
||||||
|
|
Loading…
Reference in a new issue