cd: update to flutter 3.10.0

This commit is contained in:
Kingkor Roy Tirtho 2023-05-15 22:35:07 +06:00
parent 3bafa7b80c
commit c9d815674a
3 changed files with 16 additions and 6 deletions

View File

@ -20,14 +20,18 @@ on:
type: boolean
default: true
env:
FLUTTER_VERSION: '3.10.0'
jobs:
windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2.8.0
- uses: subosito/flutter-action@v2.10.0
with:
cache: true
flutter-version: ${{ env.FLUTTER_VERSION }}
- name: Replace pubspec version and BUILD_VERSION Env (nightly)
if: ${{ inputs.channel == 'nightly' }}
@ -88,9 +92,10 @@ jobs:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2.8.0
- uses: subosito/flutter-action@v2.10.0
with:
cache: true
flutter-version: ${{ env.FLUTTER_VERSION }}
- name: Get current date
id: date
@ -170,9 +175,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2.8.0
- uses: subosito/flutter-action@v2.10.0
with:
cache: true
flutter-version: ${{ env.FLUTTER_VERSION }}
- name: Install Dependencies
run: |
@ -225,9 +231,10 @@ jobs:
runs-on: macos-12
steps:
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2.8.0
- uses: subosito/flutter-action@v2.10.0
with:
cache: true
flutter-version: ${{ env.FLUTTER_VERSION }}
- name: Replace pubspec version and BUILD_VERSION Env (nightly)
if: ${{ inputs.channel == 'nightly' }}

View File

@ -26,6 +26,6 @@ subprojects {
project.evaluationDependsOn(':app')
}
task clean(type: Delete) {
tasks.register("clean", Delete) {
delete rootProject.buildDir
}

View File

@ -70,7 +70,6 @@ Future<void> main(List<String> rawArgs) async {
exit(0);
}
await PipedSpotube.initialize();
final widgetsBinding = WidgetsFlutterBinding.ensureInitialized();
FlutterNativeSplash.preserve(widgetsBinding: widgetsBinding);
@ -186,6 +185,10 @@ class SpotubeState extends ConsumerState<Spotube> {
void initState() {
super.initState();
SharedPreferences.getInstance().then(((value) => localStorage = value));
/// Doing the initialization here to avoid loading time
/// when in offline mode
PipedSpotube.initialize();
}
@override