Skip to content

Commit

Permalink
chore: remove app_route_names.dart
Browse files Browse the repository at this point in the history
  • Loading branch information
dzmitry-struk-surf committed Mar 25, 2024
1 parent 660556b commit f5bae85
Show file tree
Hide file tree
Showing 10 changed files with 32 additions and 58 deletions.
20 changes: 11 additions & 9 deletions ios/Runner.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,7 @@
"${BUILT_PRODUCTS_DIR}/PromisesObjC/FBLPromises.framework",
"${BUILT_PRODUCTS_DIR}/PromisesSwift/Promises.framework",
"${BUILT_PRODUCTS_DIR}/flutter_native_splash/flutter_native_splash.framework",
"${BUILT_PRODUCTS_DIR}/flutter_secure_storage/flutter_secure_storage.framework",
"${BUILT_PRODUCTS_DIR}/nanopb/nanopb.framework",
"${BUILT_PRODUCTS_DIR}/path_provider_foundation/path_provider_foundation.framework",
"${BUILT_PRODUCTS_DIR}/shared_preferences_foundation/shared_preferences_foundation.framework",
Expand All @@ -389,6 +390,7 @@
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/FBLPromises.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Promises.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/flutter_native_splash.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/flutter_secure_storage.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/nanopb.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/path_provider_foundation.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/shared_preferences_foundation.framework",
Expand Down Expand Up @@ -484,7 +486,7 @@
isa = XCBuildConfiguration;
baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = $APP_ICON;
ASSETCATALOG_COMPILER_APPICON_NAME = "$APP_ICON";
CODE_SIGN_STYLE = Manual;
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
DEVELOPMENT_TEAM = "";
Expand Down Expand Up @@ -562,7 +564,7 @@
isa = XCBuildConfiguration;
baseConfigurationReference = 9C64539A22F45CEF008DCC00 /* dev.xcconfig */;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = $APP_ICON;
ASSETCATALOG_COMPILER_APPICON_NAME = "$APP_ICON";
CODE_SIGN_STYLE = Manual;
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
DEVELOPMENT_TEAM = "";
Expand Down Expand Up @@ -643,7 +645,7 @@
isa = XCBuildConfiguration;
baseConfigurationReference = 9C64539B22F45CEF008DCC00 /* prod.xcconfig */;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = $APP_ICON;
ASSETCATALOG_COMPILER_APPICON_NAME = "$APP_ICON";
CODE_SIGN_STYLE = Manual;
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
DEVELOPMENT_TEAM = "";
Expand Down Expand Up @@ -778,7 +780,7 @@
isa = XCBuildConfiguration;
baseConfigurationReference = 9C64539A22F45CEF008DCC00 /* dev.xcconfig */;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = $APP_ICON;
ASSETCATALOG_COMPILER_APPICON_NAME = "$APP_ICON";
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_STYLE = Manual;
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
Expand Down Expand Up @@ -812,7 +814,7 @@
isa = XCBuildConfiguration;
baseConfigurationReference = 9C64539A22F45CEF008DCC00 /* dev.xcconfig */;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = $APP_ICON;
ASSETCATALOG_COMPILER_APPICON_NAME = "$APP_ICON";
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_STYLE = Manual;
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
Expand Down Expand Up @@ -894,7 +896,7 @@
isa = XCBuildConfiguration;
baseConfigurationReference = 9C64539B22F45CEF008DCC00 /* prod.xcconfig */;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = $APP_ICON;
ASSETCATALOG_COMPILER_APPICON_NAME = "$APP_ICON";
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_STYLE = Manual;
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
Expand Down Expand Up @@ -981,7 +983,7 @@
isa = XCBuildConfiguration;
baseConfigurationReference = 9C64539A22F45CEF008DCC00 /* dev.xcconfig */;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = $APP_ICON;
ASSETCATALOG_COMPILER_APPICON_NAME = "$APP_ICON";
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_STYLE = Manual;
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
Expand Down Expand Up @@ -1069,7 +1071,7 @@
isa = XCBuildConfiguration;
baseConfigurationReference = 9C64539B22F45CEF008DCC00 /* prod.xcconfig */;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = $APP_ICON;
ASSETCATALOG_COMPILER_APPICON_NAME = "$APP_ICON";
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_STYLE = Manual;
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
Expand Down Expand Up @@ -1152,7 +1154,7 @@
isa = XCBuildConfiguration;
baseConfigurationReference = 9C64539A22F45CEF008DCC00 /* dev.xcconfig */;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = $APP_ICON;
ASSETCATALOG_COMPILER_APPICON_NAME = "$APP_ICON";
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_STYLE = Manual;
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
Expand Down
2 changes: 1 addition & 1 deletion lib/features/app/app.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'package:flutter/material.dart';
import 'package:flutter_localizations/flutter_localizations.dart';
import 'package:flutter_template/features/navigation/service/app_router.dart';
import 'package:flutter_template/features/navigation/app_router.dart';
import 'package:flutter_template/features/theme_mode/presentation/widgets/theme_mode_builder.dart';
import 'package:flutter_template/l10n/app_localizations.g.dart';
import 'package:flutter_template/uikit/themes/app_theme_data.dart';
Expand Down
2 changes: 1 addition & 1 deletion lib/features/app/app_flow.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import 'package:flutter/material.dart';
import 'package:flutter_template/common/widgets/di_scope.dart';
import 'package:flutter_template/features/app/app.dart';
import 'package:flutter_template/features/app/di/app_scope.dart';
import 'package:flutter_template/features/navigation/service/app_router.dart';
import 'package:flutter_template/features/navigation/app_router.dart';
import 'package:flutter_template/features/theme_mode/presentation/theme_mode_provider.dart';
import 'package:nested/nested.dart';
import 'package:provider/provider.dart';
Expand Down
3 changes: 1 addition & 2 deletions lib/features/debug/presentation/debug/debug_flow.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,11 @@ import 'package:flutter/material.dart';
import 'package:flutter_template/common/widgets/di_scope.dart';
import 'package:flutter_template/features/debug/di/debug_scope.dart';
import 'package:flutter_template/features/debug/presentation/debug/debug_screen.dart';
import 'package:flutter_template/features/navigation/domain/entity/app_route_names.dart';

