diff --git a/android/.gitignore b/android/.gitignore
deleted file mode 100644
index 161bdcd..0000000
--- a/android/.gitignore
+++ /dev/null
@@ -1,9 +0,0 @@
-*.iml
-.gradle
-/local.properties
-/.idea/workspace.xml
-/.idea/libraries
-.DS_Store
-/build
-/captures
-.cxx
diff --git a/android/build.gradle b/android/build.gradle
deleted file mode 100644
index 3ea19ba..0000000
--- a/android/build.gradle
+++ /dev/null
@@ -1,37 +0,0 @@
-group = "net.jonhanson.flutter_native_splash"
-version = "1.0"
-
-buildscript {
- repositories {
- google()
- mavenCentral()
- }
-
- dependencies {
- classpath("com.android.tools.build:gradle:8.7.0")
- }
-}
-
-rootProject.allprojects {
- repositories {
- google()
- mavenCentral()
- }
-}
-
-apply plugin: "com.android.library"
-
-android {
- namespace = "net.jonhanson.flutter_native_splash"
-
- compileSdk = 35
-
- compileOptions {
- sourceCompatibility = JavaVersion.VERSION_11
- targetCompatibility = JavaVersion.VERSION_11
- }
-
- defaultConfig {
- minSdkVersion 16
- }
-}
diff --git a/android/settings.gradle b/android/settings.gradle
deleted file mode 100644
index c2f6ccf..0000000
--- a/android/settings.gradle
+++ /dev/null
@@ -1 +0,0 @@
-rootProject.name = 'flutter_native_splash'
diff --git a/android/src/main/AndroidManifest.xml b/android/src/main/AndroidManifest.xml
deleted file mode 100644
index cb0686b..0000000
--- a/android/src/main/AndroidManifest.xml
+++ /dev/null
@@ -1,3 +0,0 @@
-
-
diff --git a/android/src/main/java/net/jonhanson/flutter_native_splash/FlutterNativeSplashPlugin.java b/android/src/main/java/net/jonhanson/flutter_native_splash/FlutterNativeSplashPlugin.java
deleted file mode 100644
index a39913b..0000000
--- a/android/src/main/java/net/jonhanson/flutter_native_splash/FlutterNativeSplashPlugin.java
+++ /dev/null
@@ -1,38 +0,0 @@
-package net.jonhanson.flutter_native_splash;
-
-import androidx.annotation.NonNull;
-
-import io.flutter.embedding.engine.plugins.FlutterPlugin;
-import io.flutter.plugin.common.MethodCall;
-import io.flutter.plugin.common.MethodChannel;
-import io.flutter.plugin.common.MethodChannel.MethodCallHandler;
-import io.flutter.plugin.common.MethodChannel.Result;
-
-/** FlutterNativeSplashPlugin */
-public class FlutterNativeSplashPlugin implements FlutterPlugin, MethodCallHandler {
- /// The MethodChannel that will the communication between Flutter and native Android
- ///
- /// This local reference serves to register the plugin with the Flutter Engine and unregister it
- /// when the Flutter Engine is detached from the Activity
- private MethodChannel channel;
-
- @Override
- public void onAttachedToEngine(@NonNull FlutterPluginBinding flutterPluginBinding) {
- channel = new MethodChannel(flutterPluginBinding.getBinaryMessenger(), "flutter_native_splash");
- channel.setMethodCallHandler(this);
- }
-
- @Override
- public void onMethodCall(@NonNull MethodCall call, @NonNull Result result) {
- if (call.method.equals("getPlatformVersion")) {
- result.success("Android " + android.os.Build.VERSION.RELEASE);
- } else {
- result.notImplemented();
- }
- }
-
- @Override
- public void onDetachedFromEngine(@NonNull FlutterPluginBinding binding) {
- channel.setMethodCallHandler(null);
- }
-}
diff --git a/ios/.gitignore b/ios/.gitignore
deleted file mode 100644
index 034771f..0000000
--- a/ios/.gitignore
+++ /dev/null
@@ -1,38 +0,0 @@
-.idea/
-.vagrant/
-.sconsign.dblite
-.svn/
-
-.DS_Store
-*.swp
-profile
-
-DerivedData/
-build/
-GeneratedPluginRegistrant.h
-GeneratedPluginRegistrant.m
-
-.generated/
-
-*.pbxuser
-*.mode1v3
-*.mode2v3
-*.perspectivev3
-
-!default.pbxuser
-!default.mode1v3
-!default.mode2v3
-!default.perspectivev3
-
-xcuserdata
-
-*.moved-aside
-
-*.pyc
-*sync/
-Icon?
-.tags*
-
-/Flutter/Generated.xcconfig
-/Flutter/ephemeral/
-/Flutter/flutter_export_environment.sh
diff --git a/ios/flutter_native_splash.podspec b/ios/flutter_native_splash.podspec
deleted file mode 100644
index 07f538f..0000000
--- a/ios/flutter_native_splash.podspec
+++ /dev/null
@@ -1,24 +0,0 @@
-#
-# To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html.
-# Run `pod lib lint flutter_native_splash.podspec` to validate before publishing.
-#
-Pod::Spec.new do |s|
- s.name = 'flutter_native_splash'
- s.version = '2.4.3'
- s.summary = 'Flutter Native Splash'
- s.description = <<-DESC
-Customize Flutter's default white native splash screen with background color and splash image. Supports dark mode, full screen, and more.
- DESC
- s.homepage = 'https://github.com/jonbhanson/flutter_native_splash'
- s.license = { :file => '../LICENSE' }
- s.author = { 'Jon Hanson' => 'jon@jonhanson.net' }
- s.source = { :path => '.' }
- s.source_files = 'flutter_native_splash/Sources/flutter_native_splash/**/*.{h,m}'
- s.public_header_files = 'flutter_native_splash/Sources/flutter_native_splash/include/**/*.h'
- s.dependency 'Flutter'
- s.platform = :ios, '9.0'
- s.resource_bundles = {'flutter_native_splash_privacy' => ['flutter_native_splash/Sources/flutter_native_splash/PrivacyInfo.xcprivacy']}
-
- # Flutter.framework does not contain a i386 slice.
- s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'i386' }
-end
diff --git a/ios/flutter_native_splash/Package.swift b/ios/flutter_native_splash/Package.swift
deleted file mode 100644
index 0dd7e33..0000000
--- a/ios/flutter_native_splash/Package.swift
+++ /dev/null
@@ -1,27 +0,0 @@
-// swift-tools-version: 5.9
-// The swift-tools-version declares the minimum version of Swift required to build this package.
-
-import PackageDescription
-
-let package = Package(
- name: "flutter_native_splash",
- platforms: [
- .iOS("12.0")
- ],
- products: [
- .library(name: "flutter-native-splash", targets: ["flutter_native_splash"])
- ],
- dependencies: [],
- targets: [
- .target(
- name: "flutter_native_splash",
- dependencies: [],
- resources: [
- .process("PrivacyInfo.xcprivacy"),
- ],
- cSettings: [
- .headerSearchPath("include/flutter_native_splash")
- ]
- )
- ]
-)
diff --git a/ios/flutter_native_splash/Sources/flutter_native_splash/FlutterNativeSplashPlugin.m b/ios/flutter_native_splash/Sources/flutter_native_splash/FlutterNativeSplashPlugin.m
deleted file mode 100644
index f51b6c1..0000000
--- a/ios/flutter_native_splash/Sources/flutter_native_splash/FlutterNativeSplashPlugin.m
+++ /dev/null
@@ -1,20 +0,0 @@
-#import "./include/flutter_native_splash/FlutterNativeSplashPlugin.h"
-
-@implementation FlutterNativeSplashPlugin
-+ (void)registerWithRegistrar:(NSObject*)registrar {
- FlutterMethodChannel* channel = [FlutterMethodChannel
- methodChannelWithName:@"flutter_native_splash"
- binaryMessenger:[registrar messenger]];
- FlutterNativeSplashPlugin* instance = [[FlutterNativeSplashPlugin alloc] init];
- [registrar addMethodCallDelegate:instance channel:channel];
-}
-
-- (void)handleMethodCall:(FlutterMethodCall*)call result:(FlutterResult)result {
- if ([@"getPlatformVersion" isEqualToString:call.method]) {
- result([@"iOS " stringByAppendingString:[[UIDevice currentDevice] systemVersion]]);
- } else {
- result(FlutterMethodNotImplemented);
- }
-}
-
-@end
diff --git a/ios/flutter_native_splash/Sources/flutter_native_splash/PrivacyInfo.xcprivacy b/ios/flutter_native_splash/Sources/flutter_native_splash/PrivacyInfo.xcprivacy
deleted file mode 100644
index a34b7e2..0000000
--- a/ios/flutter_native_splash/Sources/flutter_native_splash/PrivacyInfo.xcprivacy
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
-
-
- NSPrivacyTrackingDomains
-
- NSPrivacyAccessedAPITypes
-
- NSPrivacyCollectedDataTypes
-
- NSPrivacyTracking
-
-
-
diff --git a/ios/flutter_native_splash/Sources/flutter_native_splash/include/flutter_native_splash/FlutterNativeSplashPlugin.h b/ios/flutter_native_splash/Sources/flutter_native_splash/include/flutter_native_splash/FlutterNativeSplashPlugin.h
deleted file mode 100644
index a1be446..0000000
--- a/ios/flutter_native_splash/Sources/flutter_native_splash/include/flutter_native_splash/FlutterNativeSplashPlugin.h
+++ /dev/null
@@ -1,4 +0,0 @@
-#import
-
-@interface FlutterNativeSplashPlugin : NSObject
-@end
diff --git a/lib/flutter_native_splash.dart b/lib/flutter_native_splash.dart
index 5a742d4..1244906 100644
--- a/lib/flutter_native_splash.dart
+++ b/lib/flutter_native_splash.dart
@@ -51,6 +51,7 @@ class FlutterNativeSplash {
if (kIsWeb) {
// Use SchedulerBinding to avoid white flash on splash removal.
SchedulerBinding.instance.addPostFrameCallback((_) {
+ // TODO: just call removeSplashFromWeb() instead - potentially breaking!
try {
_channel.invokeMethod('remove');
} catch (e) {
diff --git a/pubspec.yaml b/pubspec.yaml
index 48f70f4..6f1316b 100644
--- a/pubspec.yaml
+++ b/pubspec.yaml
@@ -48,11 +48,11 @@ flutter:
# adding or updating assets for this project.
plugin:
platforms:
- android:
- package: net.jonhanson.flutter_native_splash
- pluginClass: FlutterNativeSplashPlugin
- ios:
- pluginClass: FlutterNativeSplashPlugin
web:
pluginClass: FlutterNativeSplashWeb
fileName: flutter_native_splash_web.dart
+
+platforms:
+ android:
+ ios:
+ web: