updated integration tests
This commit is contained in:
parent
75c7473e3e
commit
83dae97fda
|
@ -1 +1 @@
|
||||||
final environment = {"NODE_SERVER_IP":"192.168.1.129"};
|
final environment = {"NODE_SERVER_IP":"192.168.1.123"};
|
|
@ -397,7 +397,7 @@ void main() {
|
||||||
late File fileJs;
|
late File fileJs;
|
||||||
|
|
||||||
setUpAll(() async {
|
setUpAll(() async {
|
||||||
appSupportDir = (await getApplicationSupportDirectory())!;
|
appSupportDir = (await getApplicationSupportDirectory());
|
||||||
|
|
||||||
final Directory htmlFolder = Directory('${appSupportDir.path}/html/');
|
final Directory htmlFolder = Directory('${appSupportDir.path}/html/');
|
||||||
if (!await htmlFolder.exists()) {
|
if (!await htmlFolder.exists()) {
|
||||||
|
@ -476,7 +476,7 @@ void main() {
|
||||||
}, skip: !Platform.isIOS);
|
}, skip: !Platform.isIOS);
|
||||||
|
|
||||||
testWidgets(
|
testWidgets(
|
||||||
'loadUrl with file:// scheme and iosAllowingReadAccessTo argument',
|
'loadUrl with file:// scheme and allowingReadAccessTo argument',
|
||||||
(WidgetTester tester) async {
|
(WidgetTester tester) async {
|
||||||
final Completer<ConsoleMessage?> consoleMessageShouldNotComplete =
|
final Completer<ConsoleMessage?> consoleMessageShouldNotComplete =
|
||||||
Completer<ConsoleMessage?>();
|
Completer<ConsoleMessage?>();
|
||||||
|
@ -511,7 +511,7 @@ void main() {
|
||||||
controller.loadUrl(
|
controller.loadUrl(
|
||||||
urlRequest:
|
urlRequest:
|
||||||
URLRequest(url: Uri.parse('file://${fileHtml.path}')),
|
URLRequest(url: Uri.parse('file://${fileHtml.path}')),
|
||||||
iosAllowingReadAccessTo:
|
allowingReadAccessTo:
|
||||||
Uri.parse('file://${appSupportDir.path}/'));
|
Uri.parse('file://${appSupportDir.path}/'));
|
||||||
},
|
},
|
||||||
onConsoleMessage: (controller, consoleMessage) {
|
onConsoleMessage: (controller, consoleMessage) {
|
||||||
|
@ -1558,6 +1558,7 @@ void main() {
|
||||||
onWebViewCreated: (controller) {
|
onWebViewCreated: (controller) {
|
||||||
controllerCompleter.complete(controller);
|
controllerCompleter.complete(controller);
|
||||||
},
|
},
|
||||||
|
initialUrlRequest: URLRequest(url: Uri.parse("about:blank")),
|
||||||
initialOptions: InAppWebViewGroupOptions(
|
initialOptions: InAppWebViewGroupOptions(
|
||||||
crossPlatform: InAppWebViewOptions(
|
crossPlatform: InAppWebViewOptions(
|
||||||
javaScriptEnabled: true,
|
javaScriptEnabled: true,
|
||||||
|
@ -3804,7 +3805,7 @@ setTimeout(function() {
|
||||||
""",
|
""",
|
||||||
encoding: 'utf-8',
|
encoding: 'utf-8',
|
||||||
mimeType: 'text/html',
|
mimeType: 'text/html',
|
||||||
androidHistoryUrl: Uri.parse("https://flutter.dev"),
|
historyUrl: Uri.parse("https://flutter.dev"),
|
||||||
baseUrl: Uri.parse("https://flutter.dev"));
|
baseUrl: Uri.parse("https://flutter.dev"));
|
||||||
await pageLoads.stream.first;
|
await pageLoads.stream.first;
|
||||||
|
|
||||||
|
@ -4550,7 +4551,7 @@ setTimeout(function() {
|
||||||
await pageLoaded.future;
|
await pageLoaded.future;
|
||||||
|
|
||||||
await expectLater(
|
await expectLater(
|
||||||
controller.zoomBy(zoomFactor: 3.0, iosAnimated: true), completes);
|
controller.zoomBy(zoomFactor: 3.0, animated: true), completes);
|
||||||
});
|
});
|
||||||
|
|
||||||
testWidgets('getZoomScale', (WidgetTester tester) async {
|
testWidgets('getZoomScale', (WidgetTester tester) async {
|
||||||
|
@ -4853,7 +4854,7 @@ setTimeout(function() {
|
||||||
fileName = fileName + WebArchiveFormat.WEBARCHIVE.toValue();
|
fileName = fileName + WebArchiveFormat.WEBARCHIVE.toValue();
|
||||||
}
|
}
|
||||||
|
|
||||||
var fullPath = supportDir!.path + Platform.pathSeparator + fileName;
|
var fullPath = supportDir.path + Platform.pathSeparator + fileName;
|
||||||
var path = await controller.saveWebArchive(filePath: fullPath);
|
var path = await controller.saveWebArchive(filePath: fullPath);
|
||||||
expect(path, isNotNull);
|
expect(path, isNotNull);
|
||||||
expect(path, endsWith(fileName));
|
expect(path, endsWith(fileName));
|
||||||
|
|
|
@ -1,18 +0,0 @@
|
||||||
#
|
|
||||||
# NOTE: This podspec is NOT to be published. It is only used as a local source!
|
|
||||||
# This is a generated file; do not edit or check into version control.
|
|
||||||
#
|
|
||||||
|
|
||||||
Pod::Spec.new do |s|
|
|
||||||
s.name = 'Flutter'
|
|
||||||
s.version = '1.0.0'
|
|
||||||
s.summary = 'High-performance, high-fidelity mobile apps.'
|
|
||||||
s.homepage = 'https://flutter.io'
|
|
||||||
s.license = { :type => 'MIT' }
|
|
||||||
s.author = { 'Flutter Dev Team' => 'flutter-dev@googlegroups.com' }
|
|
||||||
s.source = { :git => 'https://github.com/flutter/engine', :tag => s.version.to_s }
|
|
||||||
s.ios.deployment_target = '9.0'
|
|
||||||
# Framework linking is handled by Flutter tooling, not CocoaPods.
|
|
||||||
# Add a placeholder to satisfy `s.dependency 'Flutter'` plugin podspecs.
|
|
||||||
s.vendored_frameworks = 'path/to/nothing'
|
|
||||||
end
|
|
|
@ -3,12 +3,11 @@
|
||||||
export "FLUTTER_ROOT=/Users/lorenzopichilli/fvm/versions/2.10.4"
|
export "FLUTTER_ROOT=/Users/lorenzopichilli/fvm/versions/2.10.4"
|
||||||
export "FLUTTER_APPLICATION_PATH=/Users/lorenzopichilli/Desktop/flutter_inappwebview/example"
|
export "FLUTTER_APPLICATION_PATH=/Users/lorenzopichilli/Desktop/flutter_inappwebview/example"
|
||||||
export "COCOAPODS_PARALLEL_CODE_SIGN=true"
|
export "COCOAPODS_PARALLEL_CODE_SIGN=true"
|
||||||
export "FLUTTER_TARGET=/Users/lorenzopichilli/Desktop/flutter_inappwebview/example/lib/main.dart"
|
export "FLUTTER_TARGET=lib/main.dart"
|
||||||
export "FLUTTER_BUILD_DIR=build"
|
export "FLUTTER_BUILD_DIR=build"
|
||||||
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 "DART_DEFINES=Zmx1dHRlci5pbnNwZWN0b3Iuc3RydWN0dXJlZEVycm9ycz10cnVl,RkxVVFRFUl9XRUJfQVVUT19ERVRFQ1Q9dHJ1ZQ=="
|
|
||||||
export "DART_OBFUSCATION=false"
|
export "DART_OBFUSCATION=false"
|
||||||
export "TRACK_WIDGET_CREATION=true"
|
export "TRACK_WIDGET_CREATION=false"
|
||||||
export "TREE_SHAKE_ICONS=false"
|
export "TREE_SHAKE_ICONS=false"
|
||||||
export "PACKAGE_CONFIG=/Users/lorenzopichilli/Desktop/flutter_inappwebview/example/.dart_tool/package_config.json"
|
export "PACKAGE_CONFIG=.packages"
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
/* Begin PBXBuildFile section */
|
/* Begin PBXBuildFile section */
|
||||||
020EF14E4245221B2C22ACE5 /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = B0FC2CF7A6002799890B3102 /* Pods_Runner.framework */; };
|
020EF14E4245221B2C22ACE5 /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = B0FC2CF7A6002799890B3102 /* Pods_Runner.framework */; };
|
||||||
1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; };
|
1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; };
|
||||||
25A517508F43E58C47090625 /* BuildFile in Frameworks */ = {isa = PBXBuildFile; };
|
25A517508F43E58C47090625 /* (null) in Frameworks */ = {isa = PBXBuildFile; };
|
||||||
3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; };
|
3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; };
|
||||||
61FF730023634CA10069C557 /* libsqlite3.tbd in Frameworks */ = {isa = PBXBuildFile; fileRef = 61FF72FF23634CA10069C557 /* libsqlite3.tbd */; };
|
61FF730023634CA10069C557 /* libsqlite3.tbd in Frameworks */ = {isa = PBXBuildFile; fileRef = 61FF72FF23634CA10069C557 /* libsqlite3.tbd */; };
|
||||||
74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; };
|
74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; };
|
||||||
|
@ -58,7 +58,7 @@
|
||||||
buildActionMask = 2147483647;
|
buildActionMask = 2147483647;
|
||||||
files = (
|
files = (
|
||||||
61FF730023634CA10069C557 /* libsqlite3.tbd in Frameworks */,
|
61FF730023634CA10069C557 /* libsqlite3.tbd in Frameworks */,
|
||||||
25A517508F43E58C47090625 /* BuildFile in Frameworks */,
|
25A517508F43E58C47090625 /* (null) in Frameworks */,
|
||||||
020EF14E4245221B2C22ACE5 /* Pods_Runner.framework in Frameworks */,
|
020EF14E4245221B2C22ACE5 /* Pods_Runner.framework in Frameworks */,
|
||||||
);
|
);
|
||||||
runOnlyForDeploymentPostprocessing = 0;
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
|
@ -451,15 +451,12 @@
|
||||||
"$(PROJECT_DIR)/Flutter",
|
"$(PROJECT_DIR)/Flutter",
|
||||||
);
|
);
|
||||||
INFOPLIST_FILE = Runner/Info.plist;
|
INFOPLIST_FILE = Runner/Info.plist;
|
||||||
LD_RUNPATH_SEARCH_PATHS = (
|
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
|
||||||
"$(inherited)",
|
|
||||||
"@executable_path/Frameworks",
|
|
||||||
);
|
|
||||||
LIBRARY_SEARCH_PATHS = (
|
LIBRARY_SEARCH_PATHS = (
|
||||||
"$(inherited)",
|
"$(inherited)",
|
||||||
"$(PROJECT_DIR)/Flutter",
|
"$(PROJECT_DIR)/Flutter",
|
||||||
);
|
);
|
||||||
PRODUCT_BUNDLE_IDENTIFIER = "flutter-inappwebviewExample";
|
PRODUCT_BUNDLE_IDENTIFIER = "com.pichillilorenzo.flutter-inappwebview-Example";
|
||||||
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";
|
||||||
|
@ -482,15 +479,12 @@
|
||||||
"$(PROJECT_DIR)/Flutter",
|
"$(PROJECT_DIR)/Flutter",
|
||||||
);
|
);
|
||||||
INFOPLIST_FILE = Runner/Info.plist;
|
INFOPLIST_FILE = Runner/Info.plist;
|
||||||
LD_RUNPATH_SEARCH_PATHS = (
|
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
|
||||||
"$(inherited)",
|
|
||||||
"@executable_path/Frameworks",
|
|
||||||
);
|
|
||||||
LIBRARY_SEARCH_PATHS = (
|
LIBRARY_SEARCH_PATHS = (
|
||||||
"$(inherited)",
|
"$(inherited)",
|
||||||
"$(PROJECT_DIR)/Flutter",
|
"$(PROJECT_DIR)/Flutter",
|
||||||
);
|
);
|
||||||
PRODUCT_BUNDLE_IDENTIFIER = com.pichillilorenzo.flutter_inappwebviewExample;
|
PRODUCT_BUNDLE_IDENTIFIER = "com.pichillilorenzo.flutter-inappwebview-Example";
|
||||||
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;
|
||||||
|
|
|
@ -2,10 +2,6 @@
|
||||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||||
<plist version="1.0">
|
<plist version="1.0">
|
||||||
<dict>
|
<dict>
|
||||||
<key>NSDocumentsFolderUsageDescription</key>
|
|
||||||
<string>InAppWebView requires access to documents folder</string>
|
|
||||||
<key>NSMicrophoneUsageDescription</key>
|
|
||||||
<string>InAppWebView requires access to mic.</string>
|
|
||||||
<key>CFBundleDevelopmentRegion</key>
|
<key>CFBundleDevelopmentRegion</key>
|
||||||
<string>en</string>
|
<string>en</string>
|
||||||
<key>CFBundleExecutable</key>
|
<key>CFBundleExecutable</key>
|
||||||
|
@ -28,19 +24,31 @@
|
||||||
<true/>
|
<true/>
|
||||||
<key>NSAppTransportSecurity</key>
|
<key>NSAppTransportSecurity</key>
|
||||||
<dict>
|
<dict>
|
||||||
<key>NSAllowsArbitraryLoadsInWebContent</key>
|
|
||||||
<true/>
|
|
||||||
<key>NSAllowsArbitraryLoads</key>
|
<key>NSAllowsArbitraryLoads</key>
|
||||||
<true/>
|
<true/>
|
||||||
|
<key>NSAllowsArbitraryLoadsInWebContent</key>
|
||||||
|
<true/>
|
||||||
<key>NSAllowsLocalNetworking</key>
|
<key>NSAllowsLocalNetworking</key>
|
||||||
<true/>
|
<true/>
|
||||||
</dict>
|
</dict>
|
||||||
|
<key>NSBonjourServices</key>
|
||||||
|
<array>
|
||||||
|
<string>_dartobservatory._tcp</string>
|
||||||
|
</array>
|
||||||
|
<key>NSCameraUsageDescription</key>
|
||||||
|
<string>InAppWebView requires access to cam.</string>
|
||||||
|
<key>NSDocumentsFolderUsageDescription</key>
|
||||||
|
<string>InAppWebView requires access to documents folder</string>
|
||||||
|
<key>NSLocalNetworkUsageDescription</key>
|
||||||
|
<string>Allow Flutter tools on your computer to connect and debug your application.</string>
|
||||||
<key>NSLocationAlwaysAndWhenInUseUsageDescription</key>
|
<key>NSLocationAlwaysAndWhenInUseUsageDescription</key>
|
||||||
<string>Need location</string>
|
<string>Need location</string>
|
||||||
<key>NSLocationAlwaysUsageDescription</key>
|
<key>NSLocationAlwaysUsageDescription</key>
|
||||||
<string>Need location</string>
|
<string>Need location</string>
|
||||||
<key>NSLocationWhenInUseUsageDescription</key>
|
<key>NSLocationWhenInUseUsageDescription</key>
|
||||||
<string>Need location</string>
|
<string>Need location</string>
|
||||||
|
<key>NSMicrophoneUsageDescription</key>
|
||||||
|
<string>InAppWebView requires access to mic.</string>
|
||||||
<key>UIBackgroundModes</key>
|
<key>UIBackgroundModes</key>
|
||||||
<array>
|
<array>
|
||||||
<string>fetch</string>
|
<string>fetch</string>
|
||||||
|
@ -63,15 +71,7 @@
|
||||||
<string>UIInterfaceOrientationLandscapeLeft</string>
|
<string>UIInterfaceOrientationLandscapeLeft</string>
|
||||||
<string>UIInterfaceOrientationLandscapeRight</string>
|
<string>UIInterfaceOrientationLandscapeRight</string>
|
||||||
</array>
|
</array>
|
||||||
<key>NSBonjourServices</key>
|
|
||||||
<array>
|
|
||||||
<string>_dartobservatory._tcp</string>
|
|
||||||
</array>
|
|
||||||
<key>UIViewControllerBasedStatusBarAppearance</key>
|
<key>UIViewControllerBasedStatusBarAppearance</key>
|
||||||
<false/>
|
<false/>
|
||||||
<key>NSCameraUsageDescription</key>
|
|
||||||
<string>InAppWebView requires access to cam.</string>
|
|
||||||
<key>NSLocalNetworkUsageDescription</key>
|
|
||||||
<string>Allow Flutter tools on your computer to connect and debug your application.</string>
|
|
||||||
</dict>
|
</dict>
|
||||||
</plist>
|
</plist>
|
||||||
|
|
|
@ -7,8 +7,8 @@ function error() {
|
||||||
echo "$@" 1>&2
|
echo "$@" 1>&2
|
||||||
}
|
}
|
||||||
|
|
||||||
# on macOS local IP can be found using $(ipconfig getifaddr en0)
|
# on macOS local IP can be found using something like $(ipconfig getifaddr en0)
|
||||||
# on linux local IP can be found using $(ifconfig en0 | grep "inet " | grep -Fv 127.0.0.1 | awk '{print $2}') or $(ip route get 1 | awk '{print $NF;exit}')
|
# on linux local IP can be found using something like $(ifconfig en0 | grep "inet " | grep -Fv 127.0.0.1 | awk '{print $2}') or $(ip route get 1 | awk '{print $NF;exit}')
|
||||||
export NODE_SERVER_IP=$1
|
export NODE_SERVER_IP=$1
|
||||||
FAILED=0
|
FAILED=0
|
||||||
|
|
||||||
|
@ -17,6 +17,7 @@ dart $PROJECT_DIR/tool/env.dart
|
||||||
cd $PROJECT_DIR/nodejs_server_test_auth_basic_and_ssl
|
cd $PROJECT_DIR/nodejs_server_test_auth_basic_and_ssl
|
||||||
node index.js &
|
node index.js &
|
||||||
|
|
||||||
|
flutter --version
|
||||||
flutter clean
|
flutter clean
|
||||||
cd $PROJECT_DIR/example
|
cd $PROJECT_DIR/example
|
||||||
flutter clean
|
flutter clean
|
||||||
|
|
Loading…
Reference in New Issue