From 5d4a796da0761f219a2b0b6d7441da6e7e6cfcb7 Mon Sep 17 00:00:00 2001 From: Santiago Gaona <53282017+SantiagoGaonaC@users.noreply.github.com> Date: Fri, 13 Oct 2023 12:55:17 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9Bchore(0.1.8):=20fix=20release=20(#3?= =?UTF-8?q?8)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * ci: fix create env (#37) * ci: fix create env * ci: fix delete .env * ci: trigger commit * ci: fix env testing --- .github/workflows/release.yaml | 4 +- .github/workflows/testing.yaml | 8 ++-- CHANGELOG.md | 9 ++++ README.md | 77 +++++++++++++++++----------------- package-lock.json | 4 +- package.json | 2 +- pubspec.yaml | 1 - 7 files changed, 57 insertions(+), 48 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 6b0ea46..7de0a69 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -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 diff --git a/.github/workflows/testing.yaml b/.github/workflows/testing.yaml index db7262b..06efe57 100644 --- a/.github/workflows/testing.yaml +++ b/.github/workflows/testing.yaml @@ -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 @@ -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 diff --git a/CHANGELOG.md b/CHANGELOG.md index f409830..65da8ea 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/README.md b/README.md index ae7207d..0beb3a3 100644 --- a/README.md +++ b/README.md @@ -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 + + diff --git a/package-lock.json b/package-lock.json index f3f2d66..a4a91df 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,11 +1,11 @@ { "name": "frontend-flutter", - "version": "0.1.6", + "version": "0.1.8", "lockfileVersion": 3, "requires": true, "packages": { "": { - "version": "0.1.6", + "version": "0.1.8", "devDependencies": { "git-semver-tags": "^4.1.1", "standard-version": "^9.5.0" diff --git a/package.json b/package.json index d65f8ab..f0c5526 100644 --- a/package.json +++ b/package.json @@ -3,5 +3,5 @@ "git-semver-tags": "^4.1.1", "standard-version": "^9.5.0" }, - "version": "0.1.6" + "version": "0.1.8" } diff --git a/pubspec.yaml b/pubspec.yaml index 024c0d1..9e4bbfb 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -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