Skip to content
This repository has been archived by the owner on Sep 27, 2022. It is now read-only.

Commit

Permalink
Merge pull request #139 from simde-utc/release/v0.0.1
Browse files Browse the repository at this point in the history
First release version 0.0.1
  • Loading branch information
NastuzziSamy authored Aug 16, 2019
2 parents fe95ae8 + 5213863 commit 8f809f1
Show file tree
Hide file tree
Showing 167 changed files with 10,376 additions and 778 deletions.
8 changes: 5 additions & 3 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"semi": [1, "always"],
"indent": [0, "tab"],
"no-console": 0,
"no-case-declarations": 1,
"no-case-declarations": 0,
"no-fallthrough": 0,
"no-plusplus": 0,
"no-unused-vars": [1,
Expand All @@ -65,7 +65,7 @@
"react/jsx-filename-extension": 0,
"react/jsx-uses-vars": 2,
"react/no-did-mount-set-state": 2,
"react/no-did-update-set-state": 2,
"react/no-did-update-set-state": 0,
"react/no-multi-comp": 0,
"react/no-unknown-property": 2,
"react/prop-types": 0,
Expand Down Expand Up @@ -96,6 +96,8 @@
"new-cap": 0,
"no-continue": 0,
"no-return-assign": 0,
"import/no-cycle": 0
"import/no-cycle": 0,
"react/display-name": 0,
"no-nested-ternary": 0
}
}
32 changes: 32 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: ''
assignees: ''

---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Smartphone (please complete the following information):**
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Version [e.g. 22]

**Additional context**
Add any other context about the problem here.
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: ''
assignees: ''

---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
19 changes: 19 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE/bug_fix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
name: Bug fix Pull Request
about: Fix a bug found in develop
title: ''
labels: ''

---

# Bug fix Pull Request template

## Your checklist for this pull request

- [ ] Make sure youre branch's name follows the naming convention: `fix/my-bug-fix` or `hot/my-hot-fix` if it's a hotfix.
- [ ] Make sure you've run `npm run test` and corrected, if any, the reported errors.
- [ ] Make sure your merging your branch into `develop`.

## Description

Please describe your feature here.
19 changes: 19 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE/feature.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
name: Feature Pull Request
about: Merge a new feature into develop
title: ''
labels: ''

---

# Feature Pull Request template

## Your checklist for this pull request

- [ ] Make sure youre branch's name follows the naming convention: `feature/my-feature`.
- [ ] Make sure you've run `npm run test` and corrected, if any, the reported errors.
- [ ] Make sure your merging your branch into `develop`.

## Description

Please describe your feature here.
19 changes: 19 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE/release.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
name: Release Pull Request
about: Release a new version
title: ''
labels: ''

---

# Release Pull Request template

## Your checklist for this pull request

- [ ] Make sure you've run `npm run test` and corrected, if any, the reported errors.
- [ ] Make sure your merging `develop` into `master`.


## Description

Please describe the release here.
20 changes: 19 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ typings/

# Expo gitignore

.expo/*
.expo
npm-debug.*
*.jks
*.p12
Expand All @@ -71,3 +71,21 @@ npm-debug.*
*.orig.*
web-build/
web-report/

# idea projects
.idea

# macOs things
.DS_Store

/config.js

# Android
android/.gradle
android/app/build
android/build
android/local.properties

# Xcode
xcuserdata/
ios/Pods
7 changes: 0 additions & 7 deletions .travis

This file was deleted.

11 changes: 11 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
language: node_js
node_js: 12.6.0

before_script:
- cp config.example.js config.js
- npm install

jobs:
include:
- stage: "Lint"
script: npm run lint
66 changes: 51 additions & 15 deletions App.js
Original file line number Diff line number Diff line change
@@ -1,19 +1,55 @@
/**
* @author Arthur Martello <arthur.martello@etu.utc.fr>
* @author Samy Nastuzzi <samy@nastuzzi.fr>
*
* @copyright Copyright (c) 2019, SiMDE-UTC
* @license GPL-3.0
*/

import React from 'react';
import { StyleSheet, Text, View } from 'react-native';
import { StatusBar, YellowBox } from 'react-native';
import { createAppContainer, createSwitchNavigator, SafeAreaView } from 'react-navigation';
import { Provider, connect } from 'react-redux';
import SpinnerOverlay from 'react-native-loading-spinner-overlay';
import AppLoader from './src/screens/AppLoader';
import ChangelogScreen from './src/screens/Settings/ChangelogScreen';
import MainNavigator from './src/navigations/MainNavigator';
import AuthNavigator from './src/navigations/Auth/AuthNavigator';
import store from './src/redux/store';
import colors from './src/styles/colors';

