Skip to content

Commit

Permalink
Merge pull request #40 from UNIZAR-30226-2023-01/dev
Browse files Browse the repository at this point in the history
bugs fixed + apk
  • Loading branch information
FranciscoJavierPizarro committed May 15, 2023
2 parents 8d8eaa6 + aff0ac5 commit a769d8d
Show file tree
Hide file tree
Showing 484 changed files with 1,238 additions and 640 deletions.
85 changes: 37 additions & 48 deletions .github/workflows/production.yml
Original file line number Diff line number Diff line change
@@ -1,62 +1,51 @@
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.

name: Production CI
name: Upload APK as Release

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

env:
FLUTTER_VERSION: "3.10.0"
TAG_NAME: "1.0.0"
branches:
- main

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up Flutter
uses: subosito/flutter-action@v1
uses: subosito/flutter-action@v2
with:
flutter-version: ${{ env.FLUTTER_VERSION }}
- name: Install dependencies
run: flutter pub get
# Consider passing '--fatal-infos' for slightly stricter analysis.
- name: Analyze project source
run: dart analyze
# - run: flutter build apk
# - uses: actions/upload-artifact@v1
# with:
# name: release-apk
# path: build/app/outputs/apk/release/app-release.apk
flutter-version: 2.x

- name: Checkout code
uses: actions/checkout@v2

# - name: Create a Release
# uses: actions/create-release@v1
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# tag_name: "v${{ env.TAG_NAME }}"
# release_name: "Release v${{ env.TAG_NAME }}"
# draft: false
# prerelease: false

# - name: Upload APK as Release Asset
# uses: actions/upload-release-asset@v1
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Build APK
run: flutter build apk

- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.TOKEN }}
with:
tag_name: v${{ github.run_number }}
release_name: Release v${{ github.run_number }}
draft: false
prerelease: false

- name: Upload APK
id: upload_asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: build/app/outputs/flutter-apk/app-release.apk
asset_name: MyApp-v${{ github.run_number }}.apk
asset_content_type: application/vnd.android.package-archive


# - name: Create a Release APK
# uses: ncipollo/release-action@v1
# with:
# upload_url: "${{ steps.create_release.outputs.upload_url }}"
# asset_path: build/app/outputs/apk/release/app-release.apk
# asset_name: app-release.apk
# asset_content_type: application/vnd.android.package-archive
# artifacts: "build/app/outputs/apk/release/*.apk"
# token: ${{ secrets.TOKEN }}
2 changes: 1 addition & 1 deletion docs/__404error.html
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ <h5><span class="package-name">ajedrez</span> <span class="package-kind">package
<footer>
<span class="no-break">
ajedrez
1.2.3
2.0.1
</span>


Expand Down
2 changes: 1 addition & 1 deletion docs/components_chessLogic_board/BoardData-class.html
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ <h5>board library</h5>
<footer>
<span class="no-break">
ajedrez
1.2.3
2.0.1
</span>


Expand Down
2 changes: 1 addition & 1 deletion docs/components_chessLogic_board/BoardData/BoardData.html
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ <h5>BoardData class</h5>
<footer>
<span class="no-break">
ajedrez
1.2.3
2.0.1
</span>


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ <h5>BoardData class</h5>
<footer>
<span class="no-break">
ajedrez
1.2.3
2.0.1
</span>


Expand Down
2 changes: 1 addition & 1 deletion docs/components_chessLogic_board/BoardData/clocks.html
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ <h5>BoardData class</h5>
<footer>
<span class="no-break">
ajedrez
1.2.3
2.0.1
</span>


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ <h5>BoardData class</h5>
<footer>
<span class="no-break">
ajedrez
1.2.3
2.0.1
</span>


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ <h5>BoardData class</h5>
<footer>
<span class="no-break">
ajedrez
1.2.3
2.0.1
</span>


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ <h5>BoardData class</h5>
<footer>
<span class="no-break">
ajedrez
1.2.3
2.0.1
</span>


Expand Down
2 changes: 1 addition & 1 deletion docs/components_chessLogic_board/BoardData/prom.html
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ <h5>BoardData class</h5>
<footer>
<span class="no-break">
ajedrez
1.2.3
2.0.1
</span>


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ <h5>BoardData class</h5>
<footer>
<span class="no-break">
ajedrez
1.2.3
2.0.1
</span>


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ <h5>BoardData class</h5>
<footer>
<span class="no-break">
ajedrez
1.2.3
2.0.1
</span>


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ <h5>BoardData class</h5>
<footer>
<span class="no-break">
ajedrez
1.2.3
2.0.1
</span>


