Skip to content

Commit

Permalink
chore: updated dependencies to latest (#35)
Browse files Browse the repository at this point in the history
* refactor: removed unused dependencies

* chore: updated dependencies to latest
  • Loading branch information
OutdatedGuy authored Aug 2, 2023
1 parent 51717de commit 19a8958
Show file tree
Hide file tree
Showing 11 changed files with 31 additions and 71 deletions.
1 change: 1 addition & 0 deletions example/package_rename_config.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# dart run package_rename
package_rename_config:
android:
app_name: Package Rename Demo
Expand Down
20 changes: 2 additions & 18 deletions example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,10 @@ packages:
dependency: transitive
description:
name: logger
sha256: "7ad7215c15420a102ec687bb320a7312afd449bac63bfb1c60d9787c27b9767f"
sha256: "66cb048220ca51cf9011da69fa581e4ee2bed4be6e82870d9e9baae75739da49"
url: "https://pub.dev"
source: hosted
version: "1.4.0"
version: "2.0.1"
matcher:
dependency: transitive
description:
Expand Down Expand Up @@ -215,22 +215,6 @@ packages:
url: "https://pub.dev"
source: hosted
version: "0.5.1"
typed_data:
dependency: transitive
description:
name: typed_data
sha256: facc8d6582f16042dd49f2463ff1bd6e2c9ef9f3d5da3d9b087e244a7b564b3c
url: "https://pub.dev"
source: hosted
version: "1.3.2"
universal_io:
dependency: transitive
description:
name: universal_io
sha256: "1722b2dcc462b4b2f3ee7d188dad008b6eb4c40bbd03a3de451d82c78bba9aad"
url: "https://pub.dev"
source: hosted
version: "2.2.2"
vector_math:
dependency: transitive
description:
Expand Down
6 changes: 3 additions & 3 deletions lib/package_rename.dart
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
library package_rename;

import 'dart:convert';
import 'dart:io';

import 'package:args/args.dart';
import 'package:html/parser.dart' as html;
import 'package:logger/logger.dart';
import 'package:universal_io/io.dart';
import 'package:yaml/yaml.dart' as yaml;

part 'constants.dart';
Expand Down Expand Up @@ -88,10 +88,10 @@ void set(List<String> args) {

_logger.i(_successMessage);
} on _PackageRenameException catch (e) {
_logger.wtf(e.message);
_logger.f(e.message);
exit(e.code);
} catch (e) {
_logger.wtf(e.toString());
_logger.f(e.toString());
exit(255);
} finally {
_logger.close();
Expand Down
6 changes: 3 additions & 3 deletions lib/platforms/android.dart
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ void _setAndroidAppName(dynamic appName) {
..e('ERR Code: 255')
..e('Android Label change failed!!!');
} finally {
if (appName != null) _logger.wtf(_minorTaskDoneLine);
if (appName != null) _logger.f(_minorTaskDoneLine);
}
}

Expand Down Expand Up @@ -91,7 +91,7 @@ void _setAndroidPackageName(dynamic packageName) {
..e('ERR Code: 255')
..e('Android Package change failed!!!');
} finally {
if (packageName != null) _logger.wtf(_minorTaskDoneLine);
if (packageName != null) _logger.f(_minorTaskDoneLine);
}
}

Expand Down Expand Up @@ -289,6 +289,6 @@ void _createNewMainActivity({
..e('ERR Code: 255')
..e('New MainActivity creation failed!!!');
} finally {
if (packageName != null) _logger.wtf(_minorTaskDoneLine);
if (packageName != null) _logger.f(_minorTaskDoneLine);
}
}
6 changes: 3 additions & 3 deletions lib/platforms/ios.dart
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ void _setIOSDisplayName(dynamic appName) {
..e('ERR Code: 255')
..e('iOS Display Name change failed!!!');
} finally {
if (appName != null) _logger.wtf(_minorTaskDoneLine);
if (appName != null) _logger.f(_minorTaskDoneLine);
}
}