const AppNavigator = createSwitchNavigator(
{
Loading: AppLoader,
Auth: AuthNavigator,
Main: MainNavigator,
Changelog: ChangelogScreen,
},
{
initialRouteName: 'Loading',
}
);

YellowBox.ignoreWarnings(['Async Storage', 'WebView']);

const AppContainer = createAppContainer(AppNavigator);

const paddingTop = StatusBar.currentHeight || 20;

const mapStateToProps = ({ config }) => ({ config });

const ConnectedApp = connect(mapStateToProps)(({ config }) => (
<SafeAreaView style={{ flex: 1, paddingTop }} forceInset={{ bottom: 'never' }}>
<StatusBar backgroundColor={colors.primary} translucent />
<SpinnerOverlay {...config.spinner} />
<AppContainer screenProps={{ config }} />
</SafeAreaView>
));

export default function App() {
return (
<View style={styles.container}>
<Text>Open up App.js to start working on your app!</Text>
</View>
);
return (
<Provider store={store}>
<ConnectedApp />
</Provider>
);
}

const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: '#fff',
alignItems: 'center',
justifyContent: 'center',
},
});
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Changelog

Changelogs are under a json format in `src/changelogs`.
40 changes: 30 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,36 @@
# payutc-mobile
Application mobile PayUTC
# Payutc-mobile
PayUTC mobile Application

# Cahier des charges
## Specifications

Le cahier des charges est défini dans le fichier `SPECIFICATIONS.md`
Specifications are defined in `SPECIFICATIONS.md`

# Installation
## Installation

- Installer expo-cli avec la commande: `npm install -g expo-cli`
- Installer le projet: `npm i`
- Install expo-cli with the following command: `npm install -g expo-cli`
- Installer JS dependecies: `npm i`

# Lancement de l'application
## Application run

- Lancement d'expo pour Android: `npm run android`
- Lancement d'expo pour iOS: `npm run ios`
- Run expo for Android: `npm run android`
- Run expo for iOS: `npm run ios`

## Application build
### iOS
- iOS build requires Xcode. In order to use Xcode, you should update your pods using theses commands:
* `cd ios`
* `pod install`
- And then, open `PayUTC.xcworkspace` in Xcode and build the app.

## Develop

- We use the workflow `gitflow` as described [here](https://nvie.com/files/Git-branching-model.pdf) but without the `release` branch. It means:
* All Pull Requests (PR) are merged into the branch `develop`.
* From `develop` we release versions on `master`.
* The branches are named as following:
* `feature/<issue shortname>` for enhancements.
* `fix/<issue shortname>` for bug fixes.
* `hot/<issue shortname>` for hot bug fixes (Ex: bug affecting security on production).
- Respect the JS linter.
- Before pushing your code run `npm run test`. The linter will check the code and the tests we built will run. Correct possible errors and push.
- Finally don't hesitate to ask questions and enjoy!
17 changes: 17 additions & 0 deletions android/.project
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>PayUTC</name>
<comment>Project android created by Buildship.</comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.buildship.core.gradleprojectbuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.buildship.core.gradleprojectnature</nature>
</natures>
</projectDescription>
2 changes: 2 additions & 0 deletions android/.settings/org.eclipse.buildship.core.prefs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
connection.project.dir=
eclipse.preferences.version=1
19 changes: 19 additions & 0 deletions android/PayUTC.iml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<module external.linked.project.id="PayUTC" external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$" external.system.id="GRADLE" type="JAVA_MODULE" version="4">
<component name="FacetManager">
<facet type="java-gradle" name="Java-Gradle">
<configuration>
<option name="BUILD_FOLDER_PATH" value="$MODULE_DIR$/build" />
<option name="BUILDABLE" value="false" />
</configuration>
</facet>
</component>
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_7" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$">
<excludeFolder url="file://$MODULE_DIR$/.gradle" />
</content>
<orderEntry type="jdk" jdkName="JDK" jdkType="JavaSDK" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>
6 changes: 6 additions & 0 deletions android/app/.classpath
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8/"/>
<classpathentry kind="con" path="org.eclipse.buildship.core.gradleclasspathcontainer"/>
<classpathentry kind="output" path="bin/default"/>
</classpath>
23 changes: 23 additions & 0 deletions android/app/.project
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>app</name>
<comment>Project app created by Buildship.</comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.buildship.core.gradleprojectbuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.buildship.core.gradleprojectnature</nature>
</natures>
</projectDescription>
2 changes: 2 additions & 0 deletions android/app/.settings/org.eclipse.buildship.core.prefs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
connection.project.dir=..
eclipse.preferences.version=1
Loading

0 comments on commit 8f809f1

Please sign in to comment.