Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add initial Visual Studio workspace and project settings files #1081

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
29 changes: 22 additions & 7 deletions .metadata
Original file line number Diff line number Diff line change
@@ -1,23 +1,38 @@
# This file tracks properties of this Flutter project.
# Used by Flutter tool to assess capabilities and perform upgrades etc.
#
# This file should be version controlled.
# This file should be version controlled and should not be manually edited.

version:
revision: f92f44110e87bad5ff168335c36da6f6053036e6
channel: stable
revision: "c519ee916eaeb88923e67befb89c0f1dabfa83e6"
channel: "stable"

project_type: app

# Tracks metadata for the flutter migrate command
migration:
platforms:
- platform: root
create_revision: f92f44110e87bad5ff168335c36da6f6053036e6
base_revision: f92f44110e87bad5ff168335c36da6f6053036e6
create_revision: c519ee916eaeb88923e67befb89c0f1dabfa83e6
base_revision: c519ee916eaeb88923e67befb89c0f1dabfa83e6
- platform: android
create_revision: c519ee916eaeb88923e67befb89c0f1dabfa83e6
base_revision: c519ee916eaeb88923e67befb89c0f1dabfa83e6
- platform: ios
create_revision: c519ee916eaeb88923e67befb89c0f1dabfa83e6
base_revision: c519ee916eaeb88923e67befb89c0f1dabfa83e6
- platform: linux
create_revision: c519ee916eaeb88923e67befb89c0f1dabfa83e6
base_revision: c519ee916eaeb88923e67befb89c0f1dabfa83e6
- platform: macos
create_revision: f92f44110e87bad5ff168335c36da6f6053036e6
base_revision: f92f44110e87bad5ff168335c36da6f6053036e6
create_revision: c519ee916eaeb88923e67befb89c0f1dabfa83e6
base_revision: c519ee916eaeb88923e67befb89c0f1dabfa83e6
- platform: web
create_revision: c519ee916eaeb88923e67befb89c0f1dabfa83e6
base_revision: c519ee916eaeb88923e67befb89c0f1dabfa83e6
- platform: windows
create_revision: c519ee916eaeb88923e67befb89c0f1dabfa83e6
base_revision: c519ee916eaeb88923e67befb89c0f1dabfa83e6

# User provided section

Expand Down
3 changes: 3 additions & 0 deletions .vs/CMakeWorkspaceSettings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"enableCMake": false
}
3 changes: 3 additions & 0 deletions .vs/ProjectSettings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"CurrentProjectSetting": "No Configurations"
}
9 changes: 9 additions & 0 deletions .vs/VSWorkspaceState.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"ActiveTargetSystem": "WSL: Ubuntu",
"DevContainersInfoBarHidden": true,
"ExpandedNodes": [
""
],
"SelectedNode": "\\README.md",
"PreviewInSolutionExplorer": false
}
Binary file added .vs/slnx.sqlite
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added .vs/stackwallet/v17/.wsuo
Binary file not shown.
Binary file added .vs/stackwallet/v17/Browse.VC.db
Binary file not shown.
23 changes: 23 additions & 0 deletions .vs/stackwallet/v17/DocumentLayout.backup.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"Version": 1,
"WorkspaceRootPath": "C:\\Users\\Nixon\\stackwallet\\",
"Documents": [],
"DocumentGroupContainers": [
{
"Orientation": 0,
"VerticalTabListWidth": 256,
"DocumentGroups": [
{
"DockedWidth": 200,
"SelectedChildIndex": -1,
"Children": [
{
"$type": "Bookmark",
"Name": "ST:0:0:{1c4feeaa-4718-4aa9-859d-94ce25d182ba}"
}
]
}
]
}
]
}
41 changes: 41 additions & 0 deletions .vs/stackwallet/v17/DocumentLayout.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"Version": 1,
"WorkspaceRootPath": "C:\\Users\\Nixon\\stackwallet\\",
"Documents": [
{
"AbsoluteMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|C:\\Users\\Nixon\\stackwallet\\README.md||{EFC0BB08-EA7D-40C6-A696-C870411A895B}",
"RelativeMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|solutionrelative:README.md||{EFC0BB08-EA7D-40C6-A696-C870411A895B}"
}
],
"DocumentGroupContainers": [
{
"Orientation": 0,
"VerticalTabListWidth": 256,
"DocumentGroups": [
{
"DockedWidth": 200,
"SelectedChildIndex": 0,
"Children": [
{
"$type": "Document",
"DocumentIndex": 0,
"Title": "README.md",
"DocumentMoniker": "C:\\Users\\Nixon\\stackwallet\\README.md",
"RelativeDocumentMoniker": "README.md",
"ToolTip": "C:\\Users\\Nixon\\stackwallet\\README.md",
"RelativeToolTip": "README.md",
"ViewState": "AgIAABsAAAAAAAAAAAAAACUAAAAgAAAAAAAAAA==",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.001818|",
"WhenOpened": "2025-02-04T01:33:41.717Z",
"EditorCaption": ""
},
{
"$type": "Bookmark",
"Name": "ST:0:0:{1c4feeaa-4718-4aa9-859d-94ce25d182ba}"
}
]
}
]
}
]
}
Binary file added .vs/stackwallet/v17/workspaceFileList.bin
Binary file not shown.
5 changes: 5 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"recommendations": [
"dart-code.dart-code"
]
}
19 changes: 19 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "flutter pub get",
"type": "shell",
"command": "flutter",
"args": [
"pub",
"get"
],
"group": "build",
"problemMatcher": [],
"presentation": {
"reveal": "silent"
}
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package com.example.stackwallet

import io.flutter.embedding.android.FlutterActivity

class MainActivity: FlutterActivity()
18 changes: 18 additions & 0 deletions android/app/src/main/res/values-night/styles.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- Theme applied to the Android Window while the process is starting when the OS's Dark Mode setting is on -->
<style name="LaunchTheme" parent="@android:style/Theme.Black.NoTitleBar">
<!-- Show a splash screen on the activity. Automatically removed when
the Flutter engine draws its first frame -->
<item name="android:windowBackground">@drawable/launch_background</item>
</style>
<!-- Theme applied to the Android Window as soon as the process has started.
This theme determines the color of the Android Window while your
Flutter UI initializes, as well as behind your Flutter UI while its
running.

This Theme is only used starting with V2 of Flutter's Android embedding. -->
<style name="NormalTheme" parent="@android:style/Theme.Black.NoTitleBar">
<item name="android:windowBackground">?android:colorBackground</item>
</style>
</resources>
2 changes: 1 addition & 1 deletion crypto_plugins/flutter_libepiccash
2 changes: 1 addition & 1 deletion crypto_plugins/flutter_liblelantus
2 changes: 1 addition & 1 deletion crypto_plugins/frostdart
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>PreviewsEnabled</key>
<false/>
</dict>
</plist>
12 changes: 12 additions & 0 deletions ios/RunnerTests/RunnerTests.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import Flutter
import UIKit
import XCTest

class RunnerTests: XCTestCase {

func testExample() {
// If you add code to the Runner application, consider adding tests here.
// See https://developer.apple.com/documentation/xctest for more information about using XCTest.
}

}
32 changes: 31 additions & 1 deletion lib/app_config.dart
Original file line number Diff line number Diff line change
@@ -1,8 +1,38 @@
import 'wallets/crypto_currency/crypto_currency.dart';
import 'wallets/crypto_currency/intermediate/frost_currency.dart';

/// This file is part of the app configuration for the StackWallet application.
///
/// The `part` directive is used to include the generated code from `app_config.g.dart`.
/// This allows for separation of generated code and manually written code,
/// making the codebase more maintainable and organized.
part 'app_config.g.dart';

// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'app_config.dart';

// **************************************************************************
// AppConfigGenerator
// **************************************************************************

// Add generated code here
const _prefix = "StackWallet";
const _separator = "-";
const _suffix = "App";
const _emptyWalletsMessage = "No wallets available.";
const _appDataDirName = "stackwallet_data";
const _shortDescriptionText = "StackWallet - Your secure crypto wallet.";
const _commitHash = "abc123";
const _features = <AppFeature>{
AppFeature.themeSelection,
AppFeature.buy,
AppFeature.swap,
};
const _appIconAsset = (light: "assets/icons/light_icon.png", dark: "assets/icons/dark_icon.png");
const _supportedCoins = <CryptoCurrency>[
// Add supported cryptocurrencies here
];
const _swapDefaults = (from: "BTC", to: "ETH");
enum AppFeature {
themeSelection,
buy,
Expand Down
13 changes: 3 additions & 10 deletions lib/db/db_version_migration.dart
Original file line number Diff line number Diff line change
Expand Up @@ -307,16 +307,9 @@ class DbVersionMigrator with WalletDB {
.where()
.addressStringWalletIdEqualTo(address.value, address.walletId)
.findFirst();
if (label == null) {
label = isar_models.AddressLabel(
walletId: address.walletId,
value: "",
addressString: address.value,
tags: tags,
);
} else if (label.tags == null) {
label = label.copyWith(tags: tags);
}
if (label.tags == null) {
label = label.copyWith(tags: tags);
}
labels.add(label);
}
}
Expand Down
4 changes: 2 additions & 2 deletions lib/db/hive/db.dart
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ class DB {
_boxTradeNotes = await hive.openBox<String>(boxNameTradeNotes);
_boxTradeLookup = await hive.openBox<TradeWalletLookup>(boxNameTradeLookup);
_walletInfoSource = await hive.openBox<lib_monero_compat.WalletInfo>(
lib_monero_compat.WalletInfo.boxName);
lib_monero_compat.WalletInfo.boxName,);
_boxFavoriteWallets = await hive.openBox<String>(boxNameFavoriteWallets);

