diff --git a/README.md b/README.md index 9571570..eab6449 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ Get Android App Updates Directly From the Source. -Obtainium allows you to install and update Open-Source Apps directly from their GitHub or GitLab releases. +Obtainium allows you to install and update Open-Source Apps directly from their GitHub or GitLab releases, and receive notifications when new releases are made available. Motivation: [Side Of Burritos - You should use this instead of F-Droid | How to use app RSS feed](https://youtu.be/FFz57zNR_M0) @@ -10,4 +10,5 @@ Motivation: [Side Of Burritos - You should use this instead of F-Droid | How to ## Limitations - App installs are assumed to have succeeded; failures and cancelled installs cannot be detected. -- Apps that are already installed are not indicated as such, since GitHub and GitLab do not provide App IDs (like `org.example.app`) to allow for comparisons. \ No newline at end of file +- Apps that are already installed are not indicated as such, since GitHub and GitLab do not provide App IDs (like `org.example.app`) to allow for comparisons. +- Auto (unattended) updates are unsupported due to a lack of any capable Flutter plugin. \ No newline at end of file diff --git a/android/app/build.gradle b/android/app/build.gradle index afb1de4..592bd5c 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -47,8 +47,8 @@ android { applicationId "dev.imranr.obtainium" // You can update the following values to match your application needs. // For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-build-configuration. - minSdkVersion 19 - targetSdkVersion flutter.targetSdkVersion + minSdkVersion 23 + targetSdkVersion 32 versionCode flutterVersionCode.toInteger() versionName flutterVersionName } diff --git a/lib/services/apk_service.dart b/lib/services/apk_service.dart index b8c1c00..5dc9d56 100644 --- a/lib/services/apk_service.dart +++ b/lib/services/apk_service.dart @@ -3,13 +3,8 @@ import 'dart:io'; import 'dart:isolate'; import 'dart:ui'; -import 'package:flutter/material.dart'; -import 'package:file_picker/file_picker.dart'; -import 'package:install_plugin_v2/install_plugin_v2.dart'; import 'package:path_provider/path_provider.dart'; -import 'package:permission_handler/permission_handler.dart'; import 'package:flutter_downloader/flutter_downloader.dart'; -import 'package:app_installer/app_installer.dart'; import 'package:flutter_fgbg/flutter_fgbg.dart'; import 'package:flutter_local_notifications/flutter_local_notifications.dart'; diff --git a/pubspec.lock b/pubspec.lock index 9035a8a..1965bb6 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -1,13 +1,6 @@ # Generated by pub # See https://dart.dev/tools/pub/glossary#lockfile packages: - app_installer: - dependency: "direct main" - description: - name: app_installer - url: "https://pub.dartlang.org" - source: hosted - version: "1.1.0" args: dependency: transitive description: @@ -85,13 +78,6 @@ packages: url: "https://pub.dartlang.org" source: hosted version: "6.1.2" - file_picker: - dependency: "direct main" - description: - name: file_picker - url: "https://pub.dartlang.org" - source: hosted - version: "5.0.1" flutter: dependency: "direct main" description: flutter @@ -139,37 +125,11 @@ packages: url: "https://pub.dartlang.org" source: hosted version: "5.0.0" - flutter_plugin_android_lifecycle: - dependency: transitive - description: - name: flutter_plugin_android_lifecycle - url: "https://pub.dartlang.org" - source: hosted - version: "2.0.7" flutter_test: dependency: "direct dev" description: flutter source: sdk version: "0.0.0" - flutter_web_plugins: - dependency: transitive - description: flutter - source: sdk - version: "0.0.0" - install_plugin_v2: - dependency: "direct main" - description: - name: install_plugin_v2 - url: "https://pub.dartlang.org" - source: hosted - version: "1.0.0" - js: - dependency: transitive - description: - name: js - url: "https://pub.dartlang.org" - source: hosted - version: "0.6.4" lints: dependency: transitive description: @@ -261,41 +221,6 @@ packages: url: "https://pub.dartlang.org" source: hosted version: "2.1.2" - permission_handler: - dependency: "direct main" - description: - name: permission_handler - url: "https://pub.dartlang.org" - source: hosted - version: "10.0.0" - permission_handler_android: - dependency: transitive - description: - name: permission_handler_android - url: "https://pub.dartlang.org" - source: hosted - version: "10.0.0" - permission_handler_apple: - dependency: transitive - description: - name: permission_handler_apple - url: "https://pub.dartlang.org" - source: hosted - version: "9.0.4" - permission_handler_platform_interface: - dependency: transitive - description: - name: permission_handler_platform_interface - url: "https://pub.dartlang.org" - source: hosted - version: "3.7.0" - permission_handler_windows: - dependency: transitive - description: - name: permission_handler_windows - url: "https://pub.dartlang.org" - source: hosted - version: "0.1.0" petitparser: dependency: transitive description: diff --git a/pubspec.yaml b/pubspec.yaml index 3ef3c6c..ef18a3b 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -36,12 +36,8 @@ dependencies: # The following adds the Cupertino Icons font to your application. # Use with the CupertinoIcons class for iOS style icons. cupertino_icons: ^1.0.2 - file_picker: ^5.0.1 - install_plugin_v2: ^1.0.0 - permission_handler: ^10.0.0 path_provider: ^2.0.11 flutter_downloader: ^1.8.1 - app_installer: ^1.1.0 flutter_fgbg: ^0.2.0 flutter_local_notifications: ^9.7.0 provider: ^6.0.3