chore: update app version to 1.3.34+31, change build mode to release, and add permission for package installation; refactor AppInfoModel and Info models to include file and minVersion attributes

This commit is contained in:
2025-12-03 08:06:06 +03:30
parent 6861e873ba
commit d256477cb8
10 changed files with 63 additions and 54 deletions

View File

@@ -5,14 +5,21 @@ part 'app_info_model.g.dart';
@freezed
abstract class AppInfoModel with _$AppInfoModel {
const factory AppInfoModel({String? key, String? download_link, Info? info}) = _AppInfoModel;
const factory AppInfoModel({String? key, String? file, Info? info}) =
_AppInfoModel;
factory AppInfoModel.fromJson(Map<String, dynamic> json) => _$AppInfoModelFromJson(json);
factory AppInfoModel.fromJson(Map<String, dynamic> json) =>
_$AppInfoModelFromJson(json);
}
@freezed
abstract class Info with _$Info {
const factory Info({String? version, String? module, bool? required}) = _Info;
const factory Info({
String? version,
String? minVersion,
String? module,
bool? required,
}) = _Info;
factory Info.fromJson(Map<String, dynamic> json) => _$InfoFromJson(json);
}