mirror of
https://github.com/ImranR98/Obtainium.git
synced 2025-07-21 08:39:42 +02:00
Compare commits
3 Commits
v0.6.5-bet
...
v0.6.6-bet
Author | SHA1 | Date | |
---|---|---|---|
|
bd5f21984e | ||
|
5037d77b14 | ||
|
c9711c7734 |
@@ -28,6 +28,7 @@ class _GeneratedFormModalState extends State<GeneratedFormModal> {
|
|||||||
@override
|
@override
|
||||||
void initState() {
|
void initState() {
|
||||||
super.initState();
|
super.initState();
|
||||||
|
values = widget.defaultValues;
|
||||||
valid = widget.initValid;
|
valid = widget.initValid;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -14,7 +14,7 @@ import 'package:workmanager/workmanager.dart';
|
|||||||
import 'package:dynamic_color/dynamic_color.dart';
|
import 'package:dynamic_color/dynamic_color.dart';
|
||||||
import 'package:device_info_plus/device_info_plus.dart';
|
import 'package:device_info_plus/device_info_plus.dart';
|
||||||
|
|
||||||
const String currentVersion = '0.6.5';
|
const String currentVersion = '0.6.6';
|
||||||
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
|
||||||
|
|
||||||
|
@@ -362,10 +362,8 @@ class AppsPageState extends State<AppsPage> {
|
|||||||
);
|
);
|
||||||
}).then((values) {
|
}).then((values) {
|
||||||
if (values != null) {
|
if (values != null) {
|
||||||
bool shouldInstallUpdates =
|
bool shouldInstallUpdates = values[0] == 'true';
|
||||||
values.isEmpty || values[0] == 'true';
|
bool shouldInstallNew = values[1] == 'true';
|
||||||
bool shouldInstallNew = values.isEmpty ||
|
|
||||||
(values.length >= 2 && values[1] == 'true');
|
|
||||||
settingsProvider
|
settingsProvider
|
||||||
.getInstallPermission()
|
.getInstallPermission()
|
||||||
.then((_) {
|
.then((_) {
|
||||||
|
@@ -213,7 +213,7 @@ class _SettingsPageState extends State<SettingsPage> {
|
|||||||
height: 8,
|
height: 8,
|
||||||
),
|
),
|
||||||
Text(
|
Text(
|
||||||
'Longer intervals recommended for large App collections',
|
'Longer intervals may result in less reliable behaviour',
|
||||||
style: Theme.of(context)
|
style: Theme.of(context)
|
||||||
.textTheme
|
.textTheme
|
||||||
.labelMedium!
|
.labelMedium!
|
||||||
|
@@ -70,8 +70,9 @@ class AppsProvider with ChangeNotifier {
|
|||||||
}
|
}
|
||||||
|
|
||||||
downloadApk(String apkUrl, String fileName, Function? onProgress,
|
downloadApk(String apkUrl, String fileName, Function? onProgress,
|
||||||
Function? urlModifier,
|
Function? urlModifier) async {
|
||||||
{bool useExistingIfExists = true}) async {
|
bool useExistingIfExists =
|
||||||
|
false; // This should be an function argument, but isn't because of the partially downloaded APK issue
|
||||||
var destDir = (await getExternalStorageDirectory())!.path;
|
var destDir = (await getExternalStorageDirectory())!.path;
|
||||||
if (urlModifier != null) {
|
if (urlModifier != null) {
|
||||||
apkUrl = await urlModifier(apkUrl);
|
apkUrl = await urlModifier(apkUrl);
|
||||||
|
@@ -55,7 +55,7 @@ class SettingsProvider with ChangeNotifier {
|
|||||||
}
|
}
|
||||||
|
|
||||||
int get updateInterval {
|
int get updateInterval {
|
||||||
var min = prefs?.getInt('updateInterval') ?? 180;
|
var min = prefs?.getInt('updateInterval') ?? 60;
|
||||||
if (!updateIntervals.contains(min)) {
|
if (!updateIntervals.contains(min)) {
|
||||||
var temp = updateIntervals[0];
|
var temp = updateIntervals[0];
|
||||||
for (var i in updateIntervals) {
|
for (var i in updateIntervals) {
|
||||||
|
@@ -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.6.5+49 # When changing this, update the tag in main() accordingly
|
version: 0.6.6+50 # 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