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

🐛chore(0.1.8): fix release #38

Merged
merged 3 commits into from
Oct 13, 2023
Merged
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
4 changes: 2 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ jobs:
flutter-version: '3.x'
- name: Download dependencies
run: flutter pub get
- name: Create .env with server URL
run: echo "API_URL = ${{ secrets.API_URL }}" > .env
- name: Create env with server URL
run: echo "API_URL = ${{ secrets.API_URL }}" > env
- name: Build apk
run: flutter build apk --release
- name: Upload Binary to Release
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/testing.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ jobs:
flutter-version: '3.x'
- name: Download dependencies
run: flutter pub get
- name: Create .env with server URL
run: echo "API_LOGIN_URL = ${{ secrets.API_LOGIN_URL }}" > .env
- name: Create env with server URL
run: echo "API_LOGIN_URL = ${{ secrets.API_LOGIN_URL }}" > env
- name: Build apk
run: flutter build apk
- name: Build appbundle
Expand All @@ -40,8 +40,8 @@ jobs:
run: flutter pub get
- name: Set up docker environment
run: docker compose up -d
- name: Create .env with server URL
run: echo "API_LOGIN_URL = http://127.0.0.1:8080" > .env
- name: Create env with server URL
run: echo "API_LOGIN_URL = http://127.0.0.1:8080" > env
- name: Run tests
run: flutter test
- name: Clean docker environment
Expand Down
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

### 0.1.8 (2023-10-13)

### 0.1.7 (2023-10-13)


### Bug Fixes

* direct connection to server ([#35](https://github.com/hawks-atlanta/frontend-flutter/issues/35)) ([#36](https://github.com/hawks-atlanta/frontend-flutter/issues/36)) ([2791971](https://github.com/hawks-atlanta/frontend-flutter/commit/279197107fd362150f4eada1c0c19ce4a9330f5a))

### 0.1.6 (2023-10-12)


Expand Down
77 changes: 39 additions & 38 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,53 +1,54 @@
# CapyApp
- # CapyApp

[![Release](https://github.com/hawks-atlanta/frontend-flutter/actions/workflows/release.yaml/badge.svg)](https://github.com/hawks-atlanta/frontend-flutter/actions/workflows/release.yaml)
[![Tagging](https://github.com/hawks-atlanta/frontend-flutter/actions/workflows/tagging.yaml/badge.svg)](https://github.com/hawks-atlanta/frontend-flutter/actions/workflows/tagging.yaml)
[![Test](https://github.com/hawks-atlanta/frontend-flutter/actions/workflows/testing.yaml/badge.svg)](https://github.com/hawks-atlanta/frontend-flutter/actions/workflows/testing.yaml)
[![Release](https://github.com/hawks-atlanta/frontend-flutter/actions/workflows/release.yaml/badge.svg)](https://github.com/hawks-atlanta/frontend-flutter/actions/workflows/release.yaml)
[![Tagging](https://github.com/hawks-atlanta/frontend-flutter/actions/workflows/tagging.yaml/badge.svg)](https://github.com/hawks-atlanta/frontend-flutter/actions/workflows/tagging.yaml)
[![Test](https://github.com/hawks-atlanta/frontend-flutter/actions/workflows/testing.yaml/badge.svg)](https://github.com/hawks-atlanta/frontend-flutter/actions/workflows/testing.yaml)

## Documentation
## Documentation

| Document | URL |
| -------------------- | ------------------------------------------------------------ |
| CICD | [CICD.md](https://github.com/hawks-atlanta/docs/blob/main/CICD.md) |
| CONTRIBUTING | Make sure you first read [CONTRIBUTING.md](https://github.com/hawks-atlanta/docs/blob/main/CONTRIBUTING.md) and then, this project's [GUIDELINES.md](docs/GUIDELINES.md) |
| Mockups | [Mockups.md](./docs/Mockups.md) |
| Mockups (production) | [MockupsProduction.md](./docs/MockupsProduction.md) |
| Routing | [Routing.md](docs/Routing.md) |
| Document | URL |
| -------------------- | ------------------------------------------------------------ |
| CICD | [CICD.md](https://github.com/hawks-atlanta/docs/blob/main/CICD.md) |
| CONTRIBUTING | Make sure you first read [CONTRIBUTING.md](https://github.com/hawks-atlanta/docs/blob/main/CONTRIBUTING.md) and then, this project's [GUIDELINES.md](docs/GUIDELINES.md) |
| Mockups | [Mockups.md](./docs/Mockups.md) |
| Mockups (production) | [MockupsProduction.md](./docs/MockupsProduction.md) |
| Routing | [Routing.md](docs/Routing.md) |

## Repository structure
## Repository structure

| Folder | Description |
| ---------------------------------- | ------------------------------------------------------------ |
| `lib/config` | It contains constants, application routes (using **GoRoutes**), and themes using **Material** & **google_fonts**. |
| `lib/features/auth/domain` | It contains the entire domain model, along with the datasource, entities, and repositories. |
| `lib/features/auth/infrastructure` | It contains the **datasources**, which are the current functions of the app, error **customizations**, User mappers, and repository implementation. |
| `lib/features/auth/presentation` | The presentation layer, providers, and screens are included here, and you can also create custom widgets within it. |
| `lib/features/drive` | It contains the main views layer of CapyFile APP. |
| `lib/features/shared` | It contains functions and classes that are shared across multiple layers, and you can also create custom widgets here that you want to use throughout the app. |
| Folder | Description |
| ---------------------------------- | ------------------------------------------------------------ |
| `lib/config` | It contains constants, application routes (using **GoRoutes**), and themes using **Material** & **google_fonts**. |
| `lib/features/auth/domain` | It contains the entire domain model, along with the datasource, entities, and repositories. |
| `lib/features/auth/infrastructure` | It contains the **datasources**, which are the current functions of the app, error **customizations**, User mappers, and repository implementation. |
| `lib/features/auth/presentation` | The presentation layer, providers, and screens are included here, and you can also create custom widgets within it. |
| `lib/features/drive` | It contains the main views layer of CapyFile APP. |
| `lib/features/shared` | It contains functions and classes that are shared across multiple layers, and you can also create custom widgets here that you want to use throughout the app. |

## Development
## Development

- Make sure you setup the application backend by running:
- Make sure you setup the application backend by running:

```shell
docker compose up -d
```
```shell
docker compose up -d
```

This will expose `0.0.0.0:8080` with a running REST API service on your machine.
This will expose `0.0.0.0:8080` with a running REST API service on your machine.

- Then configure the **`.env`** file in the root of this repository with the IP of your machine on your local network (so your Android phone or emulator can reach the service)
- Then configure the **`env`** file in the root of this repository with the IP of your machine on your local network (so your Android phone or emulator can reach the service)

*Note: check whether it's **HTTP** or HTTPS with the service's port address provided by the proxy; it should be HTTP for it to work in Flutter.*
*Note: check whether it's **HTTP** or HTTPS with the service's port address provided by the proxy; it should be HTTP for it to work in Flutter.*

```shell
echo 'API_URL="http://IP_OF_YOUR_COMPUTER:PORT"' > .env
```
```shell
echo 'API_URL="http://IP_OF_YOUR_COMPUTER:PORT"' > env
```

- Install flutter dependencies with:
- Install flutter dependencies with:

```shell
flutter pub get
```

- Finally compile and copy (or hot-reload) the binary to your phone/emulator
```shell
flutter pub get
```

- Finally compile and copy (or hot-reload) the binary to your phone/emulator


4 changes: 2 additions & 2 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
"git-semver-tags": "^4.1.1",
"standard-version": "^9.5.0"
},
"version": "0.1.6"
"version": "0.1.8"
}
1 change: 0 additions & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ flutter:
uses-material-design: true
# To add assets to your application, add an assets section, like this:
assets:
- .env
- env
- assets/capy.png
# - images/a_dot_ham.jpeg
Expand Down