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

@@ -185,7 +185,7 @@ class SplashLogic extends GetxController with GetTickerProviderStateMixin {
try {
final info = await PackageInfo.fromPlatform();
int version = info.version.versionNumber;
var res = await _dio.get("https://rsibackend.rasadyaar.ir/app/apk-info/");
var res = await _dio.get("https://rsibackend.rasadyar.com/app/rasadyar-app-info/");
appInfoModel = AppInfoModel.fromJson(res.data);
@@ -214,7 +214,7 @@ class SplashLogic extends GetxController with GetTickerProviderStateMixin {
while (attempts < retryCount && !success) {
try {
await _dio.download(
appInfoModel?.download_link ?? '',
appInfoModel?.file ?? '',
filePath,
onReceiveProgress: (count, total) {
if (total != -1 && total > 0) {