-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'development' into ft/setup-deeplinks
- Loading branch information
Showing
113 changed files
with
3,181 additions
and
1,299 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,41 @@ | ||
# collaction_app | ||
|
||
Welcome to [CollAction](https://collaction.org), the first CrowdActing platform in the world! | ||
|
||
The CollAction app is written in Flutter and fully opensource. Would you like to contribute to this project? Send an email to [email protected] and we'll get in touch :) | ||
<a href="https://collaction.org/"> | ||
<h1 align="center"> | ||
<picture> | ||
<img alt="Flutter" src="https://collaction.org/github/collaction-logo-large.png"> | ||
</picture> | ||
</h1> | ||
</a> | ||
|
||
**CollAction cross-platform mobile application (iOS and Android)** | ||
|
||
[![collaction](https://collaction.org/github/collaction-website-badge.svg)](https://collaction.org) | ||
[![codecov](https://codecov.io/gh/CollActionteam/collaction_app/branch/development/graph/badge.svg?token=UVTCEGI5O1)](https://codecov.io/gh/CollActionteam/collaction_app) | ||
[![workflow](https://github.com/CollActionTeam/collaction_app/actions/workflows/ci.yml/badge.svg?branch=development)](https://github.com/CollActionteam/collaction_app/actions) | ||
|
||
## Contributing | ||
|
||
All contributions are welcome, whether it is filing a bug report, filing a feature request, opening a pull request, or any other contribution. | ||
|
||
We have a couple of documents which will guide you towards a good first contribution, our contributing documentation walks you through all of our conventions that we require you to uphold when contributing. | ||
|
||
- [Contributing to CollAction](https://github.com/CollActionteam/collaction_app/blob/development/docs/CONTRIBUTING.md) | ||
|
||
Additionally, if you want to do development, we have written a document that will help you setup your local environment. | ||
|
||
- [Getting Started](https://github.com/CollActionteam/collaction_app/blob/development/docs/GETTING_STARTED.md) | ||
|
||
## Community | ||
|
||
We are working on building an extensive community feature that will help us grow and bond, meanwhile you can checkout our socials, follow us, and share your feedback. | ||
|
||
[![Instagram](https://img.shields.io/badge/Instagram-833AB4?style=for-the-badge&logo=instagram&logoColor=white)](https://www.instagram.com/collaction_org/) | ||
[![Twitter](https://img.shields.io/badge/Twitter-1DA1F2?style=for-the-badge&logo=twitter&logoColor=white)](https://twitter.com/CollAction_org) | ||
[![LinkedIn](https://img.shields.io/badge/LinkedIn-0077B5?style=for-the-badge&logo=linkedin&logoColor=white)](https://www.linkedin.com/company/stichting-collaction) | ||
[![CollAction Website](https://img.shields.io/badge/website-000000?style=for-the-badge&logo=About.me&logoColor=white)](https://collaction.org) | ||
|
||
## Download | ||
|
||
The CollAction application is readily available and free to use from the Apple AppStore and Google Play. | ||
|
||
[![AppStore - CollAction](https://img.shields.io/badge/App_Store-0D96F6?style=for-the-badge&logo=app-store&logoColor=white)](https://apps.apple.com/us/app/collaction-power-to-the-crowd/id1597643827) | ||
[![Google Play - CollAction](https://img.shields.io/badge/Google_Play-414141?style=for-the-badge&logo=google-play&logoColor=white)](https://play.google.com/store/apps/details?id=org.collaction.collaction_app) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
# Start contributing | ||
|
||
We are happy to hear that you want to contribute, below you will find all steps and information that will get you from having a cloned repository to a working development environment. | ||
|
||
Included below are some tips that will make your development easier when working with our application. | ||
|
||
## Getting started with Flutter | ||
|
||
A few resources to get you started if this is your first Flutter project: | ||
|
||
- [Lab: Write your first Flutter app](https://flutter.dev/docs/get-started/codelab) | ||
- [Cookbook: Useful Flutter samples](https://flutter.dev/docs/cookbook) | ||
|
||
For help getting started with Flutter, view our | ||
[online documentation](https://flutter.dev/docs), which offers tutorials, samples, guidance on | ||
mobile development, and a full API reference. | ||
|
||
## Code generation | ||
|
||
In order to generate code related to `freezed`, `injectable`, and `json_serializable` choose a | ||
command to run when you need to build or re-build these files: | ||
|
||
_The watch command keeps re-building generated files. It is generally not recommended to use._ | ||
|
||
```bash | ||
flutter pub run build_runner watch -d | ||
``` | ||
|
||
_If you want to build generated files once run this command, it's preferred._ | ||
|
||
```bash | ||
flutter pub run build_runner build -d | ||
``` | ||
|
||
Note: The argument `-d` is shorthand for `--delete-conflicting-outputs` introduced in build_runner 2.3.0 | ||
|
||
## Immutable app settings | ||
|
||
We use an environment file called `.env` to define secrets used in the application. These secrets are bundled with the application at build-time. | ||
|
||
Make a copy of the `.env.example` file, name it `.env` and fill out the missing secrets. | ||
|
||
If you are missing secrets required for the application to run, reach out to a team member. | ||
|
||
## Firebase configuration | ||
|
||
In order to use features provided by Firebase, download the corresponding `google-services.json` | ||
and `GoogleService-Info.plist` from the Firebase console project, and add them to the project files. | ||
|
||
Phone authentication has to be enabled in the Firebase console. | ||
|
||
You can find or add phone numbers to use for testing in the Firebase Console by navigating to | ||
Authentication > Sign-in method > Sign in providers > Phone > Phone numbers for testing | ||
|
||
## Generating open-source Licenses | ||
|
||
To generate the OpenSource licenses dart file via [flutter_oss_licenses](https://pub.dev/packages/flutter_oss_licenses), run the command `flutter pub run flutter_oss_licenses:generate.dart lib/presentation/licenses/oss_licenses.dart` from the project root. | ||
|
||
> Note: Run `flutter format .` once [oss_licenses.dart](../lib/presentation/licenses/oss_licenses.dart) is created. | ||
## Tests and test coverage | ||
|
||
We use [codecov](https://codecov.io/gh/CollActionteam/collaction_app) to make it visible in PR's what the test coverage is, and what changes to the coverage has been made. | ||
|
||
If you are using [Visual Studio Code](https://code.visualstudio.com/) you can install these two extensions: | ||
|
||
- [Flutter Coverage](https://marketplace.visualstudio.com/items?itemName=Flutterando.flutter-coverage) | ||
- [Coverage Gutters](https://marketplace.visualstudio.com/items?itemName=ryanluker.vscode-coverage-gutters) | ||
|
||
Now when you run `flutter test --coverage`, you will be able to see the test coverage in the TESTING tab, under "FLUTTER COVERAGE". | ||
|
||
Additionally, if you don't want to run `flutter test --coverage` to generate the lcov test coverage files manually, which Coverage Gutters uses to show you line-for-line coverage in files, and Flutter Coverage uses to show you test coverage percentages, you can change your settings. | ||
|
||
Open up settings and search for `Flutter Test Additional Args` and add `--coverage`. Now when you run tests from VSCode in the TESTING tab, it will run it with the `--coverage` argument, and the Flutter Coverage will update accordingly. | ||
|
||
Using Coverage Gutters, remember to hit "Watch" on the blue status bar on VSCode. | ||
|
||
## Git hooks setup | ||
|
||
We have set up Git hooks to prevent extra whitespace and other possible mistakes before pushing the code to your branch. Run the below command in the project root directory to copy the pre-push hooks to your local `.git` directory. | ||
|
||
```bash | ||
cp ./hooks/* ./.git/hooks/ | ||
``` |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.