Expand Down
2 changes: 1 addition & 1 deletion docs/components_chessLogic_board/BoardData/squares.html
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ <h5>BoardData class</h5>
<footer>
<span class="no-break">
ajedrez
1.2.3
2.0.1
</span>


Expand Down
2 changes: 1 addition & 1 deletion docs/components_chessLogic_board/BoardData/whiteTurn.html
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ <h5>BoardData class</h5>
<footer>
<span class="no-break">
ajedrez
1.2.3
2.0.1
</span>


Expand Down
2 changes: 1 addition & 1 deletion docs/components_chessLogic_board/blackPieces.html
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ <h5>board library</h5>
<footer>
<span class="no-break">
ajedrez
1.2.3
2.0.1
</span>


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ <h5>board library</h5>
<footer>
<span class="no-break">
ajedrez
1.2.3
2.0.1
</span>


Expand Down
2 changes: 1 addition & 1 deletion docs/components_chessLogic_board/initEmptyMovements.html
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ <h5>board library</h5>
<footer>
<span class="no-break">
ajedrez
1.2.3
2.0.1
</span>


Expand Down
2 changes: 1 addition & 1 deletion docs/components_chessLogic_board/inversedBlackPieces.html
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ <h5>board library</h5>
<footer>
<span class="no-break">
ajedrez
1.2.3
2.0.1
</span>


Expand Down
2 changes: 1 addition & 1 deletion docs/components_chessLogic_board/inversedWhitePieces.html
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ <h5>board library</h5>
<footer>
<span class="no-break">
ajedrez
1.2.3
2.0.1
</span>


Expand Down
2 changes: 1 addition & 1 deletion docs/components_chessLogic_board/resetSingleton.html
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ <h5>board library</h5>
<footer>
<span class="no-break">
ajedrez
1.2.3
2.0.1
</span>


Expand Down
2 changes: 1 addition & 1 deletion docs/components_chessLogic_board/validateMovements.html
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ <h5>board library</h5>
<footer>
<span class="no-break">
ajedrez
1.2.3
2.0.1
</span>


Expand Down
2 changes: 1 addition & 1 deletion docs/components_chessLogic_board/whitePieces.html
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ <h5>board library</h5>
<footer>
<span class="no-break">
ajedrez
1.2.3
2.0.1
</span>


Expand Down
2 changes: 1 addition & 1 deletion docs/components_chessLogic_pieces/Bishop-class.html
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ <h5>pieces library</h5>
<footer>
<span class="no-break">
ajedrez
1.2.3
2.0.1
</span>


Expand Down
2 changes: 1 addition & 1 deletion docs/components_chessLogic_pieces/Bishop/Bishop.html
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ <h5>Bishop class</h5>
<footer>
<span class="no-break">
ajedrez
1.2.3
2.0.1
</span>


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ <h5>Bishop class</h5>
<footer>
<span class="no-break">
ajedrez
1.2.3
2.0.1
</span>


Expand Down
2 changes: 1 addition & 1 deletion docs/components_chessLogic_pieces/Empty-class.html
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ <h5>pieces library</h5>
<footer>
<span class="no-break">
ajedrez
1.2.3
2.0.1
</span>


Expand Down
2 changes: 1 addition & 1 deletion docs/components_chessLogic_pieces/Empty/Empty.html
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ <h5>Empty class</h5>
<footer>
<span class="no-break">
ajedrez
1.2.3
2.0.1
</span>


Expand Down
2 changes: 1 addition & 1 deletion docs/components_chessLogic_pieces/Empty/isEmpty.html
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ <h5>Empty class</h5>
<footer>
<span class="no-break">
ajedrez
1.2.3
2.0.1
</span>


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ <h5>Empty class</h5>
<footer>
<span class="no-break">
ajedrez
1.2.3
2.0.1
</span>


Expand Down
2 changes: 1 addition & 1 deletion docs/components_chessLogic_pieces/King-class.html
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ <h5>pieces library</h5>
<footer>
<span class="no-break">
ajedrez
1.2.3
2.0.1
</span>


Expand Down
2 changes: 1 addition & 1 deletion docs/components_chessLogic_pieces/King/King.html
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ <h5>King class</h5>
<footer>
<span class="no-break">
ajedrez
1.2.3
2.0.1
</span>


Expand Down
2 changes: 1 addition & 1 deletion docs/components_chessLogic_pieces/King/alreadyMoved.html
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ <h5>King class</h5>
<footer>
<span class="no-break">
ajedrez
1.2.3
2.0.1
</span>


Expand Down
Loading

0 comments on commit a769d8d

Please sign in to comment.