Skip to content
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

Release 1 #19

Merged
merged 45 commits into from
Sep 14, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
0fbe4c9
Setup SonarCloud integration
guilherme1guy Sep 5, 2021
9a820db
Add Release pipeline
guilherme1guy Sep 5, 2021
d614d99
ajusting reanimated
gdeusdara Sep 7, 2021
a24d9ac
[#3] chore - add map dependency
gdeusdara Sep 7, 2021
ede30de
[#3] feat - creating get location function
gdeusdara Sep 7, 2021
2af001c
[#3] feat - creating map screen
gdeusdara Sep 7, 2021
5face7b
Merge pull request #7 from fga-eps-mds/feature/3-view-map
gdeusdara Sep 7, 2021
33a699f
[#8] docs - add contribution guide
aleronupe Sep 8, 2021
4342960
Merge pull request #9 from fga-eps-mds/support/improve-readme-documen…
ebmm01 Sep 8, 2021
b738100
[#5] feat - creating fabs
gdeusdara Sep 8, 2021
b1a6a66
[#5] feat - creating marker modal
gdeusdara Sep 8, 2021
811ae9f
[#5] feat - adding animations
gdeusdara Sep 8, 2021
f28f5fd
[#5] feat - opening creation modal
gdeusdara Sep 8, 2021
360e9e5
[#5] feat - ajusting create marker modal
gdeusdara Sep 8, 2021
2648e20
[#5] feat - ajust inputs on marker creation
gdeusdara Sep 9, 2021
40e3731
[#5] feat - ajust inputs and eslint
gdeusdara Sep 9, 2021
741fc25
[#5] feat - ajust input props
gdeusdara Sep 9, 2021
acb9447
[#5] feat - create marker store
gdeusdara Sep 9, 2021
60c48fc
[#5] fix - android build
gdeusdara Sep 10, 2021
5208c07
[#5] feat - integrate with backend
gdeusdara Sep 10, 2021
3f73631
Merge pull request #10 from fga-eps-mds/feature/5-mark-points
guilherme1guy Sep 10, 2021
587495c
Merge pull request #6 from fga-eps-mds/support/configure-sonar
gdeusdara Sep 10, 2021
d1538d1
[#14] feat - initial screen
gdeusdara Sep 10, 2021
20c26b5
Merge pull request #15 from fga-eps-mds/feature/14-demo-mode
guilherme1guy Sep 10, 2021
dc4d964
[#11] feat- config android firebase
Sep 11, 2021
345bb50
[#11] fix eslint problems
Mikhaelle Sep 11, 2021
f7e2c29
[#11] fix eslint problems
Mikhaelle Sep 11, 2021
92e7f72
[#11] fix eslint problems
Mikhaelle Sep 11, 2021
c93d891
[#11] add some style and firebase sing-in
Mikhaelle Sep 12, 2021
0d622e0
[#11] add some style and firebase sing-in
Mikhaelle Sep 12, 2021
c4eca47
[#11] auth persist
Mikhaelle Sep 12, 2021
8e0663c
[#11] change login page top bar
markinlimac Sep 12, 2021
6577e1e
Revert "[#11] auth persist"
markinlimac Sep 12, 2021
88a2162
[#11] change login page top bar
markinlimac Sep 12, 2021
f3ad547
[#11] fix login page style
markinlimac Sep 12, 2021
91b2343
[#13] chore - installing react native image picker
gdeusdara Sep 13, 2021
182d80f
[#13] feat - show options for pick images
gdeusdara Sep 13, 2021
3fc4e4e
[#13] feat - show marker details
gdeusdara Sep 13, 2021
7ca4c86
[#13] chore - eslint
gdeusdara Sep 13, 2021
8a8b492
[#13] feat - redirecting to marker in the map
gdeusdara Sep 13, 2021
a30fd46
[#13] fix - fix scroll images on android
gdeusdara Sep 14, 2021
c1815eb
Merge pull request #16 from fga-eps-mds/feature/11-firebase-login
Mikhaelle Sep 14, 2021
87c02f5
Merge pull request #17 from fga-eps-mds/feature/13-image-upload
ebmm01 Sep 14, 2021
3e7a923
[#2] chore - create CD/CI workflow
gdeusdara Sep 14, 2021
5b83ee4
Merge pull request #18 from fga-eps-mds/feature/2-cd/ci
gdeusdara Sep 14, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 56 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: CD Production

on:
push:
branches:
- main

jobs:
# test:
# name: CI Tests
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v2
# - name: Install Modules
# run: yarn install --frozen-lockfile
# - name: Run Tests
# run: yarn test

build:
name: CD Build Android
# needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build container
run: |
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
yarn install --frozen-lockfile
cd ./android
./gradlew clean
./gradlew assembleRelease --warning-mode=all
- uses: actions/upload-artifact@master
with:
name: apk
path: ./android/app/build/outputs/apk/release/app-release.apk

tagged-release:
name: "Tagged Release"
needs: build
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v2
- name: Downlaod APK File
uses: actions/download-artifact@master
with:
name: apk
path: ./
- name: Add Github Release
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "latest"
prerelease: false
files: |
*.apk
LICENSE
28 changes: 28 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# name: CI - Lint, Test, Build

# on:
# push:
# pull_request:

# jobs:
# lint:
# name: CI Lint
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v2
# - name: Install Modules
# run: npm ci
# - name: ESLint
# env:
# CI: true
# run: npm run lint

# test:
# name: CI Tests
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v2
# - name: Install Modules
# run: npm ci
# - name: Run Tests
# run: npm run test
29 changes: 29 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: release
on:
push:
tags:
- "v*"

jobs:
test:
runs-on: ubuntu-latest

steps:
- name: Get current date
id: date
run: echo "::set-output name=date::$(date +'%d-%m-%Y')"

- name: Copy repository
uses: actions/checkout@v2
- run: mkdir -p /tmp/sonar/
- run: curl --location --request POST 'https://sonarcloud.io/api/measures/component_tree?component=fga-eps-mds_2021.1-Cartografia-social-front&metricKeys=files,functions,complexity,comment_lines_density,duplicated_lines_density,coverage,ncloc,security_rating,tests,test_success_density,test_execution_time,reliability_rating&ps=500' > /tmp/sonar/fga-eps-mds-2021_1-Cartografia-social-front-${{ steps.date.outputs.date }}.json
- uses: actions/upload-artifact@v2
with:
name: fga-eps-mds-2021_1-Cartografia-social-front-${{ steps.date.outputs.date }}.json
path: /tmp/sonar/fga-eps-mds-2021_1-Cartografia-social-front-${{ steps.date.outputs.date }}.json
- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: true
files: |
/tmp/sonar/fga-eps-mds-2021_1-Cartografia-social-front-${{ steps.date.outputs.date }}.json
16 changes: 16 additions & 0 deletions .github/workflows/sonar_cloud.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
on: [push, pull_request]

name: Sonar Cloud
jobs:
sonarcloud:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
# Disabling shallow clone is recommended for improving relevancy of reporting
fetch-depth: 0
- name: SonarCloud Scan
uses: sonarsource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,6 @@ buck-out/

# CocoaPods
/ios/Pods/

# Tests
/coverage
128 changes: 128 additions & 0 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,128 @@
# Contributor Covenant Code of Conduct

## Our Pledge

We as members, contributors, and leaders pledge to make participation in our
community a harassment-free experience for everyone, regardless of age, body
size, visible or invisible disability, ethnicity, sex characteristics, gender
identity and expression, level of experience, education, socio-economic status,
nationality, personal appearance, race, religion, or sexual identity
and orientation.

We pledge to act and interact in ways that contribute to an open, welcoming,
diverse, inclusive, and healthy community.

## Our Standards

Examples of behavior that contributes to a positive environment for our
community include:

* Demonstrating empathy and kindness toward other people
* Being respectful of differing opinions, viewpoints, and experiences
* Giving and gracefully accepting constructive feedback
* Accepting responsibility and apologizing to those affected by our mistakes,
and learning from the experience
* Focusing on what is best not just for us as individuals, but for the
overall community

Examples of unacceptable behavior include:

* The use of sexualized language or imagery, and sexual attention or
advances of any kind
* Trolling, insulting or derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or email
address, without their explicit permission
* Other conduct which could reasonably be considered inappropriate in a
professional setting

## Enforcement Responsibilities

Community leaders are responsible for clarifying and enforcing our standards of
acceptable behavior and will take appropriate and fair corrective action in
response to any behavior that they deem inappropriate, threatening, offensive,
or harmful.

Community leaders have the right and responsibility to remove, edit, or reject
comments, commits, code, wiki edits, issues, and other contributions that are
not aligned to this Code of Conduct, and will communicate reasons for moderation
decisions when appropriate.

## Scope

This Code of Conduct applies within all community spaces, and also applies when
an individual is officially representing the community in public spaces.
Examples of representing our community include using an official e-mail address,
posting via an official social media account, or acting as an appointed
representative at an online or offline event.

## Enforcement

Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported to the community leaders responsible for enforcement at
.
All complaints will be reviewed and investigated promptly and fairly.

All community leaders are obligated to respect the privacy and security of the
reporter of any incident.

## Enforcement Guidelines

Community leaders will follow these Community Impact Guidelines in determining
the consequences for any action they deem in violation of this Code of Conduct:

### 1. Correction

**Community Impact**: Use of inappropriate language or other behavior deemed
unprofessional or unwelcome in the community.

**Consequence**: A private, written warning from community leaders, providing
clarity around the nature of the violation and an explanation of why the
behavior was inappropriate. A public apology may be requested.

### 2. Warning

**Community Impact**: A violation through a single incident or series
of actions.

**Consequence**: A warning with consequences for continued behavior. No
interaction with the people involved, including unsolicited interaction with
those enforcing the Code of Conduct, for a specified period of time. This
includes avoiding interactions in community spaces as well as external channels
like social media. Violating these terms may lead to a temporary or
permanent ban.

### 3. Temporary Ban

**Community Impact**: A serious violation of community standards, including
sustained inappropriate behavior.

**Consequence**: A temporary ban from any sort of interaction or public
communication with the community for a specified period of time. No public or
private interaction with the people involved, including unsolicited interaction
with those enforcing the Code of Conduct, is allowed during this period.
Violating these terms may lead to a permanent ban.

### 4. Permanent Ban

**Community Impact**: Demonstrating a pattern of violation of community
standards, including sustained inappropriate behavior, harassment of an
individual, or aggression toward or disparagement of classes of individuals.

**Consequence**: A permanent ban from any sort of public interaction within
the community.

## Attribution

This Code of Conduct is adapted from the [Contributor Covenant][homepage],
version 2.0, available at
https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.

Community Impact Guidelines were inspired by [Mozilla's code of conduct
enforcement ladder](https://github.com/mozilla/diversity).

[homepage]: https://www.contributor-covenant.org

For answers to common questions about this code of conduct, see the FAQ at
https://www.contributor-covenant.org/faq. Translations are available at
https://www.contributor-covenant.org/translations.
Loading