diff --git a/example/package_rename_config.yaml b/example/package_rename_config.yaml index d0f7d9c..415822c 100644 --- a/example/package_rename_config.yaml +++ b/example/package_rename_config.yaml @@ -1,3 +1,4 @@ +# dart run package_rename package_rename_config: android: app_name: Package Rename Demo diff --git a/example/pubspec.lock b/example/pubspec.lock index 1156c4e..1b6347d 100644 --- a/example/pubspec.lock +++ b/example/pubspec.lock @@ -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: @@ -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: diff --git a/lib/package_rename.dart b/lib/package_rename.dart index 13f12eb..06969c0 100644 --- a/lib/package_rename.dart +++ b/lib/package_rename.dart @@ -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'; @@ -88,10 +88,10 @@ void set(List 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(); diff --git a/lib/platforms/android.dart b/lib/platforms/android.dart index f3c1551..14ad567 100644 --- a/lib/platforms/android.dart +++ b/lib/platforms/android.dart @@ -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); } } @@ -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); } } @@ -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); } } diff --git a/lib/platforms/ios.dart b/lib/platforms/ios.dart index 4438161..3e243a6 100644 --- a/lib/platforms/ios.dart +++ b/lib/platforms/ios.dart @@ -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); } } @@ -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); } } @@ -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); } } diff --git a/lib/platforms/linux.dart b/lib/platforms/linux.dart index a265e38..e357c8d 100644 --- a/lib/platforms/linux.dart +++ b/lib/platforms/linux.dart @@ -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); } } @@ -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); } } @@ -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); } } diff --git a/lib/platforms/macos.dart b/lib/platforms/macos.dart index 8d92ec8..7578479 100644 --- a/lib/platforms/macos.dart +++ b/lib/platforms/macos.dart @@ -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); } } @@ -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); } } @@ -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); } } diff --git a/lib/platforms/web.dart b/lib/platforms/web.dart index f606620..0c9a672 100644 --- a/lib/platforms/web.dart +++ b/lib/platforms/web.dart @@ -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); } } @@ -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); } } @@ -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); } } @@ -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); } } diff --git a/lib/platforms/windows.dart b/lib/platforms/windows.dart index d7b3130..b1e659e 100644 --- a/lib/platforms/windows.dart +++ b/lib/platforms/windows.dart @@ -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); } } @@ -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); } } @@ -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); } } @@ -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); } } diff --git a/pubspec.lock b/pubspec.lock index 0bb4629..75c869c 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -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: @@ -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: @@ -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: diff --git a/pubspec.yaml b/pubspec.yaml index 28da875..6b2e755 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -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: