Skip to content

Commit

Permalink
updated dependencies, added macos initial support
Browse files Browse the repository at this point in the history
  • Loading branch information
pichillilorenzo committed Sep 23, 2024
1 parent 7377be7 commit 0613a49
Show file tree
Hide file tree
Showing 82 changed files with 3,181 additions and 324 deletions.
33 changes: 33 additions & 0 deletions .metadata
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# 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: "2663184aa79047d0a33a14a3b607954f8fdd8730"
channel: "stable"

project_type: app

# Tracks metadata for the flutter migrate command
migration:
platforms:
- platform: root
create_revision: 2663184aa79047d0a33a14a3b607954f8fdd8730
base_revision: 2663184aa79047d0a33a14a3b607954f8fdd8730
- platform: macos
create_revision: 2663184aa79047d0a33a14a3b607954f8fdd8730
base_revision: 2663184aa79047d0a33a14a3b607954f8fdd8730
- platform: windows
create_revision: 2663184aa79047d0a33a14a3b607954f8fdd8730
base_revision: 2663184aa79047d0a33a14a3b607954f8fdd8730

# 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'
2 changes: 1 addition & 1 deletion ios/Flutter/AppFrameworkInfo.plist
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@
<key>CFBundleVersion</key>
<string>1.0</string>
<key>MinimumOSVersion</key>
<string>11.0</string>
<string>12.0</string>
</dict>
</plist>
2 changes: 1 addition & 1 deletion ios/Podfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Uncomment this line to define a global platform for your project
platform :ios, '11.0'
platform :ios, '12.0'

# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
ENV['COCOAPODS_DISABLE_STATS'] = 'true'
Expand Down
41 changes: 18 additions & 23 deletions ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,17 @@ PODS:
- flutter_inappwebview_ios (0.0.1):
- Flutter
- flutter_inappwebview_ios/Core (= 0.0.1)
- OrderedSet (~> 5.0)
- OrderedSet (~> 6.0.3)
- flutter_inappwebview_ios/Core (0.0.1):
- Flutter
- OrderedSet (~> 5.0)
- FMDB (2.7.5):
- FMDB/standard (= 2.7.5)
- FMDB/standard (2.7.5)
- OrderedSet (5.0.0)
- OrderedSet (~> 6.0.3)
- OrderedSet (6.0.3)
- package_info_plus (0.4.5):
- Flutter
- path_provider_foundation (0.0.1):
- Flutter
- FlutterMacOS
- permission_handler_apple (9.1.1):
- permission_handler_apple (9.3.0):
- Flutter
- share_extend (0.0.1):
- Flutter
Expand All @@ -29,7 +26,7 @@ PODS:
- FlutterMacOS
- sqflite (0.0.3):
- Flutter
- FMDB (>= 2.7.5)
- FlutterMacOS
- url_launcher_ios (0.0.1):
- Flutter

Expand All @@ -43,12 +40,11 @@ DEPENDENCIES:
- share_extend (from `.symlinks/plugins/share_extend/ios`)
- share_plus (from `.symlinks/plugins/share_plus/ios`)
- shared_preferences_foundation (from `.symlinks/plugins/shared_preferences_foundation/darwin`)
- sqflite (from `.symlinks/plugins/sqflite/ios`)
- sqflite (from `.symlinks/plugins/sqflite/darwin`)
- url_launcher_ios (from `.symlinks/plugins/url_launcher_ios/ios`)

SPEC REPOS:
trunk:
- FMDB
- OrderedSet

EXTERNAL SOURCES:
Expand All @@ -71,25 +67,24 @@ EXTERNAL SOURCES:
shared_preferences_foundation:
:path: ".symlinks/plugins/shared_preferences_foundation/darwin"
sqflite:
:path: ".symlinks/plugins/sqflite/ios"
:path: ".symlinks/plugins/sqflite/darwin"
url_launcher_ios:
:path: ".symlinks/plugins/url_launcher_ios/ios"

SPEC CHECKSUMS:
Flutter: f04841e97a9d0b0a8025694d0796dd46242b2854
Flutter: e0871f40cf51350855a761d2e70bf5af5b9b5de7
flutter_downloader: b7301ae057deadd4b1650dc7c05375f10ff12c39
flutter_inappwebview_ios: 97215cf7d4677db55df76782dbd2930c5e1c1ea0
FMDB: 2ce00b547f966261cd18927a3ddb07cb6f3db82a
OrderedSet: aaeb196f7fef5a9edf55d89760da9176ad40b93c
package_info_plus: 115f4ad11e0698c8c1c5d8a689390df880f47e85
path_provider_foundation: 29f094ae23ebbca9d3d0cec13889cd9060c0e943
permission_handler_apple: e76247795d700c14ea09e3a2d8855d41ee80a2e6
flutter_inappwebview_ios: 6f63631e2c62a7c350263b13fa5427aedefe81d4
OrderedSet: e539b66b644ff081c73a262d24ad552a69be3a94
package_info_plus: 58f0028419748fad15bf008b270aaa8e54380b1c
path_provider_foundation: 2b6b4c569c0fb62ec74538f866245ac84301af46
permission_handler_apple: 9878588469a2b0d0fc1e048d9f43605f92e6cec2
share_extend: b6748dc53695587891126a89533b862b92548c7b
share_plus: c3fef564749587fc939ef86ffb283ceac0baf9f5
shared_preferences_foundation: 5b919d13b803cadd15ed2dc053125c68730e5126
sqflite: 31f7eba61e3074736dff8807a9b41581e4f7f15a
url_launcher_ios: bf5ce03e0e2088bad9cc378ea97fa0ed5b49673b
share_plus: 8875f4f2500512ea181eef553c3e27dba5135aad
shared_preferences_foundation: fcdcbc04712aee1108ac7fda236f363274528f78
sqflite: 673a0e54cc04b7d6dba8d24fb8095b31c3a99eec
url_launcher_ios: 5334b05cef931de560670eeae103fd3e431ac3fe

PODFILE CHECKSUM: 7368163408c647b7eb699d0d788ba6718e18fb8d
PODFILE CHECKSUM: 4e8f8b2be68aeea4c0d5beb6ff1e79fface1d048

COCOAPODS: 1.13.0
26 changes: 22 additions & 4 deletions ios/Runner.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@
9705A1C41CF9048500538489 /* Embed Frameworks */,
3B06AD1E1E4923F5004D2608 /* Thin Binary */,
37FF70F36850709A3BFADFDB /* [CP] Embed Pods Frameworks */,
ADCA64C961EA4FED14CC71A2 /* [CP] Copy Pods Resources */,
);
buildRules = (
);
Expand All @@ -164,7 +165,7 @@
isa = PBXProject;
attributes = {
BuildIndependentTargetsInParallel = YES;
LastUpgradeCheck = 1430;
LastUpgradeCheck = 1510;
ORGANIZATIONNAME = "";
TargetAttributes = {
97C146ED1CF9000F007C117D = {
Expand Down Expand Up @@ -276,6 +277,23 @@
shellPath = /bin/sh;
shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build";
};
ADCA64C961EA4FED14CC71A2 /* [CP] Copy Pods Resources */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputFileListPaths = (
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources-${CONFIGURATION}-input-files.xcfilelist",
);
name = "[CP] Copy Pods Resources";
outputFileListPaths = (
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources-${CONFIGURATION}-output-files.xcfilelist",
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources.sh\"\n";
showEnvVarsInLog = 0;
};
/* End PBXShellScriptBuildPhase section */

/* Begin PBXSourcesBuildPhase section */
Expand Down Expand Up @@ -386,7 +404,7 @@
"$(inherited)",
"$(PROJECT_DIR)/Flutter",
);
PRODUCT_BUNDLE_IDENTIFIER = "com.pichillilorenzo.flutter-browser-app";
PRODUCT_BUNDLE_IDENTIFIER = "com.pichillilorenzo.flutter-browser-app2";
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
Expand Down Expand Up @@ -531,7 +549,7 @@
"$(inherited)",
"$(PROJECT_DIR)/Flutter",
);
PRODUCT_BUNDLE_IDENTIFIER = "com.pichillilorenzo.flutter-browser-app";
PRODUCT_BUNDLE_IDENTIFIER = "com.pichillilorenzo.flutter-browser-app2";
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
Expand Down Expand Up @@ -565,7 +583,7 @@
"$(inherited)",
"$(PROJECT_DIR)/Flutter",
);
PRODUCT_BUNDLE_IDENTIFIER = "com.pichillilorenzo.flutter-browser-app";
PRODUCT_BUNDLE_IDENTIFIER = "com.pichillilorenzo.flutter-browser-app2";
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1430"
LastUpgradeVersion = "1510"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
4 changes: 2 additions & 2 deletions lib/animated_flutter_browser_logo.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ class AnimatedFlutterBrowserLogo extends StatefulWidget {
final double size;

const AnimatedFlutterBrowserLogo({
Key? key,
super.key,
this.animationDuration = const Duration(milliseconds: 1000),
this.size = 100.0,
}) : super(key: key);
});

