diff --git a/app/Providers/NativeServiceProvider.php b/app/Providers/NativeServiceProvider.php index d480e814..5c187070 100644 --- a/app/Providers/NativeServiceProvider.php +++ b/app/Providers/NativeServiceProvider.php @@ -17,6 +17,7 @@ use Native\Mobile\UI\NativeUIServiceProvider; use NativePHP\Clipboard\ClipboardServiceProvider; use NativePHP\MediaPlayer\MediaPlayerServiceProvider; +use Nativephp\MobileOta\OtaServiceProvider; use S2BR\MobileSplashscreen\MobileSplashscreenServiceProvider; use Victorycodedev\ToastKit\ToastKitServiceProvider; @@ -68,6 +69,7 @@ public function plugins(): array CallsServiceProvider::class, PhotosServiceProvider::class, SkiaServiceProvider::class, + OtaServiceProvider::class, ...(config('devnull.apple_sign_in') ? [NativephpSocialAuthServiceProvider::class] : []), ]; } diff --git a/composer.json b/composer.json index 2f15afd8..0664efc1 100644 --- a/composer.json +++ b/composer.json @@ -52,6 +52,7 @@ "nativephp/mobile-firebase": "^1.1", "nativephp/mobile-media-player": "^1.1", "nativephp/mobile-microphone": "^1.2", + "nativephp/mobile-ota": "^1.0.2", "nativephp/mobile-secure-storage": "^1.1", "nativephp/mobile-share": "^1.1", "nativephp/mobile-skia": "^1.0", diff --git a/composer.lock b/composer.lock index dc1a40e7..233baabc 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "eca2b9e1fd10e2200de3f982c65992d3", + "content-hash": "9891cbca9bc7dc4cfc23eca296f9195a", "packages": [ { "name": "bacon/bacon-qr-code", @@ -3300,6 +3300,62 @@ "time": "2026-10-29T09:22:03+00:00", "published-time": "2026-10-29T09:22:40+00:00" }, + { + "name": "nativephp/mobile-ota", + "version": "1.0.2", + "source": { + "type": "git", + "url": "https://github.com/NativePHP/mobile-ota.git", + "reference": "fbb3fd9e78d376219e6d61cf2db28f05ffcc7080" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/NativePHP/mobile-ota/zipball/fbb3fd9e78d376219e6d61cf2db28f05ffcc7080", + "reference": "fbb3fd9e78d376219e6d61cf2db28f05ffcc7080", + "shasum": "" + }, + "require": { + "nativephp/mobile": "^3.3.11 || ^4.6.1", + "php": "^8.2" + }, + "require-dev": { + "orchestra/testbench": "^10.0", + "pestphp/pest": "^2.7|^3.0|^4.0" + }, + "type": "nativephp-plugin", + "extra": { + "laravel": { + "providers": [ + "Nativephp\\MobileOta\\OtaServiceProvider" + ] + }, + "nativephp": { + "manifest": "nativephp.json" + } + }, + "autoload": { + "psr-4": { + "Nativephp\\MobileOta\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Bifrost Technology, LLC", + "email": "support@nativephp.com" + } + ], + "description": "Over-the-air PHP payload updates for NativePHP Mobile", + "support": { + "issues": "https://github.com/NativePHP/mobile-ota/issues", + "source": "https://github.com/NativePHP/mobile-ota/tree/1.0.2" + }, + "time": "2026-11-28T10:50:18+00:00", + "published-time": "2026-11-28T10:50:31+00:00" + }, { "name": "nativephp/mobile-secure-storage", "version": "1.1.0", diff --git a/config/nativephp-ota.php b/config/nativephp-ota.php new file mode 100644 index 00000000..3b7fd0c1 --- /dev/null +++ b/config/nativephp-ota.php @@ -0,0 +1,22 @@ + env('NATIVEPHP_OTA_MODE', 'silent'), + +]; diff --git a/tests/Feature/OtaTest.php b/tests/Feature/OtaTest.php new file mode 100644 index 00000000..080137d1 --- /dev/null +++ b/tests/Feature/OtaTest.php @@ -0,0 +1,9 @@ +plugins())->toContain(OtaServiceProvider::class) + ->and(config('nativephp-ota.mode'))->toBe('silent'); +});