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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user