Skip to content

chore: autorouter migrate to v6#72

Closed
PeeyushDas wants to merge 6 commits into
Monday-Morning:mainfrom
PeeyushDas:branch1
Closed

chore: autorouter migrate to v6#72
PeeyushDas wants to merge 6 commits into
Monday-Morning:mainfrom
PeeyushDas:branch1

Conversation

@PeeyushDas
Copy link
Copy Markdown

@PeeyushDas PeeyushDas commented Sep 8, 2023

Your checklist for this pull request

🚨Please review the guidelines for contributing to this repository.

  • Make sure you are requesting to pull a topic/feature/bugfix branch (right side). Don't request your default branch!
  • Make sure you are making a pull request against the default branch (left side). Also you should start your branch off default branch.
  • Check the commit's or even all commits' message styles matches our requested structure.
  • Check your code additions will fail neither code linting checks nor unit test.
  • I have added necessary documentation (if appropriate)

Linked Issues

Fixes

Description

Please describe your pull request.

❤️Thank you!

Post merge checklist

  • Follow steps from the guidelines for contributing to this repository.
  • If you are a new contributor, ping in the thread and one of the maintainers will add you to all-contributors list.

@PeeyushDas
Copy link
Copy Markdown
Author

@120EE0692

@PeeyushDas PeeyushDas changed the title chore: Autorouter migrate to v6 chore: autorouter migrate to v6 Sep 8, 2023
@120EE0692 120EE0692 requested a review from rutajdash September 20, 2023 05:10
Copy link
Copy Markdown
Member

@rutajdash rutajdash left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. Are we migrating to Material 3? If yes, why? If not, why was the design system changed?

  2. Why is the coming soon page renamed to the expression page?

signingConfigs {
release {
storeFile file(keystoreProperties['storeFile'])
storeFile file("key.jks")
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why was this change committed?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rutajdash
Sir, when i try to run the app with
storeFile file(keystoreProperties['storeFile'])

The following error pops up in the terminal
Screenshot from 2023-09-20 23-18-46
Launching lib/main.dart on SM E225F in debug mode...

FAILURE: Build failed with an exception.

  • Where:
    Build file '/home/peeyushdas/Desktop/MONDAY MORNING 2023/project-pegasus/app/android/app/build.gradle' line: 85

  • What went wrong:
    A problem occurred evaluating project ':app'.

path may not be null or empty string. path='null'

And then I searched for the issue on stackoverflow, and I got this solution:-

link:- https://stackoverflow.com/questions/54457245/a-problem-occurred-evaluating-project-app-path-may-not-be-null-or-empty-st

Screenshot from 2023-09-20 23-18-15

Copy link
Copy Markdown
Member

@rutajdash rutajdash Sep 20, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, we use a keystore properties file for production builds along with other credential files, which for obvious reasons is not shared to all developers.
For development, making this change is acceptable but it should not be committed but only kept on your local system.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok sir.

dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation 'com.google.android.material:material:1.7.0'
implementation 'com.google.android.material:material:1.6.1'
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why the downgrade?

Comment thread app/android/build.gradle

dependencies {
classpath 'com.android.tools.build:gradle:7.1.2'
classpath 'com.android.tools.build:gradle:7.0.4'
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why the downgrade?

Comment thread app/lib/src/app.dart
import 'package:mondaymorning/src/services/router/mm_router.dart';
import 'package:mondaymorning/src/services/themes/index.dart';
import 'package:mondaymorning/src/store/states/app_config/app_config_provider.dart';
import 'services/router/mm_router.dart';
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
import 'services/router/mm_router.dart';
import 'package:mondaymorning/src/services/router/mm_router.dart';

Avoid using relative imports.

import 'package:mondaymorning/src/ui/screens/full_error_screen.dart';
import 'package:mondaymorning/src/ui/screens/full_loading_screen.dart';

@RoutePage<dynamic>(name: 'ArticleRoute')
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why dynamic? This page doesn't return any data so it should be void instead.

Suggested change
@RoutePage<dynamic>(name: 'ArticleRoute')
@RoutePage<void>(name: 'ArticleRoute')

import 'package:mondaymorning/src/ui/components/article/article_carousel.dart';
import 'package:mondaymorning/src/ui/components/category/sub_category_section.dart';

@RoutePage<dynamic>(name: 'AllCategoryRoute')
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
@RoutePage<dynamic>(name: 'AllCategoryRoute')
@RoutePage<void>(name: 'AllCategoryRoute')

import 'package:mondaymorning/src/ui/components/home/search_app_bar.dart';
import 'package:mondaymorning/src/services/router/mm_router.dart';

@RoutePage<dynamic>(name: 'HomeRoute')
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
@RoutePage<dynamic>(name: 'HomeRoute')
@RoutePage<void>(name: 'HomeRoute')

}

/// More Screen of the app.
@RoutePage<dynamic>(name: 'MoreRoute')
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
@RoutePage<dynamic>(name: 'MoreRoute')
@RoutePage<void>(name: 'MoreRoute')

import 'package:mondaymorning/src/ui/components/article/article_carousel.dart';
import 'package:mondaymorning/src/ui/components/article/small_article_card.dart';

@RoutePage<dynamic>(name: 'SubCategoryRoute')
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
@RoutePage<dynamic>(name: 'SubCategoryRoute')
@RoutePage<void>(name: 'SubCategoryRoute')

import 'package:mondaymorning/src/ui/components/terms/terms_content.dart';
import 'package:mondaymorning/src/services/router/mm_router.dart';

@RoutePage<dynamic>(name: 'TermsRoute')
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
@RoutePage<dynamic>(name: 'TermsRoute')
@RoutePage<void>(name: 'TermsRoute')

@sambit-sankalp
Copy link
Copy Markdown
Contributor

sambit-sankalp commented Sep 25, 2023

We need to make another PR as there is a change in the visibility of the repository.
Link to other PR - #74

We can close this PR and start reviewing the other.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants