Skip to content

Commit e838e15

Browse files
committed
Bring Electron inside the Desktop namespace
1 parent 14b0ea5 commit e838e15

24 files changed

+63
-62
lines changed

composer.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@
6363
"autoload": {
6464
"psr-4": {
6565
"Native\\Desktop\\": "src/Desktop",
66-
"Native\\Electron\\": "src/Electron",
6766
"Native\\Support\\": "src/Support"
6867
}
6968
},
@@ -94,8 +93,7 @@
9493
"extra": {
9594
"laravel": {
9695
"providers": [
97-
"Native\\Desktop\\NativeServiceProvider",
98-
"Native\\Electron\\ElectronServiceProvider"
96+
"Native\\Desktop\\NativeServiceProvider"
9997
],
10098
"aliases": {
10199
"ChildProcess": "Native\\Desktop\\Facades\\ChildProcess",

src/Electron/Commands/BuildCommand.php renamed to src/Desktop/Drivers/Electron/Commands/BuildCommand.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
<?php
22

3-
namespace Native\Electron\Commands;
3+
namespace Native\Desktop\Drivers\Electron\Commands;
44

55
use Illuminate\Console\Command;
66
use Illuminate\Support\Facades\Process;
77
use Illuminate\Support\Str;
8-
use Native\Electron\ElectronServiceProvider;
9-
use Native\Electron\Facades\Updater;
10-
use Native\Electron\Traits\InstallsAppIcon;
11-
use Native\Electron\Traits\OsAndArch;
12-
use Native\Electron\Traits\PatchesPackagesJson;
8+
use Native\Desktop\Drivers\Electron\ElectronServiceProvider;
9+
use Native\Desktop\Drivers\Electron\Facades\Updater;
10+
use Native\Desktop\Drivers\Electron\Traits\InstallsAppIcon;
11+
use Native\Desktop\Drivers\Electron\Traits\OsAndArch;
12+
use Native\Desktop\Drivers\Electron\Traits\PatchesPackagesJson;
1313
use Native\Support\Bundler;
1414
use Symfony\Component\Console\Attribute\AsCommand;
1515
use Symfony\Component\Process\Process as SymfonyProcess;

src/Electron/Commands/BundleCommand.php renamed to src/Desktop/Drivers/Electron/Commands/BundleCommand.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Native\Electron\Commands;
3+
namespace Native\Desktop\Drivers\Electron\Commands;
44

55
use Carbon\CarbonInterface;
66
use Illuminate\Console\Command;
@@ -9,9 +9,9 @@
99
use Illuminate\Support\Facades\Process;
1010
use Illuminate\Support\Number;
1111
use Illuminate\Support\Str;
12-
use Native\Electron\Traits\HandlesZephpyr;
13-
use Native\Electron\Traits\InstallsAppIcon;
14-
use Native\Electron\Traits\PatchesPackagesJson;
12+
use Native\Desktop\Drivers\Electron\Traits\HandlesZephpyr;
13+
use Native\Desktop\Drivers\Electron\Traits\InstallsAppIcon;
14+
use Native\Desktop\Drivers\Electron\Traits\PatchesPackagesJson;
1515
use Native\Support\Bundler;
1616
use Symfony\Component\Console\Attribute\AsCommand;
1717
use Symfony\Component\Finder\Finder;

src/Electron/Commands/DevelopCommand.php renamed to src/Desktop/Drivers/Electron/Commands/DevelopCommand.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
<?php
22

3-
namespace Native\Electron\Commands;
3+
namespace Native\Desktop\Drivers\Electron\Commands;
44

55
use Illuminate\Console\Command;
6-
use Native\Electron\ElectronServiceProvider;
7-
use Native\Electron\Traits\Developer;
8-
use Native\Electron\Traits\Installer;
9-
use Native\Electron\Traits\InstallsAppIcon;
10-
use Native\Electron\Traits\PatchesPackagesJson;
6+
use Native\Desktop\Drivers\Electron\ElectronServiceProvider;
7+
use Native\Desktop\Drivers\Electron\Traits\Developer;
8+
use Native\Desktop\Drivers\Electron\Traits\Installer;
9+
use Native\Desktop\Drivers\Electron\Traits\InstallsAppIcon;
10+
use Native\Desktop\Drivers\Electron\Traits\PatchesPackagesJson;
1111
use Native\Support\Bundler;
1212
use Symfony\Component\Console\Attribute\AsCommand;
1313

src/Electron/Commands/InstallCommand.php renamed to src/Desktop/Drivers/Electron/Commands/InstallCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<?php
22

3-
namespace Native\Electron\Commands;
3+
namespace Native\Desktop\Drivers\Electron\Commands;
44

55
use Illuminate\Console\Command;
6-
use Native\Electron\Traits\Installer;
6+
use Native\Desktop\Drivers\Electron\Traits\Installer;
77
use Native\Support\Composer;
88
use Symfony\Component\Console\Attribute\AsCommand;
99

src/Electron/Commands/PublishCommand.php renamed to src/Desktop/Drivers/Electron/Commands/PublishCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<?php
22

3-
namespace Native\Electron\Commands;
3+
namespace Native\Desktop\Drivers\Electron\Commands;
44

55
use Illuminate\Console\Command;
66
use Illuminate\Support\Facades\Artisan;
7-
use Native\Electron\Traits\OsAndArch;
7+
use Native\Desktop\Drivers\Electron\Traits\OsAndArch;
88
use Symfony\Component\Console\Attribute\AsCommand;
99

1010
#[AsCommand(

src/Electron/Commands/ResetCommand.php renamed to src/Desktop/Drivers/Electron/Commands/ResetCommand.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<?php
22

3-
namespace Native\Electron\Commands;
3+
namespace Native\Desktop\Drivers\Electron\Commands;
44

55
use Illuminate\Console\Command;
6-
use Native\Electron\ElectronServiceProvider;
7-
use Native\Electron\Traits\PatchesPackagesJson;
6+
use Native\Desktop\Drivers\Electron\ElectronServiceProvider;
7+
use Native\Desktop\Drivers\Electron\Traits\PatchesPackagesJson;
88
use Symfony\Component\Console\Attribute\AsCommand;
99
use Symfony\Component\Filesystem\Filesystem;
1010

src/Electron/ElectronServiceProvider.php renamed to src/Desktop/Drivers/Electron/ElectronServiceProvider.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
<?php
22

3-
namespace Native\Electron;
3+
namespace Native\Desktop\Drivers\Electron;
44

55
use Illuminate\Foundation\Application;
6-
use Native\Electron\Commands\BuildCommand;
7-
use Native\Electron\Commands\BundleCommand;
8-
use Native\Electron\Commands\DevelopCommand;
9-
use Native\Electron\Commands\InstallCommand;
10-
use Native\Electron\Commands\PublishCommand;
11-
use Native\Electron\Commands\ResetCommand;
12-
use Native\Electron\Updater\UpdaterManager;
6+
use Native\Desktop\Drivers\Electron\Commands\BuildCommand;
7+
use Native\Desktop\Drivers\Electron\Commands\BundleCommand;
8+
use Native\Desktop\Drivers\Electron\Commands\DevelopCommand;
9+
use Native\Desktop\Drivers\Electron\Commands\InstallCommand;
10+
use Native\Desktop\Drivers\Electron\Commands\PublishCommand;
11+
use Native\Desktop\Drivers\Electron\Commands\ResetCommand;
12+
use Native\Desktop\Drivers\Electron\Updater\UpdaterManager;
1313
use Native\Support\Bundler;
1414
use Spatie\LaravelPackageTools\Package;
1515
use Spatie\LaravelPackageTools\PackageServiceProvider;
1616

1717
class ElectronServiceProvider extends PackageServiceProvider
1818
{
19-
const ELECTRON_PATH = __DIR__.'/../../resources/electron';
19+
const ELECTRON_PATH = __DIR__.'/../../../../resources/electron';
2020

2121
public function configurePackage(Package $package): void
2222
{

src/Electron/Facades/Updater.php renamed to src/Desktop/Drivers/Electron/Facades/Updater.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Native\Electron\Facades;
3+
namespace Native\Desktop\Drivers\Electron\Facades;
44

55
use Illuminate\Support\Facades\Facade;
66

src/Electron/Traits/Developer.php renamed to src/Desktop/Drivers/Electron/Traits/Developer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Native\Electron\Traits;
3+
namespace Native\Desktop\Drivers\Electron\Traits;
44

55
use function Laravel\Prompts\note;
66

0 commit comments

Comments
 (0)