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. A new Flutter project.

View file

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

View file

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

View file

@ -52,7 +52,7 @@ class _SetupScreenState extends State<SetupScreen> {
mainAxisSize: MainAxisSize.min, mainAxisSize: MainAxisSize.min,
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
Text('Bevy Tasks', Text('Onyx',
style: TextStyle(fontSize: 24, fontWeight: FontWeight.w700, style: TextStyle(fontSize: 24, fontWeight: FontWeight.w700,
color: isDark ? AppTheme.textDark : AppTheme.textLight)), color: isDark ? AppTheme.textDark : AppTheme.textLight)),
const SizedBox(height: 4), 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 name of the executable created for the application. Change this to change
# the on-disk name of your application. # 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: # The unique GTK application identifier for this application. See:
# https://wiki.gnome.org/HowDoI/ChooseApplicationID # 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 # Explicitly opt in to modern CMake behaviors to avoid warnings with recent
# versions of CMake. # versions of CMake.
@ -59,7 +59,7 @@ add_subdirectory("runner")
# Build the Rust FFI library for flutter_rust_bridge # Build the Rust FFI library for flutter_rust_bridge
set(RUST_DIR "${CMAKE_CURRENT_SOURCE_DIR}/../rust") 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") if(CMAKE_BUILD_TYPE MATCHES "Debug")
set(RUST_TARGET_DIR "${RUST_DIR}/target/debug") set(RUST_TARGET_DIR "${RUST_DIR}/target/debug")
add_custom_command( add_custom_command(

View file

@ -27,7 +27,7 @@ static void my_application_activate(GApplication* application) {
// Frameless transparent window // Frameless transparent window
gtk_window_set_decorated(window, FALSE); 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); gtk_window_set_default_size(window, 400, 700);
// Enable transparency // Enable transparency

View file

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

View file

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

View file

@ -1,5 +1,5 @@
[package] [package]
name = "bevy-tasks-flutter" name = "onyx-flutter"
version = "0.1.0" version = "0.1.0"
edition = "2021" edition = "2021"
@ -8,7 +8,7 @@ crate-type = ["cdylib", "staticlib"]
[dependencies] [dependencies]
flutter_rust_bridge = "=2.11.1" 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"] } uuid = { version = "1", features = ["serde", "v4"] }
chrono = { version = "0.4", features = ["serde"] } chrono = { version = "0.4", features = ["serde"] }
once_cell = "1" once_cell = "1"

View file

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

View file

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

View file

@ -1,10 +1,10 @@
# Project-level configuration. # Project-level configuration.
cmake_minimum_required(VERSION 3.14) 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 name of the executable created for the application. Change this to change
# the on-disk name of your application. # 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 # Explicitly opt in to modern CMake behaviors to avoid warnings with recent
# versions of CMake. # versions of CMake.

View file

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

View file

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