-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Teste/danilo costa santos #15
Open
DanCostaSF
wants to merge
14
commits into
aikodigital:master
Choose a base branch
from
DanCostaSF:teste/danilo-costa-santos
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Teste/danilo costa santos #15
DanCostaSF
wants to merge
14
commits into
aikodigital:master
from
DanCostaSF:teste/danilo-costa-santos
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…ltera vm da tela de previsão para reutiliza-la em outra tela
…a para paradas, e mapeando itens p/ passar entre telas
… usuario perca ele de vista
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Documentação
Foi utilizada a arquitetura MVVM + Clean Architecture no deselvolvimento do app, com o seguinte fluxo:
![image](https://private-user-images.githubusercontent.com/101148438/406777141-b3540aa3-4c04-4966-9946-a5f840261a9f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3Lmd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M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxMFQwODQ5MDhaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT05YmUxNTJhZmRiM2E4NDE0ZDVmZGY1NWRmYmU0NTZjZTliY2I0YmVjM2VkYTE1N2M1ZWU1MzY0YjBiYjNhMTA5JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.5iPxvfTr0BO3GR4XpiKpINRMsDEBzFi8EjvDsy5zFkk)
Utilizei somente um repository para centralizar todas as chamadas do service.
![image](https://private-user-images.githubusercontent.com/101148438/406778336-bd5ece02-318b-4914-92b3-94b03b1a4fbc.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxNzc2NDgsIm5iZiI6MTczOTE3NzM0OCwicGF0aCI6Ii8xMDExNDg0MzgvNDA2Nzc4MzM2LWJkNWVjZTAyLTMxOGItNDkxNC05MmIzLTk0YjAzYjFhNGZiYy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjEwJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxMFQwODQ5MDhaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT04ZjEyNDA0ZjNmNWJlMTdjMTc3YmRlYTljNWIxMWNlODgxZjZhNTBjNDdlMzIyZTRkZDQwOWU1OWE4NDJlMDRjJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.dxDmT60sLAvP_jAALsssHzLvHU8VHYqOWVG8V2mHFWA)
![image](https://private-user-images.githubusercontent.com/101148438/406778367-c5076910-20e8-41f4-8cee-20ed39bf409f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxNzc2NDgsIm5iZiI6MTczOTE3NzM0OCwicGF0aCI6Ii8xMDExNDg0MzgvNDA2Nzc4MzY3LWM1MDc2OTEwLTIwZTgtNDFmNC04Y2VlLTIwZWQzOWJmNDA5Zi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjEwJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxMFQwODQ5MDhaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1kZGM5OWJlZWY4NzUzODExYjJmYmFhMjUxM2Q5YTRkOWM0N2MwZDkxYzg5YWM1OTE1YmZiZjcwNDhhODY2MmI3JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.4Zd1YhsEiIfY8pXm42Hj-0iAwdP39CqLDBYAxXLITH0)
Criei uma usecase para cada tela/funcionalidade, para separar as responsabilidades e as regras.
Criei mappers na camada de domain para facilitar a montagem das telas posteriormente, e não ter que ficar validando valores nulos. Além de fazer os itens chegarem "mastigados" na screen.
Utilizei flow para manipular os dados e enviar os estados para a screen de forma mais dinâmica.
As tecnologias utilizadas foram:
O app inicia no mapa. Você pode ver quais ônibus estão em volta do local destinado, coloquei um limitador para quando você diminuir o zoom do mapa (O app agrupa os ônibus para diminuir o Lag).
Tive que adicionar um algorítimo que verifica o tamanho da tela e agrupa os ônibus caso o usuário diminua o zoom.
Ao pesquisar na aba "Linhas", precisei controlar o job da requisição na pesquisa, quando continuasse escrevendo ele iniciava outra chamada, e sobrecarregava caso ficasse repetindo indefinidamente.
Ao pesquisar você consegue selecionar a linha, e irá mostrar todas as paradas da linha escolhida.
Ao selecionar uma parada, você abre uma tela de "Previsão", que mostra a previsão de chegada para todos os ônibus que estão em percurso que ainda não passaram na parada.
Na mesma tela de previsão você consegue clicar nos ônibus que estão em percurso, e verificar em tempo real onde estão os mesmos.
Também consegue ver onde fica a parada selecionada no mapa ao clicar na parada em cima.
Também tive um problema relacionado a TabBar. mesmo após eu mudar de aba e navegar entre as screens, a screen do mapa continuava chamando a api, levando a dar timeout quando ficava muito tempo sem abrir o mapa. Resolvi controlando os jobs de corrotinas manualmente .
![image](https://private-user-images.githubusercontent.com/101148438/406778059-7ec5e6e8-dee0-4cb3-9e0d-cb353f28a39c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxNzc2NDgsIm5iZiI6MTczOTE3NzM0OCwicGF0aCI6Ii8xMDExNDg0MzgvNDA2Nzc4MDU5LTdlYzVlNmU4LWRlZTAtNGNiMy05ZTBkLWNiMzUzZjI4YTM5Yy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjEwJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxMFQwODQ5MDhaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT03M2YyMDY0NDNhMGI3MGI5Y2NlMzRmMThmYWM2OWM5MTZiMGVkNTM5YTRmMzEyMjY4ZDgwZGY0ODRjY2I1NTY5JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.NtxwPLHyKSC4eHSCDbzcEO4djGX8QH29JxoFq7AhWqA)
![image](https://private-user-images.githubusercontent.com/101148438/406778107-4dec6164-e6f2-470b-90cc-cc00054d77a7.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxNzc2NDgsIm5iZiI6MTczOTE3NzM0OCwicGF0aCI6Ii8xMDExNDg0MzgvNDA2Nzc4MTA3LTRkZWM2MTY0LWU2ZjItNDcwYi05MGNjLWNjMDAwNTRkNzdhNy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjEwJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxMFQwODQ5MDhaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT03NGFiZGE0ZTFhNmViYjI5OTBhM2I0ZWMwNTllNjhlNzc2YjgzYWUyZmQ4NWEyZWE2MmNmMmExYjdjOTQwOTJhJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.W0Q9vIts2YgBwrIogPv4vrJefp53Ft495e5gTcrC11s)
Como fazer o app funcionar
App overview
video-aikoo.mp4