await Future.wait([
Expand All @@ -165,7 +165,7 @@ class DB {
try {
AppConfig.getCryptoCurrencyFor(jsonObject["coin"] as String);
return false;
} catch (e, s) {
} catch (e) {
Logging.instance.log(
"Error, ${jsonObject["coin"]} does not exist, $name wallet cannot be loaded",
level: LogLevel.Error,
Expand Down
1 change: 0 additions & 1 deletion lib/db/migrate_wallets_to_isar.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import 'dart:convert';
import 'package:isar/isar.dart';

import '../app_config.dart';
import '../models/isar/models/blockchain_data/v2/transaction_v2.dart';
import '../models/isar/models/isar_models.dart';
import '../utilities/flutter_secure_storage_interface.dart';
import '../wallets/crypto_currency/crypto_currency.dart';
Expand Down
2 changes: 1 addition & 1 deletion lib/dto/ordinals/address_inscription_response.dart
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class AddressInscriptionResponse
status: json['status'] as int,
message: json['message'] as String,
result: AddressInscriptionResult.fromJson(
json['result'] as Map<String, dynamic>),
json['result'] as Map<String, dynamic>,),
);
}
}
Expand Down
2 changes: 1 addition & 1 deletion lib/models/paymint/transactions_model.dart
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ class Output {
scriptpubkeyAddress: address,
value: _parse((json["value"] ?? 0).toString()),
);
} catch (s, e) {
} catch (s) {
return Output(
// Return output object with null values; allows wallet history to be built
scriptpubkey: "",
Expand Down
4 changes: 2 additions & 2 deletions lib/models/paynym/paynym_account.dart
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,13 @@ class PaynymAccount {
followers = (map["followers"] as List<dynamic>)
.map(
(e) => PaynymAccountLite.fromMap(
Map<String, dynamic>.from(e as Map)),
Map<String, dynamic>.from(e as Map),),
)
.toList(),
following = (map["following"] as List<dynamic>)
.map(
(e) => PaynymAccountLite.fromMap(
Map<String, dynamic>.from(e as Map)),
Map<String, dynamic>.from(e as Map),),
)
.toList();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ class _AddCustomTokenViewState extends ConsumerState<AddCustomTokenView> {
context: context,
builder: (context) => StackOkDialog(
title: "Failed to look up token",
message: response!.exception?.message,
message: response.exception?.message,
),
),
);
Expand Down
26 changes: 12 additions & 14 deletions lib/pages/add_wallet_views/add_wallet_view/add_wallet_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -110,21 +110,19 @@ class _AddWalletViewState extends ConsumerState<AddWalletView> {
);
}

if (contract != null) {
await MainDB.instance.putEthContract(contract);
unawaited(ref.read(priceAnd24hChangeNotifierProvider).updatePrice());
if (mounted) {
setState(() {
if (tokenEntities
.where((e) => e.token.address == contract!.address)
.isEmpty) {
tokenEntities.add(EthTokenEntity(contract!));
tokenEntities.sort((a, b) => a.token.name.compareTo(b.token.name));
}
});
}
await MainDB.instance.putEthContract(contract);
unawaited(ref.read(priceAnd24hChangeNotifierProvider).updatePrice());
if (mounted) {
setState(() {
if (tokenEntities
.where((e) => e.token.address == contract!.address)
.isEmpty) {
tokenEntities.add(EthTokenEntity(contract!));
tokenEntities.sort((a, b) => a.token.name.compareTo(b.token.name));
}
});
}
}
}

@override
void initState() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,6 @@ enum _ImportOption {

class _ImportOptionCard extends StatefulWidget {
const _ImportOptionCard({
super.key,
required this.onPressed,
required this.title,
required this.description,
Expand Down Expand Up @@ -285,7 +284,7 @@ class _ImportOptionCardState extends State<_ImportOptionCard> {
}

class _FrostJoinInfoDialog extends StatelessWidget {
const _FrostJoinInfoDialog({super.key});
const _FrostJoinInfoDialog();

@override
Widget build(BuildContext context) {
Expand Down
Loading