--- a/pubspec.yaml
+++ b/pubspec.yaml
@@ -27,7 +27,6 @@
meta: ^1.17.0
path: ^1.9.1
shared_preferences: ^2.5.5
- url_launcher: ^6.3.2
window_manager: ^0.5.2
xml: ^7.0.1
--- a/pubspec.lock
+++ b/pubspec.lock
@@ -741,70 +741,6 @@
url: "https://pub.dev"
source: hosted
version: "1.4.0"
- url_launcher:
- dependency: "direct main"
- description:
- name: url_launcher
- sha256: f6a7e5c4835bb4e3026a04793a4199ca2d14c739ec378fdfe23fc8075d0439f8
- url: "https://pub.dev"
- source: hosted
- version: "6.3.2"
- url_launcher_android:
- dependency: transitive
- description:
- name: url_launcher_android
- sha256: b413d49b73867ac08dd2f9890efd3cc11f2a0e577618d50843440a1fb3776c32
- url: "https://pub.dev"
- source: hosted
- version: "6.3.32"
- url_launcher_ios:
- dependency: transitive
- description:
- name: url_launcher_ios
- sha256: "580fe5dfb51671ae38191d316e027f6b76272b026370708c2d898799750a02b0"
- url: "https://pub.dev"
- source: hosted
- version: "6.4.1"
- url_launcher_linux:
- dependency: transitive
- description:
- name: url_launcher_linux
- sha256: d5e14138b3bc193a0f63c10a53c94b91d399df0512b1f29b94a043db7482384a
- url: "https://pub.dev"
- source: hosted
- version: "3.2.2"
- url_launcher_macos:
- dependency: transitive
- description:
- name: url_launcher_macos
- sha256: "368adf46f71ad3c21b8f06614adb38346f193f3a59ba8fe9a2fd74133070ba18"
- url: "https://pub.dev"
- source: hosted
- version: "3.2.5"
- url_launcher_platform_interface:
- dependency: transitive
- description:
- name: url_launcher_platform_interface
- sha256: "552f8a1e663569be95a8190206a38187b531910283c3e982193e4f2733f01029"
- url: "https://pub.dev"
- source: hosted
- version: "2.3.2"
- url_launcher_web:
- dependency: transitive
- description:
- name: url_launcher_web
- sha256: "85c81589622fbc87c1c683aaea164d3604a7777495a79d91e39ffcdec39ddb34"
- url: "https://pub.dev"
- source: hosted
- version: "2.4.3"
- url_launcher_windows:
- dependency: transitive
- description:
- name: url_launcher_windows
- sha256: "712c70ab1b99744ff066053cbe3e80c73332b38d46e5e945c98689b2e66fc15f"
- url: "https://pub.dev"
- source: hosted
- version: "3.1.5"
uuid:
dependency: transitive
description:
--- a/lib/utils/config.dart
+++ b/lib/utils/config.dart
@@ -4,10 +4,10 @@
static const String version = '3.0.5';
/// True: hide donation link in InfoPage (due to Play Store policies)
- static const bool hideDonationInfo = false;
+ static const bool hideDonationInfo = true;
/// True: hide worker in 1.tmx (postgame)
- static const bool hideDonationWorker = false;
+ static const bool hideDonationWorker = true;
/// URLs
static const String websiteUrl = 'https://deepdaikon.xyz';
--- a/lib/ui/screens/info/info_page.dart
+++ b/lib/ui/screens/info/info_page.dart
@@ -1,5 +1,4 @@
import 'package:flutter/material.dart';
-import 'package:url_launcher/url_launcher.dart';
import 'package:xeonjia/ui/basic.dart';
import 'package:xeonjia/ui/screens/info/resources/credits.dart';
import 'package:xeonjia/ui/screens/info/resources/third_party_licenses.dart';
@@ -17,7 +16,7 @@
{
'title': 'DeepDaikon Project',
'subtitle': 'Game made by %s'.i18n.fill(['DeepDaikon']),
- 'url': Config.websiteUrl,
+ 'url': '',
'icon': const Icon(Icons.change_history),
},
{
@@ -40,36 +39,6 @@
'icon': const Icon(Icons.euro),
},
{
- 'title': 'Translate'.i18n,
- 'subtitle': 'Translate in your language'.i18n,
- 'url': Config.translateUrl,
- 'icon': const Icon(Icons.translate_rounded),
- },
- {
- 'title': 'Send email'.i18n,
- 'subtitle': 'Ask for something'.i18n,
- 'url': Config.mailTo,
- 'icon': const Icon(Icons.email),
- },
- {
- 'title': 'Report bugs'.i18n,
- 'subtitle': 'Report the bugs you found'.i18n,
- 'url': Config.bugTrackerUrl,
- 'icon': const Icon(Icons.bug_report),
- },
- {
- 'title': 'Source code'.i18n,
- 'subtitle': 'View the source code'.i18n,
- 'url': Config.sourceCodeUrl,
- 'icon': const Icon(Icons.developer_mode),
- },
- {
- 'title': 'License (GPLv3)'.i18n,
- 'subtitle': 'Read software license'.i18n,
- 'url': Config.licenseUrl,
- 'icon': const Icon(Icons.chrome_reader_mode),
- },
- {
'title': 'Third Party Licenses'.i18n,
'subtitle': 'Read third party notices'.i18n,
'url': '',
@@ -153,12 +122,7 @@
),
),
onTap: () async {
- if (infoMenuList[index]['url'].length != 0) {
- launchUrl(
- Uri.parse(infoMenuList[index]['url']),
- mode: LaunchMode.externalApplication,
- );
- } else if (infoMenuList[index]['title'] ==
+ if (infoMenuList[index]['title'] ==
'Third Party Licenses'.i18n) {
_licenseDialog();
} else if (infoMenuList[index]['title'] ==
--- a/lib/game/utils/event_manager.dart
+++ b/lib/game/utils/event_manager.dart
@@ -8,7 +8,6 @@
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:path/path.dart';
-import 'package:url_launcher/url_launcher.dart';
import 'package:xeonjia/game/xeonjia.dart';
import 'package:xeonjia/utils/config.dart';
@@ -707,14 +706,7 @@
x('get-snowball-key', 0, (Cell? x) => game.snowballButtonKey);
x('get-mine-key', 0, (Cell? x) => game.mineButtonKey);
x('hide-donation-worker', 0, (Cell? x) => Config.hideDonationWorker);
- x(
- 'donation-page',
- 0,
- (Cell? x) => launchUrl(
- Uri.parse(Config.donateUrl),
- mode: LaunchMode.externalApplication,
- ),
- );
+ x('donation-page', 0, (Cell? x) => #NONE);
// Built-in procedures
x('car', 1, (Cell? x) => (x!.car as Cell).car!);
--- a/lib/game/utils/input_controller.dart
+++ b/lib/game/utils/input_controller.dart
@@ -9,7 +9,7 @@
import 'package:xeonjia/game/xeonjia.dart';
bool get _isDesktopKeyboard =>
- !kIsWeb && (Platform.isLinux || Platform.isWindows);
+ kIsWeb || Platform.isLinux || Platform.isWindows;
/// Handle user input
extension InputController on XeonjiaGame {
--- a/assets/maps/story/53_house2.tmx
+++ b/assets/maps/story/53_house2.tmx
@@ -26,14 +26,7 @@