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

mudanças em GCES 2018.2 #211

Open
wants to merge 81 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
81 commits
Select commit Hold shift + click to select a range
cfcb41b
Fixes build in docker environment
andre-filho Sep 11, 2018
9787dc7
Adding script to set environment variables.
lucaaas Sep 11, 2018
f9aaa78
Fixes typo at contributing.md
andre-filho Sep 20, 2018
b13a876
Removes files that was in repo but should be ignored
andre-filho Sep 28, 2018
6396926
Added commiter, docker troubleshooting and modified readme and variab…
andre-filho Sep 28, 2018
56c6853
Added forgotten chmod to script file at dockerfile
andre-filho Sep 28, 2018
1259c45
Fixes the variables script call
andre-filho Oct 3, 2018
e711951
Fixes the variables script call
andre-filho Oct 3, 2018
6fa3002
Added comments into variables.sh
andre-filho Oct 4, 2018
93f8ff7
Merge branch 'docker-build' of github.com:gces-2018-merenda-mais/2017…
andre-filho Oct 9, 2018
2891231
Added new icons to all platforms and editorconfig file
andre-filho Oct 9, 2018
826b9d5
Added maps depedencies and comments at schedulemeeting
andre-filho Oct 15, 2018
9c0d3d9
Refactored cpf validation to be in component's inside.
lucaaas Oct 17, 2018
734e40f
Refactored name validation to be in component's inside.
hugo-asb Oct 18, 2018
0cd1f65
Refactored email validation to be in component's inside.
lucaaas Oct 18, 2018
59fb7a9
Merge branch '166#validate_fields' of https://github.com/gces-2018-me…
hugo-asb Oct 18, 2018
7a7ed54
Updating name validation.
hugo-asb Oct 18, 2018
c0e10bd
Refactored dropdown validation to be in component's inside.
lucaaas Oct 18, 2018
3c3abb3
Merge branch '166#validate_fields' of https://github.com/gces-2018-me…
lucaaas Oct 18, 2018
6974d70
Refactored phone validation to be in component's inside.
hugo-asb Oct 18, 2018
2a93038
Refactored password validation to be in component's inside (not ready…
lucaaas Oct 20, 2018
a2955d4
Merge branch '166#validate_fields' of github.com:gces-2018-merenda-ma…
lucaaas Oct 20, 2018
1244092
Correcting bug on login email field.
hugo-asb Oct 24, 2018
7d0af82
Organized custom exception classes into separate folder and file stru…
andre-filho Nov 4, 2018
bbc7665
Organized and renamed custom error handlers
andre-filho Nov 4, 2018
c0dc975
Creating Register Style file
gustavo2795 Nov 6, 2018
1e54e4b
Creating Complaint style file
gustavo2795 Nov 6, 2018
9012d5f
Creating InitialScreen style file
gustavo2795 Nov 6, 2018
b96f2d9
Creating LoginScreen style file
gustavo2795 Nov 6, 2018
9988e51
Creating MainScreen style file and correcting names of files
gustavo2795 Nov 6, 2018
1108973
Creating MeetingInvites style file
gustavo2795 Nov 6, 2018
ff1d7a6
Creating PrincipalNotifications style file
gustavo2795 Nov 6, 2018
c42390b
Creating SchoolInfoScreen style file
gustavo2795 Nov 6, 2018
e2f484d
Creating SearchSchool style file
gustavo2795 Nov 6, 2018
474f7b0
Creating UpdateInfoScreen style file and removing unusable imports
gustavo2795 Nov 6, 2018
f4ae664
Creating VisitInvites styles file
gustavo2795 Nov 6, 2018
60fb0ed
Creating LegislationStyles folder and LawNumber11947 style
gustavo2795 Nov 6, 2018
2a4c8e6
Creating LawNumber12982 style file
gustavo2795 Nov 6, 2018
51f449a
Creating MainLegislationScreen style file
gustavo2795 Nov 6, 2018
11dc439
Creating Resolution1 style file
gustavo2795 Nov 6, 2018
ce26fd5
Creating Resolution26Screen style file
gustavo2795 Nov 6, 2018
c12afb1
Creating ManageConselors style folder and ManageAcceptedRegisters sty…
gustavo2795 Nov 6, 2018
3193c83
Creating ManageNotAcceptedRegisters style file
gustavo2795 Nov 6, 2018
68bb783
Creating PrincipalManageRegister style file
gustavo2795 Nov 6, 2018
709994c
Creating MainReportsScreen style file
gustavo2795 Nov 6, 2018
7b2f22c
Creating ScheduleMeeting style file
gustavo2795 Nov 6, 2018
95ec0fe
Creating StartInspectionFolder and PrincipalStartInspection style file
gustavo2795 Nov 6, 2018
894e4f4
Creating StartAlreadyInspectionedInspection style file
gustavo2795 Nov 6, 2018
1a1757e
Creating StartExpiredInspection style file
gustavo2795 Nov 6, 2018
f173d4f
Creating StartPendingINspection style file
gustavo2795 Nov 6, 2018
2934315
Merge pull request #6 from gces-2018-merenda-mais/clean-code-gustavo
gustavo2795 Nov 8, 2018
cee6d2e
Merge pull request #5 from gces-2018-merenda-mais/clean-code-andre
gustavo2795 Nov 8, 2018
feadf68
Merge pull request #8 from gces-2018-merenda-mais/fix-contributing
gustavo2795 Nov 8, 2018
685f2db
Merge branch 'development' into 166#validate_fields
gustavo2795 Nov 8, 2018
f78c16e
Merge pull request #7 from gces-2018-merenda-mais/166#validate_fields
gustavo2795 Nov 8, 2018
c32c021
Refactoring the show agents email to a component
andre-filho Nov 16, 2018
6e467d0
Refactoring invitedcounselorsdata field rendering approach
andre-filho Nov 16, 2018
3e20798
Applied created boldtext component to schooldata.js
andre-filho Nov 20, 2018
ec694fc
Creating constant codes file.
hugo-asb Nov 22, 2018
4ed7ff7
Creating constant links file.
hugo-asb Nov 22, 2018
b58f3f4
Creating counselor constants file.
hugo-asb Nov 22, 2018
7295dd0
Creating checklist constants file.
hugo-asb Nov 22, 2018
ec4468d
Creating alerts titles and messages file.
hugo-asb Nov 22, 2018
dc04f00
Creating toast messages constant file.
hugo-asb Nov 22, 2018
46eb15b
Correcting styles export.
hugo-asb Nov 27, 2018
83c66e5
Correcting Login style.
hugo-asb Nov 27, 2018
1ffbdf3
Removes ci deploy
andre-filho Nov 29, 2018
11a15bb
Merge pull request #9 from gces-2018-merenda-mais/hugo
andre-filho Dec 2, 2018
381da0f
Refacts invite agent to use component labeledfield
andre-filho Dec 4, 2018
27a9d77
Fix lint error
andre-filho Dec 4, 2018
ba169a0
Removes ci deploy
andre-filho Dec 4, 2018
ea16f67
Merge branch 'development' into solid-andre
andre-filho Dec 4, 2018
f9cc589
Fixes lint errors at src/actions
andre-filho Dec 4, 2018
ffe7fc7
Merge conflict at src/actions
andre-filho Dec 4, 2018
4074f8b
Fixes lint errors at src/reducers
andre-filho Dec 4, 2018
19bbcbe
Fixes lint errors at src/constants
andre-filho Dec 4, 2018
57af179
Fixes lint errors at src/components
andre-filho Dec 4, 2018
28540c4
Merge conflict at src/components
andre-filho Dec 4, 2018
c41fd3c
Fixes linter errors on src/containers
andre-filho Dec 4, 2018
c3532d8
Fixes more eslint errors
andre-filho Dec 4, 2018
37f0967
Merge pull request #10 from gces-2018-merenda-mais/solid-andre
gustavo2795 Dec 4, 2018
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
9 changes: 1 addition & 8 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,4 @@ jobs:
command: npm run test-with-coverage
- run: ./cc-test-reporter format-coverage -t lcov ./coverage/lcov.info
- run: ./cc-test-reporter upload-coverage -r ${CODE_CLIMATE_TOKEN}
- deploy:
name: Deploy on Expo
command: |
if [ "${CIRCLE_BRANCH}" == "master" ]; then
sudo npm install -g exp
exp login -u ${EXP_EMAIL} -p ${EXP_PASSWORD}
exp publish
fi

12 changes: 12 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# this file makes all editors 'behave' in the same way if they have
# editorconfig plugin enabled

[*]
root = true
charset = utf-8
tab_width = 2
end_of_line = lf
indent_size = 2
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,6 @@ android/build/
android/.gradle/
android/app/build/

android/.gradle/2.14.1/taskArtifacts/
android/.gradle/2.14.1/task/
android/.gradle/*
11 changes: 11 additions & 0 deletions .idea/codeStyles/Project.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions .idea/codeStyles/codeStyleConfig.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@ Ajudas são sempre bem vindas!
<p align = "justify">Caso queira contribuir com o projeto, comece lendo o <a href="https://github.com/fga-gpp-mds/2017.2-MerendaMais#instalação">README</a>, para conhecer um pouco da nossa proposta e para ter um guia básico de como baixar e configurar o ambiente para rodar o projeto. Também é importante ler nosso <a href="https://github.com/fga-gpp-mds/2017.2-MerendaMais/blob/master/CODE_OF_CONDUCT.md">Código de Conduta</a>. Caso tenha mais dúvidas sobre a configuração de ambiente você pode acessar o <a href="https://github.com/fga-gpp-mds/2017.2-MerendaMais/wiki/Configura%C3%A7%C3%A3o-do-Ambiente">Documento de Configuração do Ambiente</a>. </p>
<p align = "justify">Para mais informações sobre os aspectos gerais do projeto, acesse a <a href="https://github.com/fga-gpp-mds/2017.2-MerendaMais/wiki">Wiki</a> e vá navegando pelos documentos que aparecem na <i>Sidebar</i>.</p>

-------------------------

-------------------------

### Enconcontrou um Bug?
### Encontrou um Bug?
* <p align = "justify">Procure se esse bug já não é conhecido e se encontra em uma das nossas <a href="https://github.com/fga-gpp-mds/2017.2-MerendaMais/issues">Issues</a>. Os bugs devem estar marcados com <i>tag (label)</i> <b>bug</b>.</p>
* <p align = "justify">Caso o bug encontrado ainda não esteja em uma das nossas <a href="https://github.com/fga-gpp-mds/2017.2-MerendaMais/issues">Issues</a>, basta criar uma <a href="https://github.com/fga-gpp-mds/2017.2-MerendaMais/issues/new">nova Issue</a>. Sempre coloque um título significativo e uma breve descrição do problema, e, caso seja possível, anexar outras informações relevantes sobre o bug, como trechos de código, execução de um caso de teste, imagens, entre outros.</p>

Expand Down Expand Up @@ -39,3 +38,4 @@ Ajudas são sempre bem vindas!
</ul>
<p align = "justify">Essas foram apenas algumas dicas para que seja possível trabalhar cooperativamente a fim de evoluir o projeto. Além dessas, é importante sempre colocar em prática as boas práticas da comunidade, aplicando e disceminando seus conhecimentos, além de estar sempre aprendendo com o conhecimento das outras pessoas.</p>
<p align = "justify">Obrigado por contribuir! Com certeza sua ajuda será importante!</p>

3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -91,5 +91,6 @@ RUN ./gradlew assembleDebug

WORKDIR /code/

RUN chmod +x variables.sh


CMD "./variables.sh"
33 changes: 23 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

<h1 align="center">Merenda+</h1>

<p align="center"><img src="https://raw.githubusercontent.com/wiki/fga-gpp-mds/2017.2-Grupo3/Imagens/Malu_Merenda.jpg" width="350px"></p>
Expand Down Expand Up @@ -74,29 +75,41 @@

* Para subir o ambiente do projeto:

```Docker-compose up```
```bash
$ sudo docker-compose up
```

* Para parar o docker de rodar:

```Ctrl+c```
```
Ctrl+c
```

<p align="justify">Caso deseje instalar alguma dependência no package.json ou acessar o container via bash, rode os seguintes comandos no terminal, depois de ter seguido o passo anterior:</p>
<p align="justify">Caso deseje instalar alguma dependência no package.json ou acessar o container via bash:</p>

* Para iniciar o container:
* Para iniciar o container (caso você não tenha rodado o comando `docker-compose up`):

```docker start 20172merendamais_merenda_mais_1```
```bash
$ sudo docker-compose run merenda-merenda /bin/bash
```

* Para executar o docker via bash:

```docker exec -it 20172merendamais_merenda_mais_1 bash```
```bash
$ sudo docker-compose exec merenda-merenda /bin/bash
```

Ambos os comandos acima devem exibir o root do container, como demonstrado abaixo:

* Para sair do bash do container:
```
root@<nome da sua máquina>:/code#
```

```Ctrl+d```
Para sair do bash do container e encerrar a sessão, digite `Ctrl+d`.

* Para parar a execução do container:
#### Ajuda com o ambiente docker

```docker stop 20172merendamais_merenda_mais_1```
Caso esteja com algum problema com o ambiente do docker, [aqui](docker_troubleshooting.md) temos algumas soluções para os problemas conhecidos. Se por acaso seu problema não for solucionado, abra uma [issue](https://github.com/fga-eps-mds/2017.2-MerendaMais/issues/new?labels=bug) para que possamos ajudar.


### Principais funcionalidades
Expand Down
18 changes: 8 additions & 10 deletions __tests__/ErrorTreatment.test.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
import * as Toast from '../src/components/Toast';
import {
treatingEditCounselorError,
treatingGetUserProfileInLoginError,
} from '../src/ErrorTreatment';
import { LOGIN_PROFILE_ERROR } from '../src/constants/generalConstants';
import editConselorErrorHandler from '../src/customErrorTreatments/editConselorError';
import getUserProfileInLoginErrorHandler from '../src/customErrorTreatments/userProfileInLoginError';
import { LOGIN_PROFILE_ERROR } from '../src/constants/toastMessages';

const errorNumbers = [401, 403, 404, 500];

describe('Testing treatingEditCounselorError', () => {
describe('Testing editConselorErrorHandler', () => {
beforeAll(() => {
Toast.default.Toast = jest.fn(() => ({}));
});
Expand All @@ -20,16 +18,16 @@ describe('Testing treatingEditCounselorError', () => {
Toast.default.Toast = jest.fn(() => ({}));

errorNumbers.forEach((error) => {
treatingEditCounselorError(error);
editConselorErrorHandler(error);
expect(Toast.default.Toast.mock.calls.length).toBe(1);
Toast.default.Toast.mockClear();
});
});
});

describe('Testing treatingGetUserProfileInLoginError', () => {
describe('Testing getUserProfileInLoginErrorHandler', () => {
it('Testing 404', () => {
treatingGetUserProfileInLoginError(errorNumbers[2]);
getUserProfileInLoginErrorHandler(errorNumbers[2]);
expect(Toast.default.Toast.mock.calls.length).toBe(1);
expect(Toast.default.Toast.mock.calls[0][0]).toBe(LOGIN_PROFILE_ERROR);
});
Expand All @@ -38,7 +36,7 @@ describe('Testing treatingGetUserProfileInLoginError', () => {
Toast.default.Toast = jest.fn(() => ({}));

errorNumbers.forEach((error) => {
treatingEditCounselorError(error);
editConselorErrorHandler(error);
expect(Toast.default.Toast.mock.calls.length).toBe(1);
Toast.default.Toast.mockClear();
});
Expand Down
2 changes: 1 addition & 1 deletion __tests__/actions/auxiliary/editCounselorAuxiliary.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import axios from 'axios';
import MockAdapter from 'axios-mock-adapter';
import {
DEFAULT_USER_LINK_NUVEM_CIVICA,
} from '../../../src/constants/generalConstants';
} from '../../../src/constants/linkConstants';
import {
EDIT_ACCOUNT_ERROR,
EDIT_PROFILE_ERROR,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@ import axios from 'axios';
import MockAdapter from 'axios-mock-adapter';
import {
DEFAULT_GROUP_LINK_NUVEM_CIVICA,
APP_IDENTIFIER,
DEFAULT_USER_LINK_NUVEM_CIVICA,
} from '../../../src/constants/generalConstants';
} from '../../../src/constants/linkConstants';
import {
getCounselorFromGroup,
getCounselor,
Expand All @@ -17,6 +16,7 @@ import {
GET_COUNSELORS_FROM_CAE_PROFILE_ERROR,
GET_GROUP_ERROR,
} from '../../../src/constants/errorConstants';
import { APP_IDENTIFIER } from '../../../src/constants/codeNumbers';
import { convertingContentStringToJSON } from '../../../src/actions/applicationActions';

describe('Testing getCounselorFromGroupAuxiliary functions', () => {
Expand Down
4 changes: 2 additions & 2 deletions __tests__/actions/counselorActions.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ import {
IS_NOT_LOADING,
} from '../../src/actions/types';
import {
APP_IDENTIFIER,
AUTHENTICATE_LINK_NUVEM_CIVICA,
DEFAULT_USER_LINK_NUVEM_CIVICA,
} from '../../src/constants/generalConstants';
} from '../../src/constants/linkConstants';
import { APP_IDENTIFIER } from '../../src/constants/codeNumbers';
import {
AUTH_LOGIN_ERROR,
PROFILE_LOGIN_ERROR,
Expand Down
12 changes: 7 additions & 5 deletions __tests__/actions/manageRegistersActions.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,16 @@ import * as actions from '../../src/actions/ManagerRegisterActions';
import * as types from '../../src/actions/types';
import {
COUNSELOR_DISABLED_SUCCESS,
DEFAULT_USER_LINK_NUVEM_CIVICA,
COUNSELOR_DISABLED_FAILED,
APP_IDENTIFIER,
AUTHENTICATE_LINK_NUVEM_CIVICA,
DEFAULT_GROUP_LINK_NUVEM_CIVICA,
COUNSELOR_GROUP_DISABLED_SUCCESS,
COUNSELOR_GROUP_DISABLED_FAILED,
} from '../../src/constants/generalConstants';
} from '../../src/constants/toastMessages';
import {
AUTHENTICATE_LINK_NUVEM_CIVICA,
DEFAULT_USER_LINK_NUVEM_CIVICA,
DEFAULT_GROUP_LINK_NUVEM_CIVICA,
} from '../../src/constants/linkConstants';
import { APP_IDENTIFIER } from '../../src/constants/codeNumbers';


const middlewares = [thunk];
Expand Down
3 changes: 2 additions & 1 deletion __tests__/actions/schedulingMeetingActions.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ import axios from 'axios';
import MockAdapter from 'axios-mock-adapter';
import * as actions from '../../src/actions/schedulingMeetingActions';
import * as types from '../../src/actions/types';
import { POSTS_LINK_NUVEM_CIVICA, MEETING_POSTING_TYPE_CODE } from '../../src/constants/generalConstants';
import { POSTS_LINK_NUVEM_CIVICA } from '../../src/constants/linkConstants';
import { MEETING_POSTING_TYPE_CODE } from '../../src/constants/codeNumbers';


const LATITUDE = 0.9;
Expand Down
2 changes: 1 addition & 1 deletion __tests__/actions/schedulingVisitActions.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import axios from 'axios';
import MockAdapter from 'axios-mock-adapter';
import * as actions from '../../src/actions/schedulingVisitActions';
import * as types from '../../src/actions/types';
import { POSTS_LINK_NUVEM_CIVICA } from '../../src/constants/generalConstants';
import { POSTS_LINK_NUVEM_CIVICA } from '../../src/constants/linkConstants';
import * as mockActions from '../../src/actions/ManagerRegisterActions';
import {
GET_CURRENT_SCHEDULE_ERROR,
Expand Down
2 changes: 1 addition & 1 deletion __tests__/screens/SearchSchool.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import Adapter from 'enzyme-adapter-react-16';
import configureStore from 'redux-mock-store';
import SearchSchoolContainer from '../../src/Containers/SearchSchoolContainer';
import SearchSchool from '../../src/screens/SearchSchool';
import { SCHOOL_ENDPOINT } from '../../src/constants/generalConstants';
import { SCHOOL_ENDPOINT } from '../../src/constants/linkConstants';

const middlewares = [thunk];

Expand Down
2 changes: 1 addition & 1 deletion __tests__/screens/VisitInvites.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import Adapter from 'enzyme-adapter-react-16';
import configureStore from 'redux-mock-store';
import VisitInvitesContainer from '../../src/Containers/VisitInvitesContainer';
import VisitInvites from '../../src/screens/VisitInvites';
import { SCHOOL_ENDPOINT } from '../../src/constants/generalConstants';
import { SCHOOL_ENDPOINT } from '../../src/constants/linkConstants';
import * as Toast from '../../src/components/Toast';

const middlewares = [thunk];
Expand Down
1 change: 0 additions & 1 deletion android/.gradle/2.14.1/taskArtifacts/cache.properties

This file was deleted.

Binary file not shown.
Binary file removed android/.gradle/2.14.1/taskArtifacts/fileHashes.bin
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
5 changes: 3 additions & 2 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ import com.android.build.OutputFile
*/