Expand Down Expand Up @@ -92,7 +92,7 @@ void _setIOSBundleName(dynamic bundleName) {
..e('ERR Code: 255')
..e('iOS Bundle Name change failed!!!');
} finally {
if (bundleName != null) _logger.wtf(_minorTaskDoneLine);
if (bundleName != null) _logger.f(_minorTaskDoneLine);
}
}

Expand Down Expand Up @@ -147,6 +147,6 @@ void _setIOSPackageName(dynamic packageName) {
..e('ERR Code: 255')
..e('iOS Bundle Identifier change failed!!!');
} finally {
if (packageName != null) _logger.wtf(_minorTaskDoneLine);
if (packageName != null) _logger.f(_minorTaskDoneLine);
}
}
6 changes: 3 additions & 3 deletions lib/platforms/linux.dart
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ void _setLinuxAppName(dynamic appName) {
..e('ERR Code: 255')
..e('Linux App Name change failed!!!');
} finally {
if (appName != null) _logger.wtf(_minorTaskDoneLine);
if (appName != null) _logger.f(_minorTaskDoneLine);
}
}

Expand Down Expand Up @@ -91,7 +91,7 @@ void _setLinuxPackageName(dynamic packageName) {
..e('ERR Code: 255')
..e('Linux Application ID change failed!!!');
} finally {
if (packageName != null) _logger.wtf(_minorTaskDoneLine);
if (packageName != null) _logger.f(_minorTaskDoneLine);
}
}

Expand Down Expand Up @@ -129,6 +129,6 @@ void _setLinuxExecutableName(dynamic exeName) {
..e('ERR Code: 255')
..e('Linux Executable Name change failed!!!');
} finally {
if (exeName != null) _logger.wtf(_minorTaskDoneLine);
if (exeName != null) _logger.f(_minorTaskDoneLine);
}
}
6 changes: 3 additions & 3 deletions lib/platforms/macos.dart
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ void _setMacOSAppName(dynamic appName) {
..e('ERR Code: 255')
..e('MacOS App Name change failed!!!');
} finally {
if (appName != null) _logger.wtf(_minorTaskDoneLine);
if (appName != null) _logger.f(_minorTaskDoneLine);
}
}

Expand Down Expand Up @@ -166,7 +166,7 @@ void _setMacOSBundleID(dynamic packageName) {
..e('ERR Code: 255')
..e('MacOS Bundle ID change failed!!!');
} finally {
if (packageName != null) _logger.wtf(_minorTaskDoneLine);
if (packageName != null) _logger.f(_minorTaskDoneLine);
}
}

Expand Down Expand Up @@ -269,6 +269,6 @@ void _setMacOSCopyright(dynamic notice) {
..e('ERR Code: 255')
..e('MacOS Product Copyright change failed!!!');
} finally {
if (notice != null) _logger.wtf(_minorTaskDoneLine);
if (notice != null) _logger.f(_minorTaskDoneLine);
}
}
8 changes: 4 additions & 4 deletions lib/platforms/web.dart
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ void _setWebTitle(dynamic appName) {
..e('ERR Code: 255')
..e('Web Title change failed!!!');
} finally {
if (appName != null) _logger.wtf(_minorTaskDoneLine);
if (appName != null) _logger.f(_minorTaskDoneLine);
}
}

Expand Down Expand Up @@ -92,7 +92,7 @@ void _setPWAAppName(dynamic appName) {
..e('ERR Code: 255')
..e('PWA Name change failed!!!');
} finally {
if (appName != null) _logger.wtf(_minorTaskDoneLine);
if (appName != null) _logger.f(_minorTaskDoneLine);
}
}

Expand Down Expand Up @@ -125,7 +125,7 @@ void _setWebDescription(dynamic description) {
..e('ERR Code: 255')
..e('Web Description change failed!!!');
} finally {
if (description != null) _logger.wtf(_minorTaskDoneLine);
if (description != null) _logger.f(_minorTaskDoneLine);
}
}

Expand Down Expand Up @@ -161,6 +161,6 @@ void _setPWADescription(dynamic description) {
..e('ERR Code: 255')
..e('PWA Description change failed!!!');
} finally {
if (description != null) _logger.wtf(_minorTaskDoneLine);
if (description != null) _logger.f(_minorTaskDoneLine);
}
}
8 changes: 4 additions & 4 deletions lib/platforms/windows.dart
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ void _setWindowsAppName(dynamic appName) {
..e('ERR Code: 255')
..e('Windows App Name change failed!!!');
} finally {
if (appName != null) _logger.wtf(_minorTaskDoneLine);
if (appName != null) _logger.f(_minorTaskDoneLine);
}
}

Expand Down Expand Up @@ -150,7 +150,7 @@ void _setWindowsOrganization(dynamic organization) {
..e('ERR Code: 255')
..e('Windows Organization change failed!!!');
} finally {
if (organization != null) _logger.wtf(_minorTaskDoneLine);
if (organization != null) _logger.f(_minorTaskDoneLine);
}
}

Expand Down Expand Up @@ -183,7 +183,7 @@ void _setWindowsCopyrightNotice(dynamic notice) {
..e('ERR Code: 255')
..e('Windows Copyright Notice change failed!!!');
} finally {
if (notice != null) _logger.wtf(_minorTaskDoneLine);
if (notice != null) _logger.f(_minorTaskDoneLine);
}
}

Expand All @@ -209,7 +209,7 @@ void _setWindowsExecutableName(dynamic exeName) {
..e('ERR Code: 255')
..e('Windows Executable Name change failed!!!');
} finally {
if (exeName != null) _logger.wtf(_minorTaskDoneLine);
if (exeName != null) _logger.f(_minorTaskDoneLine);
}
}

Expand Down
32 changes: 4 additions & 28 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ packages:
dependency: transitive
description:
name: collection
sha256: f092b211a4319e98e5ff58223576de6c2803db36221657b46c82574721240687
sha256: ee67cb0715911d28db6bf4af1026078bd6f0128b07a5f66fb2ed94ec6783c09a
url: "https://pub.dev"
source: hosted
version: "1.17.2"
version: "1.18.0"
csslib:
dependency: transitive
description:
Expand All @@ -37,18 +37,10 @@ packages:
dependency: "direct main"
description:
name: logger
sha256: "7ad7215c15420a102ec687bb320a7312afd449bac63bfb1c60d9787c27b9767f"
sha256: "66cb048220ca51cf9011da69fa581e4ee2bed4be6e82870d9e9baae75739da49"
url: "https://pub.dev"
source: hosted
version: "1.4.0"
meta:
dependency: transitive
description:
name: meta
sha256: "3c74dbf8763d36539f114c799d8a2d87343b5067e9d796ca22b5eb8437090ee3"
url: "https://pub.dev"
source: hosted
version: "1.9.1"
version: "2.0.1"
path:
dependency: transitive
description:
Expand Down Expand Up @@ -81,22 +73,6 @@ packages:
url: "https://pub.dev"
source: hosted
version: "1.2.1"
typed_data:
dependency: transitive
description:
name: typed_data
sha256: facc8d6582f16042dd49f2463ff1bd6e2c9ef9f3d5da3d9b087e244a7b564b3c
url: "https://pub.dev"
source: hosted
version: "1.3.2"
universal_io:
dependency: "direct main"
description:
name: universal_io
sha256: "1722b2dcc462b4b2f3ee7d188dad008b6eb4c40bbd03a3de451d82c78bba9aad"
url: "https://pub.dev"
source: hosted
version: "2.2.2"
very_good_analysis:
dependency: "direct dev"
description:
Expand Down
3 changes: 1 addition & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ environment:
dependencies:
args: ^2.4.0
html: ^0.15.0
logger: ^1.1.0
universal_io: ^2.0.4
logger: ^2.0.1
yaml: ^3.1.1

dev_dependencies:
Expand Down

0 comments on commit 19a8958

Please sign in to comment.