Compare commits

...

5 Commits

Author SHA1 Message Date
Alberto Ponces
41ac2b0df8 build: Bump version to v0.0.11 2022-09-18 04:47:23 +01:00
Alberto Ponces
52e7d76c9d fix: Fix spacing of App Info buttons 2022-09-18 04:46:21 +01:00
Alberto Ponces
3aa80cacc0 fix: Fix duplicate entries on non-root installations 2022-09-18 04:44:44 +01:00
Alberto Ponces
dd52c379b4 fix: Show updatable app item only on updatable apps listing 2022-09-18 04:12:33 +01:00
Alberto Ponces
5d073bddf2 fix: Minor i18n typo 2022-09-18 03:41:16 +01:00
5 changed files with 51 additions and 38 deletions

View File

@@ -25,7 +25,7 @@
"downloadingMessage": "Downloading update!", "downloadingMessage": "Downloading update!",
"installingMessage": "Installing update... Hang on!", "installingMessage": "Installing update... Hang on!",
"errorDownloadMessage": "Unable to download update!", "errorDownloadMessage": "Unable to download update!",
"errorInstallMessage": "Unable to download update!", "errorInstallMessage": "Unable to install update!",
"noConnection": "No internet connection" "noConnection": "No internet connection"
}, },
"applicationItem": { "applicationItem": {

View File

@@ -212,7 +212,8 @@ class ManagerAPI {
); );
for (Application app in userApps) { for (Application app in userApps) {
if (app.packageName.startsWith('app.revanced') && if (app.packageName.startsWith('app.revanced') &&
!app.packageName.startsWith('app.revanced.manager.')) { !app.packageName.startsWith('app.revanced.manager.') &&
!patchedApps.any((uapp) => uapp.packageName == app.packageName)) {
ApplicationWithIcon? application = ApplicationWithIcon? application =
await DeviceApps.getApp(app.packageName, true) await DeviceApps.getApp(app.packageName, true)
as ApplicationWithIcon?; as ApplicationWithIcon?;

View File

@@ -74,7 +74,10 @@ class HomeViewModel extends BaseViewModel {
} }
void _getPatchedApps() { void _getPatchedApps() {
patchedInstalledApps = _managerAPI.getPatchedApps().toList(); patchedInstalledApps = _managerAPI
.getPatchedApps()
.where((app) => app.hasUpdates == false)
.toList();
patchedUpdatableApps = _managerAPI patchedUpdatableApps = _managerAPI
.getPatchedApps() .getPatchedApps()
.where((app) => app.hasUpdates == true) .where((app) => app.hasUpdates == true)

View File

@@ -64,8 +64,9 @@ class AppInfoView extends StatelessWidget {
CustomCard( CustomCard(
child: IntrinsicHeight( child: IntrinsicHeight(
child: Row( child: Row(
mainAxisAlignment: MainAxisAlignment.spaceEvenly, mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[ children: <Widget>[
!app.isRooted ? const Spacer() : Container(),
InkWell( InkWell(
onTap: () => model.openApp(app), onTap: () => model.openApp(app),
child: Column( child: Column(
@@ -92,9 +93,11 @@ class AppInfoView extends StatelessWidget {
], ],
), ),
), ),
const Spacer(),
VerticalDivider( VerticalDivider(
color: Theme.of(context).canvasColor, color: Theme.of(context).canvasColor,
), ),
const Spacer(),
InkWell( InkWell(
onTap: () => model.showUninstallAlertDialog( onTap: () => model.showUninstallAlertDialog(
context, context,
@@ -125,9 +128,11 @@ class AppInfoView extends StatelessWidget {
], ],
), ),
), ),
const Spacer(),
VerticalDivider( VerticalDivider(
color: Theme.of(context).canvasColor, color: Theme.of(context).canvasColor,
), ),
const Spacer(),
InkWell( InkWell(
onTap: () { onTap: () {
model.navigateToPatcher(app); model.navigateToPatcher(app);
@@ -157,45 +162,49 @@ class AppInfoView extends StatelessWidget {
], ],
), ),
), ),
Visibility( app.isRooted ? const Spacer() : Container(),
visible: app.isRooted, app.isRooted
child: VerticalDivider( ? VerticalDivider(
color: Theme.of(context).canvasColor, color: Theme.of(context).canvasColor,
), )
), : Container(),
Visibility( app.isRooted ? const Spacer() : Container(),
visible: app.isRooted, app.isRooted
child: InkWell( ? InkWell(
onTap: () => model.showUninstallAlertDialog( onTap: () => model.showUninstallAlertDialog(
context, context,
app, app,
true, true,
),
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
Icon(
Icons.settings_backup_restore_outlined,
color:
Theme.of(context).colorScheme.primary,
), ),
const SizedBox(height: 10), child: Column(
I18nText( mainAxisAlignment:
'appInfoView.unpatchButton', MainAxisAlignment.center,
child: Text( children: <Widget>[
'', Icon(
style: TextStyle( Icons
.settings_backup_restore_outlined,
color: Theme.of(context) color: Theme.of(context)
.colorScheme .colorScheme
.primary, .primary,
fontWeight: FontWeight.bold,
), ),
), const SizedBox(height: 10),
I18nText(
'appInfoView.unpatchButton',
child: Text(
'',
style: TextStyle(
color: Theme.of(context)
.colorScheme
.primary,
fontWeight: FontWeight.bold,
),
),
),
],
), ),
], )
), : Container(),
), !app.isRooted ? const Spacer() : Container(),
),
], ],
), ),
), ),

View File

@@ -4,7 +4,7 @@ homepage: https://github.com/revanced/revanced-manager
publish_to: 'none' publish_to: 'none'
version: 0.0.10+10 version: 0.0.11+11
environment: environment:
sdk: ">=2.17.5 <3.0.0" sdk: ">=2.17.5 <3.0.0"