/// {@template debug_flow.class}
/// Entry of debug feature.
/// {@endtemplate}
@RoutePage(name: AppRouteNames.debugScreen)
@RoutePage()
class DebugFlow extends StatelessWidget implements AutoRouteWrapper {
/// {@macro debug_flow.class}
const DebugFlow({super.key});
Expand Down
4 changes: 2 additions & 2 deletions lib/features/debug/presentation/debug/debug_wm.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import 'package:flutter_template/features/app/di/app_scope.dart';
import 'package:flutter_template/features/debug/di/debug_scope.dart';
import 'package:flutter_template/features/debug/presentation/debug/debug_model.dart';
import 'package:flutter_template/features/debug/presentation/debug/debug_screen.dart';
import 'package:flutter_template/features/navigation/service/app_router.dart';
import 'package:flutter_template/features/navigation/app_router.dart';
import 'package:flutter_template/features/theme_mode/presentation/theme_mode_provider.dart';
import 'package:flutter_template/l10n/app_localizations_x.dart';
import 'package:provider/provider.dart';
Expand Down Expand Up @@ -125,7 +125,7 @@ class DebugScreenWM extends WidgetModel<DebugScreen, DebugModel> with Localizati
}

@override
Future<void> openUiKit() => _router.push(const UiKitRouter());
Future<void> openUiKit() => _router.push(const UiKitRoute());

void _showReloadAppSnackBar() {
final _ = _scaffoldMessenger.showSnackBar(SnackBar(content: Text(context.l10n.debugScreenReloadAppMessage)));
Expand Down
3 changes: 1 addition & 2 deletions lib/features/debug/presentation/ui_kit/ui_kit_flow.dart
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import 'package:auto_route/auto_route.dart';
import 'package:flutter/material.dart';
import 'package:flutter_template/features/debug/presentation/ui_kit/ui_kit_screen.dart';
import 'package:flutter_template/features/navigation/domain/entity/app_route_names.dart';

/// {@template ui_kit_flow.class}
/// Entry of Ui Kit screen.
/// {@endtemplate}
@RoutePage(name: AppRouteNames.uiKitScreen)
@RoutePage()
class UiKitFlow extends StatelessWidget {
/// {@macro ui_kit_flow.class}
const UiKitFlow({super.key});
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/// List of all the paths that are used to navigate in temp feature.
/// List of all the paths that are used in navigation.
///
/// Have to been filled with the entries like this:
/// ```dart
/// /// Path description.
/// static const String screenPath = 'screenPath';
/// static const String flowPath = 'flowPath';
/// ```
abstract class AppRoutePaths {
/// Path to debug screen.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import 'package:auto_route/auto_route.dart';
import 'package:flutter_template/features/debug/presentation/debug/debug_flow.dart';
import 'package:flutter_template/features/debug/presentation/ui_kit/ui_kit_flow.dart';
import 'package:flutter_template/features/feature_example/presentation/feature_example_flow.dart';
import 'package:flutter_template/features/navigation/domain/entity/app_route_paths.dart';
import 'package:flutter_template/features/navigation/app_route_paths.dart';

part 'app_router.gr.dart';

Expand All @@ -19,12 +19,12 @@ class AppRouter extends _$AppRouter {
@override
List<AutoRoute> get routes => [
AutoRoute(
page: DebugRouter.page,
page: DebugRoute.page,
path: AppRoutePaths.debugPath,
initial: true,
),
AutoRoute(
page: UiKitRouter.page,
page: UiKitRoute.page,
path: AppRoutePaths.uiKitPath,
),
AutoRoute(
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 0 additions & 26 deletions lib/features/navigation/domain/entity/app_route_names.dart

This file was deleted.

0 comments on commit f5bae85

Please sign in to comment.