apply from: "../../node_modules/react-native/react.gradle"
apply from: "../../node_modules/react-native-vector-icons/fonts.gradle"

/**
* Set this to true to create two separate APKs instead of one:
Expand All @@ -94,9 +95,9 @@ android {
buildToolsVersion "23.0.1"

defaultConfig {
applicationId "com.merendamais.merendamais"
applicationId "com.merendamais"
minSdkVersion 16
targetSdkVersion 22
targetSdkVersion 25
versionCode 34
versionName "1.6"
ndk {
Expand Down
Binary file modified android/app/src/main/res/mipmap-hdpi/ic_launcher.png
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.
Binary file modified android/app/src/main/res/mipmap-mdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
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.
11 changes: 10 additions & 1 deletion android/build/intermediates/dex-cache/cache.xml
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,15 @@
sha1="6975da39a7040257bd51d21a231b76c915872d38">
<dex dex="/code/android/app/build/intermediates/pre-dexed/debug/javax.inject-1_7e84a58f14b03e539c66973b1348dfcc92b37959.jar" />
</item>
<item
is-multidex="false"
jar="/code/android/app/build/intermediates/exploded-aar/MerendaMais/react-native-html-to-pdf/unspecified/jars/classes.jar"
jumboMode="false"
optimize="true"
revision="23.0.1"
sha1="74923b5feb21e1a032664410dcc186b00033af4e">
<dex dex="/code/android/app/build/intermediates/pre-dexed/debug/MerendaMais-react-native-html-to-pdf-unspecified_25567429be2386dd7167b1bfd7cda57e60cad591.jar" />
</item>
<item
is-multidex="false"
jar="/code/android/app/build/intermediates/exploded-aar/com.android.support/support-v4/24.0.0/jars/classes.jar"
Expand Down Expand Up @@ -232,7 +241,7 @@
jumboMode="false"
optimize="true"
revision="23.0.1"
sha1="1d76ff99cb8f0d2b13e7d278c86596a0059439c7">
sha1="eb45c6df59298c13692c43ae59daad6560a8a543">
<dex dex="/code/android/app/build/intermediates/pre-dexed/debug/MerendaMais-react-native-maps-unspecified_2c9d812e52e8d75ecefa311d4b2e49a3bd924c4f.jar" />
</item>
<item
Expand Down
1 change: 1 addition & 0 deletions commiter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
convention: none
39 changes: 39 additions & 0 deletions docker_troubleshooting.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Docker Troubleshooting
## Sumário
* [Respostas para problemas comuns](#respostas-para-problemas-comuns)
+ [Ocorrem erros quando tento criar a imagem do docker](#ocorrem-erros-quando-tento-criar-a-imagem-do-docker)
+ [Quando o aplicativo é instalado no celular, ele apresenta uma tela branca por bastante tempo antes de apresentar a aplicação](#quando-o-aplicativo---instalado-no-celular--ele-apresenta-uma-tela-branca-por-bastante-tempo-antes-de-apresentar-a-aplica--o)
+ [Quando o aplicativo é instalado no celular, ele apresenta uma tela de erro vermelha](#quando-o-aplicativo---instalado-no-celular--ele-apresenta-uma-tela-de-erro-vermelha)
<small><i><a href='http://ecotrust-canada.github.io/markdown-toc/'>Table of contents generated with markdown-toc</a></i></small>


## Respostas para problemas comuns
### Ocorrem erros quando tento criar a imagem do docker
- Verifique sua conexão com a internet
- Tenha certeza que a rede que você está conectado permita que se faça download das imagens do docker (algumas redes corporativas não permitem)
- Verifique se o arquivo **/android/app/build.gradle** possui nas linhas indicadas os seguintes valores:

```javascript
...
96 defaultConfig {
97 applicationId: "com.merendamais"
98 minSdkVersion: 16
99 targetSdkVersion: 25
100 versionCode: 34
101 versionName: "1.6"
102 ndk {
103 abiFilters: "armeabi-v7a", "x86"
104 }
105 }
...
```

### Quando o aplicativo é instalado no celular, ele apresenta uma tela branca por bastante tempo antes de apresentar a aplicação
Não sabemos o porque disso ocorrer porém, isso ocorre apenas na primeira build e portanto é considerado normal por conta da depuração por USB.

### Quando o aplicativo é instalado no celular, ele apresenta uma tela de erro vermelha
Provavelmente ocorreu um erro durante a execução dos scripts de variáveis de ambiente.

- Derrube a aplicação
- Tente: `$ sudo docker-compose up --build`
- Se o problema persistir, entre no bash do container e execute os commandos do arquivo variables.sh
Loading