Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,8 @@ jobs:
touch database/database.sqlite
php artisan migrate --force --no-interaction

- name: Check code style
run: vendor/bin/pint --test

- name: Run tests
run: php artisan test
10 changes: 6 additions & 4 deletions app/Mcp/Tools/AppInfoTool.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

namespace App\Mcp\Tools;

use Composer\InstalledVersions;
use Illuminate\Contracts\JsonSchema\JsonSchema;
use Illuminate\Foundation\Application;
use Illuminate\JsonSchema\Types\Type;
use Laravel\Mcp\Request;
use Laravel\Mcp\Response;
Expand All @@ -20,10 +22,10 @@ class AppInfoTool extends Tool
public function handle(Request $request): Response
{
$packages = [
'laravel/framework' => \Illuminate\Foundation\Application::VERSION,
'filament/filament' => \Composer\InstalledVersions::getPrettyVersion('filament/filament'),
'nativephp/mobile' => \Composer\InstalledVersions::getPrettyVersion('nativephp/mobile'),
'laravel/mcp' => \Composer\InstalledVersions::getPrettyVersion('laravel/mcp'),
'laravel/framework' => Application::VERSION,
'filament/filament' => InstalledVersions::getPrettyVersion('filament/filament'),
'nativephp/mobile' => InstalledVersions::getPrettyVersion('nativephp/mobile'),
'laravel/mcp' => InstalledVersions::getPrettyVersion('laravel/mcp'),
];

$lines = [
Expand Down
12 changes: 7 additions & 5 deletions app/NativeComponents/Home.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

namespace App\NativeComponents;

use Composer\InstalledVersions;
use Illuminate\Foundation\Application;
use Illuminate\View\View;
use Native\Mobile\Edge\NativeComponent;

Expand All @@ -17,11 +19,11 @@ public function render(): View
return view('native.home', [
'app' => config('app.name'),
'packages' => [
'Laravel' => \Illuminate\Foundation\Application::VERSION,
'Filament' => \Composer\InstalledVersions::getPrettyVersion('filament/filament'),
'NativePHP Mobile' => \Composer\InstalledVersions::getPrettyVersion('nativephp/mobile'),
'Web UI' => \Composer\InstalledVersions::getPrettyVersion('nativephp/web-ui'),
'Laravel MCP' => \Composer\InstalledVersions::getPrettyVersion('laravel/mcp'),
'Laravel' => Application::VERSION,
'Filament' => InstalledVersions::getPrettyVersion('filament/filament'),
'NativePHP Mobile' => InstalledVersions::getPrettyVersion('nativephp/mobile'),
'Web UI' => InstalledVersions::getPrettyVersion('nativephp/web-ui'),
'Laravel MCP' => InstalledVersions::getPrettyVersion('laravel/mcp'),
],
]);
}
Expand Down
9 changes: 5 additions & 4 deletions app/Providers/NativeServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace App\Providers;

use Illuminate\Support\ServiceProvider;
use Native\Mobile\UI\NativeUIServiceProvider;

class NativeServiceProvider extends ServiceProvider
{
Expand All @@ -29,13 +30,13 @@ public function boot(): void
* This is a security measure to prevent transitive dependencies from
* automatically registering plugins without your explicit consent.
*
* @return array<int, class-string<\Illuminate\Support\ServiceProvider>>
* @return array<int, class-string<ServiceProvider>>
*/
public function plugins(): array
{
return [
\Native\Mobile\UI\NativeUIServiceProvider::class,
NativeUIServiceProvider::class,

];
}
}
}
223 changes: 0 additions & 223 deletions resources/views/welcome.blade.php

This file was deleted.