diff --git a/example/integration_test/chrome_safari_browser/open_and_close.dart b/example/integration_test/chrome_safari_browser/open_and_close.dart
index b29f5aca..0d93396f 100644
--- a/example/integration_test/chrome_safari_browser/open_and_close.dart
+++ b/example/integration_test/chrome_safari_browser/open_and_close.dart
@@ -40,7 +40,7 @@ void openAndClose() {
activityButton: ActivityButton(
templateImage: UIImage(systemName: "sun.max"),
extensionIdentifier:
- "com.pichillilorenzo.flutter-inappwebview-example1.test")));
+ "com.pichillilorenzo.flutter-inappwebview-ios-example.test")));
await chromeSafariBrowser.opened.future;
expect(chromeSafariBrowser.isOpened(), true);
expect(() async {
diff --git a/example/ios/Runner.xcodeproj/project.pbxproj b/example/ios/Runner.xcodeproj/project.pbxproj
index b34f61c2..652b1176 100644
--- a/example/ios/Runner.xcodeproj/project.pbxproj
+++ b/example/ios/Runner.xcodeproj/project.pbxproj
@@ -356,7 +356,7 @@
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh",
"${BUILT_PRODUCTS_DIR}/OrderedSet/OrderedSet.framework",
"${BUILT_PRODUCTS_DIR}/flutter_downloader/flutter_downloader.framework",
- "${BUILT_PRODUCTS_DIR}/flutter_inappwebview/flutter_inappwebview.framework",
+ "${BUILT_PRODUCTS_DIR}/flutter_inappwebview_ios/flutter_inappwebview_ios.framework",
"${BUILT_PRODUCTS_DIR}/integration_test/integration_test.framework",
"${BUILT_PRODUCTS_DIR}/path_provider_foundation/path_provider_foundation.framework",
"${BUILT_PRODUCTS_DIR}/url_launcher_ios/url_launcher_ios.framework",
@@ -365,7 +365,7 @@
outputPaths = (
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/OrderedSet.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/flutter_downloader.framework",
- "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/flutter_inappwebview.framework",
+ "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/flutter_inappwebview_ios.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/integration_test.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/path_provider_foundation.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/url_launcher_ios.framework",
@@ -460,7 +460,7 @@
MARKETING_VERSION = 1.0;
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
MTL_FAST_MATH = YES;
- PRODUCT_BUNDLE_IDENTIFIER = "com.pichillilorenzo.flutter-inappwebview-example1.test";
+ PRODUCT_BUNDLE_IDENTIFIER = "com.pichillilorenzo.flutter-inappwebview-ios-example.test";
PRODUCT_NAME = "$(TARGET_NAME)";
SKIP_INSTALL = YES;
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
@@ -497,7 +497,7 @@
);
MARKETING_VERSION = 1.0;
MTL_FAST_MATH = YES;
- PRODUCT_BUNDLE_IDENTIFIER = "com.pichillilorenzo.flutter-inappwebview-example1.test";
+ PRODUCT_BUNDLE_IDENTIFIER = "com.pichillilorenzo.flutter-inappwebview-ios-example.test";
PRODUCT_NAME = "$(TARGET_NAME)";
SKIP_INSTALL = YES;
SWIFT_EMIT_LOC_STRINGS = YES;
@@ -646,7 +646,7 @@
"$(inherited)",
"$(PROJECT_DIR)/Flutter",
);
- PRODUCT_BUNDLE_IDENTIFIER = "com.pichillilorenzo.flutter-inappwebview-example1";
+ PRODUCT_BUNDLE_IDENTIFIER = "com.pichillilorenzo.flutter-inappwebview-ios-example";
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
@@ -681,7 +681,7 @@
"$(inherited)",
"$(PROJECT_DIR)/Flutter",
);
- PRODUCT_BUNDLE_IDENTIFIER = "com.pichillilorenzo.flutter-inappwebview-example1";
+ PRODUCT_BUNDLE_IDENTIFIER = "com.pichillilorenzo.flutter-inappwebview-ios-example";
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
diff --git a/flutter_inappwebview_android/lib/src/inappwebview_platform.dart b/flutter_inappwebview_android/lib/src/inappwebview_platform.dart
index cf497e38..5d3a9b07 100644
--- a/flutter_inappwebview_android/lib/src/inappwebview_platform.dart
+++ b/flutter_inappwebview_android/lib/src/inappwebview_platform.dart
@@ -1,4 +1,3 @@
-import 'package:flutter_inappwebview_android/src/print_job/main.dart';
import 'package:flutter_inappwebview_platform_interface/flutter_inappwebview_platform_interface.dart';
import 'chrome_safari_browser/chrome_safari_browser.dart';
@@ -7,6 +6,7 @@ import 'http_auth_credentials_database.dart';
import 'find_interaction/main.dart';
import 'in_app_browser/in_app_browser.dart';
import 'in_app_webview/main.dart';
+import 'print_job/main.dart';
import 'pull_to_refresh/main.dart';
import 'web_message/main.dart';
import 'web_storage/main.dart';
@@ -17,9 +17,9 @@ import 'tracing_controller.dart';
import 'webview_asset_loader.dart';
import 'webview_feature.dart' as wv;
-/// Implementation of [WebViewPlatform] using the WebKit API.
+/// Implementation of [InAppWebViewPlatform] using the WebKit API.
class AndroidInAppWebViewPlatform extends InAppWebViewPlatform {
- /// Registers this class as the default instance of [WebViewPlatform].
+ /// Registers this class as the default instance of [InAppWebViewPlatform].
static void registerWith() {
InAppWebViewPlatform.instance = AndroidInAppWebViewPlatform();
}
@@ -28,6 +28,7 @@ class AndroidInAppWebViewPlatform extends InAppWebViewPlatform {
///
/// This function should only be called by the app-facing package.
/// Look at using [CookieManager] in `flutter_inappwebview` instead.
+ @override
AndroidCookieManager createPlatformCookieManager(
PlatformCookieManagerCreationParams params,
) {
@@ -38,6 +39,7 @@ class AndroidInAppWebViewPlatform extends InAppWebViewPlatform {
///
/// This function should only be called by the app-facing package.
/// Look at using [InAppWebViewController] in `flutter_inappwebview` instead.
+ @override
AndroidInAppWebViewController createPlatformInAppWebViewController(
PlatformInAppWebViewControllerCreationParams params,
) {
@@ -48,6 +50,7 @@ class AndroidInAppWebViewPlatform extends InAppWebViewPlatform {
///
/// This function should only be called by the app-facing package.
/// Look at using [InAppWebViewController] in `flutter_inappwebview` instead.
+ @override
AndroidInAppWebViewController createPlatformInAppWebViewControllerStatic() {
return AndroidInAppWebViewController.static();
}
@@ -56,6 +59,7 @@ class AndroidInAppWebViewPlatform extends InAppWebViewPlatform {
///
/// This function should only be called by the app-facing package.
/// Look at using [InAppWebView] in `flutter_inappwebview` instead.
+ @override
AndroidInAppWebViewWidget createPlatformInAppWebViewWidget(
PlatformInAppWebViewWidgetCreationParams params,
) {
@@ -66,6 +70,7 @@ class AndroidInAppWebViewPlatform extends InAppWebViewPlatform {
///
/// This function should only be called by the app-facing package.
/// Look at using [FindInteractionController] in `flutter_inappwebview` instead.
+ @override
AndroidFindInteractionController createPlatformFindInteractionController(
PlatformFindInteractionControllerCreationParams params,
) {
@@ -76,6 +81,7 @@ class AndroidInAppWebViewPlatform extends InAppWebViewPlatform {
///
/// This function should only be called by the app-facing package.
/// Look at using [PrintJobController] in `flutter_inappwebview` instead.
+ @override
AndroidPrintJobController createPlatformPrintJobController(
PlatformPrintJobControllerCreationParams params,
) {
@@ -86,6 +92,7 @@ class AndroidInAppWebViewPlatform extends InAppWebViewPlatform {
///
/// This function should only be called by the app-facing package.
/// Look at using [PullToRefreshController] in `flutter_inappwebview` instead.
+ @override
AndroidPullToRefreshController createPlatformPullToRefreshController(
PlatformPullToRefreshControllerCreationParams params,
) {
@@ -96,6 +103,7 @@ class AndroidInAppWebViewPlatform extends InAppWebViewPlatform {
///
/// This function should only be called by the app-facing package.
/// Look at using [WebMessageChannel] in `flutter_inappwebview` instead.
+ @override
AndroidWebMessageChannel createPlatformWebMessageChannel(
PlatformWebMessageChannelCreationParams params,
) {
@@ -106,6 +114,7 @@ class AndroidInAppWebViewPlatform extends InAppWebViewPlatform {
///
/// This function should only be called by the app-facing package.
/// Look at using [WebMessageChannel] in `flutter_inappwebview` instead.
+ @override
AndroidWebMessageChannel createPlatformWebMessageChannelStatic() {
return AndroidWebMessageChannel.static();
}
@@ -114,6 +123,7 @@ class AndroidInAppWebViewPlatform extends InAppWebViewPlatform {
///
/// This function should only be called by the app-facing package.
/// Look at using [WebMessageListener] in `flutter_inappwebview` instead.
+ @override
AndroidWebMessageListener createPlatformWebMessageListener(
PlatformWebMessageListenerCreationParams params,
) {
@@ -124,6 +134,7 @@ class AndroidInAppWebViewPlatform extends InAppWebViewPlatform {
///
/// This function should only be called by the app-facing package.
/// Look at using [JavaScriptReplyProxy] in `flutter_inappwebview` instead.
+ @override
AndroidJavaScriptReplyProxy createPlatformJavaScriptReplyProxy(
PlatformJavaScriptReplyProxyCreationParams params,
) {
@@ -134,6 +145,7 @@ class AndroidInAppWebViewPlatform extends InAppWebViewPlatform {
///
/// This function should only be called by the app-facing package.
/// Look at using [WebMessagePort] in `flutter_inappwebview` instead.
+ @override
AndroidWebMessagePort createPlatformWebMessagePort(
PlatformWebMessagePortCreationParams params,
) {
@@ -144,6 +156,7 @@ class AndroidInAppWebViewPlatform extends InAppWebViewPlatform {
///
/// This function should only be called by the app-facing package.
/// Look at using [AndroidWebStorage] in `flutter_inappwebview` instead.
+ @override
AndroidWebStorage createPlatformWebStorage(
PlatformWebStorageCreationParams params,
) {
@@ -154,6 +167,7 @@ class AndroidInAppWebViewPlatform extends InAppWebViewPlatform {
///
/// This function should only be called by the app-facing package.
/// Look at using [AndroidLocalStorage] in `flutter_inappwebview` instead.
+ @override
AndroidLocalStorage createPlatformLocalStorage(
PlatformLocalStorageCreationParams params,
) {
@@ -164,6 +178,7 @@ class AndroidInAppWebViewPlatform extends InAppWebViewPlatform {
///
/// This function should only be called by the app-facing package.
/// Look at using [PlatformSessionStorage] in `flutter_inappwebview` instead.
+ @override
AndroidSessionStorage createPlatformSessionStorage(
PlatformSessionStorageCreationParams params,
) {
@@ -174,6 +189,7 @@ class AndroidInAppWebViewPlatform extends InAppWebViewPlatform {
///
/// This function should only be called by the app-facing package.
/// Look at using [HeadlessInAppWebView] in `flutter_inappwebview` instead.
+ @override
AndroidHeadlessInAppWebView createPlatformHeadlessInAppWebView(
PlatformHeadlessInAppWebViewCreationParams params,
) {
@@ -184,6 +200,7 @@ class AndroidInAppWebViewPlatform extends InAppWebViewPlatform {
///
/// This function should only be called by the app-facing package.
/// Look at using [HttpAuthCredentialDatabase] in `flutter_inappwebview` instead.
+ @override
AndroidHttpAuthCredentialDatabase createPlatformHttpAuthCredentialDatabase(
PlatformHttpAuthCredentialDatabaseCreationParams params,
) {
@@ -194,6 +211,7 @@ class AndroidInAppWebViewPlatform extends InAppWebViewPlatform {
///
/// This function should only be called by the app-facing package.
/// Look at using [InAppBrowser] in `flutter_inappwebview` instead.
+ @override
AndroidInAppBrowser createPlatformInAppBrowser(
PlatformInAppBrowserCreationParams params,
) {
@@ -204,6 +222,7 @@ class AndroidInAppWebViewPlatform extends InAppWebViewPlatform {
///
/// This function should only be called by the app-facing package.
/// Look at using [InAppBrowser] in `flutter_inappwebview` instead.
+ @override
AndroidInAppBrowser createPlatformInAppBrowserStatic() {
return AndroidInAppBrowser.static();
}
@@ -212,6 +231,7 @@ class AndroidInAppWebViewPlatform extends InAppWebViewPlatform {
///
/// This function should only be called by the app-facing package.
/// Look at using [ProcessGlobalConfig] in `flutter_inappwebview` instead.
+ @override
AndroidProcessGlobalConfig createPlatformProcessGlobalConfig(
PlatformProcessGlobalConfigCreationParams params,
) {
@@ -222,6 +242,7 @@ class AndroidInAppWebViewPlatform extends InAppWebViewPlatform {
///
/// This function should only be called by the app-facing package.
/// Look at using [ProxyController] in `flutter_inappwebview` instead.
+ @override
AndroidProxyController createPlatformProxyController(
PlatformProxyControllerCreationParams params,
) {
@@ -232,6 +253,7 @@ class AndroidInAppWebViewPlatform extends InAppWebViewPlatform {
///
/// This function should only be called by the app-facing package.
/// Look at using [ServiceWorkerController] in `flutter_inappwebview` instead.
+ @override
AndroidServiceWorkerController createPlatformServiceWorkerController(
PlatformServiceWorkerControllerCreationParams params,
) {
@@ -242,6 +264,7 @@ class AndroidInAppWebViewPlatform extends InAppWebViewPlatform {
///
/// This function should only be called by the app-facing package.
/// Look at using [ServiceWorkerController] in `flutter_inappwebview` instead.
+ @override
AndroidServiceWorkerController createPlatformServiceWorkerControllerStatic() {
return AndroidServiceWorkerController.static();
}
@@ -250,6 +273,7 @@ class AndroidInAppWebViewPlatform extends InAppWebViewPlatform {
///
/// This function should only be called by the app-facing package.
/// Look at using [TracingController] in `flutter_inappwebview` instead.
+ @override
AndroidTracingController createPlatformTracingController(
PlatformTracingControllerCreationParams params,
) {
@@ -260,6 +284,7 @@ class AndroidInAppWebViewPlatform extends InAppWebViewPlatform {
///
/// This function should only be called by the app-facing package.
/// Look at using [AssetsPathHandler] in `flutter_inappwebview` instead.
+ @override
AndroidAssetsPathHandler createPlatformAssetsPathHandler(
PlatformAssetsPathHandlerCreationParams params,
) {
@@ -270,6 +295,7 @@ class AndroidInAppWebViewPlatform extends InAppWebViewPlatform {
///
/// This function should only be called by the app-facing package.
/// Look at using [ResourcesPathHandler] in `flutter_inappwebview` instead.
+ @override
AndroidResourcesPathHandler createPlatformResourcesPathHandler(
PlatformResourcesPathHandlerCreationParams params,
) {
@@ -280,6 +306,7 @@ class AndroidInAppWebViewPlatform extends InAppWebViewPlatform {
///
/// This function should only be called by the app-facing package.
/// Look at using [InternalStoragePathHandler] in `flutter_inappwebview` instead.
+ @override
AndroidInternalStoragePathHandler createPlatformInternalStoragePathHandler(
PlatformInternalStoragePathHandlerCreationParams params,
) {
@@ -290,6 +317,7 @@ class AndroidInAppWebViewPlatform extends InAppWebViewPlatform {
///
/// This function should only be called by the app-facing package.
/// Look at using [WebViewFeature] in `flutter_inappwebview` instead.
+ @override
wv.AndroidWebViewFeature createPlatformWebViewFeature(
PlatformWebViewFeatureCreationParams params,
) {
@@ -300,6 +328,7 @@ class AndroidInAppWebViewPlatform extends InAppWebViewPlatform {
///
/// This function should only be called by the app-facing package.
/// Look at using [WebViewFeature] in `flutter_inappwebview` instead.
+ @override
wv.AndroidWebViewFeature createPlatformWebViewFeatureStatic() {
return wv.AndroidWebViewFeature.static();
}
@@ -308,6 +337,7 @@ class AndroidInAppWebViewPlatform extends InAppWebViewPlatform {
///
/// This function should only be called by the app-facing package.
/// Look at using [ChromeSafariBrowser] in `flutter_inappwebview` instead.
+ @override
AndroidChromeSafariBrowser createPlatformChromeSafariBrowser(
PlatformChromeSafariBrowserCreationParams params,
) {
@@ -318,6 +348,7 @@ class AndroidInAppWebViewPlatform extends InAppWebViewPlatform {
///
/// This function should only be called by the app-facing package.
/// Look at using [ChromeSafariBrowser] in `flutter_inappwebview` instead.
+ @override
AndroidChromeSafariBrowser createPlatformChromeSafariBrowserStatic() {
return AndroidChromeSafariBrowser.static();
}
@@ -326,6 +357,7 @@ class AndroidInAppWebViewPlatform extends InAppWebViewPlatform {
///
/// This function should only be called by the app-facing package.
/// Look at using [WebStorageManager] in `flutter_inappwebview` instead.
+ @override
AndroidWebStorageManager createPlatformWebStorageManager(
PlatformWebStorageManagerCreationParams params) {
return AndroidWebStorageManager(params);
diff --git a/flutter_inappwebview_ios/.gitignore b/flutter_inappwebview_ios/.gitignore
new file mode 100644
index 00000000..96486fd9
--- /dev/null
+++ b/flutter_inappwebview_ios/.gitignore
@@ -0,0 +1,30 @@
+# Miscellaneous
+*.class
+*.log
+*.pyc
+*.swp
+.DS_Store
+.atom/
+.buildlog/
+.history
+.svn/
+migrate_working_dir/
+
+# IntelliJ related
+*.iml
+*.ipr
+*.iws
+.idea/
+
+# The .vscode folder contains launch configuration and tasks you configure in
+# VS Code which you may wish to be included in version control, so this line
+# is commented out by default.
+#.vscode/
+
+# Flutter/Dart/Pub related
+# Libraries should not include pubspec.lock, per https://dart.dev/guides/libraries/private-files#pubspeclock.
+/pubspec.lock
+**/doc/api/
+.dart_tool/
+.packages
+build/
diff --git a/flutter_inappwebview_ios/.metadata b/flutter_inappwebview_ios/.metadata
new file mode 100644
index 00000000..1d00c64b
--- /dev/null
+++ b/flutter_inappwebview_ios/.metadata
@@ -0,0 +1,30 @@
+# This file tracks properties of this Flutter project.
+# Used by Flutter tool to assess capabilities and perform upgrades etc.
+#
+# This file should be version controlled and should not be manually edited.
+
+version:
+ revision: "6c4930c4ac86fb286f30e31d0ec8bffbcbb9953e"
+ channel: "stable"
+
+project_type: plugin
+
+# Tracks metadata for the flutter migrate command
+migration:
+ platforms:
+ - platform: root
+ create_revision: 6c4930c4ac86fb286f30e31d0ec8bffbcbb9953e
+ base_revision: 6c4930c4ac86fb286f30e31d0ec8bffbcbb9953e
+ - platform: ios
+ create_revision: 6c4930c4ac86fb286f30e31d0ec8bffbcbb9953e
+ base_revision: 6c4930c4ac86fb286f30e31d0ec8bffbcbb9953e
+
+ # User provided section
+
+ # List of Local paths (relative to this file) that should be
+ # ignored by the migrate tool.
+ #
+ # Files that are not part of the templates will be ignored by default.
+ unmanaged_files:
+ - 'lib/main.dart'
+ - 'ios/Runner.xcodeproj/project.pbxproj'
diff --git a/flutter_inappwebview_ios/CHANGELOG.md b/flutter_inappwebview_ios/CHANGELOG.md
new file mode 100644
index 00000000..41cc7d81
--- /dev/null
+++ b/flutter_inappwebview_ios/CHANGELOG.md
@@ -0,0 +1,3 @@
+## 0.0.1
+
+* TODO: Describe initial release.
diff --git a/flutter_inappwebview_ios/LICENSE b/flutter_inappwebview_ios/LICENSE
new file mode 100644
index 00000000..ba75c69f
--- /dev/null
+++ b/flutter_inappwebview_ios/LICENSE
@@ -0,0 +1 @@
+TODO: Add your license here.
diff --git a/flutter_inappwebview_ios/README.md b/flutter_inappwebview_ios/README.md
new file mode 100644
index 00000000..18e5ad26
--- /dev/null
+++ b/flutter_inappwebview_ios/README.md
@@ -0,0 +1,15 @@
+# flutter_inappwebview_ios
+
+A new Flutter project.
+
+## Getting Started
+
+This project is a starting point for a Flutter
+[plug-in package](https://flutter.dev/developing-packages/),
+a specialized package that includes platform-specific implementation code for
+Android and/or iOS.
+
+For help getting started with Flutter development, view the
+[online documentation](https://flutter.dev/docs), which offers tutorials,
+samples, guidance on mobile development, and a full API reference.
+
diff --git a/flutter_inappwebview_ios/analysis_options.yaml b/flutter_inappwebview_ios/analysis_options.yaml
new file mode 100644
index 00000000..c98f8e5d
--- /dev/null
+++ b/flutter_inappwebview_ios/analysis_options.yaml
@@ -0,0 +1,13 @@
+include: package:flutter_lints/flutter.yaml
+
+linter:
+ rules:
+ constant_identifier_names: ignore
+ deprecated_member_use_from_same_package: ignore
+
+# Additional information about this file can be found at
+# https://dart.dev/guides/language/analysis-options
+analyzer:
+ errors:
+ deprecated_member_use: ignore
+ deprecated_member_use_from_same_package: ignore
diff --git a/flutter_inappwebview_ios/example/.gitignore b/flutter_inappwebview_ios/example/.gitignore
new file mode 100644
index 00000000..24476c5d
--- /dev/null
+++ b/flutter_inappwebview_ios/example/.gitignore
@@ -0,0 +1,44 @@
+# Miscellaneous
+*.class
+*.log
+*.pyc
+*.swp
+.DS_Store
+.atom/
+.buildlog/
+.history
+.svn/
+migrate_working_dir/
+
+# IntelliJ related
+*.iml
+*.ipr
+*.iws
+.idea/
+
+# The .vscode folder contains launch configuration and tasks you configure in
+# VS Code which you may wish to be included in version control, so this line
+# is commented out by default.
+#.vscode/
+
+# Flutter/Dart/Pub related
+**/doc/api/
+**/ios/Flutter/.last_build_id
+.dart_tool/
+.flutter-plugins
+.flutter-plugins-dependencies
+.packages
+.pub-cache/
+.pub/
+/build/
+
+# Symbolication related
+app.*.symbols
+
+# Obfuscation related
+app.*.map.json
+
+# Android Studio will place build artifacts here
+/android/app/debug
+/android/app/profile
+/android/app/release
diff --git a/flutter_inappwebview_ios/example/README.md b/flutter_inappwebview_ios/example/README.md
new file mode 100644
index 00000000..972be4ed
--- /dev/null
+++ b/flutter_inappwebview_ios/example/README.md
@@ -0,0 +1,16 @@
+# flutter_inappwebview_ios_example
+
+Demonstrates how to use the flutter_inappwebview_ios plugin.
+
+## Getting Started
+
+This project is a starting point for a Flutter application.
+
+A few resources to get you started if this is your first Flutter project:
+
+- [Lab: Write your first Flutter app](https://docs.flutter.dev/get-started/codelab)
+- [Cookbook: Useful Flutter samples](https://docs.flutter.dev/cookbook)
+
+For help getting started with Flutter development, view the
+[online documentation](https://docs.flutter.dev/), which offers tutorials,
+samples, guidance on mobile development, and a full API reference.
diff --git a/flutter_inappwebview_ios/example/analysis_options.yaml b/flutter_inappwebview_ios/example/analysis_options.yaml
new file mode 100644
index 00000000..0d290213
--- /dev/null
+++ b/flutter_inappwebview_ios/example/analysis_options.yaml
@@ -0,0 +1,28 @@
+# This file configures the analyzer, which statically analyzes Dart code to
+# check for errors, warnings, and lints.
+#
+# The issues identified by the analyzer are surfaced in the UI of Dart-enabled
+# IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be
+# invoked from the command line by running `flutter analyze`.
+
+# The following line activates a set of recommended lints for Flutter apps,
+# packages, and plugins designed to encourage good coding practices.
+include: package:flutter_lints/flutter.yaml
+
+linter:
+ # The lint rules applied to this project can be customized in the
+ # section below to disable rules from the `package:flutter_lints/flutter.yaml`
+ # included above or to enable additional rules. A list of all available lints
+ # and their documentation is published at https://dart.dev/lints.
+ #
+ # Instead of disabling a lint rule for the entire project in the
+ # section below, it can also be suppressed for a single line of code
+ # or a specific dart file by using the `// ignore: name_of_lint` and
+ # `// ignore_for_file: name_of_lint` syntax on the line or in the file
+ # producing the lint.
+ rules:
+ # avoid_print: false # Uncomment to disable the `avoid_print` rule
+ # prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule
+
+# Additional information about this file can be found at
+# https://dart.dev/guides/language/analysis-options
diff --git a/ios/Assets/.gitkeep b/flutter_inappwebview_ios/example/integration_test/plugin_integration_test.dart
old mode 100755
new mode 100644
similarity index 100%
rename from ios/Assets/.gitkeep
rename to flutter_inappwebview_ios/example/integration_test/plugin_integration_test.dart
diff --git a/flutter_inappwebview_ios/example/ios/.gitignore b/flutter_inappwebview_ios/example/ios/.gitignore
new file mode 100644
index 00000000..7a7f9873
--- /dev/null
+++ b/flutter_inappwebview_ios/example/ios/.gitignore
@@ -0,0 +1,34 @@
+**/dgph
+*.mode1v3
+*.mode2v3
+*.moved-aside
+*.pbxuser
+*.perspectivev3
+**/*sync/
+.sconsign.dblite
+.tags*
+**/.vagrant/
+**/DerivedData/
+Icon?
+**/Pods/
+**/.symlinks/
+profile
+xcuserdata
+**/.generated/
+Flutter/App.framework
+Flutter/Flutter.framework
+Flutter/Flutter.podspec
+Flutter/Generated.xcconfig
+Flutter/ephemeral/
+Flutter/app.flx
+Flutter/app.zip
+Flutter/flutter_assets/
+Flutter/flutter_export_environment.sh
+ServiceDefinitions.json
+Runner/GeneratedPluginRegistrant.*
+
+# Exceptions to above rules.
+!default.mode1v3
+!default.mode2v3
+!default.pbxuser
+!default.perspectivev3
diff --git a/flutter_inappwebview_ios/example/ios/Flutter/AppFrameworkInfo.plist b/flutter_inappwebview_ios/example/ios/Flutter/AppFrameworkInfo.plist
new file mode 100644
index 00000000..9625e105
--- /dev/null
+++ b/flutter_inappwebview_ios/example/ios/Flutter/AppFrameworkInfo.plist
@@ -0,0 +1,26 @@
+
+
+
+
+ CFBundleDevelopmentRegion
+ en
+ CFBundleExecutable
+ App
+ CFBundleIdentifier
+ io.flutter.flutter.app
+ CFBundleInfoDictionaryVersion
+ 6.0
+ CFBundleName
+ App
+ CFBundlePackageType
+ FMWK
+ CFBundleShortVersionString
+ 1.0
+ CFBundleSignature
+ ????
+ CFBundleVersion
+ 1.0
+ MinimumOSVersion
+ 11.0
+
+
diff --git a/flutter_inappwebview_ios/example/ios/Flutter/Debug.xcconfig b/flutter_inappwebview_ios/example/ios/Flutter/Debug.xcconfig
new file mode 100644
index 00000000..ec97fc6f
--- /dev/null
+++ b/flutter_inappwebview_ios/example/ios/Flutter/Debug.xcconfig
@@ -0,0 +1,2 @@
+#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"
+#include "Generated.xcconfig"
diff --git a/flutter_inappwebview_ios/example/ios/Flutter/Release.xcconfig b/flutter_inappwebview_ios/example/ios/Flutter/Release.xcconfig
new file mode 100644
index 00000000..c4855bfe
--- /dev/null
+++ b/flutter_inappwebview_ios/example/ios/Flutter/Release.xcconfig
@@ -0,0 +1,2 @@
+#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
+#include "Generated.xcconfig"
diff --git a/flutter_inappwebview_ios/example/ios/Podfile b/flutter_inappwebview_ios/example/ios/Podfile
new file mode 100644
index 00000000..fdcc671e
--- /dev/null
+++ b/flutter_inappwebview_ios/example/ios/Podfile
@@ -0,0 +1,44 @@
+# Uncomment this line to define a global platform for your project
+# platform :ios, '11.0'
+
+# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
+ENV['COCOAPODS_DISABLE_STATS'] = 'true'
+
+project 'Runner', {
+ 'Debug' => :debug,
+ 'Profile' => :release,
+ 'Release' => :release,
+}
+
+def flutter_root
+ generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__)
+ unless File.exist?(generated_xcode_build_settings_path)
+ raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first"
+ end
+
+ File.foreach(generated_xcode_build_settings_path) do |line|
+ matches = line.match(/FLUTTER_ROOT\=(.*)/)
+ return matches[1].strip if matches
+ end
+ raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get"
+end
+
+require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)
+
+flutter_ios_podfile_setup
+
+target 'Runner' do
+ use_frameworks!
+ use_modular_headers!
+
+ flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
+ target 'RunnerTests' do
+ inherit! :search_paths
+ end
+end
+
+post_install do |installer|
+ installer.pods_project.targets.each do |target|
+ flutter_additional_ios_build_settings(target)
+ end
+end
diff --git a/flutter_inappwebview_ios/example/ios/Runner.xcodeproj/project.pbxproj b/flutter_inappwebview_ios/example/ios/Runner.xcodeproj/project.pbxproj
new file mode 100644
index 00000000..123bf9e5
--- /dev/null
+++ b/flutter_inappwebview_ios/example/ios/Runner.xcodeproj/project.pbxproj
@@ -0,0 +1,614 @@
+// !$*UTF8*$!
+{
+ archiveVersion = 1;
+ classes = {
+ };
+ objectVersion = 54;
+ objects = {
+
+/* Begin PBXBuildFile section */
+ 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; };
+ 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; };
+ 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; };
+ 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
+ 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; };
+ 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; };
+ 331C808B294A63AB00263BE5 /* RunnerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 331C807B294A618700263BE5 /* RunnerTests.swift */; };
+/* End PBXBuildFile section */
+
+/* Begin PBXContainerItemProxy section */
+ 331C8085294A63A400263BE5 /* PBXContainerItemProxy */ = {
+ isa = PBXContainerItemProxy;
+ containerPortal = 97C146E61CF9000F007C117D /* Project object */;
+ proxyType = 1;
+ remoteGlobalIDString = 97C146ED1CF9000F007C117D;
+ remoteInfo = Runner;
+ };
+/* End PBXContainerItemProxy section */
+
+/* Begin PBXCopyFilesBuildPhase section */
+ 9705A1C41CF9048500538489 /* Embed Frameworks */ = {
+ isa = PBXCopyFilesBuildPhase;
+ buildActionMask = 2147483647;
+ dstPath = "";
+ dstSubfolderSpec = 10;
+ files = (
+ );
+ name = "Embed Frameworks";
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXCopyFilesBuildPhase section */
+
+/* Begin PBXFileReference section */
+ 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; };
+ 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; };
+ 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; };
+ 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; };
+ 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; };
+ 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; };
+ 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; };
+ 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; };
+ 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; };
+ 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
+ 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
+ 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; };
+ 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
+ 331C807B294A618700263BE5 /* RunnerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RunnerTests.swift; sourceTree = ""; };
+ 331C8081294A63A400263BE5 /* RunnerTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = RunnerTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
+/* End PBXFileReference section */
+
+/* Begin PBXFrameworksBuildPhase section */
+ 97C146EB1CF9000F007C117D /* Frameworks */ = {
+ isa = PBXFrameworksBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXFrameworksBuildPhase section */
+
+/* Begin PBXGroup section */
+ 9740EEB11CF90186004384FC /* Flutter */ = {
+ isa = PBXGroup;
+ children = (
+ 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */,
+ 9740EEB21CF90195004384FC /* Debug.xcconfig */,
+ 7AFA3C8E1D35360C0083082E /* Release.xcconfig */,
+ 9740EEB31CF90195004384FC /* Generated.xcconfig */,
+ );
+ name = Flutter;
+ sourceTree = "";
+ };
+ 331C8082294A63A400263BE5 /* RunnerTests */ = {
+ isa = PBXGroup;
+ children = (
+ 331C807B294A618700263BE5 /* RunnerTests.swift */,
+ );
+ path = RunnerTests;
+ sourceTree = "";
+ };
+ 97C146E51CF9000F007C117D = {
+ isa = PBXGroup;
+ children = (
+ 9740EEB11CF90186004384FC /* Flutter */,
+ 97C146F01CF9000F007C117D /* Runner */,
+ 97C146EF1CF9000F007C117D /* Products */,
+ 331C8082294A63A400263BE5 /* RunnerTests */,
+ );
+ sourceTree = "";
+ };
+ 97C146EF1CF9000F007C117D /* Products */ = {
+ isa = PBXGroup;
+ children = (
+ 97C146EE1CF9000F007C117D /* Runner.app */,
+ 331C8081294A63A400263BE5 /* RunnerTests.xctest */,
+ );
+ name = Products;
+ sourceTree = "";
+ };
+ 97C146F01CF9000F007C117D /* Runner */ = {
+ isa = PBXGroup;
+ children = (
+ 97C146FA1CF9000F007C117D /* Main.storyboard */,
+ 97C146FD1CF9000F007C117D /* Assets.xcassets */,
+ 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */,
+ 97C147021CF9000F007C117D /* Info.plist */,
+ 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */,
+ 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */,
+ 74858FAE1ED2DC5600515810 /* AppDelegate.swift */,
+ 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */,
+ );
+ path = Runner;
+ sourceTree = "";
+ };
+/* End PBXGroup section */
+
+/* Begin PBXNativeTarget section */
+ 331C8080294A63A400263BE5 /* RunnerTests */ = {
+ isa = PBXNativeTarget;
+ buildConfigurationList = 331C8087294A63A400263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */;
+ buildPhases = (
+ 331C807D294A63A400263BE5 /* Sources */,
+ 331C807E294A63A400263BE5 /* Frameworks */,
+ 331C807F294A63A400263BE5 /* Resources */,
+ );
+ buildRules = (
+ );
+ dependencies = (
+ 331C8086294A63A400263BE5 /* PBXTargetDependency */,
+ );
+ name = RunnerTests;
+ productName = RunnerTests;
+ productReference = 331C8081294A63A400263BE5 /* RunnerTests.xctest */;
+ productType = "com.apple.product-type.bundle.unit-test";
+ };
+ 97C146ED1CF9000F007C117D /* Runner */ = {
+ isa = PBXNativeTarget;
+ buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */;
+ buildPhases = (
+ 9740EEB61CF901F6004384FC /* Run Script */,
+ 97C146EA1CF9000F007C117D /* Sources */,
+ 97C146EB1CF9000F007C117D /* Frameworks */,
+ 97C146EC1CF9000F007C117D /* Resources */,
+ 9705A1C41CF9048500538489 /* Embed Frameworks */,
+ 3B06AD1E1E4923F5004D2608 /* Thin Binary */,
+ );
+ buildRules = (
+ );
+ dependencies = (
+ );
+ name = Runner;
+ productName = Runner;
+ productReference = 97C146EE1CF9000F007C117D /* Runner.app */;
+ productType = "com.apple.product-type.application";
+ };
+/* End PBXNativeTarget section */
+
+/* Begin PBXProject section */
+ 97C146E61CF9000F007C117D /* Project object */ = {
+ isa = PBXProject;
+ attributes = {
+ BuildIndependentTargetsInParallel = YES;
+ LastUpgradeCheck = 1430;
+ ORGANIZATIONNAME = "";
+ TargetAttributes = {
+ 331C8080294A63A400263BE5 = {
+ CreatedOnToolsVersion = 14.0;
+ TestTargetID = 97C146ED1CF9000F007C117D;
+ };
+ 97C146ED1CF9000F007C117D = {
+ CreatedOnToolsVersion = 7.3.1;
+ LastSwiftMigration = 1100;
+ };
+ };
+ };
+ buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */;
+ compatibilityVersion = "Xcode 9.3";
+ developmentRegion = en;
+ hasScannedForEncodings = 0;
+ knownRegions = (
+ en,
+ Base,
+ );
+ mainGroup = 97C146E51CF9000F007C117D;
+ productRefGroup = 97C146EF1CF9000F007C117D /* Products */;
+ projectDirPath = "";
+ projectRoot = "";
+ targets = (
+ 97C146ED1CF9000F007C117D /* Runner */,
+ 331C8080294A63A400263BE5 /* RunnerTests */,
+ );
+ };
+/* End PBXProject section */
+
+/* Begin PBXResourcesBuildPhase section */
+ 331C807F294A63A400263BE5 /* Resources */ = {
+ isa = PBXResourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+ 97C146EC1CF9000F007C117D /* Resources */ = {
+ isa = PBXResourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */,
+ 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */,
+ 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */,
+ 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXResourcesBuildPhase section */
+
+/* Begin PBXShellScriptBuildPhase section */
+ 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
+ isa = PBXShellScriptBuildPhase;
+ alwaysOutOfDate = 1;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ inputPaths = (
+ "${TARGET_BUILD_DIR}/${INFOPLIST_PATH}",
+ );
+ name = "Thin Binary";
+ outputPaths = (
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ shellPath = /bin/sh;
+ shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin";
+ };
+ 9740EEB61CF901F6004384FC /* Run Script */ = {
+ isa = PBXShellScriptBuildPhase;
+ alwaysOutOfDate = 1;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ inputPaths = (
+ );
+ name = "Run Script";
+ outputPaths = (
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ shellPath = /bin/sh;
+ shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build";
+ };
+/* End PBXShellScriptBuildPhase section */
+
+/* Begin PBXSourcesBuildPhase section */
+ 331C807D294A63A400263BE5 /* Sources */ = {
+ isa = PBXSourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 331C808B294A63AB00263BE5 /* RunnerTests.swift in Sources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+ 97C146EA1CF9000F007C117D /* Sources */ = {
+ isa = PBXSourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */,
+ 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXSourcesBuildPhase section */
+
+/* Begin PBXTargetDependency section */
+ 331C8086294A63A400263BE5 /* PBXTargetDependency */ = {
+ isa = PBXTargetDependency;
+ target = 97C146ED1CF9000F007C117D /* Runner */;
+ targetProxy = 331C8085294A63A400263BE5 /* PBXContainerItemProxy */;
+ };
+/* End PBXTargetDependency section */
+
+/* Begin PBXVariantGroup section */
+ 97C146FA1CF9000F007C117D /* Main.storyboard */ = {
+ isa = PBXVariantGroup;
+ children = (
+ 97C146FB1CF9000F007C117D /* Base */,
+ );
+ name = Main.storyboard;
+ sourceTree = "";
+ };
+ 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = {
+ isa = PBXVariantGroup;
+ children = (
+ 97C147001CF9000F007C117D /* Base */,
+ );
+ name = LaunchScreen.storyboard;
+ sourceTree = "";
+ };
+/* End PBXVariantGroup section */
+
+/* Begin XCBuildConfiguration section */
+ 249021D3217E4FDB00AE95B9 /* Profile */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ CLANG_ANALYZER_NONNULL = YES;
+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
+ CLANG_CXX_LIBRARY = "libc++";
+ CLANG_ENABLE_MODULES = YES;
+ CLANG_ENABLE_OBJC_ARC = YES;
+ CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
+ CLANG_WARN_BOOL_CONVERSION = YES;
+ CLANG_WARN_COMMA = YES;
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
+ CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
+ CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
+ CLANG_WARN_EMPTY_BODY = YES;
+ CLANG_WARN_ENUM_CONVERSION = YES;
+ CLANG_WARN_INFINITE_RECURSION = YES;
+ CLANG_WARN_INT_CONVERSION = YES;
+ CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
+ CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
+ CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
+ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
+ CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
+ CLANG_WARN_STRICT_PROTOTYPES = YES;
+ CLANG_WARN_SUSPICIOUS_MOVE = YES;
+ CLANG_WARN_UNREACHABLE_CODE = YES;
+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
+ "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
+ COPY_PHASE_STRIP = NO;
+ DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
+ ENABLE_NS_ASSERTIONS = NO;
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
+ GCC_C_LANGUAGE_STANDARD = gnu99;
+ GCC_NO_COMMON_BLOCKS = YES;
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
+ GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
+ GCC_WARN_UNDECLARED_SELECTOR = YES;
+ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
+ GCC_WARN_UNUSED_FUNCTION = YES;
+ GCC_WARN_UNUSED_VARIABLE = YES;
+ IPHONEOS_DEPLOYMENT_TARGET = 11.0;
+ MTL_ENABLE_DEBUG_INFO = NO;
+ SDKROOT = iphoneos;
+ SUPPORTED_PLATFORMS = iphoneos;
+ TARGETED_DEVICE_FAMILY = "1,2";
+ VALIDATE_PRODUCT = YES;
+ };
+ name = Profile;
+ };
+ 249021D4217E4FDB00AE95B9 /* Profile */ = {
+ isa = XCBuildConfiguration;
+ baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
+ buildSettings = {
+ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
+ CLANG_ENABLE_MODULES = YES;
+ CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
+ ENABLE_BITCODE = NO;
+ INFOPLIST_FILE = Runner/Info.plist;
+ LD_RUNPATH_SEARCH_PATHS = (
+ "$(inherited)",
+ "@executable_path/Frameworks",
+ );
+ PRODUCT_BUNDLE_IDENTIFIER = com.pichillilorenzo.flutterInappwebviewIosExample;
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
+ SWIFT_VERSION = 5.0;
+ VERSIONING_SYSTEM = "apple-generic";
+ };
+ name = Profile;
+ };
+ 331C8088294A63A400263BE5 /* Debug */ = {
+ isa = XCBuildConfiguration;
+ baseConfigurationReference = AE0B7B92F70575B8D7E0D07E /* Pods-RunnerTests.debug.xcconfig */;
+ buildSettings = {
+ BUNDLE_LOADER = "$(TEST_HOST)";
+ CODE_SIGN_STYLE = Automatic;
+ CURRENT_PROJECT_VERSION = 1;
+ GENERATE_INFOPLIST_FILE = YES;
+ MARKETING_VERSION = 1.0;
+ PRODUCT_BUNDLE_IDENTIFIER = com.pichillilorenzo.flutterInappwebviewIosExample.RunnerTests;
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
+ SWIFT_OPTIMIZATION_LEVEL = "-Onone";
+ SWIFT_VERSION = 5.0;
+ TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner";
+ };
+ name = Debug;
+ };
+ 331C8089294A63A400263BE5 /* Release */ = {
+ isa = XCBuildConfiguration;
+ baseConfigurationReference = 89B67EB44CE7B6631473024E /* Pods-RunnerTests.release.xcconfig */;
+ buildSettings = {
+ BUNDLE_LOADER = "$(TEST_HOST)";
+ CODE_SIGN_STYLE = Automatic;
+ CURRENT_PROJECT_VERSION = 1;
+ GENERATE_INFOPLIST_FILE = YES;
+ MARKETING_VERSION = 1.0;
+ PRODUCT_BUNDLE_IDENTIFIER = com.pichillilorenzo.flutterInappwebviewIosExample.RunnerTests;
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ SWIFT_VERSION = 5.0;
+ TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner";
+ };
+ name = Release;
+ };
+ 331C808A294A63A400263BE5 /* Profile */ = {
+ isa = XCBuildConfiguration;
+ baseConfigurationReference = 640959BDD8F10B91D80A66BE /* Pods-RunnerTests.profile.xcconfig */;
+ buildSettings = {
+ BUNDLE_LOADER = "$(TEST_HOST)";
+ CODE_SIGN_STYLE = Automatic;
+ CURRENT_PROJECT_VERSION = 1;
+ GENERATE_INFOPLIST_FILE = YES;
+ MARKETING_VERSION = 1.0;
+ PRODUCT_BUNDLE_IDENTIFIER = com.pichillilorenzo.flutterInappwebviewIosExample.RunnerTests;
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ SWIFT_VERSION = 5.0;
+ TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner";
+ };
+ name = Profile;
+ };
+ 97C147031CF9000F007C117D /* Debug */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ CLANG_ANALYZER_NONNULL = YES;
+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
+ CLANG_CXX_LIBRARY = "libc++";
+ CLANG_ENABLE_MODULES = YES;
+ CLANG_ENABLE_OBJC_ARC = YES;
+ CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
+ CLANG_WARN_BOOL_CONVERSION = YES;
+ CLANG_WARN_COMMA = YES;
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
+ CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
+ CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
+ CLANG_WARN_EMPTY_BODY = YES;
+ CLANG_WARN_ENUM_CONVERSION = YES;
+ CLANG_WARN_INFINITE_RECURSION = YES;
+ CLANG_WARN_INT_CONVERSION = YES;
+ CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
+ CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
+ CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
+ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
+ CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
+ CLANG_WARN_STRICT_PROTOTYPES = YES;
+ CLANG_WARN_SUSPICIOUS_MOVE = YES;
+ CLANG_WARN_UNREACHABLE_CODE = YES;
+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
+ "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
+ COPY_PHASE_STRIP = NO;
+ DEBUG_INFORMATION_FORMAT = dwarf;
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
+ ENABLE_TESTABILITY = YES;
+ GCC_C_LANGUAGE_STANDARD = gnu99;
+ GCC_DYNAMIC_NO_PIC = NO;
+ GCC_NO_COMMON_BLOCKS = YES;
+ GCC_OPTIMIZATION_LEVEL = 0;
+ GCC_PREPROCESSOR_DEFINITIONS = (
+ "DEBUG=1",
+ "$(inherited)",
+ );
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
+ GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
+ GCC_WARN_UNDECLARED_SELECTOR = YES;
+ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
+ GCC_WARN_UNUSED_FUNCTION = YES;
+ GCC_WARN_UNUSED_VARIABLE = YES;
+ IPHONEOS_DEPLOYMENT_TARGET = 11.0;
+ MTL_ENABLE_DEBUG_INFO = YES;
+ ONLY_ACTIVE_ARCH = YES;
+ SDKROOT = iphoneos;
+ TARGETED_DEVICE_FAMILY = "1,2";
+ };
+ name = Debug;
+ };
+ 97C147041CF9000F007C117D /* Release */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ CLANG_ANALYZER_NONNULL = YES;
+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
+ CLANG_CXX_LIBRARY = "libc++";
+ CLANG_ENABLE_MODULES = YES;
+ CLANG_ENABLE_OBJC_ARC = YES;
+ CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
+ CLANG_WARN_BOOL_CONVERSION = YES;
+ CLANG_WARN_COMMA = YES;
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
+ CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
+ CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
+ CLANG_WARN_EMPTY_BODY = YES;
+ CLANG_WARN_ENUM_CONVERSION = YES;
+ CLANG_WARN_INFINITE_RECURSION = YES;
+ CLANG_WARN_INT_CONVERSION = YES;
+ CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
+ CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
+ CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
+ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
+ CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
+ CLANG_WARN_STRICT_PROTOTYPES = YES;
+ CLANG_WARN_SUSPICIOUS_MOVE = YES;
+ CLANG_WARN_UNREACHABLE_CODE = YES;
+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
+ "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
+ COPY_PHASE_STRIP = NO;
+ DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
+ ENABLE_NS_ASSERTIONS = NO;
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
+ GCC_C_LANGUAGE_STANDARD = gnu99;
+ GCC_NO_COMMON_BLOCKS = YES;
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
+ GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
+ GCC_WARN_UNDECLARED_SELECTOR = YES;
+ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
+ GCC_WARN_UNUSED_FUNCTION = YES;
+ GCC_WARN_UNUSED_VARIABLE = YES;
+ IPHONEOS_DEPLOYMENT_TARGET = 11.0;
+ MTL_ENABLE_DEBUG_INFO = NO;
+ SDKROOT = iphoneos;
+ SUPPORTED_PLATFORMS = iphoneos;
+ SWIFT_COMPILATION_MODE = wholemodule;
+ SWIFT_OPTIMIZATION_LEVEL = "-O";
+ TARGETED_DEVICE_FAMILY = "1,2";
+ VALIDATE_PRODUCT = YES;
+ };
+ name = Release;
+ };
+ 97C147061CF9000F007C117D /* Debug */ = {
+ isa = XCBuildConfiguration;
+ baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
+ buildSettings = {
+ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
+ CLANG_ENABLE_MODULES = YES;
+ CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
+ ENABLE_BITCODE = NO;
+ INFOPLIST_FILE = Runner/Info.plist;
+ LD_RUNPATH_SEARCH_PATHS = (
+ "$(inherited)",
+ "@executable_path/Frameworks",
+ );
+ PRODUCT_BUNDLE_IDENTIFIER = com.pichillilorenzo.flutterInappwebviewIosExample;
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
+ SWIFT_OPTIMIZATION_LEVEL = "-Onone";
+ SWIFT_VERSION = 5.0;
+ VERSIONING_SYSTEM = "apple-generic";
+ };
+ name = Debug;
+ };
+ 97C147071CF9000F007C117D /* Release */ = {
+ isa = XCBuildConfiguration;
+ baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
+ buildSettings = {
+ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
+ CLANG_ENABLE_MODULES = YES;
+ CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
+ ENABLE_BITCODE = NO;
+ INFOPLIST_FILE = Runner/Info.plist;
+ LD_RUNPATH_SEARCH_PATHS = (
+ "$(inherited)",
+ "@executable_path/Frameworks",
+ );
+ PRODUCT_BUNDLE_IDENTIFIER = com.pichillilorenzo.flutterInappwebviewIosExample;
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
+ SWIFT_VERSION = 5.0;
+ VERSIONING_SYSTEM = "apple-generic";
+ };
+ name = Release;
+ };
+/* End XCBuildConfiguration section */
+
+/* Begin XCConfigurationList section */
+ 331C8087294A63A400263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ 331C8088294A63A400263BE5 /* Debug */,
+ 331C8089294A63A400263BE5 /* Release */,
+ 331C808A294A63A400263BE5 /* Profile */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+ 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ 97C147031CF9000F007C117D /* Debug */,
+ 97C147041CF9000F007C117D /* Release */,
+ 249021D3217E4FDB00AE95B9 /* Profile */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+ 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ 97C147061CF9000F007C117D /* Debug */,
+ 97C147071CF9000F007C117D /* Release */,
+ 249021D4217E4FDB00AE95B9 /* Profile */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+/* End XCConfigurationList section */
+ };
+ rootObject = 97C146E61CF9000F007C117D /* Project object */;
+}
diff --git a/flutter_inappwebview_ios/example/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/flutter_inappwebview_ios/example/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata
new file mode 100644
index 00000000..919434a6
--- /dev/null
+++ b/flutter_inappwebview_ios/example/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata
@@ -0,0 +1,7 @@
+
+
+
+
+
diff --git a/flutter_inappwebview_ios/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/flutter_inappwebview_ios/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
new file mode 100644
index 00000000..18d98100
--- /dev/null
+++ b/flutter_inappwebview_ios/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
@@ -0,0 +1,8 @@
+
+
+
+
+ IDEDidComputeMac32BitWarning
+
+
+
diff --git a/flutter_inappwebview_ios/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/flutter_inappwebview_ios/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
new file mode 100644
index 00000000..f9b0d7c5
--- /dev/null
+++ b/flutter_inappwebview_ios/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
@@ -0,0 +1,8 @@
+
+
+
+
+ PreviewsEnabled
+
+
+
diff --git a/flutter_inappwebview_ios/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/flutter_inappwebview_ios/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
new file mode 100644
index 00000000..87131a09
--- /dev/null
+++ b/flutter_inappwebview_ios/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
@@ -0,0 +1,98 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/flutter_inappwebview_ios/example/ios/Runner.xcworkspace/contents.xcworkspacedata b/flutter_inappwebview_ios/example/ios/Runner.xcworkspace/contents.xcworkspacedata
new file mode 100644
index 00000000..1d526a16
--- /dev/null
+++ b/flutter_inappwebview_ios/example/ios/Runner.xcworkspace/contents.xcworkspacedata
@@ -0,0 +1,7 @@
+
+
+
+
+
diff --git a/flutter_inappwebview_ios/example/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/flutter_inappwebview_ios/example/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
new file mode 100644
index 00000000..18d98100
--- /dev/null
+++ b/flutter_inappwebview_ios/example/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
@@ -0,0 +1,8 @@
+
+
+
+
+ IDEDidComputeMac32BitWarning
+
+
+
diff --git a/flutter_inappwebview_ios/example/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/flutter_inappwebview_ios/example/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
new file mode 100644
index 00000000..f9b0d7c5
--- /dev/null
+++ b/flutter_inappwebview_ios/example/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
@@ -0,0 +1,8 @@
+
+
+
+
+ PreviewsEnabled
+
+
+
diff --git a/flutter_inappwebview_ios/example/ios/Runner/AppDelegate.swift b/flutter_inappwebview_ios/example/ios/Runner/AppDelegate.swift
new file mode 100644
index 00000000..70693e4a
--- /dev/null
+++ b/flutter_inappwebview_ios/example/ios/Runner/AppDelegate.swift
@@ -0,0 +1,13 @@
+import UIKit
+import Flutter
+
+@UIApplicationMain
+@objc class AppDelegate: FlutterAppDelegate {
+ override func application(
+ _ application: UIApplication,
+ didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
+ ) -> Bool {
+ GeneratedPluginRegistrant.register(with: self)
+ return super.application(application, didFinishLaunchingWithOptions: launchOptions)
+ }
+}
diff --git a/flutter_inappwebview_ios/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json b/flutter_inappwebview_ios/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json
new file mode 100644
index 00000000..d36b1fab
--- /dev/null
+++ b/flutter_inappwebview_ios/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json
@@ -0,0 +1,122 @@
+{
+ "images" : [
+ {
+ "size" : "20x20",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-20x20@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "20x20",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-20x20@3x.png",
+ "scale" : "3x"
+ },
+ {
+ "size" : "29x29",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-29x29@1x.png",
+ "scale" : "1x"
+ },
+ {
+ "size" : "29x29",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-29x29@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "29x29",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-29x29@3x.png",
+ "scale" : "3x"
+ },
+ {
+ "size" : "40x40",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-40x40@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "40x40",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-40x40@3x.png",
+ "scale" : "3x"
+ },
+ {
+ "size" : "60x60",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-60x60@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "60x60",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-60x60@3x.png",
+ "scale" : "3x"
+ },
+ {
+ "size" : "20x20",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-20x20@1x.png",
+ "scale" : "1x"
+ },
+ {
+ "size" : "20x20",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-20x20@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "29x29",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-29x29@1x.png",
+ "scale" : "1x"
+ },
+ {
+ "size" : "29x29",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-29x29@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "40x40",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-40x40@1x.png",
+ "scale" : "1x"
+ },
+ {
+ "size" : "40x40",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-40x40@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "76x76",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-76x76@1x.png",
+ "scale" : "1x"
+ },
+ {
+ "size" : "76x76",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-76x76@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "83.5x83.5",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-83.5x83.5@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "1024x1024",
+ "idiom" : "ios-marketing",
+ "filename" : "Icon-App-1024x1024@1x.png",
+ "scale" : "1x"
+ }
+ ],
+ "info" : {
+ "version" : 1,
+ "author" : "xcode"
+ }
+}
diff --git a/flutter_inappwebview_ios/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png b/flutter_inappwebview_ios/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png
new file mode 100644
index 00000000..dc9ada47
Binary files /dev/null and b/flutter_inappwebview_ios/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png differ
diff --git a/flutter_inappwebview_ios/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png b/flutter_inappwebview_ios/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png
new file mode 100644
index 00000000..7353c41e
Binary files /dev/null and b/flutter_inappwebview_ios/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png differ
diff --git a/flutter_inappwebview_ios/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png b/flutter_inappwebview_ios/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png
new file mode 100644
index 00000000..797d452e
Binary files /dev/null and b/flutter_inappwebview_ios/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png differ
diff --git a/flutter_inappwebview_ios/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png b/flutter_inappwebview_ios/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png
new file mode 100644
index 00000000..6ed2d933
Binary files /dev/null and b/flutter_inappwebview_ios/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png differ
diff --git a/flutter_inappwebview_ios/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png b/flutter_inappwebview_ios/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png
new file mode 100644
index 00000000..4cd7b009
Binary files /dev/null and b/flutter_inappwebview_ios/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png differ
diff --git a/flutter_inappwebview_ios/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png b/flutter_inappwebview_ios/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png
new file mode 100644
index 00000000..fe730945
Binary files /dev/null and b/flutter_inappwebview_ios/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png differ
diff --git a/flutter_inappwebview_ios/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png b/flutter_inappwebview_ios/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png
new file mode 100644
index 00000000..321773cd
Binary files /dev/null and b/flutter_inappwebview_ios/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png differ
diff --git a/flutter_inappwebview_ios/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png b/flutter_inappwebview_ios/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png
new file mode 100644
index 00000000..797d452e
Binary files /dev/null and b/flutter_inappwebview_ios/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png differ
diff --git a/flutter_inappwebview_ios/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png b/flutter_inappwebview_ios/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png
new file mode 100644
index 00000000..502f463a
Binary files /dev/null and b/flutter_inappwebview_ios/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png differ
diff --git a/flutter_inappwebview_ios/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png b/flutter_inappwebview_ios/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png
new file mode 100644
index 00000000..0ec30343
Binary files /dev/null and b/flutter_inappwebview_ios/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png differ
diff --git a/flutter_inappwebview_ios/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png b/flutter_inappwebview_ios/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png
new file mode 100644
index 00000000..0ec30343
Binary files /dev/null and b/flutter_inappwebview_ios/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png differ
diff --git a/flutter_inappwebview_ios/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png b/flutter_inappwebview_ios/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png
new file mode 100644
index 00000000..e9f5fea2
Binary files /dev/null and b/flutter_inappwebview_ios/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png differ
diff --git a/flutter_inappwebview_ios/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png b/flutter_inappwebview_ios/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png
new file mode 100644
index 00000000..84ac32ae
Binary files /dev/null and b/flutter_inappwebview_ios/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png differ
diff --git a/flutter_inappwebview_ios/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png b/flutter_inappwebview_ios/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png
new file mode 100644
index 00000000..8953cba0
Binary files /dev/null and b/flutter_inappwebview_ios/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png differ
diff --git a/flutter_inappwebview_ios/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png b/flutter_inappwebview_ios/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png
new file mode 100644
index 00000000..0467bf12
Binary files /dev/null and b/flutter_inappwebview_ios/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png differ
diff --git a/flutter_inappwebview_ios/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json b/flutter_inappwebview_ios/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json
new file mode 100644
index 00000000..0bedcf2f
--- /dev/null
+++ b/flutter_inappwebview_ios/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json
@@ -0,0 +1,23 @@
+{
+ "images" : [
+ {
+ "idiom" : "universal",
+ "filename" : "LaunchImage.png",
+ "scale" : "1x"
+ },
+ {
+ "idiom" : "universal",
+ "filename" : "LaunchImage@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "idiom" : "universal",
+ "filename" : "LaunchImage@3x.png",
+ "scale" : "3x"
+ }
+ ],
+ "info" : {
+ "version" : 1,
+ "author" : "xcode"
+ }
+}
diff --git a/flutter_inappwebview_ios/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png b/flutter_inappwebview_ios/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
new file mode 100644
index 00000000..9da19eac
Binary files /dev/null and b/flutter_inappwebview_ios/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png differ
diff --git a/flutter_inappwebview_ios/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png b/flutter_inappwebview_ios/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
new file mode 100644
index 00000000..9da19eac
Binary files /dev/null and b/flutter_inappwebview_ios/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png differ
diff --git a/flutter_inappwebview_ios/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png b/flutter_inappwebview_ios/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png
new file mode 100644
index 00000000..9da19eac
Binary files /dev/null and b/flutter_inappwebview_ios/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png differ
diff --git a/flutter_inappwebview_ios/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md b/flutter_inappwebview_ios/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md
new file mode 100644
index 00000000..89c2725b
--- /dev/null
+++ b/flutter_inappwebview_ios/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md
@@ -0,0 +1,5 @@
+# Launch Screen Assets
+
+You can customize the launch screen with your own desired assets by replacing the image files in this directory.
+
+You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images.
\ No newline at end of file
diff --git a/flutter_inappwebview_ios/example/ios/Runner/Base.lproj/LaunchScreen.storyboard b/flutter_inappwebview_ios/example/ios/Runner/Base.lproj/LaunchScreen.storyboard
new file mode 100644
index 00000000..f2e259c7
--- /dev/null
+++ b/flutter_inappwebview_ios/example/ios/Runner/Base.lproj/LaunchScreen.storyboard
@@ -0,0 +1,37 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/flutter_inappwebview_ios/example/ios/Runner/Base.lproj/Main.storyboard b/flutter_inappwebview_ios/example/ios/Runner/Base.lproj/Main.storyboard
new file mode 100644
index 00000000..f3c28516
--- /dev/null
+++ b/flutter_inappwebview_ios/example/ios/Runner/Base.lproj/Main.storyboard
@@ -0,0 +1,26 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/flutter_inappwebview_ios/example/ios/Runner/Info.plist b/flutter_inappwebview_ios/example/ios/Runner/Info.plist
new file mode 100644
index 00000000..5aceee7b
--- /dev/null
+++ b/flutter_inappwebview_ios/example/ios/Runner/Info.plist
@@ -0,0 +1,49 @@
+
+
+
+
+ CFBundleDevelopmentRegion
+ $(DEVELOPMENT_LANGUAGE)
+ CFBundleDisplayName
+ Flutter Inappwebview Ios
+ CFBundleExecutable
+ $(EXECUTABLE_NAME)
+ CFBundleIdentifier
+ $(PRODUCT_BUNDLE_IDENTIFIER)
+ CFBundleInfoDictionaryVersion
+ 6.0
+ CFBundleName
+ flutter_inappwebview_ios_example
+ CFBundlePackageType
+ APPL
+ CFBundleShortVersionString
+ $(FLUTTER_BUILD_NAME)
+ CFBundleSignature
+ ????
+ CFBundleVersion
+ $(FLUTTER_BUILD_NUMBER)
+ LSRequiresIPhoneOS
+
+ UILaunchStoryboardName
+ LaunchScreen
+ UIMainStoryboardFile
+ Main
+ UISupportedInterfaceOrientations
+
+ UIInterfaceOrientationPortrait
+ UIInterfaceOrientationLandscapeLeft
+ UIInterfaceOrientationLandscapeRight
+
+ UISupportedInterfaceOrientations~ipad
+
+ UIInterfaceOrientationPortrait
+ UIInterfaceOrientationPortraitUpsideDown
+ UIInterfaceOrientationLandscapeLeft
+ UIInterfaceOrientationLandscapeRight
+
+ CADisableMinimumFrameDurationOnPhone
+
+ UIApplicationSupportsIndirectInputEvents
+
+
+
diff --git a/flutter_inappwebview_ios/example/ios/Runner/Runner-Bridging-Header.h b/flutter_inappwebview_ios/example/ios/Runner/Runner-Bridging-Header.h
new file mode 100644
index 00000000..308a2a56
--- /dev/null
+++ b/flutter_inappwebview_ios/example/ios/Runner/Runner-Bridging-Header.h
@@ -0,0 +1 @@
+#import "GeneratedPluginRegistrant.h"
diff --git a/flutter_inappwebview_ios/example/ios/RunnerTests/RunnerTests.swift b/flutter_inappwebview_ios/example/ios/RunnerTests/RunnerTests.swift
new file mode 100644
index 00000000..3fff3af3
--- /dev/null
+++ b/flutter_inappwebview_ios/example/ios/RunnerTests/RunnerTests.swift
@@ -0,0 +1,26 @@
+import Flutter
+import UIKit
+import XCTest
+
+@testable import flutter_inappwebview_ios
+
+// This demonstrates a simple unit test of the Swift portion of this plugin's implementation.
+//
+// See https://developer.apple.com/documentation/xctest for more information about using XCTest.
+
+class RunnerTests: XCTestCase {
+
+ func testGetPlatformVersion() {
+ let plugin = FlutterInappwebviewIosPlugin()
+
+ let call = FlutterMethodCall(methodName: "getPlatformVersion", arguments: [])
+
+ let resultExpectation = expectation(description: "result block must be called.")
+ plugin.handle(call) { result in
+ XCTAssertEqual(result as! String, "iOS " + UIDevice.current.systemVersion)
+ resultExpectation.fulfill()
+ }
+ waitForExpectations(timeout: 1)
+ }
+
+}
diff --git a/flutter_inappwebview_ios/example/lib/main.dart b/flutter_inappwebview_ios/example/lib/main.dart
new file mode 100644
index 00000000..e69de29b
diff --git a/flutter_inappwebview_ios/example/pubspec.lock b/flutter_inappwebview_ios/example/pubspec.lock
new file mode 100644
index 00000000..caa8a08a
--- /dev/null
+++ b/flutter_inappwebview_ios/example/pubspec.lock
@@ -0,0 +1,282 @@
+# Generated by pub
+# See https://dart.dev/tools/pub/glossary#lockfile
+packages:
+ async:
+ dependency: transitive
+ description:
+ name: async
+ sha256: "947bfcf187f74dbc5e146c9eb9c0f10c9f8b30743e341481c1e2ed3ecc18c20c"
+ url: "https://pub.dev"
+ source: hosted
+ version: "2.11.0"
+ boolean_selector:
+ dependency: transitive
+ description:
+ name: boolean_selector
+ sha256: "6cfb5af12253eaf2b368f07bacc5a80d1301a071c73360d746b7f2e32d762c66"
+ url: "https://pub.dev"
+ source: hosted
+ version: "2.1.1"
+ characters:
+ dependency: transitive
+ description:
+ name: characters
+ sha256: "04a925763edad70e8443c99234dc3328f442e811f1d8fd1a72f1c8ad0f69a605"
+ url: "https://pub.dev"
+ source: hosted
+ version: "1.3.0"
+ clock:
+ dependency: transitive
+ description:
+ name: clock
+ sha256: cb6d7f03e1de671e34607e909a7213e31d7752be4fb66a86d29fe1eb14bfb5cf
+ url: "https://pub.dev"
+ source: hosted
+ version: "1.1.1"
+ collection:
+ dependency: transitive
+ description:
+ name: collection
+ sha256: f092b211a4319e98e5ff58223576de6c2803db36221657b46c82574721240687
+ url: "https://pub.dev"
+ source: hosted
+ version: "1.17.2"
+ cupertino_icons:
+ dependency: "direct main"
+ description:
+ name: cupertino_icons
+ sha256: d57953e10f9f8327ce64a508a355f0b1ec902193f66288e8cb5070e7c47eeb2d
+ url: "https://pub.dev"
+ source: hosted
+ version: "1.0.6"
+ fake_async:
+ dependency: transitive
+ description:
+ name: fake_async
+ sha256: "511392330127add0b769b75a987850d136345d9227c6b94c96a04cf4a391bf78"
+ url: "https://pub.dev"
+ source: hosted
+ version: "1.3.1"
+ file:
+ dependency: transitive
+ description:
+ name: file
+ sha256: "1b92bec4fc2a72f59a8e15af5f52cd441e4a7860b49499d69dfa817af20e925d"
+ url: "https://pub.dev"
+ source: hosted
+ version: "6.1.4"
+ flutter:
+ dependency: "direct main"
+ description: flutter
+ source: sdk
+ version: "0.0.0"
+ flutter_driver:
+ dependency: transitive
+ description: flutter
+ source: sdk
+ version: "0.0.0"
+ flutter_inappwebview_internal_annotations:
+ dependency: transitive
+ description:
+ name: flutter_inappwebview_internal_annotations
+ sha256: "5f80fd30e208ddded7dbbcd0d569e7995f9f63d45ea3f548d8dd4c0b473fb4c8"
+ url: "https://pub.dev"
+ source: hosted
+ version: "1.1.1"
+ flutter_inappwebview_ios:
+ dependency: "direct main"
+ description:
+ path: ".."
+ relative: true
+ source: path
+ version: "0.0.1"
+ flutter_inappwebview_platform_interface:
+ dependency: transitive
+ description:
+ path: "../../flutter_inappwebview_platform_interface"
+ relative: true
+ source: path
+ version: "0.0.1"
+ flutter_lints:
+ dependency: "direct dev"
+ description:
+ name: flutter_lints
+ sha256: a25a15ebbdfc33ab1cd26c63a6ee519df92338a9c10f122adda92938253bef04
+ url: "https://pub.dev"
+ source: hosted
+ version: "2.0.3"
+ flutter_test:
+ dependency: "direct dev"
+ description: flutter
+ source: sdk
+ version: "0.0.0"
+ fuchsia_remote_debug_protocol:
+ dependency: transitive
+ description: flutter
+ source: sdk
+ version: "0.0.0"
+ integration_test:
+ dependency: "direct dev"
+ description: flutter
+ source: sdk
+ version: "0.0.0"
+ lints:
+ dependency: transitive
+ description:
+ name: lints
+ sha256: "0a217c6c989d21039f1498c3ed9f3ed71b354e69873f13a8dfc3c9fe76f1b452"
+ url: "https://pub.dev"
+ source: hosted
+ version: "2.1.1"
+ matcher:
+ dependency: transitive
+ description:
+ name: matcher
+ sha256: "1803e76e6653768d64ed8ff2e1e67bea3ad4b923eb5c56a295c3e634bad5960e"
+ url: "https://pub.dev"
+ source: hosted
+ version: "0.12.16"
+ material_color_utilities:
+ dependency: transitive
+ description:
+ name: material_color_utilities
+ sha256: "9528f2f296073ff54cb9fee677df673ace1218163c3bc7628093e7eed5203d41"
+ url: "https://pub.dev"
+ source: hosted
+ version: "0.5.0"
+ meta:
+ dependency: transitive
+ description:
+ name: meta
+ sha256: "3c74dbf8763d36539f114c799d8a2d87343b5067e9d796ca22b5eb8437090ee3"
+ url: "https://pub.dev"
+ source: hosted
+ version: "1.9.1"
+ path:
+ dependency: transitive
+ description:
+ name: path
+ sha256: "8829d8a55c13fc0e37127c29fedf290c102f4e40ae94ada574091fe0ff96c917"
+ url: "https://pub.dev"
+ source: hosted
+ version: "1.8.3"
+ platform:
+ dependency: transitive
+ description:
+ name: platform
+ sha256: "4a451831508d7d6ca779f7ac6e212b4023dd5a7d08a27a63da33756410e32b76"
+ url: "https://pub.dev"
+ source: hosted
+ version: "3.1.0"
+ plugin_platform_interface:
+ dependency: transitive
+ description:
+ name: plugin_platform_interface
+ sha256: f4f88d4a900933e7267e2b353594774fc0d07fb072b47eedcd5b54e1ea3269f8
+ url: "https://pub.dev"
+ source: hosted
+ version: "2.1.7"
+ process:
+ dependency: transitive
+ description:
+ name: process
+ sha256: "53fd8db9cec1d37b0574e12f07520d582019cb6c44abf5479a01505099a34a09"
+ url: "https://pub.dev"
+ source: hosted
+ version: "4.2.4"
+ sky_engine:
+ dependency: transitive
+ description: flutter
+ source: sdk
+ version: "0.0.99"
+ source_span:
+ dependency: transitive
+ description:
+ name: source_span
+ sha256: "53e943d4206a5e30df338fd4c6e7a077e02254531b138a15aec3bd143c1a8b3c"
+ url: "https://pub.dev"
+ source: hosted
+ version: "1.10.0"
+ stack_trace:
+ dependency: transitive
+ description:
+ name: stack_trace
+ sha256: c3c7d8edb15bee7f0f74debd4b9c5f3c2ea86766fe4178eb2a18eb30a0bdaed5
+ url: "https://pub.dev"
+ source: hosted
+ version: "1.11.0"
+ stream_channel:
+ dependency: transitive
+ description:
+ name: stream_channel
+ sha256: "83615bee9045c1d322bbbd1ba209b7a749c2cbcdcb3fdd1df8eb488b3279c1c8"
+ url: "https://pub.dev"
+ source: hosted
+ version: "2.1.1"
+ string_scanner:
+ dependency: transitive
+ description:
+ name: string_scanner
+ sha256: "556692adab6cfa87322a115640c11f13cb77b3f076ddcc5d6ae3c20242bedcde"
+ url: "https://pub.dev"
+ source: hosted
+ version: "1.2.0"
+ sync_http:
+ dependency: transitive
+ description:
+ name: sync_http
+ sha256: "7f0cd72eca000d2e026bcd6f990b81d0ca06022ef4e32fb257b30d3d1014a961"
+ url: "https://pub.dev"
+ source: hosted
+ version: "0.3.1"
+ term_glyph:
+ dependency: transitive
+ description:
+ name: term_glyph
+ sha256: a29248a84fbb7c79282b40b8c72a1209db169a2e0542bce341da992fe1bc7e84
+ url: "https://pub.dev"
+ source: hosted
+ version: "1.2.1"
+ test_api:
+ dependency: transitive
+ description:
+ name: test_api
+ sha256: "75760ffd7786fffdfb9597c35c5b27eaeec82be8edfb6d71d32651128ed7aab8"
+ url: "https://pub.dev"
+ source: hosted
+ version: "0.6.0"
+ vector_math:
+ dependency: transitive
+ description:
+ name: vector_math
+ sha256: "80b3257d1492ce4d091729e3a67a60407d227c27241d6927be0130c98e741803"
+ url: "https://pub.dev"
+ source: hosted
+ version: "2.1.4"
+ vm_service:
+ dependency: transitive
+ description:
+ name: vm_service
+ sha256: c620a6f783fa22436da68e42db7ebbf18b8c44b9a46ab911f666ff09ffd9153f
+ url: "https://pub.dev"
+ source: hosted
+ version: "11.7.1"
+ web:
+ dependency: transitive
+ description:
+ name: web
+ sha256: dc8ccd225a2005c1be616fe02951e2e342092edf968cf0844220383757ef8f10
+ url: "https://pub.dev"
+ source: hosted
+ version: "0.1.4-beta"
+ webdriver:
+ dependency: transitive
+ description:
+ name: webdriver
+ sha256: "3c923e918918feeb90c4c9fdf1fe39220fa4c0e8e2c0fffaded174498ef86c49"
+ url: "https://pub.dev"
+ source: hosted
+ version: "3.0.2"
+sdks:
+ dart: ">=3.1.4 <4.0.0"
+ flutter: ">=3.0.0"
diff --git a/flutter_inappwebview_ios/example/pubspec.yaml b/flutter_inappwebview_ios/example/pubspec.yaml
new file mode 100644
index 00000000..3eef0f0a
--- /dev/null
+++ b/flutter_inappwebview_ios/example/pubspec.yaml
@@ -0,0 +1,85 @@
+name: flutter_inappwebview_ios_example
+description: Demonstrates how to use the flutter_inappwebview_ios plugin.
+# The following line prevents the package from being accidentally published to
+# pub.dev using `flutter pub publish`. This is preferred for private packages.
+publish_to: 'none' # Remove this line if you wish to publish to pub.dev
+
+environment:
+ sdk: '>=3.1.4 <4.0.0'
+
+# Dependencies specify other packages that your package needs in order to work.
+# To automatically upgrade your package dependencies to the latest versions
+# consider running `flutter pub upgrade --major-versions`. Alternatively,
+# dependencies can be manually updated by changing the version numbers below to
+# the latest version available on pub.dev. To see which dependencies have newer
+# versions available, run `flutter pub outdated`.
+dependencies:
+ flutter:
+ sdk: flutter
+
+ flutter_inappwebview_ios:
+ # When depending on this package from a real application you should use:
+ # flutter_inappwebview_ios: ^x.y.z
+ # See https://dart.dev/tools/pub/dependencies#version-constraints
+ # The example app is bundled with the plugin so we use a path dependency on
+ # the parent directory to use the current plugin's version.
+ path: ../
+
+ # The following adds the Cupertino Icons font to your application.
+ # Use with the CupertinoIcons class for iOS style icons.
+ cupertino_icons: ^1.0.2
+
+dev_dependencies:
+ integration_test:
+ sdk: flutter
+ flutter_test:
+ sdk: flutter
+
+ # The "flutter_lints" package below contains a set of recommended lints to
+ # encourage good coding practices. The lint set provided by the package is
+ # activated in the `analysis_options.yaml` file located at the root of your
+ # package. See that file for information about deactivating specific lint
+ # rules and activating additional ones.
+ flutter_lints: ^2.0.0
+
+# For information on the generic Dart part of this file, see the
+# following page: https://dart.dev/tools/pub/pubspec
+
+# The following section is specific to Flutter packages.
+flutter:
+
+ # The following line ensures that the Material Icons font is
+ # included with your application, so that you can use the icons in
+ # the material Icons class.
+ uses-material-design: true
+
+ # To add assets to your application, add an assets section, like this:
+ # assets:
+ # - images/a_dot_burr.jpeg
+ # - images/a_dot_ham.jpeg
+
+ # An image asset can refer to one or more resolution-specific "variants", see
+ # https://flutter.dev/assets-and-images/#resolution-aware
+
+ # For details regarding adding assets from package dependencies, see
+ # https://flutter.dev/assets-and-images/#from-packages
+
+ # To add custom fonts to your application, add a fonts section here,
+ # in this "flutter" section. Each entry in this list should have a
+ # "family" key with the font family name, and a "fonts" key with a
+ # list giving the asset and other descriptors for the font. For
+ # example:
+ # fonts:
+ # - family: Schyler
+ # fonts:
+ # - asset: fonts/Schyler-Regular.ttf
+ # - asset: fonts/Schyler-Italic.ttf
+ # style: italic
+ # - family: Trajan Pro
+ # fonts:
+ # - asset: fonts/TrajanPro.ttf
+ # - asset: fonts/TrajanPro_Bold.ttf
+ # weight: 700
+ #
+ # For details regarding fonts from package dependencies,
+ # see https://flutter.dev/custom-fonts/#from-packages
diff --git a/flutter_inappwebview_ios/example/test/widget_test.dart b/flutter_inappwebview_ios/example/test/widget_test.dart
new file mode 100644
index 00000000..e69de29b
diff --git a/ios/.gitignore b/flutter_inappwebview_ios/ios/.gitignore
similarity index 100%
rename from ios/.gitignore
rename to flutter_inappwebview_ios/ios/.gitignore
diff --git a/flutter_inappwebview_ios/ios/Assets/.gitkeep b/flutter_inappwebview_ios/ios/Assets/.gitkeep
new file mode 100755
index 00000000..e69de29b
diff --git a/ios/Classes/CredentialDatabase.swift b/flutter_inappwebview_ios/ios/Classes/CredentialDatabase.swift
similarity index 100%
rename from ios/Classes/CredentialDatabase.swift
rename to flutter_inappwebview_ios/ios/Classes/CredentialDatabase.swift
diff --git a/ios/Classes/FindInteraction/FindInteractionChannelDelegate.swift b/flutter_inappwebview_ios/ios/Classes/FindInteraction/FindInteractionChannelDelegate.swift
similarity index 100%
rename from ios/Classes/FindInteraction/FindInteractionChannelDelegate.swift
rename to flutter_inappwebview_ios/ios/Classes/FindInteraction/FindInteractionChannelDelegate.swift
diff --git a/ios/Classes/FindInteraction/FindInteractionController.swift b/flutter_inappwebview_ios/ios/Classes/FindInteraction/FindInteractionController.swift
similarity index 100%
rename from ios/Classes/FindInteraction/FindInteractionController.swift
rename to flutter_inappwebview_ios/ios/Classes/FindInteraction/FindInteractionController.swift
diff --git a/ios/Classes/FindInteraction/FindInteractionSettings.swift b/flutter_inappwebview_ios/ios/Classes/FindInteraction/FindInteractionSettings.swift
similarity index 100%
rename from ios/Classes/FindInteraction/FindInteractionSettings.swift
rename to flutter_inappwebview_ios/ios/Classes/FindInteraction/FindInteractionSettings.swift
diff --git a/ios/Classes/HeadlessInAppWebView/HeadlessInAppWebView.swift b/flutter_inappwebview_ios/ios/Classes/HeadlessInAppWebView/HeadlessInAppWebView.swift
similarity index 100%
rename from ios/Classes/HeadlessInAppWebView/HeadlessInAppWebView.swift
rename to flutter_inappwebview_ios/ios/Classes/HeadlessInAppWebView/HeadlessInAppWebView.swift
diff --git a/ios/Classes/HeadlessInAppWebView/HeadlessInAppWebViewManager.swift b/flutter_inappwebview_ios/ios/Classes/HeadlessInAppWebView/HeadlessInAppWebViewManager.swift
similarity index 100%
rename from ios/Classes/HeadlessInAppWebView/HeadlessInAppWebViewManager.swift
rename to flutter_inappwebview_ios/ios/Classes/HeadlessInAppWebView/HeadlessInAppWebViewManager.swift
diff --git a/ios/Classes/HeadlessInAppWebView/HeadlessWebViewChannelDelegate.swift b/flutter_inappwebview_ios/ios/Classes/HeadlessInAppWebView/HeadlessWebViewChannelDelegate.swift
similarity index 100%
rename from ios/Classes/HeadlessInAppWebView/HeadlessWebViewChannelDelegate.swift
rename to flutter_inappwebview_ios/ios/Classes/HeadlessInAppWebView/HeadlessWebViewChannelDelegate.swift
diff --git a/ios/Classes/ISettings.swift b/flutter_inappwebview_ios/ios/Classes/ISettings.swift
similarity index 100%
rename from ios/Classes/ISettings.swift
rename to flutter_inappwebview_ios/ios/Classes/ISettings.swift
diff --git a/ios/Classes/InAppBrowser/InAppBrowserChannelDelegate.swift b/flutter_inappwebview_ios/ios/Classes/InAppBrowser/InAppBrowserChannelDelegate.swift
similarity index 100%
rename from ios/Classes/InAppBrowser/InAppBrowserChannelDelegate.swift
rename to flutter_inappwebview_ios/ios/Classes/InAppBrowser/InAppBrowserChannelDelegate.swift
diff --git a/ios/Classes/InAppBrowser/InAppBrowserDelegate.swift b/flutter_inappwebview_ios/ios/Classes/InAppBrowser/InAppBrowserDelegate.swift
similarity index 100%
rename from ios/Classes/InAppBrowser/InAppBrowserDelegate.swift
rename to flutter_inappwebview_ios/ios/Classes/InAppBrowser/InAppBrowserDelegate.swift
diff --git a/ios/Classes/InAppBrowser/InAppBrowserManager.swift b/flutter_inappwebview_ios/ios/Classes/InAppBrowser/InAppBrowserManager.swift
similarity index 100%
rename from ios/Classes/InAppBrowser/InAppBrowserManager.swift
rename to flutter_inappwebview_ios/ios/Classes/InAppBrowser/InAppBrowserManager.swift
diff --git a/ios/Classes/InAppBrowser/InAppBrowserNavigationController.swift b/flutter_inappwebview_ios/ios/Classes/InAppBrowser/InAppBrowserNavigationController.swift
similarity index 100%
rename from ios/Classes/InAppBrowser/InAppBrowserNavigationController.swift
rename to flutter_inappwebview_ios/ios/Classes/InAppBrowser/InAppBrowserNavigationController.swift
diff --git a/ios/Classes/InAppBrowser/InAppBrowserSettings.swift b/flutter_inappwebview_ios/ios/Classes/InAppBrowser/InAppBrowserSettings.swift
similarity index 100%
rename from ios/Classes/InAppBrowser/InAppBrowserSettings.swift
rename to flutter_inappwebview_ios/ios/Classes/InAppBrowser/InAppBrowserSettings.swift
diff --git a/ios/Classes/InAppBrowser/InAppBrowserWebViewController.swift b/flutter_inappwebview_ios/ios/Classes/InAppBrowser/InAppBrowserWebViewController.swift
similarity index 100%
rename from ios/Classes/InAppBrowser/InAppBrowserWebViewController.swift
rename to flutter_inappwebview_ios/ios/Classes/InAppBrowser/InAppBrowserWebViewController.swift
diff --git a/ios/Classes/InAppWebView/ContextMenuSettings.swift b/flutter_inappwebview_ios/ios/Classes/InAppWebView/ContextMenuSettings.swift
similarity index 100%
rename from ios/Classes/InAppWebView/ContextMenuSettings.swift
rename to flutter_inappwebview_ios/ios/Classes/InAppWebView/ContextMenuSettings.swift
diff --git a/ios/Classes/InAppWebView/CustomSchemeHandler.swift b/flutter_inappwebview_ios/ios/Classes/InAppWebView/CustomSchemeHandler.swift
similarity index 100%
rename from ios/Classes/InAppWebView/CustomSchemeHandler.swift
rename to flutter_inappwebview_ios/ios/Classes/InAppWebView/CustomSchemeHandler.swift
diff --git a/ios/Classes/InAppWebView/FlutterWebViewController.swift b/flutter_inappwebview_ios/ios/Classes/InAppWebView/FlutterWebViewController.swift
similarity index 100%
rename from ios/Classes/InAppWebView/FlutterWebViewController.swift
rename to flutter_inappwebview_ios/ios/Classes/InAppWebView/FlutterWebViewController.swift
diff --git a/ios/Classes/InAppWebView/FlutterWebViewFactory.swift b/flutter_inappwebview_ios/ios/Classes/InAppWebView/FlutterWebViewFactory.swift
similarity index 100%
rename from ios/Classes/InAppWebView/FlutterWebViewFactory.swift
rename to flutter_inappwebview_ios/ios/Classes/InAppWebView/FlutterWebViewFactory.swift
diff --git a/ios/Classes/InAppWebView/InAppWebView.swift b/flutter_inappwebview_ios/ios/Classes/InAppWebView/InAppWebView.swift
similarity index 100%
rename from ios/Classes/InAppWebView/InAppWebView.swift
rename to flutter_inappwebview_ios/ios/Classes/InAppWebView/InAppWebView.swift
diff --git a/ios/Classes/InAppWebView/InAppWebViewManager.swift b/flutter_inappwebview_ios/ios/Classes/InAppWebView/InAppWebViewManager.swift
similarity index 100%
rename from ios/Classes/InAppWebView/InAppWebViewManager.swift
rename to flutter_inappwebview_ios/ios/Classes/InAppWebView/InAppWebViewManager.swift
diff --git a/ios/Classes/InAppWebView/InAppWebViewSettings.swift b/flutter_inappwebview_ios/ios/Classes/InAppWebView/InAppWebViewSettings.swift
similarity index 100%
rename from ios/Classes/InAppWebView/InAppWebViewSettings.swift
rename to flutter_inappwebview_ios/ios/Classes/InAppWebView/InAppWebViewSettings.swift
diff --git a/ios/Classes/InAppWebView/WebMessage/WebMessageChannel.swift b/flutter_inappwebview_ios/ios/Classes/InAppWebView/WebMessage/WebMessageChannel.swift
similarity index 100%
rename from ios/Classes/InAppWebView/WebMessage/WebMessageChannel.swift
rename to flutter_inappwebview_ios/ios/Classes/InAppWebView/WebMessage/WebMessageChannel.swift
diff --git a/ios/Classes/InAppWebView/WebMessage/WebMessageChannelChannelDelegate.swift b/flutter_inappwebview_ios/ios/Classes/InAppWebView/WebMessage/WebMessageChannelChannelDelegate.swift
similarity index 100%
rename from ios/Classes/InAppWebView/WebMessage/WebMessageChannelChannelDelegate.swift
rename to flutter_inappwebview_ios/ios/Classes/InAppWebView/WebMessage/WebMessageChannelChannelDelegate.swift
diff --git a/ios/Classes/InAppWebView/WebMessage/WebMessageListener.swift b/flutter_inappwebview_ios/ios/Classes/InAppWebView/WebMessage/WebMessageListener.swift
similarity index 100%
rename from ios/Classes/InAppWebView/WebMessage/WebMessageListener.swift
rename to flutter_inappwebview_ios/ios/Classes/InAppWebView/WebMessage/WebMessageListener.swift
diff --git a/ios/Classes/InAppWebView/WebMessage/WebMessageListenerChannelDelegate.swift b/flutter_inappwebview_ios/ios/Classes/InAppWebView/WebMessage/WebMessageListenerChannelDelegate.swift
similarity index 100%
rename from ios/Classes/InAppWebView/WebMessage/WebMessageListenerChannelDelegate.swift
rename to flutter_inappwebview_ios/ios/Classes/InAppWebView/WebMessage/WebMessageListenerChannelDelegate.swift
diff --git a/ios/Classes/InAppWebView/WebViewChannelDelegate.swift b/flutter_inappwebview_ios/ios/Classes/InAppWebView/WebViewChannelDelegate.swift
similarity index 100%
rename from ios/Classes/InAppWebView/WebViewChannelDelegate.swift
rename to flutter_inappwebview_ios/ios/Classes/InAppWebView/WebViewChannelDelegate.swift
diff --git a/ios/Classes/InAppWebView/WebViewChannelDelegateMethods.swift b/flutter_inappwebview_ios/ios/Classes/InAppWebView/WebViewChannelDelegateMethods.swift
similarity index 100%
rename from ios/Classes/InAppWebView/WebViewChannelDelegateMethods.swift
rename to flutter_inappwebview_ios/ios/Classes/InAppWebView/WebViewChannelDelegateMethods.swift
diff --git a/ios/Classes/InAppWebViewFlutterPlugin.h b/flutter_inappwebview_ios/ios/Classes/InAppWebViewFlutterPlugin.h
similarity index 100%
rename from ios/Classes/InAppWebViewFlutterPlugin.h
rename to flutter_inappwebview_ios/ios/Classes/InAppWebViewFlutterPlugin.h
diff --git a/ios/Classes/InAppWebViewFlutterPlugin.m b/flutter_inappwebview_ios/ios/Classes/InAppWebViewFlutterPlugin.m
similarity index 86%
rename from ios/Classes/InAppWebViewFlutterPlugin.m
rename to flutter_inappwebview_ios/ios/Classes/InAppWebViewFlutterPlugin.m
index c16dedb4..adcf1123 100755
--- a/ios/Classes/InAppWebViewFlutterPlugin.m
+++ b/flutter_inappwebview_ios/ios/Classes/InAppWebViewFlutterPlugin.m
@@ -16,13 +16,13 @@
*/
#import "InAppWebViewFlutterPlugin.h"
-#if __has_include()
-#import
+#if __has_include()
+#import
#else
// Support project import fallback if the generated compatibility header
// is not copied when this plugin is created as a library.
// https://forums.swift.org/t/swift-static-libraries-dont-copy-generated-objective-c-header/19816
-#import "flutter_inappwebview-Swift.h"
+#import "flutter_inappwebview_ios-Swift.h"
#endif
@implementation InAppWebViewFlutterPlugin : NSObject
diff --git a/ios/Classes/LeakAvoider.swift b/flutter_inappwebview_ios/ios/Classes/LeakAvoider.swift
similarity index 100%
rename from ios/Classes/LeakAvoider.swift
rename to flutter_inappwebview_ios/ios/Classes/LeakAvoider.swift
diff --git a/ios/Classes/MyCookieManager.swift b/flutter_inappwebview_ios/ios/Classes/MyCookieManager.swift
similarity index 100%
rename from ios/Classes/MyCookieManager.swift
rename to flutter_inappwebview_ios/ios/Classes/MyCookieManager.swift
diff --git a/ios/Classes/MyWebStorageManager.swift b/flutter_inappwebview_ios/ios/Classes/MyWebStorageManager.swift
similarity index 100%
rename from ios/Classes/MyWebStorageManager.swift
rename to flutter_inappwebview_ios/ios/Classes/MyWebStorageManager.swift
diff --git a/ios/Classes/PlatformUtil.swift b/flutter_inappwebview_ios/ios/Classes/PlatformUtil.swift
similarity index 100%
rename from ios/Classes/PlatformUtil.swift
rename to flutter_inappwebview_ios/ios/Classes/PlatformUtil.swift
diff --git a/ios/Classes/PluginScriptsJS/CallAsyncJavaScriptBelowIOS14WrapperJS.swift b/flutter_inappwebview_ios/ios/Classes/PluginScriptsJS/CallAsyncJavaScriptBelowIOS14WrapperJS.swift
similarity index 100%
rename from ios/Classes/PluginScriptsJS/CallAsyncJavaScriptBelowIOS14WrapperJS.swift
rename to flutter_inappwebview_ios/ios/Classes/PluginScriptsJS/CallAsyncJavaScriptBelowIOS14WrapperJS.swift
diff --git a/ios/Classes/PluginScriptsJS/ConsoleLogJS.swift b/flutter_inappwebview_ios/ios/Classes/PluginScriptsJS/ConsoleLogJS.swift
similarity index 100%
rename from ios/Classes/PluginScriptsJS/ConsoleLogJS.swift
rename to flutter_inappwebview_ios/ios/Classes/PluginScriptsJS/ConsoleLogJS.swift
diff --git a/ios/Classes/PluginScriptsJS/EnableViewportScaleJS.swift b/flutter_inappwebview_ios/ios/Classes/PluginScriptsJS/EnableViewportScaleJS.swift
similarity index 100%
rename from ios/Classes/PluginScriptsJS/EnableViewportScaleJS.swift
rename to flutter_inappwebview_ios/ios/Classes/PluginScriptsJS/EnableViewportScaleJS.swift
diff --git a/ios/Classes/PluginScriptsJS/FindElementsAtPointJS.swift b/flutter_inappwebview_ios/ios/Classes/PluginScriptsJS/FindElementsAtPointJS.swift
similarity index 100%
rename from ios/Classes/PluginScriptsJS/FindElementsAtPointJS.swift
rename to flutter_inappwebview_ios/ios/Classes/PluginScriptsJS/FindElementsAtPointJS.swift
diff --git a/ios/Classes/PluginScriptsJS/FindTextHighlightJS.swift b/flutter_inappwebview_ios/ios/Classes/PluginScriptsJS/FindTextHighlightJS.swift
similarity index 100%
rename from ios/Classes/PluginScriptsJS/FindTextHighlightJS.swift
rename to flutter_inappwebview_ios/ios/Classes/PluginScriptsJS/FindTextHighlightJS.swift
diff --git a/ios/Classes/PluginScriptsJS/InterceptAjaxRequestJS.swift b/flutter_inappwebview_ios/ios/Classes/PluginScriptsJS/InterceptAjaxRequestJS.swift
similarity index 100%
rename from ios/Classes/PluginScriptsJS/InterceptAjaxRequestJS.swift
rename to flutter_inappwebview_ios/ios/Classes/PluginScriptsJS/InterceptAjaxRequestJS.swift
diff --git a/ios/Classes/PluginScriptsJS/InterceptFetchRequestJS.swift b/flutter_inappwebview_ios/ios/Classes/PluginScriptsJS/InterceptFetchRequestJS.swift
similarity index 100%
rename from ios/Classes/PluginScriptsJS/InterceptFetchRequestJS.swift
rename to flutter_inappwebview_ios/ios/Classes/PluginScriptsJS/InterceptFetchRequestJS.swift
diff --git a/ios/Classes/PluginScriptsJS/JavaScriptBridgeJS.swift b/flutter_inappwebview_ios/ios/Classes/PluginScriptsJS/JavaScriptBridgeJS.swift
similarity index 100%
rename from ios/Classes/PluginScriptsJS/JavaScriptBridgeJS.swift
rename to flutter_inappwebview_ios/ios/Classes/PluginScriptsJS/JavaScriptBridgeJS.swift
diff --git a/ios/Classes/PluginScriptsJS/LastTouchedAnchorOrImageJS.swift b/flutter_inappwebview_ios/ios/Classes/PluginScriptsJS/LastTouchedAnchorOrImageJS.swift
similarity index 100%
rename from ios/Classes/PluginScriptsJS/LastTouchedAnchorOrImageJS.swift
rename to flutter_inappwebview_ios/ios/Classes/PluginScriptsJS/LastTouchedAnchorOrImageJS.swift
diff --git a/ios/Classes/PluginScriptsJS/OnLoadResourceJS.swift b/flutter_inappwebview_ios/ios/Classes/PluginScriptsJS/OnLoadResourceJS.swift
similarity index 100%
rename from ios/Classes/PluginScriptsJS/OnLoadResourceJS.swift
rename to flutter_inappwebview_ios/ios/Classes/PluginScriptsJS/OnLoadResourceJS.swift
diff --git a/ios/Classes/PluginScriptsJS/OnWindowBlurEventJS.swift b/flutter_inappwebview_ios/ios/Classes/PluginScriptsJS/OnWindowBlurEventJS.swift
similarity index 100%
rename from ios/Classes/PluginScriptsJS/OnWindowBlurEventJS.swift
rename to flutter_inappwebview_ios/ios/Classes/PluginScriptsJS/OnWindowBlurEventJS.swift
diff --git a/ios/Classes/PluginScriptsJS/OnWindowFocusEventJS.swift b/flutter_inappwebview_ios/ios/Classes/PluginScriptsJS/OnWindowFocusEventJS.swift
similarity index 100%
rename from ios/Classes/PluginScriptsJS/OnWindowFocusEventJS.swift
rename to flutter_inappwebview_ios/ios/Classes/PluginScriptsJS/OnWindowFocusEventJS.swift
diff --git a/ios/Classes/PluginScriptsJS/OriginalViewPortMetaTagContentJS.swift b/flutter_inappwebview_ios/ios/Classes/PluginScriptsJS/OriginalViewPortMetaTagContentJS.swift
similarity index 100%
rename from ios/Classes/PluginScriptsJS/OriginalViewPortMetaTagContentJS.swift
rename to flutter_inappwebview_ios/ios/Classes/PluginScriptsJS/OriginalViewPortMetaTagContentJS.swift
diff --git a/ios/Classes/PluginScriptsJS/PluginScriptsUtil.swift b/flutter_inappwebview_ios/ios/Classes/PluginScriptsJS/PluginScriptsUtil.swift
similarity index 100%
rename from ios/Classes/PluginScriptsJS/PluginScriptsUtil.swift
rename to flutter_inappwebview_ios/ios/Classes/PluginScriptsJS/PluginScriptsUtil.swift
diff --git a/ios/Classes/PluginScriptsJS/PrintJS.swift b/flutter_inappwebview_ios/ios/Classes/PluginScriptsJS/PrintJS.swift
similarity index 100%
rename from ios/Classes/PluginScriptsJS/PrintJS.swift
rename to flutter_inappwebview_ios/ios/Classes/PluginScriptsJS/PrintJS.swift
diff --git a/ios/Classes/PluginScriptsJS/PromisePolyfillJS.swift b/flutter_inappwebview_ios/ios/Classes/PluginScriptsJS/PromisePolyfillJS.swift
similarity index 100%
rename from ios/Classes/PluginScriptsJS/PromisePolyfillJS.swift
rename to flutter_inappwebview_ios/ios/Classes/PluginScriptsJS/PromisePolyfillJS.swift
diff --git a/ios/Classes/PluginScriptsJS/SupportZoomJS.swift b/flutter_inappwebview_ios/ios/Classes/PluginScriptsJS/SupportZoomJS.swift
similarity index 100%
rename from ios/Classes/PluginScriptsJS/SupportZoomJS.swift
rename to flutter_inappwebview_ios/ios/Classes/PluginScriptsJS/SupportZoomJS.swift
diff --git a/ios/Classes/PluginScriptsJS/WebMessageChannelJS.swift b/flutter_inappwebview_ios/ios/Classes/PluginScriptsJS/WebMessageChannelJS.swift
similarity index 100%
rename from ios/Classes/PluginScriptsJS/WebMessageChannelJS.swift
rename to flutter_inappwebview_ios/ios/Classes/PluginScriptsJS/WebMessageChannelJS.swift
diff --git a/ios/Classes/PluginScriptsJS/WebMessageListenerJS.swift b/flutter_inappwebview_ios/ios/Classes/PluginScriptsJS/WebMessageListenerJS.swift
similarity index 100%
rename from ios/Classes/PluginScriptsJS/WebMessageListenerJS.swift
rename to flutter_inappwebview_ios/ios/Classes/PluginScriptsJS/WebMessageListenerJS.swift
diff --git a/ios/Classes/PluginScriptsJS/WindowIdJS.swift b/flutter_inappwebview_ios/ios/Classes/PluginScriptsJS/WindowIdJS.swift
similarity index 100%
rename from ios/Classes/PluginScriptsJS/WindowIdJS.swift
rename to flutter_inappwebview_ios/ios/Classes/PluginScriptsJS/WindowIdJS.swift
diff --git a/ios/Classes/PrintJob/CustomUIPrintPageRenderer.swift b/flutter_inappwebview_ios/ios/Classes/PrintJob/CustomUIPrintPageRenderer.swift
similarity index 100%
rename from ios/Classes/PrintJob/CustomUIPrintPageRenderer.swift
rename to flutter_inappwebview_ios/ios/Classes/PrintJob/CustomUIPrintPageRenderer.swift
diff --git a/ios/Classes/PrintJob/PrintAttributes.swift b/flutter_inappwebview_ios/ios/Classes/PrintJob/PrintAttributes.swift
similarity index 100%
rename from ios/Classes/PrintJob/PrintAttributes.swift
rename to flutter_inappwebview_ios/ios/Classes/PrintJob/PrintAttributes.swift
diff --git a/ios/Classes/PrintJob/PrintJobChannelDelegate.swift b/flutter_inappwebview_ios/ios/Classes/PrintJob/PrintJobChannelDelegate.swift
similarity index 100%
rename from ios/Classes/PrintJob/PrintJobChannelDelegate.swift
rename to flutter_inappwebview_ios/ios/Classes/PrintJob/PrintJobChannelDelegate.swift
diff --git a/ios/Classes/PrintJob/PrintJobController.swift b/flutter_inappwebview_ios/ios/Classes/PrintJob/PrintJobController.swift
similarity index 100%
rename from ios/Classes/PrintJob/PrintJobController.swift
rename to flutter_inappwebview_ios/ios/Classes/PrintJob/PrintJobController.swift
diff --git a/ios/Classes/PrintJob/PrintJobInfo.swift b/flutter_inappwebview_ios/ios/Classes/PrintJob/PrintJobInfo.swift
similarity index 100%
rename from ios/Classes/PrintJob/PrintJobInfo.swift
rename to flutter_inappwebview_ios/ios/Classes/PrintJob/PrintJobInfo.swift
diff --git a/ios/Classes/PrintJob/PrintJobManager.swift b/flutter_inappwebview_ios/ios/Classes/PrintJob/PrintJobManager.swift
similarity index 100%
rename from ios/Classes/PrintJob/PrintJobManager.swift
rename to flutter_inappwebview_ios/ios/Classes/PrintJob/PrintJobManager.swift
diff --git a/ios/Classes/PrintJob/PrintJobSettings.swift b/flutter_inappwebview_ios/ios/Classes/PrintJob/PrintJobSettings.swift
similarity index 100%
rename from ios/Classes/PrintJob/PrintJobSettings.swift
rename to flutter_inappwebview_ios/ios/Classes/PrintJob/PrintJobSettings.swift
diff --git a/ios/Classes/PullToRefresh/PullToRefreshChannelDelegate.swift b/flutter_inappwebview_ios/ios/Classes/PullToRefresh/PullToRefreshChannelDelegate.swift
similarity index 100%
rename from ios/Classes/PullToRefresh/PullToRefreshChannelDelegate.swift
rename to flutter_inappwebview_ios/ios/Classes/PullToRefresh/PullToRefreshChannelDelegate.swift
diff --git a/ios/Classes/PullToRefresh/PullToRefreshControl.swift b/flutter_inappwebview_ios/ios/Classes/PullToRefresh/PullToRefreshControl.swift
similarity index 100%
rename from ios/Classes/PullToRefresh/PullToRefreshControl.swift
rename to flutter_inappwebview_ios/ios/Classes/PullToRefresh/PullToRefreshControl.swift
diff --git a/ios/Classes/PullToRefresh/PullToRefreshDelegate.swift b/flutter_inappwebview_ios/ios/Classes/PullToRefresh/PullToRefreshDelegate.swift
similarity index 100%
rename from ios/Classes/PullToRefresh/PullToRefreshDelegate.swift
rename to flutter_inappwebview_ios/ios/Classes/PullToRefresh/PullToRefreshDelegate.swift
diff --git a/ios/Classes/PullToRefresh/PullToRefreshSettings.swift b/flutter_inappwebview_ios/ios/Classes/PullToRefresh/PullToRefreshSettings.swift
similarity index 100%
rename from ios/Classes/PullToRefresh/PullToRefreshSettings.swift
rename to flutter_inappwebview_ios/ios/Classes/PullToRefresh/PullToRefreshSettings.swift
diff --git a/ios/Classes/SafariViewController/ChromeSafariBrowserManager.swift b/flutter_inappwebview_ios/ios/Classes/SafariViewController/ChromeSafariBrowserManager.swift
similarity index 100%
rename from ios/Classes/SafariViewController/ChromeSafariBrowserManager.swift
rename to flutter_inappwebview_ios/ios/Classes/SafariViewController/ChromeSafariBrowserManager.swift
diff --git a/ios/Classes/SafariViewController/CustomUIActivity.swift b/flutter_inappwebview_ios/ios/Classes/SafariViewController/CustomUIActivity.swift
similarity index 100%
rename from ios/Classes/SafariViewController/CustomUIActivity.swift
rename to flutter_inappwebview_ios/ios/Classes/SafariViewController/CustomUIActivity.swift
diff --git a/ios/Classes/SafariViewController/SafariBrowserSettings.swift b/flutter_inappwebview_ios/ios/Classes/SafariViewController/SafariBrowserSettings.swift
similarity index 100%
rename from ios/Classes/SafariViewController/SafariBrowserSettings.swift
rename to flutter_inappwebview_ios/ios/Classes/SafariViewController/SafariBrowserSettings.swift
diff --git a/ios/Classes/SafariViewController/SafariViewController.swift b/flutter_inappwebview_ios/ios/Classes/SafariViewController/SafariViewController.swift
similarity index 100%
rename from ios/Classes/SafariViewController/SafariViewController.swift
rename to flutter_inappwebview_ios/ios/Classes/SafariViewController/SafariViewController.swift
diff --git a/ios/Classes/SafariViewController/SafariViewControllerChannelDelegate.swift b/flutter_inappwebview_ios/ios/Classes/SafariViewController/SafariViewControllerChannelDelegate.swift
similarity index 100%
rename from ios/Classes/SafariViewController/SafariViewControllerChannelDelegate.swift
rename to flutter_inappwebview_ios/ios/Classes/SafariViewController/SafariViewControllerChannelDelegate.swift
diff --git a/ios/Classes/SwiftFlutterPlugin.swift b/flutter_inappwebview_ios/ios/Classes/SwiftFlutterPlugin.swift
similarity index 100%
rename from ios/Classes/SwiftFlutterPlugin.swift
rename to flutter_inappwebview_ios/ios/Classes/SwiftFlutterPlugin.swift
diff --git a/ios/Classes/Types/ActivityButton.swift b/flutter_inappwebview_ios/ios/Classes/Types/ActivityButton.swift
similarity index 100%
rename from ios/Classes/Types/ActivityButton.swift
rename to flutter_inappwebview_ios/ios/Classes/Types/ActivityButton.swift
diff --git a/ios/Classes/Types/BaseCallbackResult.swift b/flutter_inappwebview_ios/ios/Classes/Types/BaseCallbackResult.swift
similarity index 100%
rename from ios/Classes/Types/BaseCallbackResult.swift
rename to flutter_inappwebview_ios/ios/Classes/Types/BaseCallbackResult.swift
diff --git a/ios/Classes/Types/CGRect.swift b/flutter_inappwebview_ios/ios/Classes/Types/CGRect.swift
similarity index 100%
rename from ios/Classes/Types/CGRect.swift
rename to flutter_inappwebview_ios/ios/Classes/Types/CGRect.swift
diff --git a/ios/Classes/Types/CGSize.swift b/flutter_inappwebview_ios/ios/Classes/Types/CGSize.swift
similarity index 100%
rename from ios/Classes/Types/CGSize.swift
rename to flutter_inappwebview_ios/ios/Classes/Types/CGSize.swift
diff --git a/ios/Classes/Types/CallbackResult.swift b/flutter_inappwebview_ios/ios/Classes/Types/CallbackResult.swift
similarity index 100%
rename from ios/Classes/Types/CallbackResult.swift
rename to flutter_inappwebview_ios/ios/Classes/Types/CallbackResult.swift
diff --git a/ios/Classes/Types/ChannelDelegate.swift b/flutter_inappwebview_ios/ios/Classes/Types/ChannelDelegate.swift
similarity index 100%
rename from ios/Classes/Types/ChannelDelegate.swift
rename to flutter_inappwebview_ios/ios/Classes/Types/ChannelDelegate.swift
diff --git a/ios/Classes/Types/ClientCertChallenge.swift b/flutter_inappwebview_ios/ios/Classes/Types/ClientCertChallenge.swift
similarity index 100%
rename from ios/Classes/Types/ClientCertChallenge.swift
rename to flutter_inappwebview_ios/ios/Classes/Types/ClientCertChallenge.swift
diff --git a/ios/Classes/Types/ClientCertResponse.swift b/flutter_inappwebview_ios/ios/Classes/Types/ClientCertResponse.swift
similarity index 100%
rename from ios/Classes/Types/ClientCertResponse.swift
rename to flutter_inappwebview_ios/ios/Classes/Types/ClientCertResponse.swift
diff --git a/ios/Classes/Types/CreateWindowAction.swift b/flutter_inappwebview_ios/ios/Classes/Types/CreateWindowAction.swift
similarity index 100%
rename from ios/Classes/Types/CreateWindowAction.swift
rename to flutter_inappwebview_ios/ios/Classes/Types/CreateWindowAction.swift
diff --git a/ios/Classes/Types/CustomSchemeResponse.swift b/flutter_inappwebview_ios/ios/Classes/Types/CustomSchemeResponse.swift
similarity index 100%
rename from ios/Classes/Types/CustomSchemeResponse.swift
rename to flutter_inappwebview_ios/ios/Classes/Types/CustomSchemeResponse.swift
diff --git a/ios/Classes/Types/Disposable.swift b/flutter_inappwebview_ios/ios/Classes/Types/Disposable.swift
similarity index 100%
rename from ios/Classes/Types/Disposable.swift
rename to flutter_inappwebview_ios/ios/Classes/Types/Disposable.swift
diff --git a/ios/Classes/Types/DownloadStartRequest.swift b/flutter_inappwebview_ios/ios/Classes/Types/DownloadStartRequest.swift
similarity index 100%
rename from ios/Classes/Types/DownloadStartRequest.swift
rename to flutter_inappwebview_ios/ios/Classes/Types/DownloadStartRequest.swift
diff --git a/ios/Classes/Types/FlutterMethodCallDelegate.swift b/flutter_inappwebview_ios/ios/Classes/Types/FlutterMethodCallDelegate.swift
similarity index 100%
rename from ios/Classes/Types/FlutterMethodCallDelegate.swift
rename to flutter_inappwebview_ios/ios/Classes/Types/FlutterMethodCallDelegate.swift
diff --git a/ios/Classes/Types/FlutterMethodChannel.swift b/flutter_inappwebview_ios/ios/Classes/Types/FlutterMethodChannel.swift
similarity index 100%
rename from ios/Classes/Types/FlutterMethodChannel.swift
rename to flutter_inappwebview_ios/ios/Classes/Types/FlutterMethodChannel.swift
diff --git a/ios/Classes/Types/HitTestResult.swift b/flutter_inappwebview_ios/ios/Classes/Types/HitTestResult.swift
similarity index 100%
rename from ios/Classes/Types/HitTestResult.swift
rename to flutter_inappwebview_ios/ios/Classes/Types/HitTestResult.swift
diff --git a/ios/Classes/Types/HttpAuthResponse.swift b/flutter_inappwebview_ios/ios/Classes/Types/HttpAuthResponse.swift
similarity index 100%
rename from ios/Classes/Types/HttpAuthResponse.swift
rename to flutter_inappwebview_ios/ios/Classes/Types/HttpAuthResponse.swift
diff --git a/ios/Classes/Types/HttpAuthenticationChallenge.swift b/flutter_inappwebview_ios/ios/Classes/Types/HttpAuthenticationChallenge.swift
similarity index 100%
rename from ios/Classes/Types/HttpAuthenticationChallenge.swift
rename to flutter_inappwebview_ios/ios/Classes/Types/HttpAuthenticationChallenge.swift
diff --git a/ios/Classes/Types/InAppBrowserMenuItem.swift b/flutter_inappwebview_ios/ios/Classes/Types/InAppBrowserMenuItem.swift
similarity index 100%
rename from ios/Classes/Types/InAppBrowserMenuItem.swift
rename to flutter_inappwebview_ios/ios/Classes/Types/InAppBrowserMenuItem.swift
diff --git a/ios/Classes/Types/JsAlertResponse.swift b/flutter_inappwebview_ios/ios/Classes/Types/JsAlertResponse.swift
similarity index 100%
rename from ios/Classes/Types/JsAlertResponse.swift
rename to flutter_inappwebview_ios/ios/Classes/Types/JsAlertResponse.swift
diff --git a/ios/Classes/Types/JsConfirmResponse.swift b/flutter_inappwebview_ios/ios/Classes/Types/JsConfirmResponse.swift
similarity index 100%
rename from ios/Classes/Types/JsConfirmResponse.swift
rename to flutter_inappwebview_ios/ios/Classes/Types/JsConfirmResponse.swift
diff --git a/ios/Classes/Types/JsPromptResponse.swift b/flutter_inappwebview_ios/ios/Classes/Types/JsPromptResponse.swift
similarity index 100%
rename from ios/Classes/Types/JsPromptResponse.swift
rename to flutter_inappwebview_ios/ios/Classes/Types/JsPromptResponse.swift
diff --git a/ios/Classes/Types/MethodChannelResult.swift b/flutter_inappwebview_ios/ios/Classes/Types/MethodChannelResult.swift
similarity index 100%
rename from ios/Classes/Types/MethodChannelResult.swift
rename to flutter_inappwebview_ios/ios/Classes/Types/MethodChannelResult.swift
diff --git a/ios/Classes/Types/NSAttributedString.swift b/flutter_inappwebview_ios/ios/Classes/Types/NSAttributedString.swift
similarity index 100%
rename from ios/Classes/Types/NSAttributedString.swift
rename to flutter_inappwebview_ios/ios/Classes/Types/NSAttributedString.swift
diff --git a/ios/Classes/Types/PermissionRequest.swift b/flutter_inappwebview_ios/ios/Classes/Types/PermissionRequest.swift
similarity index 100%
rename from ios/Classes/Types/PermissionRequest.swift
rename to flutter_inappwebview_ios/ios/Classes/Types/PermissionRequest.swift
diff --git a/ios/Classes/Types/PermissionResponse.swift b/flutter_inappwebview_ios/ios/Classes/Types/PermissionResponse.swift
similarity index 100%
rename from ios/Classes/Types/PermissionResponse.swift
rename to flutter_inappwebview_ios/ios/Classes/Types/PermissionResponse.swift
diff --git a/ios/Classes/Types/PluginScript.swift b/flutter_inappwebview_ios/ios/Classes/Types/PluginScript.swift
similarity index 100%
rename from ios/Classes/Types/PluginScript.swift
rename to flutter_inappwebview_ios/ios/Classes/Types/PluginScript.swift
diff --git a/ios/Classes/Types/SecCertificate.swift b/flutter_inappwebview_ios/ios/Classes/Types/SecCertificate.swift
similarity index 100%
rename from ios/Classes/Types/SecCertificate.swift
rename to flutter_inappwebview_ios/ios/Classes/Types/SecCertificate.swift
diff --git a/ios/Classes/Types/ServerTrustAuthResponse.swift b/flutter_inappwebview_ios/ios/Classes/Types/ServerTrustAuthResponse.swift
similarity index 100%
rename from ios/Classes/Types/ServerTrustAuthResponse.swift
rename to flutter_inappwebview_ios/ios/Classes/Types/ServerTrustAuthResponse.swift
diff --git a/ios/Classes/Types/ServerTrustChallenge.swift b/flutter_inappwebview_ios/ios/Classes/Types/ServerTrustChallenge.swift
similarity index 100%
rename from ios/Classes/Types/ServerTrustChallenge.swift
rename to flutter_inappwebview_ios/ios/Classes/Types/ServerTrustChallenge.swift
diff --git a/ios/Classes/Types/Size2D.swift b/flutter_inappwebview_ios/ios/Classes/Types/Size2D.swift
similarity index 100%
rename from ios/Classes/Types/Size2D.swift
rename to flutter_inappwebview_ios/ios/Classes/Types/Size2D.swift
diff --git a/ios/Classes/Types/SslCertificate.swift b/flutter_inappwebview_ios/ios/Classes/Types/SslCertificate.swift
similarity index 100%
rename from ios/Classes/Types/SslCertificate.swift
rename to flutter_inappwebview_ios/ios/Classes/Types/SslCertificate.swift
diff --git a/ios/Classes/Types/SslError.swift b/flutter_inappwebview_ios/ios/Classes/Types/SslError.swift
similarity index 100%
rename from ios/Classes/Types/SslError.swift
rename to flutter_inappwebview_ios/ios/Classes/Types/SslError.swift
diff --git a/ios/Classes/Types/StringOrInt.swift b/flutter_inappwebview_ios/ios/Classes/Types/StringOrInt.swift
similarity index 100%
rename from ios/Classes/Types/StringOrInt.swift
rename to flutter_inappwebview_ios/ios/Classes/Types/StringOrInt.swift
diff --git a/ios/Classes/Types/UIColor.swift b/flutter_inappwebview_ios/ios/Classes/Types/UIColor.swift
similarity index 100%
rename from ios/Classes/Types/UIColor.swift
rename to flutter_inappwebview_ios/ios/Classes/Types/UIColor.swift
diff --git a/ios/Classes/Types/UIEdgeInsets.swift b/flutter_inappwebview_ios/ios/Classes/Types/UIEdgeInsets.swift
similarity index 100%
rename from ios/Classes/Types/UIEdgeInsets.swift
rename to flutter_inappwebview_ios/ios/Classes/Types/UIEdgeInsets.swift
diff --git a/ios/Classes/Types/UIEventAttribution.swift b/flutter_inappwebview_ios/ios/Classes/Types/UIEventAttribution.swift
similarity index 100%
rename from ios/Classes/Types/UIEventAttribution.swift
rename to flutter_inappwebview_ios/ios/Classes/Types/UIEventAttribution.swift
diff --git a/ios/Classes/Types/UIFindSession.swift b/flutter_inappwebview_ios/ios/Classes/Types/UIFindSession.swift
similarity index 100%
rename from ios/Classes/Types/UIFindSession.swift
rename to flutter_inappwebview_ios/ios/Classes/Types/UIFindSession.swift
diff --git a/ios/Classes/Types/UIImage.swift b/flutter_inappwebview_ios/ios/Classes/Types/UIImage.swift
similarity index 100%
rename from ios/Classes/Types/UIImage.swift
rename to flutter_inappwebview_ios/ios/Classes/Types/UIImage.swift
diff --git a/ios/Classes/Types/URLAuthenticationChallenge.swift b/flutter_inappwebview_ios/ios/Classes/Types/URLAuthenticationChallenge.swift
similarity index 100%
rename from ios/Classes/Types/URLAuthenticationChallenge.swift
rename to flutter_inappwebview_ios/ios/Classes/Types/URLAuthenticationChallenge.swift
diff --git a/ios/Classes/Types/URLCredential.swift b/flutter_inappwebview_ios/ios/Classes/Types/URLCredential.swift
similarity index 100%
rename from ios/Classes/Types/URLCredential.swift
rename to flutter_inappwebview_ios/ios/Classes/Types/URLCredential.swift
diff --git a/ios/Classes/Types/URLProtectionSpace.swift b/flutter_inappwebview_ios/ios/Classes/Types/URLProtectionSpace.swift
similarity index 100%
rename from ios/Classes/Types/URLProtectionSpace.swift
rename to flutter_inappwebview_ios/ios/Classes/Types/URLProtectionSpace.swift
diff --git a/ios/Classes/Types/URLRequest.swift b/flutter_inappwebview_ios/ios/Classes/Types/URLRequest.swift
similarity index 100%
rename from ios/Classes/Types/URLRequest.swift
rename to flutter_inappwebview_ios/ios/Classes/Types/URLRequest.swift
diff --git a/ios/Classes/Types/URLResponse.swift b/flutter_inappwebview_ios/ios/Classes/Types/URLResponse.swift
similarity index 100%
rename from ios/Classes/Types/URLResponse.swift
rename to flutter_inappwebview_ios/ios/Classes/Types/URLResponse.swift
diff --git a/ios/Classes/Types/UserScript.swift b/flutter_inappwebview_ios/ios/Classes/Types/UserScript.swift
similarity index 100%
rename from ios/Classes/Types/UserScript.swift
rename to flutter_inappwebview_ios/ios/Classes/Types/UserScript.swift
diff --git a/ios/Classes/Types/WKContentWorld.swift b/flutter_inappwebview_ios/ios/Classes/Types/WKContentWorld.swift
similarity index 100%
rename from ios/Classes/Types/WKContentWorld.swift
rename to flutter_inappwebview_ios/ios/Classes/Types/WKContentWorld.swift
diff --git a/ios/Classes/Types/WKFrameInfo.swift b/flutter_inappwebview_ios/ios/Classes/Types/WKFrameInfo.swift
similarity index 100%
rename from ios/Classes/Types/WKFrameInfo.swift
rename to flutter_inappwebview_ios/ios/Classes/Types/WKFrameInfo.swift
diff --git a/ios/Classes/Types/WKNavigationAction.swift b/flutter_inappwebview_ios/ios/Classes/Types/WKNavigationAction.swift
similarity index 100%
rename from ios/Classes/Types/WKNavigationAction.swift
rename to flutter_inappwebview_ios/ios/Classes/Types/WKNavigationAction.swift
diff --git a/ios/Classes/Types/WKNavigationResponse.swift b/flutter_inappwebview_ios/ios/Classes/Types/WKNavigationResponse.swift
similarity index 100%
rename from ios/Classes/Types/WKNavigationResponse.swift
rename to flutter_inappwebview_ios/ios/Classes/Types/WKNavigationResponse.swift
diff --git a/ios/Classes/Types/WKSecurityOrigin.swift b/flutter_inappwebview_ios/ios/Classes/Types/WKSecurityOrigin.swift
similarity index 100%
rename from ios/Classes/Types/WKSecurityOrigin.swift
rename to flutter_inappwebview_ios/ios/Classes/Types/WKSecurityOrigin.swift
diff --git a/ios/Classes/Types/WKUserContentController.swift b/flutter_inappwebview_ios/ios/Classes/Types/WKUserContentController.swift
similarity index 100%
rename from ios/Classes/Types/WKUserContentController.swift
rename to flutter_inappwebview_ios/ios/Classes/Types/WKUserContentController.swift
diff --git a/ios/Classes/Types/WKWindowFeatures.swift b/flutter_inappwebview_ios/ios/Classes/Types/WKWindowFeatures.swift
similarity index 100%
rename from ios/Classes/Types/WKWindowFeatures.swift
rename to flutter_inappwebview_ios/ios/Classes/Types/WKWindowFeatures.swift
diff --git a/ios/Classes/Types/WebMessage.swift b/flutter_inappwebview_ios/ios/Classes/Types/WebMessage.swift
similarity index 100%
rename from ios/Classes/Types/WebMessage.swift
rename to flutter_inappwebview_ios/ios/Classes/Types/WebMessage.swift
diff --git a/ios/Classes/Types/WebMessagePort.swift b/flutter_inappwebview_ios/ios/Classes/Types/WebMessagePort.swift
similarity index 100%
rename from ios/Classes/Types/WebMessagePort.swift
rename to flutter_inappwebview_ios/ios/Classes/Types/WebMessagePort.swift
diff --git a/ios/Classes/Types/WebResourceError.swift b/flutter_inappwebview_ios/ios/Classes/Types/WebResourceError.swift
similarity index 100%
rename from ios/Classes/Types/WebResourceError.swift
rename to flutter_inappwebview_ios/ios/Classes/Types/WebResourceError.swift
diff --git a/ios/Classes/Types/WebResourceRequest.swift b/flutter_inappwebview_ios/ios/Classes/Types/WebResourceRequest.swift
similarity index 100%
rename from ios/Classes/Types/WebResourceRequest.swift
rename to flutter_inappwebview_ios/ios/Classes/Types/WebResourceRequest.swift
diff --git a/ios/Classes/Types/WebResourceResponse.swift b/flutter_inappwebview_ios/ios/Classes/Types/WebResourceResponse.swift
similarity index 100%
rename from ios/Classes/Types/WebResourceResponse.swift
rename to flutter_inappwebview_ios/ios/Classes/Types/WebResourceResponse.swift
diff --git a/ios/Classes/Types/WebViewTransport.swift b/flutter_inappwebview_ios/ios/Classes/Types/WebViewTransport.swift
similarity index 100%
rename from ios/Classes/Types/WebViewTransport.swift
rename to flutter_inappwebview_ios/ios/Classes/Types/WebViewTransport.swift
diff --git a/ios/Classes/UIApplication/VisibleViewController.swift b/flutter_inappwebview_ios/ios/Classes/UIApplication/VisibleViewController.swift
similarity index 100%
rename from ios/Classes/UIApplication/VisibleViewController.swift
rename to flutter_inappwebview_ios/ios/Classes/UIApplication/VisibleViewController.swift
diff --git a/ios/Classes/Util.swift b/flutter_inappwebview_ios/ios/Classes/Util.swift
similarity index 100%
rename from ios/Classes/Util.swift
rename to flutter_inappwebview_ios/ios/Classes/Util.swift
diff --git a/ios/Classes/WKProcessPoolManager.swift b/flutter_inappwebview_ios/ios/Classes/WKProcessPoolManager.swift
similarity index 100%
rename from ios/Classes/WKProcessPoolManager.swift
rename to flutter_inappwebview_ios/ios/Classes/WKProcessPoolManager.swift
diff --git a/ios/Classes/WebAuthenticationSession/WebAuthenticationSession.swift b/flutter_inappwebview_ios/ios/Classes/WebAuthenticationSession/WebAuthenticationSession.swift
similarity index 100%
rename from ios/Classes/WebAuthenticationSession/WebAuthenticationSession.swift
rename to flutter_inappwebview_ios/ios/Classes/WebAuthenticationSession/WebAuthenticationSession.swift
diff --git a/ios/Classes/WebAuthenticationSession/WebAuthenticationSessionChannelDelegate.swift b/flutter_inappwebview_ios/ios/Classes/WebAuthenticationSession/WebAuthenticationSessionChannelDelegate.swift
similarity index 100%
rename from ios/Classes/WebAuthenticationSession/WebAuthenticationSessionChannelDelegate.swift
rename to flutter_inappwebview_ios/ios/Classes/WebAuthenticationSession/WebAuthenticationSessionChannelDelegate.swift
diff --git a/ios/Classes/WebAuthenticationSession/WebAuthenticationSessionManager.swift b/flutter_inappwebview_ios/ios/Classes/WebAuthenticationSession/WebAuthenticationSessionManager.swift
similarity index 100%
rename from ios/Classes/WebAuthenticationSession/WebAuthenticationSessionManager.swift
rename to flutter_inappwebview_ios/ios/Classes/WebAuthenticationSession/WebAuthenticationSessionManager.swift
diff --git a/ios/Classes/WebAuthenticationSession/WebAuthenticationSessionSettings.swift b/flutter_inappwebview_ios/ios/Classes/WebAuthenticationSession/WebAuthenticationSessionSettings.swift
similarity index 100%
rename from ios/Classes/WebAuthenticationSession/WebAuthenticationSessionSettings.swift
rename to flutter_inappwebview_ios/ios/Classes/WebAuthenticationSession/WebAuthenticationSessionSettings.swift
diff --git a/ios/Storyboards/WebView.storyboard b/flutter_inappwebview_ios/ios/Storyboards/WebView.storyboard
similarity index 95%
rename from ios/Storyboards/WebView.storyboard
rename to flutter_inappwebview_ios/ios/Storyboards/WebView.storyboard
index 9c71b050..51a8d4f4 100755
--- a/ios/Storyboards/WebView.storyboard
+++ b/flutter_inappwebview_ios/ios/Storyboards/WebView.storyboard
@@ -11,7 +11,7 @@
-
+
@@ -24,7 +24,7 @@
-
+
diff --git a/ios/flutter_inappwebview.podspec b/flutter_inappwebview_ios/ios/flutter_inappwebview_ios.podspec
similarity index 96%
rename from ios/flutter_inappwebview.podspec
rename to flutter_inappwebview_ios/ios/flutter_inappwebview_ios.podspec
index 03e2e86c..a08fa7fb 100755
--- a/ios/flutter_inappwebview.podspec
+++ b/flutter_inappwebview_ios/ios/flutter_inappwebview_ios.podspec
@@ -3,7 +3,7 @@
# Run `pod lib lint flutterplugintest.podspec' to validate before publishing.
#
Pod::Spec.new do |s|
- s.name = 'flutter_inappwebview'
+ s.name = 'flutter_inappwebview_ios'
s.version = '0.0.1'
s.summary = 'A new Flutter plugin.'
s.description = <<-DESC
diff --git a/flutter_inappwebview_ios/lib/flutter_inappwebview_ios.dart b/flutter_inappwebview_ios/lib/flutter_inappwebview_ios.dart
new file mode 100644
index 00000000..9390a49d
--- /dev/null
+++ b/flutter_inappwebview_ios/lib/flutter_inappwebview_ios.dart
@@ -0,0 +1,3 @@
+library flutter_inappwebview_ios;
+
+export 'src/main.dart';
diff --git a/flutter_inappwebview_ios/lib/src/chrome_safari_browser/chrome_safari_browser.dart b/flutter_inappwebview_ios/lib/src/chrome_safari_browser/chrome_safari_browser.dart
new file mode 100755
index 00000000..931e1b8e
--- /dev/null
+++ b/flutter_inappwebview_ios/lib/src/chrome_safari_browser/chrome_safari_browser.dart
@@ -0,0 +1,408 @@
+import 'dart:async';
+import 'dart:collection';
+import 'dart:typed_data';
+
+import 'package:flutter/foundation.dart';
+import 'package:flutter/services.dart';
+import 'package:flutter_inappwebview_platform_interface/flutter_inappwebview_platform_interface.dart';
+
+/// Object specifying creation parameters for creating a [IOSChromeSafariBrowser].
+///
+/// When adding additional fields make sure they can be null or have a default
+/// value to avoid breaking changes. See [PlatformChromeSafariBrowserCreationParams] for
+/// more information.
+@immutable
+class IOSChromeSafariBrowserCreationParams
+ extends PlatformChromeSafariBrowserCreationParams {
+ /// Creates a new [IOSChromeSafariBrowserCreationParams] instance.
+ const IOSChromeSafariBrowserCreationParams();
+
+ /// Creates a [IOSChromeSafariBrowserCreationParams] instance based on [PlatformChromeSafariBrowserCreationParams].
+ factory IOSChromeSafariBrowserCreationParams.fromPlatformChromeSafariBrowserCreationParams(
+ // Recommended placeholder to prevent being broken by platform interface.
+ // ignore: avoid_unused_constructor_parameters
+ PlatformChromeSafariBrowserCreationParams params) {
+ return IOSChromeSafariBrowserCreationParams();
+ }
+}
+
+///{@macro flutter_inappwebview_platform_interface.PlatformChromeSafariBrowser}
+class IOSChromeSafariBrowser extends PlatformChromeSafariBrowser
+ with ChannelController {
+ @override
+ final String id = IdGenerator.generate();
+
+ /// Constructs a [IOSChromeSafariBrowser].
+ IOSChromeSafariBrowser(PlatformChromeSafariBrowserCreationParams params)
+ : super.implementation(
+ params is IOSChromeSafariBrowserCreationParams
+ ? params
+ : IOSChromeSafariBrowserCreationParams
+ .fromPlatformChromeSafariBrowserCreationParams(params),
+ );
+
+ static final IOSChromeSafariBrowser _staticValue =
+ IOSChromeSafariBrowser(IOSChromeSafariBrowserCreationParams());
+
+ /// Provide static access.
+ factory IOSChromeSafariBrowser.static() {
+ return _staticValue;
+ }
+
+ ChromeSafariBrowserActionButton? _actionButton;
+ Map _menuItems = new HashMap();
+ ChromeSafariBrowserSecondaryToolbar? _secondaryToolbar;
+ bool _isOpened = false;
+ static const MethodChannel _staticChannel =
+ const MethodChannel('com.pichillilorenzo/flutter_chromesafaribrowser');
+
+ _init() {
+ channel =
+ MethodChannel('com.pichillilorenzo/flutter_chromesafaribrowser_$id');
+ handler = _handleMethod;
+ initMethodCallHandler();
+ }
+
+ _debugLog(String method, dynamic args) {
+ debugLog(
+ className: this.runtimeType.toString(),
+ id: id,
+ debugLoggingSettings: PlatformChromeSafariBrowser.debugLoggingSettings,
+ method: method,
+ args: args);
+ }
+
+ Future _handleMethod(MethodCall call) async {
+ _debugLog(call.method, call.arguments);
+
+ switch (call.method) {
+ case "onServiceConnected":
+ eventHandler?.onServiceConnected();
+ break;
+ case "onOpened":
+ eventHandler?.onOpened();
+ break;
+ case "onCompletedInitialLoad":
+ final bool? didLoadSuccessfully = call.arguments["didLoadSuccessfully"];
+ eventHandler?.onCompletedInitialLoad(didLoadSuccessfully);
+ break;
+ case "onInitialLoadDidRedirect":
+ final String? url = call.arguments["url"];
+ final WebUri? uri = url != null ? WebUri(url) : null;
+ eventHandler?.onInitialLoadDidRedirect(uri);
+ break;
+ case "onNavigationEvent":
+ final navigationEvent = CustomTabsNavigationEventType.fromNativeValue(
+ call.arguments["navigationEvent"]);
+ eventHandler?.onNavigationEvent(navigationEvent);
+ break;
+ case "onRelationshipValidationResult":
+ final relation =
+ CustomTabsRelationType.fromNativeValue(call.arguments["relation"]);
+ final requestedOrigin = call.arguments["requestedOrigin"] != null
+ ? WebUri(call.arguments["requestedOrigin"])
+ : null;
+ final bool result = call.arguments["result"];
+ eventHandler?.onRelationshipValidationResult(
+ relation, requestedOrigin, result);
+ break;
+ case "onWillOpenInBrowser":
+ eventHandler?.onWillOpenInBrowser();
+ break;
+ case "onClosed":
+ _isOpened = false;
+ final onClosed = eventHandler?.onClosed;
+ dispose();
+ onClosed?.call();
+ break;
+ case "onItemActionPerform":
+ String url = call.arguments["url"];
+ String title = call.arguments["title"];
+ int id = call.arguments["id"].toInt();
+ if (this._actionButton?.id == id) {
+ if (this._actionButton?.action != null) {
+ this._actionButton?.action!(url, title);
+ }
+ if (this._actionButton?.onClick != null) {
+ this._actionButton?.onClick!(WebUri(url), title);
+ }
+ } else if (this._menuItems[id] != null) {
+ if (this._menuItems[id]?.action != null) {
+ this._menuItems[id]?.action!(url, title);
+ }
+ if (this._menuItems[id]?.onClick != null) {
+ this._menuItems[id]?.onClick!(WebUri(url), title);
+ }
+ }
+ break;
+ case "onSecondaryItemActionPerform":
+ final clickableIDs = this._secondaryToolbar?.clickableIDs;
+ if (clickableIDs != null) {
+ WebUri? url = call.arguments["url"] != null
+ ? WebUri(call.arguments["url"])
+ : null;
+ String name = call.arguments["name"];
+ for (final clickable in clickableIDs) {
+ var clickableFullname = clickable.id.name;
+ if (clickable.id.defType != null &&
+ !clickableFullname.contains("/")) {
+ clickableFullname = "${clickable.id.defType}/$clickableFullname";
+ }
+ if (clickable.id.defPackage != null &&
+ !clickableFullname.contains(":")) {
+ clickableFullname =
+ "${clickable.id.defPackage}:$clickableFullname";
+ }
+ if (clickableFullname == name) {
+ if (clickable.onClick != null) {
+ clickable.onClick!(url);
+ }
+ break;
+ }
+ }
+ }
+ break;
+ case "onMessageChannelReady":
+ eventHandler?.onMessageChannelReady();
+ break;
+ case "onPostMessage":
+ final String message = call.arguments["message"];
+ eventHandler?.onPostMessage(message);
+ break;
+ case "onVerticalScrollEvent":
+ final bool isDirectionUp = call.arguments["isDirectionUp"];
+ eventHandler?.onVerticalScrollEvent(isDirectionUp);
+ break;
+ case "onGreatestScrollPercentageIncreased":
+ final int scrollPercentage = call.arguments["scrollPercentage"];
+ eventHandler?.onGreatestScrollPercentageIncreased(scrollPercentage);
+ break;
+ case "onSessionEnded":
+ final bool didUserInteract = call.arguments["didUserInteract"];
+ eventHandler?.onSessionEnded(didUserInteract);
+ break;
+ default:
+ throw UnimplementedError("Unimplemented ${call.method} method");
+ }
+ }
+
+ @override
+ Future open(
+ {WebUri? url,
+ Map? headers,
+ List? otherLikelyURLs,
+ WebUri? referrer,
+ @Deprecated('Use settings instead')
+ // ignore: deprecated_member_use_from_same_package
+ ChromeSafariBrowserClassOptions? options,
+ ChromeSafariBrowserSettings? settings}) async {
+ assert(!_isOpened, 'The browser is already opened.');
+ _isOpened = true;
+
+ if (Util.isIOS) {
+ assert(url != null, 'The specified URL must not be null on iOS.');
+ assert(['http', 'https'].contains(url!.scheme),
+ 'The specified URL has an unsupported scheme. Only HTTP and HTTPS URLs are supported on iOS.');
+ }
+ if (url != null) {
+ assert(url.toString().isNotEmpty, 'The specified URL must not be empty.');
+ }
+
+ _init();
+
+ List