mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-12-23 11:59:30 +00:00
re enable git versions
This commit is contained in:
parent
f3c366a25d
commit
89c28a2d9d
3 changed files with 39 additions and 45 deletions
|
@ -12,11 +12,11 @@ import 'dart:convert';
|
||||||
|
|
||||||
import 'package:flutter/gestures.dart';
|
import 'package:flutter/gestures.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
// import 'package:flutter_libepiccash/git_versions.dart' as EPIC_VERSIONS;
|
import 'package:flutter_libepiccash/git_versions.dart' as EPIC_VERSIONS;
|
||||||
// import 'package:flutter_libmonero/git_versions.dart' as MONERO_VERSIONS;
|
import 'package:flutter_libmonero/git_versions.dart' as MONERO_VERSIONS;
|
||||||
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||||
import 'package:http/http.dart';
|
import 'package:http/http.dart';
|
||||||
// import 'package:lelantus/git_versions.dart' as FIRO_VERSIONS;
|
import 'package:lelantus/git_versions.dart' as FIRO_VERSIONS;
|
||||||
import 'package:package_info_plus/package_info_plus.dart';
|
import 'package:package_info_plus/package_info_plus.dart';
|
||||||
import 'package:stackwallet/themes/stack_colors.dart';
|
import 'package:stackwallet/themes/stack_colors.dart';
|
||||||
import 'package:stackwallet/utilities/logger.dart';
|
import 'package:stackwallet/utilities/logger.dart';
|
||||||
|
@ -115,12 +115,9 @@ class AboutView extends ConsumerWidget {
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context, WidgetRef ref) {
|
Widget build(BuildContext context, WidgetRef ref) {
|
||||||
String firoCommit =
|
String firoCommit = FIRO_VERSIONS.getPluginVersion();
|
||||||
"Unable to fetch version"; //FIRO_VERSIONS.getPluginVersion();
|
String epicCashCommit = EPIC_VERSIONS.getPluginVersion();
|
||||||
String epicCashCommit =
|
String moneroCommit = MONERO_VERSIONS.getPluginVersion();
|
||||||
"Unable to fetch version"; // EPIC_VERSIONS.getPluginVersion();
|
|
||||||
String moneroCommit =
|
|
||||||
"Unable to fetch version"; // MONERO_VERSIONS.getPluginVersion();
|
|
||||||
List<Future> futureFiroList = [
|
List<Future> futureFiroList = [
|
||||||
doesCommitExist("cypherstack", "flutter_liblelantus", firoCommit),
|
doesCommitExist("cypherstack", "flutter_liblelantus", firoCommit),
|
||||||
isHeadCommit("cypherstack", "flutter_liblelantus", "main", firoCommit),
|
isHeadCommit("cypherstack", "flutter_liblelantus", "main", firoCommit),
|
||||||
|
@ -174,14 +171,14 @@ class AboutView extends ConsumerWidget {
|
||||||
String appName = "";
|
String appName = "";
|
||||||
String build = "";
|
String build = "";
|
||||||
|
|
||||||
// if (snapshot.connectionState ==
|
if (snapshot.connectionState ==
|
||||||
// ConnectionState.done &&
|
ConnectionState.done &&
|
||||||
// snapshot.hasData) {
|
snapshot.hasData) {
|
||||||
// version = snapshot.data!.version;
|
version = snapshot.data!.version;
|
||||||
// build = snapshot.data!.buildNumber;
|
build = snapshot.data!.buildNumber;
|
||||||
// signature = snapshot.data!.buildSignature;
|
signature = snapshot.data!.buildSignature;
|
||||||
// appName = snapshot.data!.appName;
|
appName = snapshot.data!.appName;
|
||||||
// }
|
}
|
||||||
|
|
||||||
return Column(
|
return Column(
|
||||||
crossAxisAlignment: CrossAxisAlignment.stretch,
|
crossAxisAlignment: CrossAxisAlignment.stretch,
|
||||||
|
|
|
@ -17,11 +17,11 @@ import 'package:event_bus/event_bus.dart';
|
||||||
import 'package:file_picker/file_picker.dart';
|
import 'package:file_picker/file_picker.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter/services.dart';
|
import 'package:flutter/services.dart';
|
||||||
// import 'package:flutter_libepiccash/git_versions.dart' as EPIC_VERSIONS;
|
import 'package:flutter_libepiccash/git_versions.dart' as EPIC_VERSIONS;
|
||||||
// import 'package:flutter_libmonero/git_versions.dart' as MONERO_VERSIONS;
|
import 'package:flutter_libmonero/git_versions.dart' as MONERO_VERSIONS;
|
||||||
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||||
import 'package:flutter_svg/svg.dart';
|
import 'package:flutter_svg/svg.dart';
|
||||||
// import 'package:lelantus/git_versions.dart' as FIRO_VERSIONS;
|
import 'package:lelantus/git_versions.dart' as FIRO_VERSIONS;
|
||||||
import 'package:package_info_plus/package_info_plus.dart';
|
import 'package:package_info_plus/package_info_plus.dart';
|
||||||
import 'package:stackwallet/models/isar/models/log.dart';
|
import 'package:stackwallet/models/isar/models/log.dart';
|
||||||
import 'package:stackwallet/notifications/show_flush_bar.dart';
|
import 'package:stackwallet/notifications/show_flush_bar.dart';
|
||||||
|
@ -302,11 +302,11 @@ class _DebugViewState extends ConsumerState<DebugView> {
|
||||||
packageInfo.buildSignature;
|
packageInfo.buildSignature;
|
||||||
final appName = packageInfo.appName;
|
final appName = packageInfo.appName;
|
||||||
String firoCommit =
|
String firoCommit =
|
||||||
"Unable to fetch version"; //FIRO_VERSIONS.getPluginVersion();
|
FIRO_VERSIONS.getPluginVersion();
|
||||||
String epicCashCommit =
|
String epicCashCommit =
|
||||||
"Unable to fetch version"; //EPIC_VERSIONS.getPluginVersion();
|
EPIC_VERSIONS.getPluginVersion();
|
||||||
String moneroCommit =
|
String moneroCommit =
|
||||||
"Unable to fetch version"; // MONERO_VERSIONS.getPluginVersion();
|
MONERO_VERSIONS.getPluginVersion();
|
||||||
DeviceInfoPlugin deviceInfoPlugin =
|
DeviceInfoPlugin deviceInfoPlugin =
|
||||||
DeviceInfoPlugin();
|
DeviceInfoPlugin();
|
||||||
final deviceInfo =
|
final deviceInfo =
|
||||||
|
|
|
@ -12,11 +12,11 @@ import 'dart:convert';
|
||||||
|
|
||||||
import 'package:flutter/gestures.dart';
|
import 'package:flutter/gestures.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
// import 'package:flutter_libepiccash/git_versions.dart' as EPIC_VERSIONS;
|
import 'package:flutter_libepiccash/git_versions.dart' as EPIC_VERSIONS;
|
||||||
// import 'package:flutter_libmonero/git_versions.dart' as MONERO_VERSIONS;
|
import 'package:flutter_libmonero/git_versions.dart' as MONERO_VERSIONS;
|
||||||
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||||
import 'package:http/http.dart';
|
import 'package:http/http.dart';
|
||||||
// import 'package:lelantus/git_versions.dart' as FIRO_VERSIONS;
|
import 'package:lelantus/git_versions.dart' as FIRO_VERSIONS;
|
||||||
import 'package:package_info_plus/package_info_plus.dart';
|
import 'package:package_info_plus/package_info_plus.dart';
|
||||||
import 'package:stackwallet/themes/stack_colors.dart';
|
import 'package:stackwallet/themes/stack_colors.dart';
|
||||||
import 'package:stackwallet/utilities/logger.dart';
|
import 'package:stackwallet/utilities/logger.dart';
|
||||||
|
@ -108,12 +108,9 @@ class DesktopAboutView extends ConsumerWidget {
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context, WidgetRef ref) {
|
Widget build(BuildContext context, WidgetRef ref) {
|
||||||
String firoCommit =
|
String firoCommit = FIRO_VERSIONS.getPluginVersion();
|
||||||
"Unable to fetch version"; // FIRO_VERSIONS.getPluginVersion();
|
String epicCashCommit = EPIC_VERSIONS.getPluginVersion();
|
||||||
String epicCashCommit =
|
String moneroCommit = MONERO_VERSIONS.getPluginVersion();
|
||||||
"Unable to fetch version"; // EPIC_VERSIONS.getPluginVersion();
|
|
||||||
String moneroCommit =
|
|
||||||
"Unable to fetch version"; //MONERO_VERSIONS.getPluginVersion();
|
|
||||||
List<Future> futureFiroList = [
|
List<Future> futureFiroList = [
|
||||||
doesCommitExist("cypherstack", "flutter_liblelantus", firoCommit),
|
doesCommitExist("cypherstack", "flutter_liblelantus", firoCommit),
|
||||||
isHeadCommit("cypherstack", "flutter_liblelantus", "main", firoCommit),
|
isHeadCommit("cypherstack", "flutter_liblelantus", "main", firoCommit),
|
||||||
|
@ -250,13 +247,13 @@ class DesktopAboutView extends ConsumerWidget {
|
||||||
String signature = "";
|
String signature = "";
|
||||||
String build = "";
|
String build = "";
|
||||||
|
|
||||||
// if (snapshot.connectionState ==
|
if (snapshot.connectionState ==
|
||||||
// ConnectionState.done &&
|
ConnectionState.done &&
|
||||||
// snapshot.hasData) {
|
snapshot.hasData) {
|
||||||
// version = snapshot.data!.version;
|
version = snapshot.data!.version;
|
||||||
// build = snapshot.data!.buildNumber;
|
build = snapshot.data!.buildNumber;
|
||||||
// signature = snapshot.data!.buildSignature;
|
signature = snapshot.data!.buildSignature;
|
||||||
// }
|
}
|
||||||
|
|
||||||
return Column(
|
return Column(
|
||||||
mainAxisAlignment:
|
mainAxisAlignment:
|
||||||
|
|
Loading…
Reference in a new issue