mirror of
https://github.com/ImranR98/Obtainium.git
synced 2025-10-23 19:03:46 +02:00
Bugfix + changed apps JSON folder name
This commit is contained in:
@@ -72,7 +72,7 @@ class AppsProvider with ChangeNotifier {
|
|||||||
StreamedResponse response =
|
StreamedResponse response =
|
||||||
await Client().send(Request('GET', Uri.parse(apps[appId]!.app.apkUrl)));
|
await Client().send(Request('GET', Uri.parse(apps[appId]!.app.apkUrl)));
|
||||||
File downloadFile =
|
File downloadFile =
|
||||||
File('${(await getExternalStorageDirectory())!.path}/apks/$appId.apk');
|
File('${(await getExternalStorageDirectory())!.path}/$appId.apk');
|
||||||
if (downloadFile.existsSync()) {
|
if (downloadFile.existsSync()) {
|
||||||
downloadFile.deleteSync();
|
downloadFile.deleteSync();
|
||||||
}
|
}
|
||||||
@@ -108,7 +108,7 @@ class AppsProvider with ChangeNotifier {
|
|||||||
|
|
||||||
Future<Directory> getAppsDir() async {
|
Future<Directory> getAppsDir() async {
|
||||||
Directory appsDir = Directory(
|
Directory appsDir = Directory(
|
||||||
'${(await getExternalStorageDirectory())?.path as String}/apps');
|
'${(await getExternalStorageDirectory())?.path as String}/app_data');
|
||||||
if (!appsDir.existsSync()) {
|
if (!appsDir.existsSync()) {
|
||||||
appsDir.createSync();
|
appsDir.createSync();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user