3 Commits

Author SHA1 Message Date
diego.pajaritograjales@glasgow.ac.uk 24c3d1b018 Changes to publish it through play store 10 months ago
Diego F. Pajarito Grajales 9c72434df2 Review and preparation for deploy 1 Jan 21 10 months ago
Diego F. Pajarito Grajales 7dbbe6eb69 Update build properties 10 months ago
  1. 3
      .idea/.gitignore
  2. 9
      .idea/WPD-MobileApp.iml
  3. 8
      .idea/modules.xml
  4. 6
      .idea/vcs.xml
  5. 45
      README.md
  6. 6
      src/app.json
  7. 16
      src/eas.json
  8. 1
      src/package.json

3
.idea/.gitignore

@ -0,0 +1,3 @@
# Default ignored files
/shelf/
/workspace.xml

9
.idea/WPD-MobileApp.iml

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$" />
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>

8
.idea/modules.xml

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/WPD-MobileApp.iml" filepath="$PROJECT_DIR$/.idea/WPD-MobileApp.iml" />
</modules>
</component>
</project>

6
.idea/vcs.xml

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="" vcs="Git" />
</component>
</project>

45
README.md

@ -51,3 +51,48 @@ This project contains the components developed for a mobile app within the Water
$ cd WPD-MobileApp/src
$ npm run test
## Run the app
To run the app locally, you need to install the [Expo Go](https://expo.io/client) app on your mobile device and then scan the QR code that appears in the terminal after running the following command:
Ensure you have Yarn installed globally:
$ # on macOS
$ sudo yarn install
$
$ # on Linux
$ sudo apt update && sudo apt install yarn
Via Yarn, you can Expo CLI globally:
$ sudo yarn global add expo-cli
$
$ # It is possible that some extensions are needed
$ sudo yarn add expo-build-properties
Using Expo you can configure the app to run on a mobile OS. In this case Android:
$ eas build:configure
## Run on Android Emulator
To run the app using expoon an Android emulator, you need to install the [Android Studio](https://developer.android.com/studio) and then run the following command:
$ cd WPD-MobileApp/src
$ npm run android
## Build and publish the app
To build and publish the Android app, you have to run the following commands:
$ eas build -p android
This uses the EAS Build service to build the app. You can check the status of the build in the [EAS Build dashboard](https://expo.io/dashboard/builds).
Note that you might be asked to provide your Expo credentials. If you don't have an Expo account, you can create one by running the following command:
$ expo register

6
src/app.json

@ -2,7 +2,7 @@
"expo": {
"name": "Dados à Prova d'Água",
"slug": "dados-a-prova-dagua",
"version": "1.0.3",
"version": "1.0.7",
"orientation": "portrait",
"icon": "./app/assets/icons/app-icon.png",
"splash": {
@ -29,7 +29,7 @@
"backgroundColor": "#FFFFFF"
},
"package": "com.dadosaprovadagua.wpdmobileapp",
"versionCode": 3
"versionCode": 11
},
"web": {
"favicon": "./app/assets/favicon.png"
@ -53,7 +53,7 @@
},
"extra": {
"eas": {
"projectId": "5402ab13-6a3c-4cd0-89bd-770e3a6c25c3"
"projectId": "b8b2fec9-954d-41ab-99cb-b7fb4e4504ad"
}
}
}

16
src/eas.json

@ -7,6 +7,9 @@
"developmentClient": true,
"distribution": "internal"
},
"internal": {
"distribution": "internal"
},
"preview": {
"distribution": "internal"
},
@ -18,6 +21,17 @@
"production": {}
},
"submit": {
"production": {}
"production": {
"android": {
"track": "internal",
"serviceAccountKeyPath": "./wpd-expo-project-f77b4ac3109a.json"
}
},
"internal": {
"android": {
"track": "internal",
"serviceAccountKeyPath": "../../wpd-expo-project-f77b4ac3109a.json"
}
}
}
}

1
src/package.json

@ -32,6 +32,7 @@
"expo": "^49.0.0",
"expo-app-loading": "^2.1.1",
"expo-asset": "~8.10.1",
"expo-build-properties": "^0.8.3",
"expo-file-system": "~15.4.4",
"expo-image-picker": "~14.3.2",
"expo-location": "~16.1.0",

Loading…
Cancel
Save