-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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 #399 from KRTirtho/feat-server
Playback Manager Rewrite and Custom Server
- Loading branch information
Showing
59 changed files
with
1,918 additions
and
1,411 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
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 |
---|---|---|
|
@@ -31,6 +31,7 @@ jobs: | |
with: | ||
cache: true | ||
- run: | | ||
echo '${{ secrets.DOTENV_RELEASE }}' > .env | ||
flutter config --enable-windows-desktop | ||
flutter pub get | ||
dart bin/create-secrets.dart '${{ secrets.LYRICS_SECRET }}' '${{ secrets.SPOTIFY_SECRET }}' | ||
|
@@ -72,6 +73,7 @@ jobs: | |
- uses: subosito/[email protected] | ||
with: | ||
cache: true | ||
- run: echo '${{ secrets.DOTENV_RELEASE }}' > .env | ||
- run: flutter config --enable-macos-desktop | ||
- run: flutter pub get | ||
- run: dart bin/create-secrets.dart '${{ secrets.LYRICS_SECRET }}' '${{ secrets.SPOTIFY_SECRET }}' | ||
|
@@ -112,6 +114,7 @@ jobs: | |
# replacing & adding new release version with older version | ||
- run: | | ||
sed -i 's|%{{APPDATA_RELEASE}}%|<release version="${{ steps.tag.outputs.tag }}" date="${{ steps.date.outputs.date }}" />|' linux/com.github.KRTirtho.Spotube.appdata.xml | ||
echo '${{ secrets.DOTENV_RELEASE }}' > .env | ||
- run: | | ||
flutter config --enable-linux-desktop | ||
|
@@ -146,6 +149,7 @@ jobs: | |
sudo apt-get install -y clang cmake ninja-build pkg-config libgtk-3-dev make python3-pip python3-setuptools patchelf desktop-file-utils libgdk-pixbuf2.0-dev fakeroot strace fuse | ||
- run: | | ||
echo '${{ secrets.DOTENV_RELEASE }}' > .env | ||
flutter pub get | ||
dart bin/create-secrets.dart '${{ secrets.LYRICS_SECRET }}' '${{ secrets.SPOTIFY_SECRET }}' | ||
echo '${{ secrets.KEYSTORE }}' | base64 --decode > android/app/upload-keystore.jks | ||
|
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 |
---|---|---|
|
@@ -75,3 +75,5 @@ appimage-build | |
|
||
android/key.properties | ||
.fvm/flutter_sdk | ||
|
||
**/pb_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
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import 'package:flutter/foundation.dart'; | ||
import 'package:flutter_dotenv/flutter_dotenv.dart'; | ||
|
||
abstract class Env { | ||
static final String pocketbaseUrl = | ||
dotenv.get('POCKETBASE_URL', fallback: 'http://localhost:8090'); | ||
static final String username = dotenv.get('USERNAME', fallback: 'root'); | ||
static final String password = dotenv.get('PASSWORD', fallback: '12345678'); | ||
|
||
static configure() async { | ||
if (kReleaseMode) { | ||
await dotenv.load(fileName: ".env"); | ||
} | ||
} | ||
} |
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.