rename Flutter app from bevy_tasks to onyx

This commit is contained in:
Tristan Michael 2026-03-31 09:47:13 -07:00 committed by GitButler
parent c536250072
commit aca444a274
14 changed files with 27 additions and 27 deletions

View file

@ -1,4 +1,4 @@
# bevy_tasks
# onyx
A new Flutter project.

View file

@ -32,19 +32,19 @@ Future<void> main() async {
runApp(
ChangeNotifierProvider(
create: (_) => AppState()..loadConfig(),
child: const BevyTasksApp(),
child: const OnyxApp(),
),
);
}
class BevyTasksApp extends StatelessWidget {
const BevyTasksApp({super.key});
class OnyxApp extends StatelessWidget {
const OnyxApp({super.key});
@override
Widget build(BuildContext context) {
final state = context.watch<AppState>();
return MaterialApp(
title: 'Bevy Tasks',
title: 'Onyx',
debugShowCheckedModeBanner: false,
theme: AppTheme.light(),
darkTheme: AppTheme.dark(),

View file

@ -68,7 +68,7 @@ class RustLib extends BaseEntrypoint<RustLibApi, RustLibApiImpl, RustLibWire> {
static const kDefaultExternalLibraryLoaderConfig =
ExternalLibraryLoaderConfig(
stem: 'bevy_tasks_flutter',
stem: 'onyx_flutter',
ioDirectory: 'rust/target/release/',
webPrefix: 'pkg/',
);

View file

@ -52,7 +52,7 @@ class _SetupScreenState extends State<SetupScreen> {
mainAxisSize: MainAxisSize.min,
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text('Bevy Tasks',
Text('Onyx',
style: TextStyle(fontSize: 24, fontWeight: FontWeight.w700,
color: isDark ? AppTheme.textDark : AppTheme.textLight)),
const SizedBox(height: 4),

View file

@ -4,10 +4,10 @@ project(runner LANGUAGES CXX)
# The name of the executable created for the application. Change this to change
# the on-disk name of your application.
set(BINARY_NAME "bevy_tasks")
set(BINARY_NAME "onyx")
# The unique GTK application identifier for this application. See:
# https://wiki.gnome.org/HowDoI/ChooseApplicationID
set(APPLICATION_ID "com.bevytasks.bevy_tasks")
set(APPLICATION_ID "com.onyx.onyx")
# Explicitly opt in to modern CMake behaviors to avoid warnings with recent
# versions of CMake.
@ -59,7 +59,7 @@ add_subdirectory("runner")
# Build the Rust FFI library for flutter_rust_bridge
set(RUST_DIR "${CMAKE_CURRENT_SOURCE_DIR}/../rust")
set(RUST_LIB_NAME "libbevy_tasks_flutter.so")
set(RUST_LIB_NAME "libonyx_flutter.so")
if(CMAKE_BUILD_TYPE MATCHES "Debug")
set(RUST_TARGET_DIR "${RUST_DIR}/target/debug")
add_custom_command(

View file

@ -27,7 +27,7 @@ static void my_application_activate(GApplication* application) {
// Frameless transparent window
gtk_window_set_decorated(window, FALSE);
gtk_window_set_title(window, "bevy_tasks");
gtk_window_set_title(window, "onyx");
gtk_window_set_default_size(window, 400, 700);
// Enable transparency

View file

@ -1,5 +1,5 @@
name: bevy_tasks
description: "Bevy Tasks - local-first task management"
name: onyx
description: "Onyx - local-first task management"
publish_to: 'none'
version: 1.0.0+1

View file

@ -109,7 +109,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6"
[[package]]
name = "bevy-tasks-core"
name = "onyx-core"
version = "0.1.0"
dependencies = [
"chrono",
@ -126,10 +126,10 @@ dependencies = [
]
[[package]]
name = "bevy-tasks-flutter"
name = "onyx-flutter"
version = "0.1.0"
dependencies = [
"bevy-tasks-core",
"onyx-core",
"chrono",
"flutter_rust_bridge",
"once_cell",

View file

@ -1,5 +1,5 @@
[package]
name = "bevy-tasks-flutter"
name = "onyx-flutter"
version = "0.1.0"
edition = "2021"
@ -8,7 +8,7 @@ crate-type = ["cdylib", "staticlib"]
[dependencies]
flutter_rust_bridge = "=2.11.1"
bevy-tasks-core = { path = "../../../crates/bevy-tasks-core" }
onyx-core = { path = "../../../crates/onyx-core" }
uuid = { version = "1", features = ["serde", "v4"] }
chrono = { version = "0.4", features = ["serde"] }
once_cell = "1"

View file

@ -4,7 +4,7 @@ use std::sync::Mutex;
use once_cell::sync::Lazy;
use uuid::Uuid;
use bevy_tasks_core::{
use onyx_core::{
config::{AppConfig, WorkspaceConfig},
models::{Task, TaskList, TaskStatus},
repository::TaskRepository,

View file

@ -8,7 +8,7 @@
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:bevy_tasks/main.dart';
import 'package:onyx/main.dart';
void main() {
testWidgets('Counter increments smoke test', (WidgetTester tester) async {

View file

@ -1,10 +1,10 @@
# Project-level configuration.
cmake_minimum_required(VERSION 3.14)
project(bevy_tasks LANGUAGES CXX)
project(onyx LANGUAGES CXX)
# The name of the executable created for the application. Change this to change
# the on-disk name of your application.
set(BINARY_NAME "bevy_tasks")
set(BINARY_NAME "onyx")
# Explicitly opt in to modern CMake behaviors to avoid warnings with recent
# versions of CMake.

View file

@ -90,12 +90,12 @@ BEGIN
BLOCK "040904e4"
BEGIN
VALUE "CompanyName", "com.example" "\0"
VALUE "FileDescription", "bevy_tasks" "\0"
VALUE "FileDescription", "onyx" "\0"
VALUE "FileVersion", VERSION_AS_STRING "\0"
VALUE "InternalName", "bevy_tasks" "\0"
VALUE "InternalName", "onyx" "\0"
VALUE "LegalCopyright", "Copyright (C) 2026 com.example. All rights reserved." "\0"
VALUE "OriginalFilename", "bevy_tasks.exe" "\0"
VALUE "ProductName", "bevy_tasks" "\0"
VALUE "OriginalFilename", "onyx.exe" "\0"
VALUE "ProductName", "onyx" "\0"
VALUE "ProductVersion", VERSION_AS_STRING "\0"
END
END

View file

@ -27,7 +27,7 @@ int APIENTRY wWinMain(_In_ HINSTANCE instance, _In_opt_ HINSTANCE prev,
FlutterWindow window(project);
Win32Window::Point origin(10, 10);
Win32Window::Size size(1280, 720);
if (!window.Create(L"bevy_tasks", origin, size)) {
if (!window.Create(L"onyx", origin, size)) {
return EXIT_FAILURE;
}
window.SetQuitOnClose(true);