Skip to content

Commit

Permalink
Merge pull request #76 from gustavoerivero/dev
Browse files Browse the repository at this point in the history
Final Version
  • Loading branch information
gustavoerivero authored Feb 8, 2023
2 parents 94db32d + e823493 commit fba09b4
Show file tree
Hide file tree
Showing 175 changed files with 15,570 additions and 519 deletions.
6 changes: 5 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
{
"java.configuration.updateBuildConfiguration": "automatic"
"java.configuration.updateBuildConfiguration": "automatic",
"files.associations": {
"ostream": "cpp"
},
"java.compile.nullAnalysis.mode": "automatic"
}
22 changes: 18 additions & 4 deletions App.js
Original file line number Diff line number Diff line change
@@ -1,21 +1,35 @@
import React, { useEffect } from 'react'
import { Provider } from 'react-redux'
import SplashScreen from 'react-native-splash-screen'
import { NavigationContainer } from '@react-navigation/native'
import { NativeBaseProvider } from 'native-base'
import { SafeAreaProvider, SafeAreaView } from 'react-native-safe-area-context'
import { AuthProvider } from './src/context/AuthContext'
import StackNavigation from './src/navigation/StackNavigation'

import store from './src/redux/config/store'

import 'moment-es6'

const App = () => {

useEffect(() => {
SplashScreen.hide()
}, [])

return (
<SafeAreaProvider>
<NavigationContainer>
<NativeBaseProvider>
<NavigationContainer>
<NativeBaseProvider>
<Provider store={store} >
<AuthProvider>
<SafeAreaView style={{ flex: 1 }}>
<StackNavigation />
</SafeAreaView>
</AuthProvider>
</NativeBaseProvider>
</NavigationContainer>
</Provider>
</NativeBaseProvider>
</NavigationContainer>
</SafeAreaProvider>
)
}
Expand Down
163 changes: 163 additions & 0 deletions README-ES.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,163 @@

<h1 align="center">
<img src="./public/assets/eden.svg" alt="Eden" width="400" height="150" />
</h1>

