Skip to content

Commit

Permalink
fix: Renamed assets, Fixed nightly checks
Browse files Browse the repository at this point in the history
  • Loading branch information
khaled-0 committed Dec 22, 2024
1 parent 05d887c commit 07c737e
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion lib/app/home/home_app_bar.dart
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class HomeAppBar extends StatelessWidget implements PreferredSizeWidget {
child: ColoredBox(
color: Theme.of(context).colorScheme.onPrimaryContainer,
child: Image.asset(
"assets/icons/tubesync_mono.webp",
"assets/icons/myusync_mono.webp",
color: Theme.of(context).colorScheme.primaryContainer,
),
),
Expand Down
2 changes: 1 addition & 1 deletion lib/app/more/about_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class AboutScreen extends StatelessWidget {
mainAxisAlignment: MainAxisAlignment.center,
children: [
Image.asset(
"assets/icons/tubesync_mono.webp",
"assets/icons/myusync_mono.webp",
color: Theme.of(context).colorScheme.primary,
height: 80,
),
Expand Down
2 changes: 1 addition & 1 deletion lib/app/more/more_tab.dart
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class MoreTab extends StatelessWidget {
child: ClipRRect(
borderRadius: BorderRadius.circular(80),
child: Image.asset(
"assets/icons/tubesync_mono.webp",
"assets/icons/myusync_mono.webp",
width: 80,
height: 80,
color: Theme.of(context).colorScheme.onPrimaryContainer,
Expand Down
10 changes: 5 additions & 5 deletions lib/clients/in_app_update_client.dart
Original file line number Diff line number Diff line change
Expand Up @@ -67,15 +67,15 @@ class InAppUpdateClient {
final Map<String, dynamic> data = jsonDecode(response.body);
final List<dynamic> workflowRuns = data['workflow_runs'];

if (workflowRuns.isEmpty) throw "No new update found!";
if (workflowRuns.isEmpty) throw "No updates found!";
final Map<String, dynamic> firstRun = workflowRuns[0];
String latestCommit =
firstRun['head_commit']['id'].substring(0, commit.length);
final String commitHash = firstRun['head_commit']['id'];
String latestCommitShort = commitHash.substring(0, commit.length);

// Has new update
if (commit.compareTo(latestCommit) >= 0) {
if (commit != latestCommitShort) {
final String title = firstRun['display_title'];
return (title, latestCommit);
return (title, latestCommitShort);
}

throw "No new update found!";
Expand Down

0 comments on commit 07c737e

Please sign in to comment.