A cross platform Audiobookshelf client for Android and iOS
Dart
Merge main into ios-features
Barnabasc5a4fd054c6f
diff --cc codemagic.yamlindex 8c7e2ae3,4dfb0e98..b91644b8--- a/codemagic.yaml+++ b/codemagic.yaml@@@ -125,22 -135,71 +135,91 @@@ workflowsauth: integrationsubmit_to_testflight: true+ ios-altstore:+ name: iOS AltStore Build+ max_build_duration: 60+ instance_type: mac_mini_m2+ integrations:+ app_store_connect: Apple Dev Key+ environment:+ ios_signing:+ distribution_type: app_store+ bundle_identifier: com.barnabas.absorb+ flutter: stable+ xcode: latest+ scripts:+ - name: Set up code signing+ script: xcode-project use-profiles+ - name: Build IPA+ script: flutter build ipa --release --export-options-plist=/Users/builder/export_options.plist+ artifacts:+ - build/ios/ipa/*.ipa+++ all-release:+ name: All Platforms Release (APK + AAB + IPA to GitHub + TestFlight)+ max_build_duration: 120+ instance_type: mac_mini_m2+ integrations:+ app_store_connect: Apple Dev Key+ environment:+ android_signing:+ - absorb_keystore+ ios_signing:+ distribution_type: app_store+ bundle_identifier: com.barnabas.absorb+ groups:+ - github_credentials+ flutter: stable+ java: 17+ xcode: latest+ scripts:+ - name: Set up key.properties+ script: |+ cat >> $CM_BUILD_DIR/android/key.properties <<EOF+ storePassword=$CM_KEYSTORE_PASSWORD+ keyPassword=$CM_KEY_PASSWORD+ keyAlias=$CM_KEY_ALIAS+ storeFile=$CM_KEYSTORE_PATH+ EOF+ - name: Set up iOS code signing+ script: xcode-project use-profiles+ - name: Build GitHub APK+ script: flutter build apk --release --flavor github --dart-define=GITHUB_BUILD=true+ - name: Build Play Store AAB+ script: flutter build appbundle --release --flavor playstore --dart-define=PLAYSTORE_BUILD=true+ - name: Build iOS IPA+ script: flutter build ipa --release --export-options-plist=/Users/builder/export_options.plist+ - name: Rename AAB and IPA with version+ script: |+ VERSION=$(grep 'version:' pubspec.yaml | head -1 | sed 's/version: //' | cut -d'+' -f1)+ AAB_SRC=$(ls build/app/outputs/bundle/playstoreRelease/*.aab | head -1)+ mv "$AAB_SRC" "build/app/outputs/bundle/playstoreRelease/absorb-${VERSION}.aab"+ IPA_SRC=$(ls build/ios/ipa/*.ipa | head -1)+ mv "$IPA_SRC" "build/ios/ipa/absorb-${VERSION}.ipa"+ - name: Publish all to GitHub Draft Release+ script: |+ VERSION="v$(grep 'version:' pubspec.yaml | head -1 | sed 's/version: //' | cut -d'+' -f1)"+ if gh release view "$VERSION" --repo "$CM_REPO_SLUG" &>/dev/null; then+ gh release upload "$VERSION" \+ build/app/outputs/apk/github/release/*.apk \+ build/app/outputs/bundle/playstoreRelease/*.aab \+ build/ios/ipa/*.ipa \+ --clobber \+ --repo "$CM_REPO_SLUG"+ else+ gh release create "$VERSION" \+ build/app/outputs/apk/github/release/*.apk \+ build/app/outputs/bundle/playstoreRelease/*.aab \+ build/ios/ipa/*.ipa \+ --draft \+ --title "$VERSION" \+ --repo "$CM_REPO_SLUG"+ fi+ artifacts:+ - build/app/outputs/apk/github/release/*.apk+ - build/app/outputs/bundle/playstoreRelease/*.aab+ - build/ios/ipa/*.ipa+ publishing:+ app_store_connect:+ auth: integration+ submit_to_testflight: truediff --cc lib/providers/auth_provider.dartindex cd04b78b,b32ff30f..2528745b--- a/lib/providers/auth_provider.dart+++ b/lib/providers/auth_provider.dart@@@ -4,8 -4,8 +4,9 @@@ import 'package:flutter/material.dart'import 'package:shared_preferences/shared_preferences.dart';import '../services/api_service.dart';import '../services/android_auto_service.dart';+import '../services/carplay_service.dart';import '../services/audio_player_service.dart';+ import '../services/equalizer_service.dart';import '../services/session_cache.dart';import '../services/socket_service.dart';import '../services/user_account_service.dart';