![dependencies](https://img.shields.io/depfu/dependencies/github/gustavoerivero/EdenMobile)
![nodeV](https://img.shields.io/node/v/react-native)
![size](https://img.shields.io/github/repo-size/gustavoerivero/EdenMobile)
![version](https://img.shields.io/github/package-json/v/gustavoerivero/EdenMobile)
![license](https://img.shields.io/github/license/gustavoerivero/EdenMobile)
![collabs](https://img.shields.io/github/contributors/gustavoerivero/EdenMobile)
![lastcommit](https://img.shields.io/github/last-commit/gustavoerivero/EdenMobile)
![languages](https://img.shields.io/github/languages/count/gustavoerivero/EdenMobile)
![porc](https://img.shields.io/github/languages/top/gustavoerivero/EdenMobile)

<div align="center">
<table>
<tr>
<!-- Do not translate this table -->
<td><a href="./README.md"> English </a></td>
<td><a href="./README-ES.md"> Spanish </a></td>
</tr>
</table>
</div>


"Edén: Servicio de juegos" es un sistema de información estructurado por tres componentes,
incluyendo un CRM, un portal informativo y una aplicación móvil. Eden es un
sistema de gestión logística y de información para la administración de
clubes sociales y deportivos, que apoya especialmente las disciplinas deportivas de "bolas
criollas" y dominó.

Este repositorio corresponde al componente de la aplicación móvil, que está
especialmente enfocado a la visualización de datos del club, notificaciones, perfiles de
usuarios y/o perfiles de los jugadores y, si se dan los permisos correspondientes
la gestión de los partidos deportivos.

## Comenzando 🚀

La aplicación está desarrollada con React Native para el frontend y PHP con Laravel para el
backend y también hace uso de otras librerías que son necesarias para el correcto funcionamiento
de la aplicación.

### Prerrequisitos 📋

* [Node.js](https://nodejs.org/en/) versión 18.12.1

* [Postman](https://www.postman.com/) para las peticiones HTTP.

* Para el proyecto se utilizó [Visual Studio Code](https://code.visualstudio.com/) como editor de texto tanto para el frontend como para el backend, pero también se puede utilizar cualquier editor de texto.

### Instalación 🔧

Para comenzar, se procede a la descarga del repositorio. Para ello, se abre la consola,
ir a la carpeta donde se desea guardar el proyecto y ejecutar el siguiente comando:

```bash
git clone https://github.com/gustavoerivero/EdenMobile.git
```

A continuación, se debe acceder a la carpeta clonada en el repositorio "EdenMobile".

Para un sistema operativo Windows, con el comando:

```bash
cd EdenMobile
```

A continuación, se procede a la instalación de las librerías y dependencias necesarias para su ejecución.

```bash
npm install
```

O, como alternativa;

```bash
yarn install
```

Si ninguna de las opciones anteriores funciona, intentar con;

```bash
npm i -f
```

Una vez que la instalación de las dependencias es exitosa, el proyecto está listo para desplegar.

## Despliegue 📦

Para realizar un despliegue local, se procede ejecutando los siguientes comandos:

### Primer paso: Iniciar Metro

En primer lugar, es necesario iniciar Metro, el bundler de JavaScript que viene con React Native.

Para iniciar Metro, hay que ejecutar ```npx react-native start``` o, ```yarn react-native start```
dentro de la carpeta del proyecto Eden:

```bash
npx react-native start
```

o

```bash
yarn react-native start
```

Esto permitirá iniciar el Metro Bundler.

### Segundo paso: Iniciar el proyecto

Dejar que Metro Bundler se ejecute en el terminal. Ahora bien, abrir un nuevo terminal dentro del proyecto Eden . Consecuentemente, se debe ejecutar lo siguiente:

```bash
npx react-native run-android
```

o

```bash
yarn react-native run-android
```

Si todo está configurado correctamente, se debería ver la aplicación funcionando en
un emulador de Android en breve.

```npx react-native run-android``` o ```yarn react-native run-android```, son formas de ejecutar la aplicación, pero también se puede ejecutar directamente desde Android Studio.

Para más información, es posible acceder directamente a la [documentación de React Native](https://reactnative.dev/docs/environment-setup).

## Documentación 📕

Para conocer la documentación utilizada para el desarrollo de la aplicación, es posible visitar la [documentación](https://drive.google.com/drive/folders/1mAbI0DoGZUTUPalTCa9e0e3yG1RdAi9N).

## Autores 💻

El proyecto ha sido concebido, diseñado y desarrollado por estudiantes del último semestre de Ingeniería Informática de la Universidad Centroccidental "Lisandro Alvarado" de la LXIII promoción agrupados bajo el nombre de "Eurus".

### Thoteam ✒️
Sin embargo, para el desarrollo de la aplicación móvil, el desarrollo fue
llevado a cabo por el subgrupo Thoteam, formado por;

* @gustavoerivero - [gustavoerivero](https://github.com/gustavoerivero)
* @joseriveroc - [joseriveroc](https://github.com/joseriveroc)
* @luisv98 - [luisv98](https://github.com/luisv98)

---

<p align="center">
<a href="http://www.ucla.edu.ve/">
<img src="./public/assets/ucla.png" alt="UCLA" width="45" height="50" />
</a>
<a href="http://dcyt.ucla.edu.ve/">
<img src="./public/assets/dcyt.png" alt="DCYT" width="65" height="50" />
</a>
<img src="./public/assets/eurus.png" alt="Eurus" width="100" height="50" />
<img src="./public/assets/thoteam.png" alt="Thoteam" width="175" height="50" />
</p>

---
⌨️ hecho con ❤️ por [Thoteam]
34 changes: 23 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,29 @@

<h1 align="center">
<img src="./public/assets/eden.png" alt="Eden" width="400" height="150" />
<img src="./public/assets/eden.svg" alt="Eden" width="400" height="150" />
</h1>

![dependencies](https://img.shields.io/depfu/dependencies/github/gustavoerivero/EdenMobile)
![nodeV](https://img.shields.io/node/v/react-native)
![size](https://img.shields.io/github/repo-size/gustavoerivero/EdenMobile)
![version](https://img.shields.io/github/package-json/v/gustavoerivero/EdenMobile)
![license](https://img.shields.io/github/license/gustavoerivero/EdenMobile)
![collabs](https://img.shields.io/github/contributors/gustavoerivero/EdenMobile)
![lastcommit](https://img.shields.io/github/last-commit/gustavoerivero/EdenMobile)
![languages](https://img.shields.io/github/languages/count/gustavoerivero/EdenMobile)
![porc](https://img.shields.io/github/languages/top/gustavoerivero/EdenMobile)
<div align="center">
<img src="https://img.shields.io/depfu/dependencies/github/gustavoerivero/EdenMobile" alt="dependencies" />
<img src="https://img.shields.io/node/v/react-native" alt="node version" />
<img src="https://img.shields.io/github/repo-size/gustavoerivero/EdenMobile" alt="project size" />
<img src="https://img.shields.io/github/package-json/v/gustavoerivero/EdenMobile" alt="project version" />
<img src="https://img.shields.io/github/license/gustavoerivero/EdenMobile" alt="project license" />
<img src="https://img.shields.io/github/contributors/gustavoerivero/EdenMobile" alt="project collabs" />
<img src="https://img.shields.io/github/last-commit/gustavoerivero/EdenMobile" alt="project last commit" />
<img src="https://img.shields.io/github/languages/count/gustavoerivero/EdenMobile" alt="project languages" />
<img src="https://img.shields.io/github/languages/top/gustavoerivero/EdenMobile" alt="project major language percent" />
</div>

<div align="center">
<table>
<tr>
<!-- Do not translate this table -->
<td><a href="./README.md"> English </a></td>
<td><a href="./README-ES.md"> Spanish </a></td>
</tr>
</table>
</div>


"Edén: Servicio de juegos" is an information system structured by three components,
Expand Down Expand Up @@ -148,4 +160,4 @@ carried out by the Thoteam subgroup, formed by;
</p>

---
⌨️ made with❤️ by [Thoteam]
⌨️ made with ❤️ by [Thoteam]
13 changes: 12 additions & 1 deletion android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,14 @@ android {
}
}
signingConfigs {
release {
if (project.hasProperty('MYAPP_UPLOAD_STORE_FILE')) {
storeFile file(MYAPP_UPLOAD_STORE_FILE)
storePassword MYAPP_UPLOAD_STORE_PASSWORD
keyAlias MYAPP_UPLOAD_KEY_ALIAS
keyPassword MYAPP_UPLOAD_KEY_PASSWORD
}
}
debug {
storeFile file('debug.keystore')
storePassword 'android'
Expand All @@ -220,7 +228,7 @@ android {
}
buildTypes {
debug {
signingConfig signingConfigs.debug
signingConfig signingConfigs.release
}
release {
// Caution! In production, you need to generate your own keystore file.
Expand Down Expand Up @@ -249,6 +257,9 @@ android {
}

dependencies {

implementation project(':react-native-splash-screen')

implementation fileTree(dir: "libs", include: ["*.jar"])

//noinspection GradleDynamicVersion
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions android/app/src/debug/res/mipmap-anydpi-v26/ic_launcher.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@mipmap/ic_launcher_background"/>
<foreground android:drawable="@mipmap/ic_launcher_foreground"/>
<monochrome android:drawable="@mipmap/ic_launcher_monochrome"/>
</adaptive-icon>
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@mipmap/ic_launcher_round_background"/>
<foreground android:drawable="@mipmap/ic_launcher_round_foreground"/>
<monochrome android:drawable="@mipmap/ic_launcher_round_monochrome"/>
</adaptive-icon>
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
4 changes: 4 additions & 0 deletions android/app/src/debug/res/values/ic_launcher_background.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="ic_launcher_background">#FFFFFF</color>
</resources>
11 changes: 11 additions & 0 deletions android/app/src/main/java/com/edenmobile/MainActivity.java
Original file line number Diff line number Diff line change
@@ -1,11 +1,22 @@
package com.edenmobile;

import android.os.Bundle;

import com.facebook.react.ReactActivity;
import com.facebook.react.ReactActivityDelegate;
import com.facebook.react.ReactRootView;

// react-native-splash-screen >= 0.3.1
import org.devio.rn.splashscreen.SplashScreen;

public class MainActivity extends ReactActivity {

@Override
protected void onCreate(Bundle savedInstanceState) {
SplashScreen.show(this);
super.onCreate(savedInstanceState);
}

/**
* Returns the name of the main component registered from JavaScript. This is used to schedule
* rendering of the component.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
package com.edenmobile;

// react-native-splash-screen >= 0.3.1
import org.devio.rn.splashscreen.SplashScreenReactPackage;

import android.app.Application;
import android.content.Context;
import com.facebook.react.PackageList;
Expand Down Expand Up @@ -27,7 +30,7 @@ protected List<ReactPackage> getPackages() {
@SuppressWarnings("UnnecessaryLocalVariable")
List<ReactPackage> packages = new PackageList(this).getPackages();
// Packages that cannot be autolinked yet can be added manually here, for example:
// packages.add(new MyReactNativePackage());
// new SplashScreenReactPackage());
return packages;
}

Expand Down
Binary file added android/app/src/main/res/drawable/edenlogo.png
16 changes: 16 additions & 0 deletions android/app/src/main/res/layout/launch_screen.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#FFFFFF"
android:gravity="center"
android:orientation="vertical">

<FrameLayout
android:layout_width="229.5dp"
android:layout_height="399dp"
android:background="@drawable/edenlogo">

</FrameLayout>
</LinearLayout>
Binary file modified android/app/src/main/res/mipmap-hdpi/ic_launcher.png
Binary file modified android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png
Binary file modified android/app/src/main/res/mipmap-mdpi/ic_launcher.png
Binary file modified android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png
Binary file modified android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
Binary file modified android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
Binary file modified android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
Binary file modified android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
Binary file modified android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
Binary file modified android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
4 changes: 4 additions & 0 deletions android/app/src/main/res/values/colors.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="primary_dark">#FFFFFF</color>
</resources>
2 changes: 1 addition & 1 deletion android/app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<resources>
<string name="app_name">EdenMobile</string>
<string name="app_name">Eden</string>
</resources>
5 changes: 5 additions & 0 deletions android/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,8 @@ reactNativeArchitectures=armeabi-v7a,arm64-v8a,x86,x86_64
# to write custom TurboModules/Fabric components OR use libraries that
# are providing them.
newArchEnabled=false

MYAPP_UPLOAD_STORE_FILE=my-upload-key.keystore
MYAPP_UPLOAD_KEY_ALIAS=my-key-alias
MYAPP_UPLOAD_STORE_PASSWORD=Tavo9712*
MYAPP_UPLOAD_KEY_PASSWORD=Tavo9712*
Loading

0 comments on commit fba09b4

Please sign in to comment.