-
-
Notifications
You must be signed in to change notification settings - Fork 45
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
Generalize the code so that app code can be used for many releases/cities #293
Comments
See https://github.com/trufi-association/trufi-app/compare/accra First step would be to pull the differing hard coded constants to a properties file, then build flavors could be created - one for each city. But of course this doesn't scale very well to lots and lots of cities. Also it might make sense to do this on country level, not on city level. |
Plan is to build a "core" flutter package that can then be included by concrete implementations that only provide assets and configuration. This is something we hope to have more progress on over the upcoming weeks. |
I will start with the |
@RaimundWege |
" The trufi_core package will contain " (I understand you meant trufi_app here ?) |
@amenk yesterday I've spent some time to maintain the trufi app e.g. AndroidX migration and dependency updates. In this week I will start to transform the app to a flutter plugin with an example app. I hope I will finish this task before our hackathon starts but no guarantee. To get the latest changes I will do that in a new branch until its done. |
I've a first compiling version of the new trufi_core plugin. You can follow the progress in #338. |
Nice! I manged to compile as well, but it cannot load assets/images/from_marker.svg - but you probably know this already. I started drafting some points that seem to be necessary to build upton trufi-core (will there be something like trufi-template as well?) https://gist.github.com/amenk/d7524a717140102eda65f434e2fa1b4e |
@RaimundWege I think it's better to discuss trufi-association/trotro-app#4 here? |
There is a trufi icon in the "Read our Blog" menu in the app menu. How can this be customized in a app using trufi_core? |
@amenk good point. We should pass an icon into our core widget. |
Regarding we have now the core in place and separated I believe this Issue can be closed, feel free to open it again if something is missing. |
Until now, we branched for Accra.
It is however to have one core of code for a generic app and the differences between Accra and Cochabamba and further cities are configured in specific files.
The text was updated successfully, but these errors were encountered: