-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from ConcenTech/0.2.1
0.2.1
- Loading branch information
Showing
28 changed files
with
885 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,173 @@ | ||
name: Build Release | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- "lib/**" | ||
- "video_player/lib/**" | ||
|
||
jobs: | ||
build_android: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Setup the Java environment | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: oracle | ||
java-version: "17" | ||
|
||
- name: Setup the flutter environment | ||
uses: subosito/flutter-action@v2 | ||
with: | ||
channel: "stable" | ||
|
||
- name: Add signing config | ||
env: | ||
ANDROID_KEY: ${{ secrets.ANDROID_KEY_BASE64 }}, | ||
run: | | ||
echo $ANDROID_KEY | base64 -d > android/key.jks | ||
- name: Create key.properties | ||
run: | | ||
echo "storePassword=${{ secrets.ANDROID_KEYSTORE_PASSWORD }}" > android/key.properties | ||
echo "keyPassword=${{ secrets.ANDROID_KEYSTORE_PASSWORD }}" >> android/key.properties | ||
echo "keyAlias=${{ secrets.ANDROID_KEY_ALIAS }}" >> android/key.properties | ||
echo "storeFile=keystore.jks" >> android/key.properties | ||
- name: Build appbundle | ||
run: | | ||
flutter pub get | ||
flutter build appbundle | ||
- name: Rename bundle | ||
run: mv build/app/outputs/bundle/release/app-release.aab build/app/outputs/bundle/release/AlbumShare-{{github.ref_name}}-android.aab | ||
|
||
- name: Create symbols archive | ||
uses: thedoctor0/[email protected] | ||
with: | ||
type: "zip" | ||
filename: AlbumShare-{{github.ref_name}}-android-symbols.zip | ||
directory: build/app/intermediates/merged_natove_libs/release/out/lib/ | ||
|
||
- name: Add files to release | ||
uses: softprops/action-gh-release@v2 | ||
if: startsWith(github.ref, 'refs/tags/') | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
files: | | ||
build/app/intermediates/merged_natove_libs/release/out/lib/AlbumShare-{{github.ref_name}}-android-symbols.zip | ||
build/app/outputs/bundle/release/AlbumShare-{{github.ref_name}}-android.aab | ||
build_linux: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Install flutter dependencies | ||
run: sudo apt-get install -y clang cmake ninja-build pkg-config libgtk-3-0 libgtk-3-dev libblkid1 liblzma5 | ||
|
||
- name: Setup the flutter environment | ||
uses: subosito/flutter-action@v2 | ||
with: | ||
channel: "stable" | ||
|
||
- name: Install project dependencies | ||
run: flutter pub get | ||
|
||
- name: Generate build files | ||
run: dart run build_runner build --delete-conflicting-outputs | ||
|
||
- name: Build | ||
run: flutter build linux --release | ||
|
||
- name: Creative archive | ||
uses: thedoctor0/[email protected] | ||
with: | ||
type: "zip" | ||
filename: AlbumShare-{{github.ref_name}}-linux.zip | ||
directory: build/linux/x64/release/bundle | ||
|
||
- name: Add archive to release | ||
uses: softprops/action-gh-release@v2 | ||
if: startsWith(github.ref, 'refs/tags/') | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
files: build/linux/x64/release/bundle/AlbumShare-{{github.ref_name}}-linux.zip | ||
|
||
build_windows: | ||
runs-on: windows-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Setup the flutter environment | ||
uses: subosito/flutter-action@v2 | ||
with: | ||
channel: "stable" | ||
|
||
- name: Install project dependencies | ||
run: flutter pub get | ||
|
||
- name: Generate build files | ||
run: dart run build_runner build --delete-conflicting-outputs | ||
|
||
- name: Build | ||
run: flutter build linux --release | ||
|
||
- name: Creative archive | ||
uses: thedoctor0/[email protected] | ||
with: | ||
type: "zip" | ||
filename: AlbumShare-{{github.ref_name}}-windows.zip | ||
directory: build/windows/x64/runner/Release | ||
|
||
- name: Add archive to release | ||
uses: softprops/action-gh-release@v2 | ||
if: startsWith(github.ref, 'refs/tags/') | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
files: build/windows/x64/runner/Release/AlbumShare-{{github.ref_name}}-windows.zip | ||
|
||
build_macos: | ||
runs-on: macos-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Setup the flutter environment | ||
uses: subosito/flutter-action@v2 | ||
with: | ||
channel: "stable" | ||
|
||
- name: Install project dependencies | ||
run: flutter pub get | ||
|
||
- name: Generate build files | ||
run: dart run build_runner build --delete-conflicting-outputs | ||
|
||
- name: Build | ||
run: flutter build macos --release | ||
|
||
- name: Creative archive | ||
uses: thedoctor0/[email protected] | ||
with: | ||
type: "zip" | ||
filename: AlbumShare-{{github.ref_name}}-macos.zip | ||
directory: build/macos/Build/Products/Release | ||
|
||
- name: Add archive to release | ||
uses: softprops/action-gh-release@v2 | ||
if: startsWith(github.ref, 'refs/tags/') | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
files: build/macos/Build/Products/Release/AlbumShare-{{github.ref_name}}-macos.zip | ||
|
||
# build_ios: | ||
# runs-on: macos-latest | ||
# steps: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: Update version tag after merge into 'Deployment' | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
update-version-tag: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Parse pubspec.yaml | ||
id: yaml-version | ||
uses: pietrobolcato/[email protected] | ||
with: | ||
config: pubspec.yaml | ||
|
||
- name: Create release | ||
uses: ncipollo/release-action@v1 | ||
with: | ||
tag: "v${{ steps.yaml-version.outputs['version'] }}" | ||
commit: "master" | ||
token: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
name: Verify version & release notes have been updated | ||
|
||
on: | ||
push: | ||
|
||
jobs: | ||
verify-version: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: "Ensure pubspec and release notes have been updated" | ||
uses: danieljimeneznz/[email protected] | ||
with: | ||
require-changes-to: | | ||
pubspec.yaml | ||
CHANGELOG.md | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: List files | ||
id: list-files | ||
run: ls -lah | ||
|
||
- name: Parse pubspec.yaml | ||
id: yaml-version | ||
uses: pietrobolcato/[email protected] | ||
with: | ||
config: pubspec.yaml | ||
|
||
- name: Print pubspec.yaml version | ||
run: | | ||
echo "${{ steps.yaml-version.outputs['version'] }}" | ||
- name: Fetch previous tag | ||
id: tag-version | ||
uses: "WyriHaximus/github-action-get-previous-tag@v1" | ||
|
||
- name: Display tag version | ||
run: | | ||
echo "${{ steps.tag-version.outputs.tag }}" | ||
- name: "Setup Dart environment" | ||
uses: dart-lang/setup-dart@v1 | ||
|
||
- name: Install Dart dependencies | ||
run: | | ||
cd version_check | ||
dart pub get | ||
- name: Compare versions | ||
run: dart run version_check/bin/version_check.dart -p "${{ steps.tag-version.outputs.tag }}" -n "${{ steps.yaml-version.outputs.data }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
|
||
# Changelog | ||
|
||
All notable changes to this project will be documented in this file. | ||
|
||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), | ||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). | ||
|
||
## [1.2.1] - UNRELEASED | ||
|
||
### Added | ||
|
||
- Changelog | ||
- Added album title to AssetViewerScreen | ||
|
||
### Changed | ||
|
||
- Use same colour on material navigation bars and material app bar. | ||
- Updated default preferences. | ||
|
||
### Fixed | ||
- Tapping on desktop app bar causes it to hide. | ||
- AssetViewerPage popping when image zoomed. | ||
Now, when the user attempts to navigate back, the image scale is first reset then the page popped if the user attempts to navigate back a second time | ||
- If the user attempts to navigate backwards after logging in, the user is taken to the login page again but remains logged in. | ||
- Pop called twice when asset swiped down. | ||
|
||
|
||
[0.2.1]: https://github.com/ConcenTech/album_share/compare/main...0.2.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.