This repository has been archived by the owner on Sep 22, 2024. It is now read-only.
-
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 #9 from iamalper/develop
Develop
- Loading branch information
Showing
111 changed files
with
1,539 additions
and
2,733 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 |
---|---|---|
|
@@ -28,15 +28,12 @@ jobs: | |
uses: actions/download-artifact@v2 | ||
with: | ||
name: gitversion | ||
|
||
- name: Create new file without newline char from version.txt | ||
run: tr -d '\n' < version.txt > version1.txt | ||
|
||
- name: Read version | ||
id: version | ||
uses: juliangruber/read-file-action@v1 | ||
with: | ||
path: version1.txt | ||
path: version.txt | ||
|
||
- name: Update version in pubpsec.yaml | ||
run: sed -i 's/1.0.0+1/${{ steps.version.outputs.content }}+${{ github.run_number }}/g' pubspec.yaml | ||
|
@@ -66,8 +63,6 @@ jobs: | |
channel: 'stable' | ||
cache: true | ||
|
||
- name: Running flutter tests | ||
run: flutter test | ||
|
||
- name: Start appbundle build | ||
run: flutter build appbundle | ||
|
@@ -78,10 +73,11 @@ jobs: | |
- name: Uploading android packages | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: builds | ||
name: android | ||
path: | | ||
build/app/outputs/flutter-apk/app-release.apk | ||
build/app/outputs/bundle/release/app-release.aab | ||
if-no-files-found: error | ||
|
||
build_linux: | ||
needs: [version] | ||
|
@@ -93,15 +89,12 @@ jobs: | |
uses: actions/download-artifact@v2 | ||
with: | ||
name: gitversion | ||
|
||
- name: Create new file without newline char from version.txt | ||
run: tr -d '\n' < version.txt > version1.txt | ||
|
||
- name: Read version | ||
id: version | ||
uses: juliangruber/read-file-action@v1 | ||
with: | ||
path: version1.txt | ||
path: version.txt | ||
|
||
- name: Update version in pubpsec.yaml | ||
run: sed -i 's/1.0.0+1/${{ steps.version.outputs.content }}+${{ github.run_number }}/g' pubspec.yaml | ||
|
@@ -128,7 +121,7 @@ jobs: | |
- run: flutter config --enable-linux-desktop | ||
|
||
- name: Running flutter tests | ||
run: flutter test | ||
run: xvfb-run flutter test integration_test/app_test.dart | ||
|
||
- name: Start linux build | ||
run: flutter build linux | ||
|
@@ -139,13 +132,14 @@ jobs: | |
- name: Upload deb package | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: builds | ||
name: linux | ||
path: | | ||
build/linux/x64/release/debian/*.deb | ||
if-no-files-found: error | ||
|
||
build_windows: #Not implemented | ||
build_windows: | ||
runs-on: windows-latest | ||
if: false | ||
needs: version | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: subosito/flutter-action@v2 | ||
|
@@ -159,60 +153,59 @@ jobs: | |
uses: actions/download-artifact@v2 | ||
with: | ||
name: gitversion | ||
|
||
- name: Create new file without newline char from version.txt | ||
run: tr -d '\n' < version.txt > version1.txt | ||
|
||
- name: Read version | ||
id: version | ||
uses: juliangruber/read-file-action@v1 | ||
with: | ||
path: version1.txt | ||
path: version.txt | ||
|
||
- name: Update version in pubpsec.yaml | ||
run: sed -i 's/1.0.0+1/${{ steps.version.outputs.content }}+${{ github.run_number }}/g' pubspec.yaml | ||
|
||
- run: flutter config --enable-windows-desktop | ||
|
||
- name: Running flutter tests | ||
run: flutter test | ||
run: flutter test integration_test\app_test.dart | ||
|
||
- name: Build for windows | ||
run: flutter build windows | ||
|
||
- name: Upload exe | ||
- name: Upload build folder | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: builds | ||
name: windows | ||
path: | | ||
build/linux/x64/release/debian/*.deb | ||
build\windows\x64\runner\Release | ||
if-no-files-found: error | ||
|
||
release: | ||
env: | ||
isRelease: ${{ github.ref_name == 'main' }} | ||
runs-on: ubuntu-latest | ||
needs: [build_android, build_linux, version] | ||
needs: [build_android, build_linux, version, build_windows] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Downloading builds | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: builds | ||
|
||
- name: Get version.txt | ||
uses: actions/download-artifact@v2 | ||
with: | ||
name: gitversion | ||
|
||
- name: Create new file without newline char from version.txt | ||
run: tr -d '\n' < version.txt > version1.txt | ||
|
||
- name: Read version | ||
id: version | ||
uses: juliangruber/read-file-action@v1 | ||
with: | ||
path: version1.txt | ||
path: gitversion/version.txt | ||
|
||
- name: Rename files | ||
run: | | ||
mv android/flutter-apk/app-release.apk FileDrop-${{ steps.version.outputs.content }}.apk | ||
mv android/bundle/release/app-release.aab FileDrop-${{ steps.version.outputs.content }}.aab | ||
- name: Zip windows folder | ||
uses: "vimtor/[email protected]" | ||
with: | ||
files: windows | ||
dest: windows.zip | ||
|
||
- name: Releasing builds | ||
uses: "marvinpinto/[email protected]" | ||
|
@@ -221,9 +214,10 @@ jobs: | |
repo_token: "${{ secrets.GITHUB_TOKEN }}" | ||
prerelease: ${{ env.isRelease == 'false' }} | ||
files: | | ||
flutter-apk/app-release.apk | ||
bundle/release/app-release.aab | ||
*.deb | ||
*.apk | ||
*.aab | ||
linux/*.deb | ||
windows.zip | ||
version: | ||
name: Create version number | ||
|
@@ -243,7 +237,10 @@ jobs: | |
uses: gittools/actions/gitversion/[email protected] | ||
|
||
- name: Create version.txt with MajorMinorPatch | ||
run: echo ${{ steps.gitversion.outputs.MajorMinorPatch }}${{ steps.gitversion.outputs.PreReleaseTagWithDash }} > version.txt | ||
run: echo ${{ steps.gitversion.outputs.majorMinorPatch }}${{ steps.gitversion.outputs.PreReleaseTagWithDash }} > version_nw.txt | ||
|
||
- name: Create new file without newline char from version.txt | ||
run: tr -d '\n' < version_nw.txt > version.txt | ||
|
||
- name: Upload version.txt | ||
uses: actions/upload-artifact@v2 | ||
|
@@ -260,7 +257,7 @@ jobs: | |
- name: Downloading builds | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: builds | ||
name: android | ||
|
||
- name: Publishing | ||
uses: r0adkll/upload-google-play@v1 | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,29 @@ | ||
-keep class androidx.lifecycle.DefaultLifecycleObserver | ||
-keep class androidx.lifecycle.DefaultLifecycleObserver | ||
|
||
## flutter_local_notification | ||
# Gson uses generic type information stored in a class file when working with fields. Proguard | ||
# removes such information by default, so configure it to keep all of it. | ||
-keepattributes Signature | ||
|
||
# For using GSON @Expose annotation | ||
-keepattributes *Annotation* | ||
|
||
# Gson specific classes | ||
-dontwarn sun.misc.** | ||
#-keep class com.google.gson.stream.** { *; } | ||
|
||
# Prevent proguard from stripping interface information from TypeAdapter, TypeAdapterFactory, | ||
# JsonSerializer, JsonDeserializer instances (so they can be used in @JsonAdapter) | ||
-keep class * extends com.google.gson.TypeAdapter | ||
-keep class * implements com.google.gson.TypeAdapterFactory | ||
-keep class * implements com.google.gson.JsonSerializer | ||
-keep class * implements com.google.gson.JsonDeserializer | ||
|
||
# Prevent R8 from leaving Data object members always null | ||
-keepclassmembers,allowobfuscation class * { | ||
@com.google.gson.annotations.SerializedName <fields>; | ||
} | ||
|
||
# Retain generic signatures of TypeToken and its subclasses with R8 version 3.0 and higher. | ||
-keep,allowobfuscation,allowshrinking class com.google.gson.reflect.TypeToken | ||
-keep,allowobfuscation,allowshrinking class * extends com.google.gson.reflect.TypeToken |
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
File renamed without changes
File renamed without changes
Oops, something went wrong.