mirror of
				https://github.com/ImranR98/Obtainium.git
				synced 2025-11-03 23:03:29 +01:00 
			
		
		
		
	Compare commits
	
		
			2 Commits
		
	
	
		
			v0.11.20-b
			...
			v0.11.21-b
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 
						 | 
					210100da2b | ||
| 
						 | 
					d52660235b | 
@@ -21,7 +21,7 @@ import 'package:easy_localization/src/easy_localization_controller.dart';
 | 
				
			|||||||
// ignore: implementation_imports
 | 
					// ignore: implementation_imports
 | 
				
			||||||
import 'package:easy_localization/src/localization.dart';
 | 
					import 'package:easy_localization/src/localization.dart';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
const String currentVersion = '0.11.20';
 | 
					const String currentVersion = '0.11.21';
 | 
				
			||||||
const String currentReleaseTag =
 | 
					const String currentReleaseTag =
 | 
				
			||||||
    'v$currentVersion-beta'; // KEEP THIS IN SYNC WITH GITHUB RELEASES
 | 
					    'v$currentVersion-beta'; // KEEP THIS IN SYNC WITH GITHUB RELEASES
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -848,12 +848,6 @@ class AppsProvider with ChangeNotifier {
 | 
				
			|||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  Future<String> exportApps() async {
 | 
					  Future<String> exportApps() async {
 | 
				
			||||||
    Directory? exportDir = Directory('/storage/emulated/0/Download');
 | 
					 | 
				
			||||||
    String path = 'Downloads'; // TODO: See if hardcoding this can be avoided
 | 
					 | 
				
			||||||
    if (!exportDir.existsSync()) {
 | 
					 | 
				
			||||||
      exportDir = await getExternalStorageDirectory();
 | 
					 | 
				
			||||||
      path = exportDir!.path;
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    if ((await DeviceInfoPlugin().androidInfo).version.sdkInt <= 29) {
 | 
					    if ((await DeviceInfoPlugin().androidInfo).version.sdkInt <= 29) {
 | 
				
			||||||
      if (await Permission.storage.isDenied) {
 | 
					      if (await Permission.storage.isDenied) {
 | 
				
			||||||
        await Permission.storage.request();
 | 
					        await Permission.storage.request();
 | 
				
			||||||
@@ -862,6 +856,18 @@ class AppsProvider with ChangeNotifier {
 | 
				
			|||||||
        throw ObtainiumError(tr('storagePermissionDenied'));
 | 
					        throw ObtainiumError(tr('storagePermissionDenied'));
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					    Directory? exportDir = Directory('/storage/emulated/0/Download');
 | 
				
			||||||
 | 
					    String path = 'Downloads'; // TODO: See if hardcoding this can be avoided
 | 
				
			||||||
 | 
					    var downloadsAccessible = false;
 | 
				
			||||||
 | 
					    try {
 | 
				
			||||||
 | 
					      downloadsAccessible = exportDir.existsSync();
 | 
				
			||||||
 | 
					    } catch (e) {
 | 
				
			||||||
 | 
					      logs.add('Error accessing Downloads (will use fallback): $e');
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					    if (!downloadsAccessible) {
 | 
				
			||||||
 | 
					      exportDir = await getExternalStorageDirectory();
 | 
				
			||||||
 | 
					      path = exportDir!.path;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
    File export = File(
 | 
					    File export = File(
 | 
				
			||||||
        '${exportDir.path}/${tr('obtainiumExportHyphenatedLowercase')}-${DateTime.now().millisecondsSinceEpoch}.json');
 | 
					        '${exportDir.path}/${tr('obtainiumExportHyphenatedLowercase')}-${DateTime.now().millisecondsSinceEpoch}.json');
 | 
				
			||||||
    export.writeAsStringSync(
 | 
					    export.writeAsStringSync(
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -17,7 +17,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
 | 
				
			|||||||
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
 | 
					# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
 | 
				
			||||||
# In Windows, build-name is used as the major, minor, and patch parts
 | 
					# In Windows, build-name is used as the major, minor, and patch parts
 | 
				
			||||||
# of the product and file versions while build-number is used as the build suffix.
 | 
					# of the product and file versions while build-number is used as the build suffix.
 | 
				
			||||||
version: 0.11.20+142 # When changing this, update the tag in main() accordingly
 | 
					version: 0.11.21+143 # When changing this, update the tag in main() accordingly
 | 
				
			||||||
 | 
					
 | 
				
			||||||
environment:
 | 
					environment:
 | 
				
			||||||
  sdk: '>=2.18.2 <3.0.0'
 | 
					  sdk: '>=2.18.2 <3.0.0'
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user