@override
State<StatefulWidget> createState() => _AnimatedFlutterBrowserLogoState();
Expand Down
5 changes: 2 additions & 3 deletions lib/app_bar/browser_app_bar.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@ import 'package:flutter_browser/app_bar/find_on_page_app_bar.dart';
import 'package:flutter_browser/app_bar/webview_tab_app_bar.dart';

class BrowserAppBar extends StatefulWidget implements PreferredSizeWidget {
const BrowserAppBar({Key? key})
: preferredSize = const Size.fromHeight(kToolbarHeight),
super(key: key);
const BrowserAppBar({super.key})
: preferredSize = const Size.fromHeight(kToolbarHeight);

@override
State<BrowserAppBar> createState() => _BrowserAppBarState();
Expand Down
2 changes: 1 addition & 1 deletion lib/app_bar/find_on_page_app_bar.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import 'package:provider/provider.dart';
class FindOnPageAppBar extends StatefulWidget {
final void Function()? hideFindOnPage;

const FindOnPageAppBar({Key? key, this.hideFindOnPage}) : super(key: key);
const FindOnPageAppBar({super.key, this.hideFindOnPage});

@override
State<FindOnPageAppBar> createState() => _FindOnPageAppBarState();
Expand Down
8 changes: 3 additions & 5 deletions lib/app_bar/tab_viewer_app_bar.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,8 @@ import '../custom_popup_menu_item.dart';
import '../tab_viewer_popup_menu_actions.dart';

class TabViewerAppBar extends StatefulWidget implements PreferredSizeWidget {
const TabViewerAppBar({Key? key})
: preferredSize = const Size.fromHeight(kToolbarHeight),
super(key: key);
const TabViewerAppBar({super.key})
: preferredSize = const Size.fromHeight(kToolbarHeight);

@override
State<TabViewerAppBar> createState() => _TabViewerAppBarState();
Expand Down Expand Up @@ -65,15 +64,14 @@ class _TabViewerAppBarState extends State<TabViewerAppBar> {
left: 10.0, top: 15.0, right: 10.0, bottom: 15.0),
child: Container(
decoration: BoxDecoration(
border: Border.all(width: 2.0, color: Colors.white),
border: Border.all(width: 2.0),
shape: BoxShape.rectangle,
borderRadius: BorderRadius.circular(5.0)),
constraints: const BoxConstraints(minWidth: 25.0),
child: Center(
child: Text(
browserModel.webViewTabs.length.toString(),
style: const TextStyle(
color: Colors.white,
fontWeight: FontWeight.bold,
fontSize: 14.0),
)),
Expand Down
5 changes: 2 additions & 3 deletions lib/app_bar/url_info_popup.dart
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,10 @@ class UrlInfoPopup extends StatefulWidget {
final Function()? onWebViewTabSettingsClicked;

const UrlInfoPopup(
{Key? key,
{super.key,
required this.route,
required this.transitionDuration,
this.onWebViewTabSettingsClicked})
: super(key: key);
this.onWebViewTabSettingsClicked});

@override
State<UrlInfoPopup> createState() => _UrlInfoPopupState();
Expand Down
28 changes: 15 additions & 13 deletions lib/app_bar/webview_tab_app_bar.dart
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import '../webview_tab.dart';
class WebViewTabAppBar extends StatefulWidget {
final void Function()? showFindOnPage;

const WebViewTabAppBar({Key? key, this.showFindOnPage}) : super(key: key);
const WebViewTabAppBar({super.key, this.showFindOnPage});

@override
State<WebViewTabAppBar> createState() => _WebViewTabAppBarState();
Expand Down Expand Up @@ -323,17 +323,14 @@ class _WebViewTabAppBarState extends State<WebViewTabAppBar>
margin: const EdgeInsets.only(
left: 10.0, top: 15.0, right: 10.0, bottom: 15.0),
decoration: BoxDecoration(
border: Border.all(width: 2.0, color: Colors.white),
border: Border.all(width: 2.0),
shape: BoxShape.rectangle,
borderRadius: BorderRadius.circular(5.0)),
constraints: const BoxConstraints(minWidth: 25.0),
child: Center(
child: Text(
browserModel.webViewTabs.length.toString(),
style: const TextStyle(
color: Colors.white,
fontWeight: FontWeight.bold,
fontSize: 14.0),
style: const TextStyle(fontWeight: FontWeight.bold, fontSize: 14.0),
)),
),
),
Expand Down Expand Up @@ -366,7 +363,7 @@ class _WebViewTabAppBarState extends State<WebViewTabAppBar>

var children = <Widget>[];

if (Util.isIOS()) {
if (Util.isIOS() || Util.isMacOS()) {
children.add(
SizedBox(
width: 35.0,
Expand Down Expand Up @@ -723,9 +720,13 @@ class _WebViewTabAppBarState extends State<WebViewTabAppBar>
showWebArchives();
break;
case PopupMenuActions.FIND_ON_PAGE:
var isFindInteractionEnabled = currentWebViewModel.settings?.isFindInteractionEnabled ?? false;
var findInteractionController = currentWebViewModel.findInteractionController;
if (Util.isIOS() && isFindInteractionEnabled && findInteractionController != null) {
var isFindInteractionEnabled =
currentWebViewModel.settings?.isFindInteractionEnabled ?? false;
var findInteractionController =
currentWebViewModel.findInteractionController;
if ((Util.isIOS() || Util.isMacOS()) &&
isFindInteractionEnabled &&
findInteractionController != null) {
await findInteractionController.presentFindNavigator();
} else if (widget.showFindOnPage != null) {
widget.showFindOnPage!();
Expand Down Expand Up @@ -1006,9 +1007,10 @@ class _WebViewTabAppBarState extends State<WebViewTabAppBar>

var currentSettings = await webViewController.getSettings();
if (currentSettings != null) {
currentSettings.preferredContentMode = webViewModel?.isDesktopMode ?? false
? UserPreferredContentMode.DESKTOP
: UserPreferredContentMode.RECOMMENDED;
currentSettings.preferredContentMode =
webViewModel?.isDesktopMode ?? false
? UserPreferredContentMode.DESKTOP
: UserPreferredContentMode.RECOMMENDED;
await webViewController.setSettings(settings: currentSettings);
}
await webViewController.reload();
Expand Down
Loading

0 comments on commit 0613a49

Please sign in to comment.