Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
8855e5a
rename pubspec template file
julian-CStack Oct 2, 2025
93ff340
WIP
julian-CStack Oct 2, 2025
a786118
prep config scripts
julian-CStack Oct 2, 2025
6ad4811
prep config scripts fixes
julian-CStack Oct 2, 2025
2b7e404
implement mwebd ffi package optional import
julian-CStack Oct 3, 2025
9c73ed9
implement xmr/wow ffi package optional import
julian-CStack Oct 3, 2025
6b5966c
clean switch
julian-CStack Oct 6, 2025
be92e86
implement sal ffi package optional import and some xmr/wow fixes
julian-CStack Oct 6, 2025
fef43fb
mwc git version
julian-CStack Oct 6, 2025
490a8fb
implement epiccash optional ffi package import
julian-CStack Oct 6, 2025
df966bd
fix mwc usage
julian-CStack Oct 6, 2025
c51e784
fix package import
julian-CStack Oct 6, 2025
69d143c
implement optional import of frostdart
julian-CStack Oct 6, 2025
5f12db2
implement optional import of flutter_libsparkmobile
julian-CStack Oct 6, 2025
f7de742
implement optional import of xelis ffi package
julian-CStack Oct 7, 2025
cabd84a
Merge branch 'staging' into wl
julian-CStack Oct 7, 2025
b127e8e
fix xmr rpc import
julian-CStack Oct 7, 2025
ce22845
add tor optino to app config
julian-CStack Oct 7, 2025
0e17f1e
only build imported/used packages
julian-CStack Oct 7, 2025
3664871
tor ffi package optional import config
julian-CStack Oct 7, 2025
cef5385
remove unused code
julian-CStack Oct 7, 2025
661e3f8
fix missed xelis import
julian-CStack Oct 7, 2025
747d753
fix missing coin checks in main.dart
julian-CStack Oct 7, 2025
9fd474d
update ios build files
julian-CStack Oct 7, 2025
a734654
update gitignore
julian-CStack Oct 7, 2025
bbba8fa
update flutter_libmwc with macos xcfw fix
julian-CStack Oct 7, 2025
41f94a1
update macos build files
julian-CStack Oct 7, 2025
da07f0d
class name fix
julian-CStack Oct 7, 2025
34cb2b5
stupid hack. One day epic and mwc will be proper libraries...
julian-CStack Oct 8, 2025
4bf95c6
update frostdart with macos xcframework
julian-CStack Oct 8, 2025
183380a
no spark logging without firo
julian-CStack Oct 8, 2025
e2af0e6
Merge remote-tracking branch 'origin/staging' into wl
julian-CStack Oct 8, 2025
3375632
fix salvium interface and add salvium staking tx call
julian-CStack Oct 9, 2025
7ca1698
const constructors
julian-CStack Oct 9, 2025
015ce8a
fix xmr/wow interfaces
julian-CStack Oct 9, 2025
957e02c
basic salvium stake transaction ui
julian-CStack Oct 9, 2025
63e6fbf
fix preview button label (refactor mwc tx type provider)
julian-CStack Oct 9, 2025
9838634
must've been some merge artefact...?
julian-CStack Oct 9, 2025
9c43f13
clean up sal related
julian-CStack Oct 9, 2025
cf74749
sal testnet support using localhost
julian-CStack Oct 9, 2025
b173841
display salvium tx type in transaction details
julian-CStack Oct 9, 2025
3729314
do not show anonymize all button in view only wallets
julian-CStack Oct 10, 2025
f26047a
downgrade errors to warnings
julian-CStack Oct 10, 2025
f7784c8
const mwebd interface constructor
julian-CStack Oct 10, 2025
7dcbef7
const xelis interface constructor
julian-CStack Oct 10, 2025
a0cb036
xmr/wow and salvium package version bump
julian-CStack Oct 10, 2025
90142c1
xmr/wow tweaks
julian-CStack Oct 10, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -112,3 +112,13 @@ crypto_plugins/cs_monero/built_outputs
crypto_plugins/cs_monero/build
crypto_plugins/*.diff
/devtools_options.yaml

# generated interfaces
lib/wl_gen/generated/

# normally these aren't ignored but WL changes them...
/linux/flutter/generated_plugin_registrant.cc
/windows/flutter/generated_plugin_registrant.cc
/linux/flutter/generated_plugins.cmake
/windows/flutter/generated_plugins.cmake
/macos/Flutter/GeneratedPluginRegistrant.swift
2 changes: 2 additions & 0 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ analyzer:
- "crypto_plugins/**"
- "bin/cache/**"
- "lib/generated_plugin_registrant.dart"
- "lib/wl_gen/generated/**"
- '**/*.template.dart'

# For more information see:
# https://dart.dev/guides/language/analysis-options#enabling-additional-type-checks
Expand Down
1 change: 1 addition & 0 deletions ios/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ Flutter/flutter_assets/
Flutter/flutter_export_environment.sh
ServiceDefinitions.json
Runner/GeneratedPluginRegistrant.*
Podfile.lock

# Exceptions to above rules.
!default.mode1v3
Expand Down
257 changes: 0 additions & 257 deletions ios/Podfile.lock

This file was deleted.

2 changes: 2 additions & 0 deletions ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
customLLDBInitFile = "$(SRCROOT)/Flutter/ephemeral/flutter_lldbinit"
shouldUseLaunchSchemeArgsEnv = "YES">
<MacroExpansion>
<BuildableReference
Expand All @@ -43,6 +44,7 @@
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
customLLDBInitFile = "$(SRCROOT)/Flutter/ephemeral/flutter_lldbinit"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
Expand Down
2 changes: 0 additions & 2 deletions ios/Runner/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ import Flutter
_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
) -> Bool {
let dummy = get_mnemonic()
print(dummy)
var flutter_native_splash = 1
UIApplication.shared.isStatusBarHidden = false

Expand Down
3 changes: 1 addition & 2 deletions ios/Runner/Runner-Bridging-Header.h
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
#import "GeneratedPluginRegistrant.h"
#import "libepic_cash_wallet.h"
#import "GeneratedPluginRegistrant.h"
9 changes: 4 additions & 5 deletions lib/app_config.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import 'wallets/crypto_currency/intermediate/frost_currency.dart';

part 'app_config.g.dart';

enum AppFeature { themeSelection, buy, swap }
enum AppFeature { themeSelection, buy, swap, tor }

abstract class AppConfig {
static const appName = _prefix + _separator + suffix;
Expand Down Expand Up @@ -77,10 +77,9 @@ abstract class AppConfig {
static CryptoCurrency getCryptoCurrencyByPrettyName(final String prettyName) {
// trocador hack
const hackSplitter = " (Mainnet";
final name =
prettyName.contains(hackSplitter)
? prettyName.split(hackSplitter).first.toLowerCase()
: prettyName.replaceAll(" ", "").toLowerCase();
final name = prettyName.contains(hackSplitter)
? prettyName.split(hackSplitter).first.toLowerCase()
: prettyName.replaceAll(" ", "").toLowerCase();

try {
return coins.firstWhere(
Expand Down
10 changes: 5 additions & 5 deletions lib/db/sqlite/firo_cache.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import 'dart:async';
import 'dart:io';
import 'dart:isolate';

import 'package:flutter_libsparkmobile/flutter_libsparkmobile.dart';
import 'package:mutex/mutex.dart';
import 'package:sqlite3/sqlite3.dart';
import 'package:uuid/uuid.dart';
Expand All @@ -13,6 +12,7 @@ import '../../utilities/extensions/extensions.dart';
import '../../utilities/logger.dart';
import '../../utilities/stack_file_system.dart';
import '../../wallets/crypto_currency/crypto_currency.dart';
import '../../wl_gen/interfaces/lib_spark_interface.dart';

part 'firo_cache_coordinator.dart';
part 'firo_cache_reader.dart';
Expand All @@ -30,12 +30,12 @@ abstract class _FiroCache {

static String sparkSetCacheFileName(CryptoCurrencyNetwork network) =>
network == CryptoCurrencyNetwork.main
? "spark_set_v$_setCacheVersion.sqlite3"
: "spark_set_v${_setCacheVersion}_${network.name}.sqlite3";
? "spark_set_v$_setCacheVersion.sqlite3"
: "spark_set_v${_setCacheVersion}_${network.name}.sqlite3";
static String sparkUsedTagsCacheFileName(CryptoCurrencyNetwork network) =>
network == CryptoCurrencyNetwork.main
? "spark_tags_v$_tagsCacheVersion.sqlite3"
: "spark_tags_v${_tagsCacheVersion}_${network.name}.sqlite3";
? "spark_tags_v$_tagsCacheVersion.sqlite3"
: "spark_tags_v${_tagsCacheVersion}_${network.name}.sqlite3";

static final Map<CryptoCurrencyNetwork, Database> _setCacheDB = {};
static final Map<CryptoCurrencyNetwork, Database> _usedTagsCacheDB = {};
Expand Down
7 changes: 3 additions & 4 deletions lib/db/sqlite/firo_cache_writer.dart
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,9 @@ class FCResult {
/// returns true if successful, otherwise some exception
FCResult _updateSparkUsedTagsWith(Database db, List<List<dynamic>> tags) {
// hash the tags here since this function is called in a background isolate
final hashedTags =
LibSpark.hashTags(
base64Tags: tags.map((e) => e[0] as String).toList(),
).toList();
final hashedTags = hashTags(
base64Tags: tags.map((e) => e[0] as String).toList(),
).toList();
if (hashedTags.isEmpty) {
// nothing to add, return early
return FCResult(success: true);
Expand Down
Loading
Loading