chore: target android api 36

This commit is contained in:
Dr.Blank 2026-01-10 14:43:59 +05:30
parent 07aea41c6e
commit 06694f5f0b
No known key found for this signature in database
GPG key ID: BA5F87FF0560C57B
7 changed files with 64 additions and 66 deletions

2
.fvmrc
View file

@ -1,3 +1,3 @@
{ {
"flutter": "3.32.0" "flutter": "3.32.8"
} }

View file

@ -22,7 +22,7 @@
"utsname", "utsname",
"Vaani" "Vaani"
], ],
"dart.flutterSdkPath": ".fvm/versions/3.32.0", "dart.flutterSdkPath": ".fvm/versions/3.32.8",
"files.exclude": { "files.exclude": {
"**/*.freezed.dart": true, "**/*.freezed.dart": true,
"**/*.g.dart": true "**/*.g.dart": true

View file

@ -30,7 +30,7 @@ if (keystorePropertiesFile.exists()) {
android { android {
namespace "dr.blank.vaani" namespace "dr.blank.vaani"
compileSdk flutter.compileSdkVersion compileSdk 36
// ndkVersion flutter.ndkVersion // ndkVersion flutter.ndkVersion
// The NDK version is set to a specific version since it was not building // The NDK version is set to a specific version since it was not building
// TODO remove when https://github.com/flutter/flutter/issues/139427 is closed // TODO remove when https://github.com/flutter/flutter/issues/139427 is closed
@ -65,7 +65,7 @@ android {
// You can update the following values to match your application needs. // You can update the following values to match your application needs.
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration. // For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.
minSdkVersion 23 minSdkVersion 23
targetSdkVersion flutter.targetSdkVersion targetSdkVersion 36
versionCode flutterVersionCode.toInteger() versionCode flutterVersionCode.toInteger()
versionName flutterVersionName versionName flutterVersionName
} }

View file

@ -1,39 +1,39 @@
import 'package:isar/isar.dart'; // import 'package:isar/isar.dart';
part 'image.g.dart'; // part 'image.g.dart';
/// Represents a cover image for a library item // /// Represents a cover image for a library item
/// // ///
/// stores 2 paths, one is thumbnail and the other is the full size image // /// stores 2 paths, one is thumbnail and the other is the full size image
/// both are optional // /// both are optional
/// also stores last fetched date for the image // /// also stores last fetched date for the image
/// Id is passed as a parameter to the collection annotation (the lib_item_id) // /// Id is passed as a parameter to the collection annotation (the lib_item_id)
/// also index the id // /// also index the id
/// This is because the image is a part of the library item and the library item // /// This is because the image is a part of the library item and the library item
/// is the parent of the image // /// is the parent of the image
@Collection(ignore: {'path'}) // @Collection(ignore: {'path'})
@Name('CacheImage') // @Name('CacheImage')
class Image { // class Image {
@Id() // @Id()
int id; // int id;
String? thumbnailPath; // String? thumbnailPath;
String? imagePath; // String? imagePath;
DateTime lastSaved; // DateTime lastSaved;
Image({ // Image({
required this.id, // required this.id,
this.thumbnailPath, // this.thumbnailPath,
this.imagePath, // this.imagePath,
}) : lastSaved = DateTime.now(); // }) : lastSaved = DateTime.now();
/// returns the path to the image // /// returns the path to the image
String? get path => thumbnailPath ?? imagePath; // String? get path => thumbnailPath ?? imagePath;
/// automatically updates the last fetched date when saving a new path // /// automatically updates the last fetched date when saving a new path
void updatePath(String? thumbnailPath, String? imagePath) async { // void updatePath(String? thumbnailPath, String? imagePath) async {
this.thumbnailPath = thumbnailPath; // this.thumbnailPath = thumbnailPath;
this.imagePath = imagePath; // this.imagePath = imagePath;
lastSaved = DateTime.now(); // lastSaved = DateTime.now();
} // }
} // }

View file

@ -1,29 +1,29 @@
// a table to track preferences of player for each book // // a table to track preferences of player for each book
import 'package:isar/isar.dart'; // import 'package:isar/isar.dart';
part 'book_prefs.g.dart'; // part 'book_prefs.g.dart';
/// stores the preferences of the player for a book // /// stores the preferences of the player for a book
@Collection() // @Collection()
@Name('BookPrefs') // @Name('BookPrefs')
class BookPrefs { // class BookPrefs {
@Id() // @Id()
int libItemId; // int libItemId;
double? speed; // double? speed;
// double? volume; // // double? volume;
// Duration? sleepTimer; // // Duration? sleepTimer;
// bool? showTotalProgress; // // bool? showTotalProgress;
// bool? showChapterProgress; // // bool? showChapterProgress;
// bool? useChapterInfo; // // bool? useChapterInfo;
BookPrefs({ // BookPrefs({
required this.libItemId, // required this.libItemId,
this.speed, // this.speed,
// this.volume, // // this.volume,
// this.sleepTimer, // // this.sleepTimer,
// this.showTotalProgress, // // this.showTotalProgress,
// this.showChapterProgress, // // this.showChapterProgress,
// this.useChapterInfo, // // this.useChapterInfo,
}); // });
} // }

View file

@ -1597,4 +1597,4 @@ packages:
version: "3.1.3" version: "3.1.3"
sdks: sdks:
dart: ">=3.7.0 <4.0.0" dart: ">=3.7.0 <4.0.0"
flutter: ">=3.32.0" flutter: ">=3.32.8"

View file

@ -20,9 +20,7 @@ version: 0.0.18+9
environment: environment:
sdk: ">=3.3.4 <4.0.0" sdk: ">=3.3.4 <4.0.0"
flutter: 3.32.0 flutter: 3.32.8
isar_version: &isar_version ^4.0.0-dev.13 # define the version to be used
# Dependencies specify other packages that your package needs in order to work. # Dependencies specify other packages that your package needs in order to work.
# To automatically upgrade your package dependencies to the latest versions # To automatically upgrade your package dependencies to the latest versions