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

committed #36

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
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: 0 additions & 9 deletions .editorconfig

This file was deleted.

1 change: 0 additions & 1 deletion .gitattributes

This file was deleted.

3 changes: 0 additions & 3 deletions .github/codeql/codeql-config.yml

This file was deleted.

32 changes: 0 additions & 32 deletions .github/workflows/codeql-analysis.yml

This file was deleted.

22 changes: 0 additions & 22 deletions .github/workflows/renovate-config-validator.yml

This file was deleted.

70 changes: 0 additions & 70 deletions .github/workflows/test.yaml

This file was deleted.

26 changes: 17 additions & 9 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,12 +1,20 @@
node_modules/
.clj-kondo/
.lsp/
.expo/
*~
\#*#
.\#*
Comment on lines -3 to -7
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Keep these. This prevent pollution of working / swap files on certain editors we use.

.lsp/
*~
\#*#
.\#*

.m2
dist/
packages/frontend/android/
packages/frontend/ios/
packages/frontend/dist
Comment on lines -10 to -12
Copy link
Contributor

@achrinza achrinza Sep 20, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Exclude expo prebuild artifacts for iOS and Android as they contain binary artifacts.

+android
+ios

npm-debug.*
*.jks
*.p8
*.p12
*.key
*.mobileprovision
*.orig.*
web-build/
assets/
Copy link
Contributor

@achrinza achrinza Sep 20, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Binary assets are stored separately. The exception are SVGs, of which we're progressively migrating towards.

Suggested change
assets/
vendor/
assets/*
!assets/**/*.svg

# macOS
.DS_Store

# @generated expo-cli sync-2b81b286409207a5da26e14c78851eb30d8ccbdb
# The following patterns were generated by expo-cli

expo-env.d.ts
# @end expo-cli
28 changes: 0 additions & 28 deletions CONTRIBUTING.md

This file was deleted.

4 changes: 0 additions & 4 deletions DEVELOPING.md

This file was deleted.

45 changes: 15 additions & 30 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,40 +1,25 @@
# SBE Mental Health App
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we keep the original README structure?


A proof of concept application created by the SBE Innovation Team, part of the SBE NSF Council.
## Installation

## Prerequisites
1. Install dependencies

- Node.js 20
- Java 17
- Android CLI Tools
- ADB with a connected Android device/emulator
```bash
npm install
```

## Getting Started
2. Start the app

To quickly deploy the mobile app to an Android device with Expo:
```bash
npx expo start
```

```sh
$ git clone https://github.com/safsbe/mental-health-app
$ cd mental-health-app
$ npm ci
$ npm run -w '@safsbe/mental-health-frontend' watch:common
$ npm run -w '@safsbe/mental-health-frontend' watch:android:expo
In the output, you'll find options to open the app in a

# Press 's' to switch to Expo Go builds
```
- [development build](https://docs.expo.dev/develop/development-builds/introduction/)
- [Android emulator](https://docs.expo.dev/workflow/android-studio-emulator/)
- [iOS simulator](https://docs.expo.dev/workflow/ios-simulator/)
- [Expo Go](https://expo.dev/go), a limited sandbox for trying out app development with Expo

## Security
You can start developing by editing the files inside the **app** directory. This project uses [file-based routing](https://docs.expo.dev/router/introduction).

See [SECURITY.md](./SECURITY.md).

### Long-Term Support

This project does not adopt any long term support policy.

## Contributing

External pull requests are not currently being accepted. Our internal contribution workflow is documented in [CONTIRBUTING.md](./CONTRIBUTING.md).

## Developing

Instructions for building and developing this appication is provided in [DEVELOPING.md](./DEVELOPING.md).
42 changes: 42 additions & 0 deletions app.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"expo": {
"name": "mental-health-app",
"slug": "mental-health-app",
"version": "1.0.0",
"orientation": "portrait",
"icon": "./assets/images/icon.png",
"scheme": "mental-health-app",
"userInterfaceStyle": "automatic",
"splash": {
"image": "./assets/images/splash.png",
"resizeMode": "contain",
"backgroundColor": "#ffffff"
},
"ios": {
"supportsTablet": true
},
"android": {
"adaptiveIcon": {
"foregroundImage": "./assets/images/adaptive-icon.png",
"backgroundColor": "#ffffff"
},
"package": "com.safsbe.mentalhealthapp"
},
"web": {
"bundler": "metro",
"output": "static",
"favicon": "./assets/images/favicon.png"
},
"plugins": [
"expo-router"
],
"experiments": {
"typedRoutes": true
},
"extra": {
"eas": {
"projectId": "81a6b904-d7b1-48a1-8e97-03ad1aaab1fa"
}
Comment on lines +36 to +39
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ditto on not utilising EAS.

}
}
}
58 changes: 58 additions & 0 deletions app/(tabs)/_layout.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
import { Tabs } from "expo-router";

import { TabBarIcon } from "@/components/navigation/TabBarIcon";
import { Image } from "react-native";
import { Colors } from "@/constants/Colors";
import { useColorScheme } from "@/hooks/useColorScheme";
import MaterialIcons from "@expo/vector-icons/MaterialIcons";
import Octicons from "@expo/vector-icons/Octicons";

export default function TabLayout() {
const colorScheme = useColorScheme();

return (
<Tabs
screenOptions={{
tabBarActiveTintColor: Colors[colorScheme ?? "light"].tint,
headerShown: false,
}}
>
<Tabs.Screen
name="index"
options={{
title: "Home",
tabBarIcon: ({ size, color, focused }) => (
<Image
style={{ width: size, height: size }}
source={require("../../assets/tab_icons/Home_Button.png")}
/>
),
}}
/>
<Tabs.Screen
name="sos"
options={{
title: "SOS",
tabBarIcon: ({ size, color, focused }) => (
<Image
style={{ width: size, height: size }}
source={require("../../assets/tab_icons/SOS_Button.png")}
/>
),
}}
/>
<Tabs.Screen
name="resources"
options={{
title: "Resources",
tabBarIcon: ({ size, color, focused }) => (
<Image
style={{ width: size, height: size }}
source={require("../../assets/tab_icons/Feedback_Button.png")}
/>
),
}}
/>
</Tabs>
);
}
Loading