Commit 8a356bde authored by Lorenzo Pichilli's avatar Lorenzo Pichilli

renamed plugin to flutter_inappwebview

parent 6677917b
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
<project version="4"> <project version="4">
<component name="ProjectModuleManager"> <component name="ProjectModuleManager">
<modules> <modules>
<module fileurl="file://$PROJECT_DIR$/flutter_inappbrowser.iml" filepath="$PROJECT_DIR$/flutter_inappbrowser.iml" /> <module fileurl="file://$PROJECT_DIR$/flutter_inappwebview.iml" filepath="$PROJECT_DIR$/flutter_inappwebview.iml" />
<module fileurl="file://$PROJECT_DIR$/flutter_inappbrowser_android.iml" filepath="$PROJECT_DIR$/flutter_inappbrowser_android.iml" /> <module fileurl="file://$PROJECT_DIR$/flutter_inappwebview_android.iml" filepath="$PROJECT_DIR$/flutter_inappwebview_android.iml" />
</modules> </modules>
</component> </component>
</project> </project>
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
# Flutter InAppBrowser Plugin [![Share on Twitter](https://img.shields.io/twitter/url/http/shields.io.svg?style=social)](https://twitter.com/intent/tweet?text=Flutter%20InAppBrowser%20plugin!&url=https://github.com/pichillilorenzo/flutter_inappbrowser&hashtags=flutter,flutterio,dart,dartlang,webview) [![Share on Facebook](https://img.shields.io/badge/share-facebook-blue.svg?longCache=true&style=flat&colorB=%234267b2)](https://www.facebook.com/sharer/sharer.php?u=https%3A//github.com/pichillilorenzo/flutter_inappbrowser) # Flutter InAppBrowser Plugin [![Share on Twitter](https://img.shields.io/twitter/url/http/shields.io.svg?style=social)](https://twitter.com/intent/tweet?text=Flutter%20InAppBrowser%20plugin!&url=https://github.com/pichillilorenzo/flutter_inappwebview&hashtags=flutter,flutterio,dart,dartlang,webview) [![Share on Facebook](https://img.shields.io/badge/share-facebook-blue.svg?longCache=true&style=flat&colorB=%234267b2)](https://www.facebook.com/sharer/sharer.php?u=https%3A//github.com/pichillilorenzo/flutter_inappwebview)
[![Pub](https://img.shields.io/pub/v/flutter_inappbrowser.svg)](https://pub.dartlang.org/packages/flutter_inappbrowser) [![Pub](https://img.shields.io/pub/v/flutter_inappwebview.svg)](https://pub.dartlang.org/packages/flutter_inappwebview)
[![Awesome Flutter](https://img.shields.io/badge/Awesome-Flutter-blue.svg?longCache=true&style=flat-square)](https://stackoverflow.com/questions/tagged/flutter?sort=votes) [![Awesome Flutter](https://img.shields.io/badge/Awesome-Flutter-blue.svg?longCache=true&style=flat-square)](https://stackoverflow.com/questions/tagged/flutter?sort=votes)
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](/LICENSE) [![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](/LICENSE)
...@@ -26,11 +26,11 @@ Because of [Flutter AndroidX compatibility](https://flutter.dev/docs/development ...@@ -26,11 +26,11 @@ Because of [Flutter AndroidX compatibility](https://flutter.dev/docs/development
If you are starting a new fresh app, you need to create the Flutter App with `flutter create -i swift` (see [flutter/flutter#13422 (comment)](https://github.com/flutter/flutter/issues/13422#issuecomment-392133780)), otherwise, you will get this message: If you are starting a new fresh app, you need to create the Flutter App with `flutter create -i swift` (see [flutter/flutter#13422 (comment)](https://github.com/flutter/flutter/issues/13422#issuecomment-392133780)), otherwise, you will get this message:
``` ```
=== BUILD TARGET flutter_inappbrowser OF PROJECT Pods WITH CONFIGURATION Debug === === BUILD TARGET flutter_inappwebview OF PROJECT Pods WITH CONFIGURATION Debug ===
The “Swift Language Version” (SWIFT_VERSION) build setting must be set to a supported value for targets which use Swift. Supported values are: 3.0, 4.0, 4.2, 5.0. This setting can be set in the build settings editor. The “Swift Language Version” (SWIFT_VERSION) build setting must be set to a supported value for targets which use Swift. Supported values are: 3.0, 4.0, 4.2, 5.0. This setting can be set in the build settings editor.
``` ```
If you still have this problem, try to edit iOS `Podfile` like this (see [#15](https://github.com/pichillilorenzo/flutter_inappbrowser/issues/15)): If you still have this problem, try to edit iOS `Podfile` like this (see [#15](https://github.com/pichillilorenzo/flutter_inappwebview/issues/15)):
``` ```
target 'Runner' do target 'Runner' do
use_frameworks! # required by simple_permission use_frameworks! # required by simple_permission
...@@ -58,7 +58,7 @@ For help on editing plugin code, view the [documentation](https://flutter.io/dev ...@@ -58,7 +58,7 @@ For help on editing plugin code, view the [documentation](https://flutter.io/dev
## Installation ## Installation
First, add `flutter_inappbrowser` as a [dependency in your pubspec.yaml file](https://flutter.io/using-packages/). First, add `flutter_inappwebview` as a [dependency in your pubspec.yaml file](https://flutter.io/using-packages/).
## Usage ## Usage
...@@ -72,7 +72,7 @@ Classes: ...@@ -72,7 +72,7 @@ Classes:
## API Reference ## API Reference
See the online [API Reference](https://pub.dartlang.org/documentation/flutter_inappbrowser/latest/) to get the full documentation. See the online [API Reference](https://pub.dartlang.org/documentation/flutter_inappwebview/latest/) to get the full documentation.
### Load a file inside `assets` folder ### Load a file inside `assets` folder
...@@ -113,7 +113,7 @@ Example: ...@@ -113,7 +113,7 @@ Example:
```dart ```dart
import 'dart:async'; import 'dart:async';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter_inappbrowser/flutter_inappbrowser.dart'; import 'package:flutter_inappwebview/flutter_inappwebview.dart';
Future main() async { Future main() async {
runApp(new MyApp()); runApp(new MyApp());
...@@ -290,30 +290,30 @@ Screenshots: ...@@ -290,30 +290,30 @@ Screenshots:
The Android implementation uses [addJavascriptInterface](https://developer.android.com/reference/android/webkit/WebView#addJavascriptInterface(java.lang.Object,%20java.lang.String)). The Android implementation uses [addJavascriptInterface](https://developer.android.com/reference/android/webkit/WebView#addJavascriptInterface(java.lang.Object,%20java.lang.String)).
The iOS implementation uses [addScriptMessageHandler](https://developer.apple.com/documentation/webkit/wkusercontentcontroller/1537172-addscriptmessagehandler?language=objc) The iOS implementation uses [addScriptMessageHandler](https://developer.apple.com/documentation/webkit/wkusercontentcontroller/1537172-addscriptmessagehandler?language=objc)
The JavaScript function that can be used to call the handler is `window.flutter_inappbrowser.callHandler(handlerName <String>, ...args)`, where `args` are [rest parameters](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/rest_parameters). The JavaScript function that can be used to call the handler is `window.flutter_inappwebview.callHandler(handlerName <String>, ...args)`, where `args` are [rest parameters](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/rest_parameters).
The `args` will be stringified automatically using `JSON.stringify(args)` method and then they will be decoded on the Dart side. The `args` will be stringified automatically using `JSON.stringify(args)` method and then they will be decoded on the Dart side.
In order to call `window.flutter_inappbrowser.callHandler(handlerName <String>, ...args)` properly, you need to wait and listen the JavaScript event `flutterInAppBrowserPlatformReady`. In order to call `window.flutter_inappwebview.callHandler(handlerName <String>, ...args)` properly, you need to wait and listen the JavaScript event `flutterInAppWebViewPlatformReady`.
This event will be dispatched as soon as the platform (Android or iOS) is ready to handle the `callHandler` method. This event will be dispatched as soon as the platform (Android or iOS) is ready to handle the `callHandler` method.
```javascript ```javascript
window.addEventListener("flutterInAppBrowserPlatformReady", function(event) { window.addEventListener("flutterInAppWebViewPlatformReady", function(event) {
console.log("ready"); console.log("ready");
}); });
``` ```
`window.flutter_inappbrowser.callHandler` returns a JavaScript [Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise) `window.flutter_inappwebview.callHandler` returns a JavaScript [Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise)
that can be used to get the json result returned by [JavaScriptHandlerCallback]. that can be used to get the json result returned by [JavaScriptHandlerCallback].
In this case, simply return data that you want to send and it will be automatically json encoded using [jsonEncode] from the `dart:convert` library. In this case, simply return data that you want to send and it will be automatically json encoded using [jsonEncode] from the `dart:convert` library.
So, on the JavaScript side, to get data coming from the Dart side, you will use: So, on the JavaScript side, to get data coming from the Dart side, you will use:
```html ```html
<script> <script>
window.addEventListener("flutterInAppBrowserPlatformReady", function(event) { window.addEventListener("flutterInAppWebViewPlatformReady", function(event) {
window.flutter_inappbrowser.callHandler('handlerFoo').then(function(result) { window.flutter_inappwebview.callHandler('handlerFoo').then(function(result) {
console.log(result); console.log(result);
}); });
window.flutter_inappbrowser.callHandler('handlerFooWithArgs', 1, true, ['bar', 5], {foo: 'baz'}).then(function(result) { window.flutter_inappwebview.callHandler('handlerFooWithArgs', 1, true, ['bar', 5], {foo: 'baz'}).then(function(result) {
console.log(result); console.log(result);
}); });
}); });
...@@ -324,7 +324,7 @@ Instead, on the `onLoadStop` WebView event, you can use `callHandler` directly: ...@@ -324,7 +324,7 @@ Instead, on the `onLoadStop` WebView event, you can use `callHandler` directly:
```dart ```dart
// Inject JavaScript that will receive data back from Flutter // Inject JavaScript that will receive data back from Flutter
inAppWebViewController.evaluateJavascript(source: """ inAppWebViewController.evaluateJavascript(source: """
window.flutter_inappbrowser.callHandler('test', 'Text from Javascript').then(function(result) { window.flutter_inappwebview.callHandler('test', 'Text from Javascript').then(function(result) {
console.log(result); console.log(result);
}); });
"""); """);
...@@ -459,7 +459,7 @@ Create a Class that extends the `InAppBrowser` Class in order to override the ca ...@@ -459,7 +459,7 @@ Create a Class that extends the `InAppBrowser` Class in order to override the ca
Example: Example:
```dart ```dart
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter_inappbrowser/flutter_inappbrowser.dart'; import 'package:flutter_inappwebview/flutter_inappwebview.dart';
class MyInAppBrowser extends InAppBrowser { class MyInAppBrowser extends InAppBrowser {
@override @override
...@@ -626,7 +626,7 @@ You can initialize the `ChromeSafariBrowser` instance with an `InAppBrowser` fal ...@@ -626,7 +626,7 @@ You can initialize the `ChromeSafariBrowser` instance with an `InAppBrowser` fal
Create a Class that extends the `ChromeSafariBrowser` Class in order to override the callbacks to manage the browser events. Example: Create a Class that extends the `ChromeSafariBrowser` Class in order to override the callbacks to manage the browser events. Example:
```dart ```dart
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter_inappbrowser/flutter_inappbrowser.dart'; import 'package:flutter_inappwebview/flutter_inappwebview.dart';
class MyInAppBrowser extends InAppBrowser { class MyInAppBrowser extends InAppBrowser {
......
group 'com.pichillilorenzo.flutter_inappbrowser' group 'com.pichillilorenzo.flutter_inappwebview'
version '1.0-SNAPSHOT' version '1.0-SNAPSHOT'
buildscript { buildscript {
......
...@@ -8,10 +8,10 @@ ...@@ -8,10 +8,10 @@
public boolean *(android.webkit.WebView, java.lang.String); public boolean *(android.webkit.WebView, java.lang.String);
public void *(android.webkit.webView, jav.lang.String); public void *(android.webkit.webView, jav.lang.String);
} }
-keepclassmembers class com.pichillilorenzo.flutter_inappbrowser$JavaScriptBridgeInterface { -keepclassmembers class flutter_inappwebview$JavaScriptBridgeInterface {
<fields>; <fields>;
<methods>; <methods>;
public *; public *;
private *; private *;
} }
-keep class com.pichillilorenzo.flutter_inappbrowser.** { *; } -keep class flutter_inappwebview.** { *; }
\ No newline at end of file \ No newline at end of file
rootProject.name = 'flutter_inappbrowser' rootProject.name = 'flutter_inappwebview'
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" <manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.pichillilorenzo.flutter_inappbrowser"> package="com.pichillilorenzo.flutter_inappwebview">
<application> <application>
<activity android:theme="@style/AppTheme" android:name=".InAppBrowserActivity" android:configChanges="orientation|screenSize"></activity> <activity android:theme="@style/AppTheme" android:name="com.pichillilorenzo.flutter_inappwebview.InAppBrowserActivity" android:configChanges="orientation|screenSize"></activity>
<activity android:theme="@style/ThemeTransparent" android:name=".ChromeCustomTabs.ChromeCustomTabsActivity" android:configChanges="orientation|screenSize"></activity> <activity android:theme="@style/ThemeTransparent" android:name="com.pichillilorenzo.flutter_inappwebview.ChromeCustomTabs.ChromeCustomTabsActivity" android:configChanges="orientation|screenSize"></activity>
</application> </application>
</manifest> </manifest>
\ No newline at end of file
package com.pichillilorenzo.flutter_inappbrowser.ChromeCustomTabs; package com.pichillilorenzo.flutter_inappwebview.ChromeCustomTabs;
import android.app.Activity; import android.app.Activity;
import android.content.Intent; import android.content.Intent;
...@@ -7,8 +7,8 @@ import android.net.Uri; ...@@ -7,8 +7,8 @@ import android.net.Uri;
import android.os.Bundle; import android.os.Bundle;
import androidx.browser.customtabs.CustomTabsIntent; import androidx.browser.customtabs.CustomTabsIntent;
import com.pichillilorenzo.flutter_inappbrowser.InAppBrowserFlutterPlugin; import com.pichillilorenzo.flutter_inappwebview.InAppWebViewFlutterPlugin;
import com.pichillilorenzo.flutter_inappbrowser.R; import com.pichillilorenzo.flutter_inappwebview.R;
import java.util.HashMap; import java.util.HashMap;
import java.util.Map; import java.util.Map;
...@@ -36,7 +36,7 @@ public class ChromeCustomTabsActivity extends Activity { ...@@ -36,7 +36,7 @@ public class ChromeCustomTabsActivity extends Activity {
options = new ChromeCustomTabsOptions(); options = new ChromeCustomTabsOptions();
options.parse((HashMap<String, Object>) b.getSerializable("options")); options.parse((HashMap<String, Object>) b.getSerializable("options"));
InAppBrowserFlutterPlugin.inAppBrowser.chromeCustomTabsActivities.put(uuid, this); InAppWebViewFlutterPlugin.inAppBrowser.chromeCustomTabsActivities.put(uuid, this);
customTabActivityHelper = new CustomTabActivityHelper(); customTabActivityHelper = new CustomTabActivityHelper();
builder = new CustomTabsIntent.Builder(); builder = new CustomTabsIntent.Builder();
...@@ -49,8 +49,8 @@ public class ChromeCustomTabsActivity extends Activity { ...@@ -49,8 +49,8 @@ public class ChromeCustomTabsActivity extends Activity {
Map<String, Object> obj = new HashMap<>(); Map<String, Object> obj = new HashMap<>();
obj.put("uuid", uuid); obj.put("uuid", uuid);
InAppBrowserFlutterPlugin.inAppBrowser.channel.invokeMethod("onChromeSafariBrowserOpened", obj); InAppWebViewFlutterPlugin.inAppBrowser.channel.invokeMethod("onChromeSafariBrowserOpened", obj);
InAppBrowserFlutterPlugin.inAppBrowser.channel.invokeMethod("onChromeSafariBrowserLoaded", obj); InAppWebViewFlutterPlugin.inAppBrowser.channel.invokeMethod("onChromeSafariBrowserLoaded", obj);
} }
private void prepareCustomTabs() { private void prepareCustomTabs() {
...@@ -86,7 +86,7 @@ public class ChromeCustomTabsActivity extends Activity { ...@@ -86,7 +86,7 @@ public class ChromeCustomTabsActivity extends Activity {
finish(); finish();
Map<String, Object> obj = new HashMap<>(); Map<String, Object> obj = new HashMap<>();
obj.put("uuid", uuid); obj.put("uuid", uuid);
InAppBrowserFlutterPlugin.inAppBrowser.channel.invokeMethod("onChromeSafariBrowserClosed", obj); InAppWebViewFlutterPlugin.inAppBrowser.channel.invokeMethod("onChromeSafariBrowserClosed", obj);
} }
} }
......
package com.pichillilorenzo.flutter_inappbrowser.ChromeCustomTabs; package com.pichillilorenzo.flutter_inappwebview.ChromeCustomTabs;
import com.pichillilorenzo.flutter_inappbrowser.Options; import com.pichillilorenzo.flutter_inappwebview.Options;
public class ChromeCustomTabsOptions extends Options { public class ChromeCustomTabsOptions extends Options {
......
package com.pichillilorenzo.flutter_inappbrowser.ChromeCustomTabs; package com.pichillilorenzo.flutter_inappwebview.ChromeCustomTabs;
import android.app.Activity; import android.app.Activity;
import android.net.Uri; import android.net.Uri;
......
package com.pichillilorenzo.flutter_inappbrowser.ChromeCustomTabs; package com.pichillilorenzo.flutter_inappwebview.ChromeCustomTabs;
import android.content.Context; import android.content.Context;
import android.content.Intent; import android.content.Intent;
......
package com.pichillilorenzo.flutter_inappbrowser.ChromeCustomTabs; package com.pichillilorenzo.flutter_inappwebview.ChromeCustomTabs;
import android.app.Service; import android.app.Service;
import android.content.Intent; import android.content.Intent;
......
package com.pichillilorenzo.flutter_inappbrowser.ChromeCustomTabs; package com.pichillilorenzo.flutter_inappwebview.ChromeCustomTabs;
import android.content.ComponentName; import android.content.ComponentName;
import androidx.browser.customtabs.CustomTabsClient; import androidx.browser.customtabs.CustomTabsClient;
......
package com.pichillilorenzo.flutter_inappbrowser.ChromeCustomTabs; package com.pichillilorenzo.flutter_inappwebview.ChromeCustomTabs;
import androidx.browser.customtabs.CustomTabsClient; import androidx.browser.customtabs.CustomTabsClient;
......
package com.pichillilorenzo.flutter_inappbrowser.ContentBlocker; package com.pichillilorenzo.flutter_inappwebview.ContentBlocker;
public class ContentBlocker { public class ContentBlocker {
public ContentBlockerTrigger trigger; public ContentBlockerTrigger trigger;
......
package com.pichillilorenzo.flutter_inappbrowser.ContentBlocker; package com.pichillilorenzo.flutter_inappwebview.ContentBlocker;
import java.util.Map; import java.util.Map;
......
package com.pichillilorenzo.flutter_inappbrowser.ContentBlocker; package com.pichillilorenzo.flutter_inappwebview.ContentBlocker;
public enum ContentBlockerActionType { public enum ContentBlockerActionType {
BLOCK ("block"), BLOCK ("block"),
......
package com.pichillilorenzo.flutter_inappbrowser.ContentBlocker; package com.pichillilorenzo.flutter_inappwebview.ContentBlocker;
import android.os.Build; import android.os.Build;
import android.os.Handler; import android.os.Handler;
...@@ -6,8 +6,8 @@ import android.os.Looper; ...@@ -6,8 +6,8 @@ import android.os.Looper;
import android.util.Log; import android.util.Log;
import android.webkit.WebResourceResponse; import android.webkit.WebResourceResponse;
import com.pichillilorenzo.flutter_inappbrowser.InAppWebView.InAppWebView; import com.pichillilorenzo.flutter_inappwebview.InAppWebView.InAppWebView;
import com.pichillilorenzo.flutter_inappbrowser.Util; import com.pichillilorenzo.flutter_inappwebview.Util;
import java.io.ByteArrayInputStream; import java.io.ByteArrayInputStream;
import java.io.InputStream; import java.io.InputStream;
......
package com.pichillilorenzo.flutter_inappbrowser.ContentBlocker; package com.pichillilorenzo.flutter_inappwebview.ContentBlocker;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
......
package com.pichillilorenzo.flutter_inappbrowser.ContentBlocker; package com.pichillilorenzo.flutter_inappwebview.ContentBlocker;
public enum ContentBlockerTriggerResourceType { public enum ContentBlockerTriggerResourceType {
DOCUMENT ("document"), DOCUMENT ("document"),
......
package com.pichillilorenzo.flutter_inappbrowser.CredentialDatabase; package com.pichillilorenzo.flutter_inappwebview.CredentialDatabase;
import java.util.HashMap; import java.util.HashMap;
import java.util.Map; import java.util.Map;
......
package com.pichillilorenzo.flutter_inappbrowser.CredentialDatabase; package com.pichillilorenzo.flutter_inappwebview.CredentialDatabase;
import android.provider.BaseColumns; import android.provider.BaseColumns;
......
package com.pichillilorenzo.flutter_inappbrowser.CredentialDatabase; package com.pichillilorenzo.flutter_inappwebview.CredentialDatabase;
import android.content.ContentValues; import android.content.ContentValues;
import android.database.Cursor; import android.database.Cursor;
......
package com.pichillilorenzo.flutter_inappbrowser.CredentialDatabase; package com.pichillilorenzo.flutter_inappwebview.CredentialDatabase;
import android.content.Context; import android.content.Context;
import android.util.Log;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
......
package com.pichillilorenzo.flutter_inappbrowser.CredentialDatabase; package com.pichillilorenzo.flutter_inappwebview.CredentialDatabase;
import android.content.Context; import android.content.Context;
import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteDatabase;
......
package com.pichillilorenzo.flutter_inappbrowser.CredentialDatabase; package com.pichillilorenzo.flutter_inappwebview.CredentialDatabase;
import java.util.HashMap; import java.util.HashMap;
import java.util.Map; import java.util.Map;
......
package com.pichillilorenzo.flutter_inappbrowser.CredentialDatabase; package com.pichillilorenzo.flutter_inappwebview.CredentialDatabase;
import android.provider.BaseColumns; import android.provider.BaseColumns;
......
package com.pichillilorenzo.flutter_inappbrowser.CredentialDatabase; package com.pichillilorenzo.flutter_inappwebview.CredentialDatabase;
import android.content.ContentValues; import android.content.ContentValues;
import android.database.Cursor; import android.database.Cursor;
......
package com.pichillilorenzo.flutter_inappbrowser; package com.pichillilorenzo.flutter_inappwebview;
import android.os.Build; import android.os.Build;
import androidx.annotation.RequiresApi; import androidx.annotation.RequiresApi;
import com.pichillilorenzo.flutter_inappbrowser.CredentialDatabase.Credential; import com.pichillilorenzo.flutter_inappwebview.CredentialDatabase.Credential;
import com.pichillilorenzo.flutter_inappbrowser.CredentialDatabase.CredentialDatabase; import com.pichillilorenzo.flutter_inappwebview.CredentialDatabase.CredentialDatabase;
import com.pichillilorenzo.flutter_inappbrowser.CredentialDatabase.ProtectionSpace; import com.pichillilorenzo.flutter_inappwebview.CredentialDatabase.ProtectionSpace;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.HashMap; import java.util.HashMap;
...@@ -28,7 +28,7 @@ public class CredentialDatabaseHandler implements MethodChannel.MethodCallHandle ...@@ -28,7 +28,7 @@ public class CredentialDatabaseHandler implements MethodChannel.MethodCallHandle
public CredentialDatabaseHandler(PluginRegistry.Registrar r) { public CredentialDatabaseHandler(PluginRegistry.Registrar r) {
registrar = r; registrar = r;
channel = new MethodChannel(registrar.messenger(), "com.pichillilorenzo/flutter_inappbrowser_credential_database"); channel = new MethodChannel(registrar.messenger(), "com.pichillilorenzo/flutter_inappwebview_credential_database");
channel.setMethodCallHandler(this); channel.setMethodCallHandler(this);
credentialDatabase = CredentialDatabase.getInstance(registrar.context()); credentialDatabase = CredentialDatabase.getInstance(registrar.context());
} }
......
package com.pichillilorenzo.flutter_inappbrowser; package com.pichillilorenzo.flutter_inappwebview;
import android.app.Activity; import android.app.Activity;
import android.content.Context; import android.content.Context;
...@@ -10,9 +10,9 @@ import android.webkit.WebChromeClient; ...@@ -10,9 +10,9 @@ import android.webkit.WebChromeClient;
import android.webkit.WebView; import android.webkit.WebView;
import android.webkit.WebViewClient; import android.webkit.WebViewClient;
import com.pichillilorenzo.flutter_inappbrowser.InAppWebView.DisplayListenerProxy; import com.pichillilorenzo.flutter_inappwebview.InAppWebView.DisplayListenerProxy;
import com.pichillilorenzo.flutter_inappbrowser.InAppWebView.InAppWebView; import com.pichillilorenzo.flutter_inappwebview.InAppWebView.InAppWebView;
import com.pichillilorenzo.flutter_inappbrowser.InAppWebView.InAppWebViewOptions; import com.pichillilorenzo.flutter_inappwebview.InAppWebView.InAppWebViewOptions;
import java.io.IOException; import java.io.IOException;
import java.util.HashMap; import java.util.HashMap;
......
package com.pichillilorenzo.flutter_inappbrowser; package com.pichillilorenzo.flutter_inappwebview;
import android.content.Context; import android.content.Context;
import android.view.View; import android.view.View;
......
...@@ -19,13 +19,12 @@ ...@@ -19,13 +19,12 @@
* *
*/ */
package com.pichillilorenzo.flutter_inappbrowser; package com.pichillilorenzo.flutter_inappwebview;
import android.app.Activity; import android.app.Activity;
import android.content.Intent; import android.content.Intent;
import android.content.pm.PackageManager; import android.content.pm.PackageManager;
import android.content.pm.ResolveInfo; import android.content.pm.ResolveInfo;
import android.os.Build;
import android.os.Parcelable; import android.os.Parcelable;
import android.provider.Browser; import android.provider.Browser;
import android.net.Uri; import android.net.Uri;
...@@ -35,8 +34,8 @@ import android.webkit.WebView; ...@@ -35,8 +34,8 @@ import android.webkit.WebView;
import android.webkit.WebViewClient; import android.webkit.WebViewClient;
import android.util.Log; import android.util.Log;
import com.pichillilorenzo.flutter_inappbrowser.ChromeCustomTabs.ChromeCustomTabsActivity; import com.pichillilorenzo.flutter_inappwebview.ChromeCustomTabs.ChromeCustomTabsActivity;
import com.pichillilorenzo.flutter_inappbrowser.ChromeCustomTabs.CustomTabActivityHelper; import com.pichillilorenzo.flutter_inappwebview.ChromeCustomTabs.CustomTabActivityHelper;
import java.io.IOException; import java.io.IOException;
import java.io.Serializable; import java.io.Serializable;
...@@ -45,8 +44,6 @@ import java.util.HashMap; ...@@ -45,8 +44,6 @@ import java.util.HashMap;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
import io.flutter.embedding.engine.plugins.FlutterPlugin;
import io.flutter.plugin.common.BinaryMessenger;
import io.flutter.plugin.common.MethodCall; import io.flutter.plugin.common.MethodCall;
import io.flutter.plugin.common.MethodChannel; import io.flutter.plugin.common.MethodChannel;
import io.flutter.plugin.common.MethodChannel.Result; import io.flutter.plugin.common.MethodChannel.Result;
......
package com.pichillilorenzo.flutter_inappbrowser; package com.pichillilorenzo.flutter_inappwebview;
import android.content.Intent; import android.content.Intent;
import android.graphics.Bitmap; import android.graphics.Bitmap;
...@@ -23,8 +23,8 @@ import android.webkit.WebViewClient; ...@@ -23,8 +23,8 @@ import android.webkit.WebViewClient;
import android.widget.ProgressBar; import android.widget.ProgressBar;
import android.widget.SearchView; import android.widget.SearchView;
import com.pichillilorenzo.flutter_inappbrowser.InAppWebView.InAppWebView; import com.pichillilorenzo.flutter_inappwebview.InAppWebView.InAppWebView;
import com.pichillilorenzo.flutter_inappbrowser.InAppWebView.InAppWebViewOptions; import com.pichillilorenzo.flutter_inappwebview.InAppWebView.InAppWebViewOptions;
import java.io.ByteArrayOutputStream; import java.io.ByteArrayOutputStream;
import java.io.IOException; import java.io.IOException;
...@@ -56,7 +56,7 @@ public class InAppBrowserActivity extends AppCompatActivity { ...@@ -56,7 +56,7 @@ public class InAppBrowserActivity extends AppCompatActivity {
webView = findViewById(R.id.webView); webView = findViewById(R.id.webView);
webView.inAppBrowserActivity = this; webView.inAppBrowserActivity = this;
webView.registrar = InAppBrowserFlutterPlugin.inAppBrowser.registrar; webView.registrar = InAppWebViewFlutterPlugin.inAppBrowser.registrar;
Bundle b = getIntent().getExtras(); Bundle b = getIntent().getExtras();
uuid = b.getString("uuid"); uuid = b.getString("uuid");
...@@ -71,7 +71,7 @@ public class InAppBrowserActivity extends AppCompatActivity { ...@@ -71,7 +71,7 @@ public class InAppBrowserActivity extends AppCompatActivity {
webViewOptions.parse(optionsMap); webViewOptions.parse(optionsMap);
webView.options = webViewOptions; webView.options = webViewOptions;
InAppBrowserFlutterPlugin.inAppBrowser.webViewActivities.put(uuid, this); InAppWebViewFlutterPlugin.inAppBrowser.webViewActivities.put(uuid, this);
actionBar = getSupportActionBar(); actionBar = getSupportActionBar();
...@@ -93,7 +93,7 @@ public class InAppBrowserActivity extends AppCompatActivity { ...@@ -93,7 +93,7 @@ public class InAppBrowserActivity extends AppCompatActivity {
Map<String, Object> obj = new HashMap<>(); Map<String, Object> obj = new HashMap<>();
obj.put("uuid", uuid); obj.put("uuid", uuid);
InAppBrowserFlutterPlugin.inAppBrowser.channel.invokeMethod("onBrowserCreated", obj); InAppWebViewFlutterPlugin.inAppBrowser.channel.invokeMethod("onBrowserCreated", obj);
} }
...@@ -257,7 +257,7 @@ public class InAppBrowserActivity extends AppCompatActivity { ...@@ -257,7 +257,7 @@ public class InAppBrowserActivity extends AppCompatActivity {
if (canGoBack()) if (canGoBack())
goBack(); goBack();
else if (options.closeOnCannotGoBack) else if (options.closeOnCannotGoBack)
InAppBrowserFlutterPlugin.inAppBrowser.close(this, uuid, null); InAppWebViewFlutterPlugin.inAppBrowser.close(this, uuid, null);
return true; return true;
} }
return super.onKeyDown(keyCode, event); return super.onKeyDown(keyCode, event);
...@@ -356,7 +356,7 @@ public class InAppBrowserActivity extends AppCompatActivity { ...@@ -356,7 +356,7 @@ public class InAppBrowserActivity extends AppCompatActivity {
} }
public void closeButtonClicked(MenuItem item) { public void closeButtonClicked(MenuItem item) {
InAppBrowserFlutterPlugin.inAppBrowser.close(this, uuid, null); InAppWebViewFlutterPlugin.inAppBrowser.close(this, uuid, null);
} }
public byte[] takeScreenshot() { public byte[] takeScreenshot() {
......
package com.pichillilorenzo.flutter_inappbrowser; package com.pichillilorenzo.flutter_inappwebview;
public class InAppBrowserOptions extends Options { public class InAppBrowserOptions extends Options {
......
package com.pichillilorenzo.flutter_inappbrowser.InAppWebView; package com.pichillilorenzo.flutter_inappwebview.InAppWebView;
import static android.hardware.display.DisplayManager.DisplayListener; import static android.hardware.display.DisplayManager.DisplayListener;
......
package com.pichillilorenzo.flutter_inappbrowser.InAppWebView; package com.pichillilorenzo.flutter_inappwebview.InAppWebView;
import android.annotation.TargetApi; import android.annotation.TargetApi;
import android.content.ActivityNotFoundException; import android.content.ActivityNotFoundException;
...@@ -27,10 +27,10 @@ import android.widget.LinearLayout; ...@@ -27,10 +27,10 @@ import android.widget.LinearLayout;
import androidx.appcompat.app.AlertDialog; import androidx.appcompat.app.AlertDialog;
import com.pichillilorenzo.flutter_inappbrowser.FlutterWebView; import com.pichillilorenzo.flutter_inappwebview.FlutterWebView;
import com.pichillilorenzo.flutter_inappbrowser.InAppBrowserActivity; import com.pichillilorenzo.flutter_inappwebview.InAppBrowserActivity;
import com.pichillilorenzo.flutter_inappbrowser.InAppBrowserFlutterPlugin; import com.pichillilorenzo.flutter_inappwebview.InAppWebViewFlutterPlugin;
import com.pichillilorenzo.flutter_inappbrowser.R; import com.pichillilorenzo.flutter_inappwebview.R;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Arrays; import java.util.Arrays;
...@@ -548,7 +548,7 @@ public class InAppWebViewChromeClient extends WebChromeClient implements PluginR ...@@ -548,7 +548,7 @@ public class InAppWebViewChromeClient extends WebChromeClient implements PluginR
//For Android 5.0+ //For Android 5.0+
public boolean onShowFileChooser(WebView webView, ValueCallback<Uri[]> filePathCallback, FileChooserParams fileChooserParams) { public boolean onShowFileChooser(WebView webView, ValueCallback<Uri[]> filePathCallback, FileChooserParams fileChooserParams) {
InAppBrowserFlutterPlugin.uploadMessageArray = filePathCallback; InAppWebViewFlutterPlugin.uploadMessageArray = filePathCallback;
try { try {
Intent contentSelectionIntent = new Intent(Intent.ACTION_GET_CONTENT); Intent contentSelectionIntent = new Intent(Intent.ACTION_GET_CONTENT);
contentSelectionIntent.addCategory(Intent.CATEGORY_OPENABLE); contentSelectionIntent.addCategory(Intent.CATEGORY_OPENABLE);
...@@ -572,7 +572,7 @@ public class InAppWebViewChromeClient extends WebChromeClient implements PluginR ...@@ -572,7 +572,7 @@ public class InAppWebViewChromeClient extends WebChromeClient implements PluginR
@Override @Override
public boolean onActivityResult(int requestCode, int resultCode, Intent data) { public boolean onActivityResult(int requestCode, int resultCode, Intent data) {
if (requestCode == FILECHOOSER_RESULTCODE && (resultCode == RESULT_OK || resultCode == RESULT_CANCELED)) { if (requestCode == FILECHOOSER_RESULTCODE && (resultCode == RESULT_OK || resultCode == RESULT_CANCELED)) {
InAppBrowserFlutterPlugin.uploadMessageArray.onReceiveValue(WebChromeClient.FileChooserParams.parseResult(resultCode, data)); InAppWebViewFlutterPlugin.uploadMessageArray.onReceiveValue(WebChromeClient.FileChooserParams.parseResult(resultCode, data));
} }
return true; return true;
} }
...@@ -625,6 +625,6 @@ public class InAppWebViewChromeClient extends WebChromeClient implements PluginR ...@@ -625,6 +625,6 @@ public class InAppWebViewChromeClient extends WebChromeClient implements PluginR
} }
private MethodChannel getChannel() { private MethodChannel getChannel() {
return (inAppBrowserActivity != null) ? InAppBrowserFlutterPlugin.inAppBrowser.channel : flutterWebView.channel; return (inAppBrowserActivity != null) ? InAppWebViewFlutterPlugin.inAppBrowser.channel : flutterWebView.channel;
} }
} }
package com.pichillilorenzo.flutter_inappbrowser.InAppWebView; package com.pichillilorenzo.flutter_inappwebview.InAppWebView;
import android.content.Intent; import android.content.Intent;
import android.graphics.Bitmap; import android.graphics.Bitmap;
...@@ -22,13 +22,13 @@ import android.webkit.WebViewClient; ...@@ -22,13 +22,13 @@ import android.webkit.WebViewClient;
import androidx.annotation.RequiresApi; import androidx.annotation.RequiresApi;
import com.pichillilorenzo.flutter_inappbrowser.CredentialDatabase.Credential; import com.pichillilorenzo.flutter_inappwebview.CredentialDatabase.Credential;
import com.pichillilorenzo.flutter_inappbrowser.CredentialDatabase.CredentialDatabase; import com.pichillilorenzo.flutter_inappwebview.CredentialDatabase.CredentialDatabase;
import com.pichillilorenzo.flutter_inappbrowser.FlutterWebView; import com.pichillilorenzo.flutter_inappwebview.FlutterWebView;
import com.pichillilorenzo.flutter_inappbrowser.InAppBrowserActivity; import com.pichillilorenzo.flutter_inappwebview.InAppBrowserActivity;
import com.pichillilorenzo.flutter_inappbrowser.InAppBrowserFlutterPlugin; import com.pichillilorenzo.flutter_inappwebview.InAppWebViewFlutterPlugin;
import com.pichillilorenzo.flutter_inappbrowser.JavaScriptBridgeInterface; import com.pichillilorenzo.flutter_inappwebview.JavaScriptBridgeInterface;
import com.pichillilorenzo.flutter_inappbrowser.Util; import com.pichillilorenzo.flutter_inappwebview.Util;
import java.io.ByteArrayInputStream; import java.io.ByteArrayInputStream;
import java.net.MalformedURLException; import java.net.MalformedURLException;
...@@ -668,7 +668,7 @@ public class InAppWebViewClient extends WebViewClient { ...@@ -668,7 +668,7 @@ public class InAppWebViewClient extends WebViewClient {
} }
private MethodChannel getChannel() { private MethodChannel getChannel() {
return (inAppBrowserActivity != null) ? InAppBrowserFlutterPlugin.inAppBrowser.channel : flutterWebView.channel; return (inAppBrowserActivity != null) ? InAppWebViewFlutterPlugin.inAppBrowser.channel : flutterWebView.channel;
} }
} }
package com.pichillilorenzo.flutter_inappbrowser.InAppWebView; package com.pichillilorenzo.flutter_inappwebview.InAppWebView;
import android.os.Build; import android.os.Build;
import android.util.Log; import android.util.Log;
import android.webkit.WebSettings; import android.webkit.WebSettings;
import com.pichillilorenzo.flutter_inappbrowser.Options; import com.pichillilorenzo.flutter_inappwebview.Options;
import java.lang.reflect.Field; import java.lang.reflect.Field;
import java.util.ArrayList; import java.util.ArrayList;
......
package com.pichillilorenzo.flutter_inappbrowser.InAppWebView; package com.pichillilorenzo.flutter_inappwebview.InAppWebView;
import static android.content.Context.INPUT_METHOD_SERVICE; import static android.content.Context.INPUT_METHOD_SERVICE;
......
package com.pichillilorenzo.flutter_inappbrowser.InAppWebView; package com.pichillilorenzo.flutter_inappwebview.InAppWebView;
import com.pichillilorenzo.flutter_inappbrowser.ContentBlocker.ContentBlockerActionType;
public enum PreferredContentModeOptionType { public enum PreferredContentModeOptionType {
RECOMMENDED (0), RECOMMENDED (0),
......
package com.pichillilorenzo.flutter_inappbrowser.InAppWebView; package com.pichillilorenzo.flutter_inappwebview.InAppWebView;
import android.os.Handler; import android.os.Handler;
import android.os.IBinder; import android.os.IBinder;
......
package com.pichillilorenzo.flutter_inappbrowser; package com.pichillilorenzo.flutter_inappwebview;
import android.net.Uri; import android.net.Uri;
import android.os.Build; import android.os.Build;
...@@ -8,18 +8,18 @@ import io.flutter.plugin.common.MethodChannel; ...@@ -8,18 +8,18 @@ import io.flutter.plugin.common.MethodChannel;
import io.flutter.plugin.common.PluginRegistry; import io.flutter.plugin.common.PluginRegistry;
import io.flutter.embedding.engine.plugins.FlutterPlugin; import io.flutter.embedding.engine.plugins.FlutterPlugin;
public class InAppBrowserFlutterPlugin implements FlutterPlugin { public class InAppWebViewFlutterPlugin implements FlutterPlugin {
public PluginRegistry.Registrar registrar; public PluginRegistry.Registrar registrar;
public MethodChannel channel; public MethodChannel channel;
protected static final String LOG_TAG = "InAppBrowserFlutterPlugin"; protected static final String LOG_TAG = "InAppWebViewFlutterPlugin";
public static InAppBrowser inAppBrowser; public static InAppBrowser inAppBrowser;
public static MyCookieManager myCookieManager; public static MyCookieManager myCookieManager;
public static CredentialDatabaseHandler credentialDatabaseHandler; public static CredentialDatabaseHandler credentialDatabaseHandler;
public static ValueCallback<Uri[]> uploadMessageArray; public static ValueCallback<Uri[]> uploadMessageArray;
public InAppBrowserFlutterPlugin() {} public InAppWebViewFlutterPlugin() {}
public static void registerWith(PluginRegistry.Registrar registrar) { public static void registerWith(PluginRegistry.Registrar registrar) {
inAppBrowser = new InAppBrowser(registrar); inAppBrowser = new InAppBrowser(registrar);
......
package com.pichillilorenzo.flutter_inappbrowser; package com.pichillilorenzo.flutter_inappwebview;
import android.os.Build; import android.os.Build;
import android.os.Handler; import android.os.Handler;
...@@ -7,10 +7,7 @@ import android.util.Log; ...@@ -7,10 +7,7 @@ import android.util.Log;
import android.webkit.JavascriptInterface; import android.webkit.JavascriptInterface;
import android.webkit.ValueCallback; import android.webkit.ValueCallback;
import com.pichillilorenzo.flutter_inappbrowser.InAppWebView.InAppWebView; import com.pichillilorenzo.flutter_inappwebview.InAppWebView.InAppWebView;
import org.json.JSONException;
import org.json.JSONObject;
import java.util.HashMap; import java.util.HashMap;
import java.util.Map; import java.util.Map;
...@@ -19,7 +16,7 @@ import io.flutter.plugin.common.MethodChannel; ...@@ -19,7 +16,7 @@ import io.flutter.plugin.common.MethodChannel;
public class JavaScriptBridgeInterface { public class JavaScriptBridgeInterface {
private static final String LOG_TAG = "JSBridgeInterface"; private static final String LOG_TAG = "JSBridgeInterface";
public static final String name = "flutter_inappbrowser"; public static final String name = "flutter_inappwebview";
private FlutterWebView flutterWebView; private FlutterWebView flutterWebView;
private InAppBrowserActivity inAppBrowserActivity; private InAppBrowserActivity inAppBrowserActivity;
...@@ -47,7 +44,7 @@ public class JavaScriptBridgeInterface { ...@@ -47,7 +44,7 @@ public class JavaScriptBridgeInterface {
obj.put("args", args); obj.put("args", args);
// java.lang.RuntimeException: Methods marked with @UiThread must be executed on the main thread. // java.lang.RuntimeException: Methods marked with @UiThread must be executed on the main thread.
// https://github.com/pichillilorenzo/flutter_inappbrowser/issues/98 // https://github.com/pichillilorenzo/flutter_inappwebview/issues/98
final Handler handler = new Handler(Looper.getMainLooper()); final Handler handler = new Handler(Looper.getMainLooper());
handler.post(new Runnable() { handler.post(new Runnable() {
@Override @Override
...@@ -84,6 +81,6 @@ public class JavaScriptBridgeInterface { ...@@ -84,6 +81,6 @@ public class JavaScriptBridgeInterface {
} }
private MethodChannel getChannel() { private MethodChannel getChannel() {
return (inAppBrowserActivity != null) ? InAppBrowserFlutterPlugin.inAppBrowser.channel : flutterWebView.channel; return (inAppBrowserActivity != null) ? InAppWebViewFlutterPlugin.inAppBrowser.channel : flutterWebView.channel;
} }
} }
package com.pichillilorenzo.flutter_inappbrowser; package com.pichillilorenzo.flutter_inappwebview;
import android.os.Build; import android.os.Build;
import android.util.Log;
import android.webkit.CookieManager; import android.webkit.CookieManager;
import android.webkit.CookieSyncManager; import android.webkit.CookieSyncManager;
import android.webkit.ValueCallback; import android.webkit.ValueCallback;
import java.net.URI;
import java.net.URISyntaxException;
import java.text.SimpleDateFormat; import java.text.SimpleDateFormat;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Date; import java.util.Date;
...@@ -30,7 +27,7 @@ public class MyCookieManager implements MethodChannel.MethodCallHandler { ...@@ -30,7 +27,7 @@ public class MyCookieManager implements MethodChannel.MethodCallHandler {
public MyCookieManager(PluginRegistry.Registrar r) { public MyCookieManager(PluginRegistry.Registrar r) {
registrar = r; registrar = r;
channel = new MethodChannel(registrar.messenger(), "com.pichillilorenzo/flutter_inappbrowser_cookiemanager"); channel = new MethodChannel(registrar.messenger(), "com.pichillilorenzo/flutter_inappwebview_cookiemanager");
channel.setMethodCallHandler(this); channel.setMethodCallHandler(this);
cookieManager = CookieManager.getInstance(); cookieManager = CookieManager.getInstance();
} }
......
package com.pichillilorenzo.flutter_inappbrowser; package com.pichillilorenzo.flutter_inappwebview;
import android.util.Log; import android.util.Log;
......
package com.pichillilorenzo.flutter_inappbrowser; package com.pichillilorenzo.flutter_inappwebview;
import android.app.Activity; import android.app.Activity;
import android.content.pm.PackageManager; import android.content.pm.PackageManager;
......
package com.pichillilorenzo.flutter_inappbrowser; package com.pichillilorenzo.flutter_inappwebview;
import android.content.res.AssetManager; import android.content.res.AssetManager;
import android.os.Handler; import android.os.Handler;
import android.os.Looper; import android.os.Looper;
import android.util.Log; import android.util.Log;
import com.pichillilorenzo.flutter_inappbrowser.InAppWebView.InAppWebView;
import java.io.IOException; import java.io.IOException;
import java.io.InputStream; import java.io.InputStream;
import java.security.Key; import java.security.Key;
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
tools:context=".InAppBrowserActivity" tools:context=".InAppBrowserActivity"
android:focusable="true"> android:focusable="true">
<com.pichillilorenzo.flutter_inappbrowser.InAppWebView.InAppWebView <com.pichillilorenzo.flutter_inappwebview.InAppWebView.InAppWebView
android:id="@+id/webView" android:id="@+id/webView"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" /> android:layout_height="match_parent" />
......
# flutter_inappbrowser_example # flutter_inappwebview_example
Demonstrates how to use the flutter_inappbrowser plugin. Demonstrates how to use the flutter_inappwebview plugin.
## Getting Started ## Getting Started
......
...@@ -38,7 +38,7 @@ android { ...@@ -38,7 +38,7 @@ android {
defaultConfig { defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId "com.pichillilorenzo.flutter_inappbrowserexample" applicationId "com.pichillilorenzo.flutter_inappwebviewexample"
minSdkVersion 17 minSdkVersion 17
targetSdkVersion 28 targetSdkVersion 28
versionCode flutterVersionCode.toInteger() versionCode flutterVersionCode.toInteger()
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
FlutterApplication and put your custom class here. --> FlutterApplication and put your custom class here. -->
<application <application
android:name=".MyApplication" android:name=".MyApplication"
android:label="flutter_inappbrowser_example" android:label="flutter_inappwebview_example"
android:usesCleartextTraffic="true" android:usesCleartextTraffic="true"
android:icon="@mipmap/ic_launcher"> android:icon="@mipmap/ic_launcher">
<activity <activity
......
#!/bin/sh #!/bin/sh
# This is a generated file; do not edit or check into version control. # This is a generated file; do not edit or check into version control.
export "FLUTTER_ROOT=/Users/lorenzopichilli/flutter" export "FLUTTER_ROOT=/Users/lorenzopichilli/flutter"
export "FLUTTER_APPLICATION_PATH=/Users/lorenzopichilli/Desktop/flutter_inappbrowser/example" export "FLUTTER_APPLICATION_PATH=/Users/lorenzopichilli/Desktop/flutter_inappwebview/example"
export "FLUTTER_TARGET=/Users/lorenzopichilli/Desktop/flutter_inappbrowser/example/lib/main.dart" export "FLUTTER_TARGET=/Users/lorenzopichilli/Desktop/flutter_inappwebview/example/test_driver/app.dart"
export "FLUTTER_BUILD_DIR=build" export "FLUTTER_BUILD_DIR=build"
export "SYMROOT=${SOURCE_ROOT}/../build/ios" export "SYMROOT=${SOURCE_ROOT}/../build/ios"
export "FLUTTER_FRAMEWORK_DIR=/Users/lorenzopichilli/flutter/bin/cache/artifacts/engine/ios" export "FLUTTER_FRAMEWORK_DIR=/Users/lorenzopichilli/flutter/bin/cache/artifacts/engine/ios"
export "FLUTTER_BUILD_NAME=1.0.0" export "FLUTTER_BUILD_NAME=1.0.0"
export "FLUTTER_BUILD_NUMBER=1" export "FLUTTER_BUILD_NUMBER=1"
export "TRACK_WIDGET_CREATION=true"
...@@ -269,14 +269,14 @@ ...@@ -269,14 +269,14 @@
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh", "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh",
"${PODS_ROOT}/../.symlinks/flutter/ios/Flutter.framework", "${PODS_ROOT}/../.symlinks/flutter/ios/Flutter.framework",
"${BUILT_PRODUCTS_DIR}/flutter_downloader/flutter_downloader.framework", "${BUILT_PRODUCTS_DIR}/flutter_downloader/flutter_downloader.framework",
"${BUILT_PRODUCTS_DIR}/flutter_inappbrowser/flutter_inappbrowser.framework", "${BUILT_PRODUCTS_DIR}/flutter_inappwebview/flutter_inappwebview.framework",
"${BUILT_PRODUCTS_DIR}/path_provider/path_provider.framework", "${BUILT_PRODUCTS_DIR}/path_provider/path_provider.framework",
); );
name = "[CP] Embed Pods Frameworks"; name = "[CP] Embed Pods Frameworks";
outputPaths = ( outputPaths = (
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Flutter.framework", "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Flutter.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/flutter_downloader.framework", "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/flutter_downloader.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/flutter_inappbrowser.framework", "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/flutter_inappwebview.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/path_provider.framework", "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/path_provider.framework",
); );
runOnlyForDeploymentPostprocessing = 0; runOnlyForDeploymentPostprocessing = 0;
...@@ -462,7 +462,7 @@ ...@@ -462,7 +462,7 @@
"$(inherited)", "$(inherited)",
"$(PROJECT_DIR)/Flutter", "$(PROJECT_DIR)/Flutter",
); );
PRODUCT_BUNDLE_IDENTIFIER = com.pichillilorenzo.flutter_inappbrowserExample; PRODUCT_BUNDLE_IDENTIFIER = com.pichillilorenzo.flutter_inappwebviewExample;
PRODUCT_NAME = "$(TARGET_NAME)"; PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
SWIFT_OPTIMIZATION_LEVEL = "-Onone"; SWIFT_OPTIMIZATION_LEVEL = "-Onone";
...@@ -490,7 +490,7 @@ ...@@ -490,7 +490,7 @@
"$(inherited)", "$(inherited)",
"$(PROJECT_DIR)/Flutter", "$(PROJECT_DIR)/Flutter",
); );
PRODUCT_BUNDLE_IDENTIFIER = com.pichillilorenzo.flutter_inappbrowserExample; PRODUCT_BUNDLE_IDENTIFIER = com.pichillilorenzo.flutter_inappwebviewExample;
PRODUCT_NAME = "$(TARGET_NAME)"; PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
SWIFT_VERSION = 5.0; SWIFT_VERSION = 5.0;
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
<key>CFBundleIdentifier</key> <key>CFBundleIdentifier</key>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string> <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleName</key> <key>CFBundleName</key>
<string>flutter_inappbrowser_example</string> <string>flutter_inappwebview_example</string>
<key>CFBundleInfoDictionaryVersion</key> <key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string> <string>6.0</string>
<key>CFBundleVersion</key> <key>CFBundleVersion</key>
......
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter_inappbrowser/flutter_inappbrowser.dart'; import 'package:flutter_inappwebview/flutter_inappwebview.dart';
import 'main.dart'; import 'main.dart';
......
import 'dart:async'; import 'dart:async';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter_inappbrowser/flutter_inappbrowser.dart'; import 'package:flutter_inappwebview/flutter_inappwebview.dart';
import 'main.dart'; import 'main.dart';
......
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter_inappbrowser/flutter_inappbrowser.dart'; import 'package:flutter_inappwebview/flutter_inappwebview.dart';
import 'main.dart'; import 'main.dart';
......
...@@ -2,10 +2,10 @@ import 'dart:async'; ...@@ -2,10 +2,10 @@ import 'dart:async';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter_inappbrowser/flutter_inappbrowser.dart'; import 'package:flutter_inappwebview/flutter_inappwebview.dart';
import 'package:flutter_inappbrowser_example/chrome_safari_browser_example.screen.dart'; import 'package:flutter_inappwebview_example/chrome_safari_browser_example.screen.dart';
import 'package:flutter_inappbrowser_example/in_app_webiew_example.screen.dart'; import 'package:flutter_inappwebview_example/in_app_webiew_example.screen.dart';
import 'package:flutter_inappbrowser_example/in_app_browser_example.screen.dart'; import 'package:flutter_inappwebview_example/in_app_browser_example.screen.dart';
// InAppLocalhostServer localhostServer = new InAppLocalhostServer(); // InAppLocalhostServer localhostServer = new InAppLocalhostServer();
......
name: flutter_inappbrowser_example name: flutter_inappwebview_example
description: Demonstrates how to use the flutter_inappbrowser plugin. description: Demonstrates how to use the flutter_inappwebview plugin.
# The following defines the version and build number for your application. # The following defines the version and build number for your application.
# A version number is three numbers separated by dots, like 1.2.43 # A version number is three numbers separated by dots, like 1.2.43
...@@ -22,7 +22,7 @@ dependencies: ...@@ -22,7 +22,7 @@ dependencies:
flutter_downloader: ^1.3.2 flutter_downloader: ^1.3.2
path_provider: ^1.4.0 path_provider: ^1.4.0
permission_handler: ^3.3.0 permission_handler: ^3.3.0
flutter_inappbrowser: flutter_inappwebview:
path: ../ path: ../
dev_dependencies: dev_dependencies:
......
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
<p> <p>
<img src="https://via.placeholder.com/100x50" alt="placeholder 100x50"> <img src="https://via.placeholder.com/100x50" alt="placeholder 100x50">
</p> </p>
<a id="link" href="https://github.com/pichillilorenzo/flutter_inappbrowser">flutter_inappbrowser</a> <a id="link" href="https://github.com/pichillilorenzo/flutter_inappwebview">flutter_inappwebview</a>
</main> </main>
</div> </div>
</body> </body>
......
...@@ -9,9 +9,9 @@ ...@@ -9,9 +9,9 @@
<body> <body>
<h1>InAppWebViewJavaScriptHandlerTest</h1> <h1>InAppWebViewJavaScriptHandlerTest</h1>
<script> <script>
window.addEventListener("flutterInAppBrowserPlatformReady", function(event) { window.addEventListener("flutterInAppWebViewPlatformReady", function(event) {
window.flutter_inappbrowser.callHandler('handlerFoo').then(function(result) { window.flutter_inappwebview.callHandler('handlerFoo').then(function(result) {
window.flutter_inappbrowser.callHandler('handlerFooWithArgs', 1, true, ['bar', 5], {foo: 'baz'}, result).then(function(result) { window.flutter_inappwebview.callHandler('handlerFooWithArgs', 1, true, ['bar', 5], {foo: 'baz'}, result).then(function(result) {
}); });
}); });
......
...@@ -9,10 +9,10 @@ ...@@ -9,10 +9,10 @@
<body> <body>
<h1>InAppWebViewOnJsDialogTest</h1> <h1>InAppWebViewOnJsDialogTest</h1>
<script> <script>
window.addEventListener("flutterInAppBrowserPlatformReady", function(event) { window.addEventListener("flutterInAppWebViewPlatformReady", function(event) {
alert("alert message"); alert("alert message");
window.flutter_inappbrowser.callHandler('confirm', confirm("confirm message")); window.flutter_inappwebview.callHandler('confirm', confirm("confirm message"));
window.flutter_inappbrowser.callHandler('prompt', prompt("prompt message", "prompt default value")); window.flutter_inappwebview.callHandler('prompt', prompt("prompt message", "prompt default value"));
}); });
</script> </script>
</body> </body>
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
<script> <script>
var image = document.querySelector("#image"); var image = document.querySelector("#image");
image.addEventListener('load', function() { image.addEventListener('load', function() {
window.flutter_inappbrowser.callHandler('imageLoaded'); window.flutter_inappwebview.callHandler('imageLoaded');
}); });
</script> </script>
</html> </html>
\ No newline at end of file
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
<body> <body>
<h1>InAppWebViewOnNavigationStateChangeTest</h1> <h1>InAppWebViewOnNavigationStateChangeTest</h1>
<script> <script>
window.addEventListener("flutterInAppBrowserPlatformReady", function(event) { window.addEventListener("flutterInAppWebViewPlatformReady", function(event) {
var state = {} var state = {}
var title = '' var title = ''
var url = 'first-push'; var url = 'first-push';
......
...@@ -77,9 +77,9 @@ ...@@ -77,9 +77,9 @@
window.location = "#foo-" + randomNumber; window.location = "#foo-" + randomNumber;
} }
window.addEventListener("flutterInAppBrowserPlatformReady", function(event) { window.addEventListener("flutterInAppWebViewPlatformReady", function(event) {
window.flutter_inappbrowser.callHandler('handlerFoo').then(function(result) { window.flutter_inappwebview.callHandler('handlerFoo').then(function(result) {
window.flutter_inappbrowser.callHandler('handlerFooWithArgs', 1, true, ['bar', 5], {foo: 'baz'}, result).then(function(result) { window.flutter_inappwebview.callHandler('handlerFooWithArgs', 1, true, ['bar', 5], {foo: 'baz'}, result).then(function(result) {
}); });
}); });
......
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter/widgets.dart'; import 'package:flutter/widgets.dart';
import 'package:flutter_inappbrowser/flutter_inappbrowser.dart'; import 'package:flutter_inappwebview/flutter_inappwebview.dart';
class WidgetTest extends StatefulWidget { class WidgetTest extends StatefulWidget {
final WidgetTestState state = WidgetTestState(); final WidgetTestState state = WidgetTestState();
......
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter_inappbrowser/flutter_inappbrowser.dart'; import 'package:flutter_inappwebview/flutter_inappwebview.dart';
import 'main_test.dart'; import 'main_test.dart';
import 'custom_widget_test.dart'; import 'custom_widget_test.dart';
...@@ -41,7 +41,7 @@ class InAppWebViewAjaxTestState extends WidgetTestState { ...@@ -41,7 +41,7 @@ class InAppWebViewAjaxTestState extends WidgetTestState {
<body> <body>
<h1>InAppWebViewAjaxTest</h1> <h1>InAppWebViewAjaxTest</h1>
<script> <script>
window.addEventListener('flutterInAppBrowserPlatformReady', function(event) { window.addEventListener('flutterInAppWebViewPlatformReady', function(event) {
var xhttp = new XMLHttpRequest(); var xhttp = new XMLHttpRequest();
xhttp.open("POST", "http://${environment["NODE_SERVER_IP"]}:8082/test-ajax-post"); xhttp.open("POST", "http://${environment["NODE_SERVER_IP"]}:8082/test-ajax-post");
xhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); xhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
......
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter_inappbrowser/flutter_inappbrowser.dart'; import 'package:flutter_inappwebview/flutter_inappwebview.dart';
import 'custom_widget_test.dart'; import 'custom_widget_test.dart';
import 'main_test.dart'; import 'main_test.dart';
......
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter_inappbrowser/flutter_inappbrowser.dart'; import 'package:flutter_inappwebview/flutter_inappwebview.dart';
import 'custom_widget_test.dart'; import 'custom_widget_test.dart';
import 'main_test.dart'; import 'main_test.dart';
......
...@@ -2,7 +2,7 @@ import 'dart:convert'; ...@@ -2,7 +2,7 @@ import 'dart:convert';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter_inappbrowser/flutter_inappbrowser.dart'; import 'package:flutter_inappwebview/flutter_inappwebview.dart';
import 'main_test.dart'; import 'main_test.dart';
import 'custom_widget_test.dart'; import 'custom_widget_test.dart';
...@@ -43,11 +43,11 @@ class InAppWebViewFetchTestState extends WidgetTestState { ...@@ -43,11 +43,11 @@ class InAppWebViewFetchTestState extends WidgetTestState {
<body> <body>
<h1>InAppWebViewFetchTest</h1> <h1>InAppWebViewFetchTest</h1>
<script> <script>
window.addEventListener('flutterInAppBrowserPlatformReady', function(event) { window.addEventListener('flutterInAppWebViewPlatformReady', function(event) {
fetch(new Request("http://${environment["NODE_SERVER_IP"]}:8082/test-download-file")).then(function(response) { fetch(new Request("http://${environment["NODE_SERVER_IP"]}:8082/test-download-file")).then(function(response) {
window.flutter_inappbrowser.callHandler('fetchGet', response.status); window.flutter_inappwebview.callHandler('fetchGet', response.status);
}).catch(function(error) { }).catch(function(error) {
window.flutter_inappbrowser.callHandler('fetchGet', "ERROR: " + error); window.flutter_inappwebview.callHandler('fetchGet', "ERROR: " + error);
}); });
fetch("http://${environment["NODE_SERVER_IP"]}:8082/test-ajax-post", { fetch("http://${environment["NODE_SERVER_IP"]}:8082/test-ajax-post", {
...@@ -61,12 +61,12 @@ class InAppWebViewFetchTestState extends WidgetTestState { ...@@ -61,12 +61,12 @@ class InAppWebViewFetchTestState extends WidgetTestState {
} }
}).then(function(response) { }).then(function(response) {
response.json().then(function(value) { response.json().then(function(value) {
window.flutter_inappbrowser.callHandler('fetchPost', value); window.flutter_inappwebview.callHandler('fetchPost', value);
}).catch(function(error) { }).catch(function(error) {
window.flutter_inappbrowser.callHandler('fetchPost', "ERROR: " + error); window.flutter_inappwebview.callHandler('fetchPost', "ERROR: " + error);
}); });
}).catch(function(error) { }).catch(function(error) {
window.flutter_inappbrowser.callHandler('fetchPost', "ERROR: " + error); window.flutter_inappwebview.callHandler('fetchPost', "ERROR: " + error);
}); });
}); });
</script> </script>
......
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter_inappbrowser/flutter_inappbrowser.dart'; import 'package:flutter_inappwebview/flutter_inappwebview.dart';
import 'custom_widget_test.dart'; import 'custom_widget_test.dart';
import 'main_test.dart'; import 'main_test.dart';
......
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter_inappbrowser/flutter_inappbrowser.dart'; import 'package:flutter_inappwebview/flutter_inappwebview.dart';
import 'main_test.dart'; import 'main_test.dart';
import 'custom_widget_test.dart'; import 'custom_widget_test.dart';
...@@ -58,7 +58,7 @@ class InAppWebViewInitialDataTestState extends WidgetTestState { ...@@ -58,7 +58,7 @@ class InAppWebViewInitialDataTestState extends WidgetTestState {
<p> <p>
<img src="https://via.placeholder.com/100x50" alt="placeholder 100x50"> <img src="https://via.placeholder.com/100x50" alt="placeholder 100x50">
</p> </p>
<a id="link" href="https://github.com/pichillilorenzo/flutter_inappbrowser">flutter_inappbrowser</a> <a id="link" href="https://github.com/pichillilorenzo/flutter_inappwebview">flutter_inappwebview</a>
</main> </main>
</div> </div>
</body> </body>
......
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter_inappbrowser/flutter_inappbrowser.dart'; import 'package:flutter_inappwebview/flutter_inappwebview.dart';
import 'main_test.dart'; import 'main_test.dart';
import 'custom_widget_test.dart'; import 'custom_widget_test.dart';
......
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter_inappbrowser/flutter_inappbrowser.dart'; import 'package:flutter_inappwebview/flutter_inappwebview.dart';
import 'custom_widget_test.dart'; import 'custom_widget_test.dart';
import 'main_test.dart'; import 'main_test.dart';
......
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter_inappbrowser/flutter_inappbrowser.dart'; import 'package:flutter_inappwebview/flutter_inappwebview.dart';
import 'main_test.dart'; import 'main_test.dart';
import 'custom_widget_test.dart'; import 'custom_widget_test.dart';
......
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter_inappbrowser/flutter_inappbrowser.dart'; import 'package:flutter_inappwebview/flutter_inappwebview.dart';
import 'main_test.dart'; import 'main_test.dart';
import 'custom_widget_test.dart'; import 'custom_widget_test.dart';
......
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter_inappbrowser/flutter_inappbrowser.dart'; import 'package:flutter_inappwebview/flutter_inappwebview.dart';
import 'main_test.dart'; import 'main_test.dart';
import 'custom_widget_test.dart'; import 'custom_widget_test.dart';
...@@ -40,7 +40,7 @@ class InAppWebViewOnDownloadStartTestState extends WidgetTestState { ...@@ -40,7 +40,7 @@ class InAppWebViewOnDownloadStartTestState extends WidgetTestState {
<h1>InAppWebViewOnDownloadStartTest</h1> <h1>InAppWebViewOnDownloadStartTest</h1>
<a id="download-file" href="http://${environment["NODE_SERVER_IP"]}:8082/test-download-file">download file</a> <a id="download-file" href="http://${environment["NODE_SERVER_IP"]}:8082/test-download-file">download file</a>
<script> <script>
window.addEventListener("flutterInAppBrowserPlatformReady", function(event) { window.addEventListener("flutterInAppWebViewPlatformReady", function(event) {
document.querySelector("#download-file").click(); document.querySelector("#download-file").click();
}); });
</script> </script>
......
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter_inappbrowser/flutter_inappbrowser.dart'; import 'package:flutter_inappwebview/flutter_inappwebview.dart';
import 'main_test.dart'; import 'main_test.dart';
import 'custom_widget_test.dart'; import 'custom_widget_test.dart';
......
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter_inappbrowser/flutter_inappbrowser.dart'; import 'package:flutter_inappwebview/flutter_inappwebview.dart';
import 'main_test.dart'; import 'main_test.dart';
import 'custom_widget_test.dart'; import 'custom_widget_test.dart';
......
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter_inappbrowser/flutter_inappbrowser.dart'; import 'package:flutter_inappwebview/flutter_inappwebview.dart';
import 'custom_widget_test.dart'; import 'custom_widget_test.dart';
import 'main_test.dart'; import 'main_test.dart';
......
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter_inappbrowser/flutter_inappbrowser.dart'; import 'package:flutter_inappwebview/flutter_inappwebview.dart';
import 'custom_widget_test.dart'; import 'custom_widget_test.dart';
import 'main_test.dart'; import 'main_test.dart';
......
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter/services.dart'; import 'package:flutter/services.dart';
import 'package:flutter_inappbrowser/flutter_inappbrowser.dart'; import 'package:flutter_inappwebview/flutter_inappwebview.dart';
import 'main_test.dart'; import 'main_test.dart';
import 'custom_widget_test.dart'; import 'custom_widget_test.dart';
......
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter_inappbrowser/flutter_inappbrowser.dart'; import 'package:flutter_inappwebview/flutter_inappwebview.dart';
import 'main_test.dart'; import 'main_test.dart';
import 'custom_widget_test.dart'; import 'custom_widget_test.dart';
......
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter_inappbrowser/flutter_inappbrowser.dart'; import 'package:flutter_inappwebview/flutter_inappwebview.dart';
import 'main_test.dart'; import 'main_test.dart';
import 'custom_widget_test.dart'; import 'custom_widget_test.dart';
......
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter_inappbrowser/flutter_inappbrowser.dart'; import 'package:flutter_inappwebview/flutter_inappwebview.dart';
import 'custom_widget_test.dart'; import 'custom_widget_test.dart';
import 'main_test.dart'; import 'main_test.dart';
......
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter_inappbrowser/flutter_inappbrowser.dart'; import 'package:flutter_inappwebview/flutter_inappwebview.dart';
import 'custom_widget_test.dart'; import 'custom_widget_test.dart';
import 'main_test.dart'; import 'main_test.dart';
......
...@@ -2,7 +2,7 @@ import 'dart:io'; ...@@ -2,7 +2,7 @@ import 'dart:io';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter_inappbrowser/flutter_inappbrowser.dart'; import 'package:flutter_inappwebview/flutter_inappwebview.dart';
import 'custom_widget_test.dart'; import 'custom_widget_test.dart';
import 'main_test.dart'; import 'main_test.dart';
......
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter_inappbrowser/flutter_inappbrowser.dart'; import 'package:flutter_inappwebview/flutter_inappwebview.dart';
import 'custom_widget_test.dart'; import 'custom_widget_test.dart';
import 'main_test.dart'; import 'main_test.dart';
......
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter_inappbrowser/flutter_inappbrowser.dart'; import 'package:flutter_inappwebview/flutter_inappwebview.dart';
import 'main_test.dart'; import 'main_test.dart';
import 'custom_widget_test.dart'; import 'custom_widget_test.dart';
......
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter_inappbrowser/flutter_inappbrowser.dart'; import 'package:flutter_inappwebview/flutter_inappwebview.dart';
import 'custom_widget_test.dart'; import 'custom_widget_test.dart';
import 'main_test.dart'; import 'main_test.dart';
......
import 'dart:io';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter_inappbrowser/flutter_inappbrowser.dart'; import 'package:flutter_inappwebview/flutter_inappwebview.dart';
import 'custom_widget_test.dart'; import 'custom_widget_test.dart';
import 'main_test.dart'; import 'main_test.dart';
......
...@@ -20,6 +20,7 @@ ...@@ -20,6 +20,7 @@
<excludeFolder url="file://$MODULE_DIR$/example/ios/.symlinks/plugins/flutter_inappbrowser/example/.dart_tool" /> <excludeFolder url="file://$MODULE_DIR$/example/ios/.symlinks/plugins/flutter_inappbrowser/example/.dart_tool" />
<excludeFolder url="file://$MODULE_DIR$/example/ios/.symlinks/plugins/flutter_inappbrowser/example/.pub" /> <excludeFolder url="file://$MODULE_DIR$/example/ios/.symlinks/plugins/flutter_inappbrowser/example/.pub" />
<excludeFolder url="file://$MODULE_DIR$/example/ios/.symlinks/plugins/flutter_inappbrowser/example/build" /> <excludeFolder url="file://$MODULE_DIR$/example/ios/.symlinks/plugins/flutter_inappbrowser/example/build" />
<excludeFolder url="file://$MODULE_DIR$/example/ios/.symlinks/plugins/flutter_inappbrowser/example/ios/Flutter/App.framework/flutter_assets/packages" />
<excludeFolder url="file://$MODULE_DIR$/example/ios/Flutter/App.framework/flutter_assets/packages" /> <excludeFolder url="file://$MODULE_DIR$/example/ios/Flutter/App.framework/flutter_assets/packages" />
<excludeFolder url="file://$MODULE_DIR$/flutter_inappbrowser_tests/.dart_tool" /> <excludeFolder url="file://$MODULE_DIR$/flutter_inappbrowser_tests/.dart_tool" />
<excludeFolder url="file://$MODULE_DIR$/flutter_inappbrowser_tests/.pub" /> <excludeFolder url="file://$MODULE_DIR$/flutter_inappbrowser_tests/.pub" />
......
// //
// CredentialDatabase.swift // CredentialDatabase.swift
// flutter_inappbrowser // flutter_inappwebview
// //
// Created by Lorenzo Pichilli on 29/10/2019. // Created by Lorenzo Pichilli on 29/10/2019.
// //
...@@ -22,7 +22,7 @@ class CredentialDatabase: NSObject, FlutterPlugin { ...@@ -22,7 +22,7 @@ class CredentialDatabase: NSObject, FlutterPlugin {
CredentialDatabase.registrar = registrar CredentialDatabase.registrar = registrar
CredentialDatabase.credentialStore = URLCredentialStorage.shared CredentialDatabase.credentialStore = URLCredentialStorage.shared
CredentialDatabase.channel = FlutterMethodChannel(name: "com.pichillilorenzo/flutter_inappbrowser_credential_database", binaryMessenger: registrar.messenger()) CredentialDatabase.channel = FlutterMethodChannel(name: "com.pichillilorenzo/flutter_inappwebview_credential_database", binaryMessenger: registrar.messenger())
registrar.addMethodCallDelegate(self, channel: CredentialDatabase.channel!) registrar.addMethodCallDelegate(self, channel: CredentialDatabase.channel!)
} }
......
// //
// CustomeSchemeHandler.swift // CustomeSchemeHandler.swift
// flutter_downloader // flutter_inappwebview
// //
// Created by Lorenzo Pichilli on 25/10/2019. // Created by Lorenzo Pichilli on 25/10/2019.
// //
......
// //
// FlutterWebViewController.swift // FlutterWebViewController.swift
// flutter_inappbrowser // flutter_inappwebview
// //
// Created by Lorenzo on 13/11/18. // Created by Lorenzo on 13/11/18.
// //
......
// //
// FlutterWebViewFactory.swift // FlutterWebViewFactory.swift
// flutter_inappbrowser // flutter_inappwebview
// //
// Created by Lorenzo on 13/11/18. // Created by Lorenzo on 13/11/18.
// //
......
// //
// InAppBrowserOptions.swift // InAppBrowserOptions.swift
// flutter_inappbrowser // flutter_inappwebview
// //
// Created by Lorenzo on 17/09/18. // Created by Lorenzo on 17/09/18.
// //
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment