Skip to content

Commit

Permalink
bump: 3.3.1+1
Browse files Browse the repository at this point in the history
  • Loading branch information
Arenukvern committed Oct 22, 2021
1 parent 3ff75c9 commit 841364e
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 32 deletions.
32 changes: 11 additions & 21 deletions lib/screens/app/app_store_initializer.dart
Original file line number Diff line number Diff line change
Expand Up @@ -69,33 +69,24 @@ class AppStoreInitializer extends ConsumerWidget {
/// ***************** MIGRATION START *******************
// TODO(arenukvern): remove old stores after all devices migration
try {
if (await Hive.boxExists(HiveBoxesIds.darkModeKey)) {
await Hive.deleteBoxFromDisk(HiveBoxesIds.darkModeKey);
}
if (await Hive.boxExists(HiveBoxesIds.projectsKey) &&
await Hive.boxExists(HiveBoxesIds.answersKey)) {
await Hive.openBox<Answer>(HiveBoxesIds.answersKey);
final projects =
await Hive.openBox<Project>(HiveBoxesIds.projectsKey);

print({'iDarkExists': await Hive.boxExists(HiveBoxesIds.darkModeKey)});
if (await Hive.boxExists(HiveBoxesIds.darkModeKey)) {
await Hive.deleteBoxFromDisk(HiveBoxesIds.darkModeKey);
}
print({
'projectsKey': await Hive.boxExists(HiveBoxesIds.projectsKey),
'answersKey': await Hive.boxExists(HiveBoxesIds.answersKey)
});
if (await Hive.boxExists(HiveBoxesIds.projectsKey) &&
await Hive.boxExists(HiveBoxesIds.answersKey)) {
await Hive.openBox<Answer>(HiveBoxesIds.answersKey);
final projects =
await Hive.openBox<Project>(HiveBoxesIds.projectsKey);

print({
'projects': projects.values,
});
try {
for (final project in projects.values) {
await project.saveAsIdeaProject(ref);
}
await Hive.deleteBoxFromDisk(HiveBoxesIds.answersKey);
await Hive.deleteBoxFromDisk(HiveBoxesIds.projectsKey);
} catch (e) {
print('error: $e');
}
} catch (e) {
print('error: $e');
}

/// ***************** MIGRATION END *******************
Expand All @@ -106,7 +97,6 @@ class AppStoreInitializer extends ConsumerWidget {
return true;
}(),
builder: (final context, final snapshot) {
print({snapshot.data, snapshot.connectionState});
if (snapshot.connectionState != ConnectionState.done ||
snapshot.data == false) {
return Container(
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ publish_to: "none" # Remove this line if you wish to publish to pub.dev
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
# Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
version: 3.3.0+1
version: 3.3.1+1

environment:
sdk: ">=2.14.0 <3.0.0"
Expand Down
33 changes: 23 additions & 10 deletions web/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,26 +10,39 @@
"prefer_related_applications": false,
"icons": [
{
"src": "icons/Icon-192.png",
"sizes": "192x192",
"src": "icons/icon-16.png",
"sizes": "16x16",
"type": "image/png"
},
{
"src": "icons/Icon-512.png",
"sizes": "512x512",
"src": "icons/icon-24.png",
"sizes": "24x24",
"type": "image/png"
},
{
"src": "icons/Icon-maskable-192.png",
"src": "icons/icon-32.png",
"sizes": "32x32",
"type": "image/png"
},
{
"src": "icons/icon-48.png",
"sizes": "48x48",
"type": "image/png"
},
{
"src": "icons/icon-128.png",
"sizes": "128x128",
"type": "image/png"
},
{
"src": "icons/icon-192.png",
"sizes": "192x192",
"type": "image/png",
"purpose": "maskable"
"type": "image/png"
},
{
"src": "icons/Icon-maskable-512.png",
"src": "icons/icon-512.png",
"sizes": "512x512",
"type": "image/png",
"purpose": "maskable"
"type": "image/png"
}
]
}

0 comments on commit 841364e

Please sign in to comment.