diff --git a/dev_packages/generators/pubspec.yaml b/dev_packages/generators/pubspec.yaml index d9c7539625f235ea68bf9e61561fc11b1cb24d28..3dd6677da4c20bee57f7c845dff245123c722424 100755 --- a/dev_packages/generators/pubspec.yaml +++ b/dev_packages/generators/pubspec.yaml @@ -14,7 +14,7 @@ dependencies: source_gen: ^1.3.1 flutter_inappwebview_internal_annotations: git: - url: "https://gitee.com/openharmony-sig/flutter_inappwebview.git" + url: "https://gitee.com/wefuture/flutter_inappwebview.git" path: "dev_packages/flutter_inappwebview_internal_annotations" dev_dependencies: diff --git a/flutter_inappwebview/example/pubspec.yaml b/flutter_inappwebview/example/pubspec.yaml index 1baca98a2c8d53e71f973cc7ce16745ab2194ee5..4b6b5bdb1610d6d863fbd202ee29248637b91728 100755 --- a/flutter_inappwebview/example/pubspec.yaml +++ b/flutter_inappwebview/example/pubspec.yaml @@ -25,16 +25,16 @@ dependencies: flutter_downloader: 1.10.2 path_provider: git: - url: https://gitee.com/openharmony-sig/flutter_packages.git + url: https://gitee.com/wefuture/flutter_packages.git path: packages/path_provider/path_provider ref: d3f6d21dc3792730ae6499cf196c380575772832 permission_handler: git: - url: https://gitee.com/openharmony-sig/flutter_permission_handler.git + url: https://gitee.com/wefuture/flutter_permission_handler.git path: permission_handler url_launcher: git: - url: https://gitee.com/openharmony-sig/flutter_packages.git + url: https://gitee.com/wefuture/flutter_packages.git path: packages/url_launcher/url_launcher ref: d3f6d21dc3792730ae6499cf196c380575772832 pointer_interceptor: ^0.9.3+4 @@ -58,12 +58,12 @@ dependency_overrides: path: ../../flutter_inappwebview_ohos path_provider_ohos: git: - url: https://gitee.com/openharmony-sig/flutter_packages.git + url: https://gitee.com/wefuture/flutter_packages.git path: packages/path_provider/path_provider_ohos ref: d3f6d21dc3792730ae6499cf196c380575772832 url_launcher_ohos: git: - url: https://gitee.com/openharmony-sig/flutter_packages.git + url: https://gitee.com/wefuture/flutter_packages.git path: packages/url_launcher/url_launcher_ohos ref: d3f6d21dc3792730ae6499cf196c380575772832 diff --git a/flutter_inappwebview/pubspec.yaml b/flutter_inappwebview/pubspec.yaml index e038ccad6ac9f7ef39da49f09328ecce7cbc85d4..944a67c1ef8f15679dca76343b60e63dc29204f2 100755 --- a/flutter_inappwebview/pubspec.yaml +++ b/flutter_inappwebview/pubspec.yaml @@ -20,27 +20,27 @@ dependencies: sdk: flutter flutter_inappwebview_platform_interface: git: - url: "https://gitee.com/openharmony-sig/flutter_inappwebview.git" + url: "https://gitee.com/wefuture/flutter_inappwebview.git" path: "flutter_inappwebview_platform_interface" flutter_inappwebview_android: git: - url: "https://gitee.com/openharmony-sig/flutter_inappwebview.git" + url: "https://gitee.com/wefuture/flutter_inappwebview.git" path: "flutter_inappwebview_android" flutter_inappwebview_ios: git: - url: "https://gitee.com/openharmony-sig/flutter_inappwebview.git" + url: "https://gitee.com/wefuture/flutter_inappwebview.git" path: "flutter_inappwebview_ios" flutter_inappwebview_macos: git: - url: "https://gitee.com/openharmony-sig/flutter_inappwebview.git" + url: "https://gitee.com/wefuture/flutter_inappwebview.git" path: "flutter_inappwebview_macos" flutter_inappwebview_web: git: - url: "https://gitee.com/openharmony-sig/flutter_inappwebview.git" + url: "https://gitee.com/wefuture/flutter_inappwebview.git" path: "flutter_inappwebview_web" flutter_inappwebview_ohos: git: - url: "https://gitee.com/openharmony-sig/flutter_inappwebview.git" + url: "https://gitee.com/wefuture/flutter_inappwebview.git" path: "flutter_inappwebview_ohos" diff --git a/flutter_inappwebview_android/pubspec.yaml b/flutter_inappwebview_android/pubspec.yaml index 10de24b94f6466ef58b6404241f12bbecc3150cd..ff997de58bfc797ebe88e70ab4f8039e035c965e 100644 --- a/flutter_inappwebview_android/pubspec.yaml +++ b/flutter_inappwebview_android/pubspec.yaml @@ -20,7 +20,7 @@ dependencies: sdk: flutter flutter_inappwebview_platform_interface: git: - url: "https://gitee.com/openharmony-sig/flutter_inappwebview.git" + url: "https://gitee.com/wefuture/flutter_inappwebview.git" path: "flutter_inappwebview_platform_interface" dev_dependencies: diff --git a/flutter_inappwebview_ios/pubspec.yaml b/flutter_inappwebview_ios/pubspec.yaml index 7981692bafd82d83f87a9afb2131a40491753783..b4d3c2c9f56172405221eb41ab766467780d1d59 100644 --- a/flutter_inappwebview_ios/pubspec.yaml +++ b/flutter_inappwebview_ios/pubspec.yaml @@ -20,7 +20,7 @@ dependencies: sdk: flutter flutter_inappwebview_platform_interface: git: - url: "https://gitee.com/openharmony-sig/flutter_inappwebview.git" + url: "https://gitee.com/wefuture/flutter_inappwebview.git" path: "flutter_inappwebview_platform_interface" dev_dependencies: diff --git a/flutter_inappwebview_macos/pubspec.yaml b/flutter_inappwebview_macos/pubspec.yaml index 92f2d395c23c3a5a655e3890dfa263b675118481..37d7b5513a6291386f6f089d006eafa92d9d257b 100644 --- a/flutter_inappwebview_macos/pubspec.yaml +++ b/flutter_inappwebview_macos/pubspec.yaml @@ -20,7 +20,7 @@ dependencies: sdk: flutter flutter_inappwebview_platform_interface: git: - url: "https://gitee.com/openharmony-sig/flutter_inappwebview.git" + url: "https://gitee.com/wefuture/flutter_inappwebview.git" path: "flutter_inappwebview_platform_interface" dev_dependencies: diff --git a/flutter_inappwebview_ohos/ohos/src/main/ets/components/plugin/webview/in_app_webview/InAppWebViewSettings.ets b/flutter_inappwebview_ohos/ohos/src/main/ets/components/plugin/webview/in_app_webview/InAppWebViewSettings.ets index 003bc328bcf2978f7c8a5d65851593e470749775..9cca8a557067229c3dc50badb14ab617f721acb1 100644 --- a/flutter_inappwebview_ohos/ohos/src/main/ets/components/plugin/webview/in_app_webview/InAppWebViewSettings.ets +++ b/flutter_inappwebview_ohos/ohos/src/main/ets/components/plugin/webview/in_app_webview/InAppWebViewSettings.ets @@ -75,6 +75,7 @@ export default class InAppWebViewSettings implements ISettings): ISettings { let keys = settings.keys(); @@ -282,6 +283,9 @@ export default class InAppWebViewSettings implements ISettings { diff --git a/flutter_inappwebview_ohos/pubspec.yaml b/flutter_inappwebview_ohos/pubspec.yaml index 9ea1ed2018f74d372873833ecd8f9d15fd4b934e..8c16cd1378990eba2295ac3e63f9ca3160d9641a 100644 --- a/flutter_inappwebview_ohos/pubspec.yaml +++ b/flutter_inappwebview_ohos/pubspec.yaml @@ -25,7 +25,7 @@ dependencies: sdk: flutter flutter_inappwebview_platform_interface: git: - url: "https://gitee.com/openharmony-sig/flutter_inappwebview.git" + url: "https://gitee.com/wefuture/flutter_inappwebview.git" path: "flutter_inappwebview_platform_interface" diff --git a/flutter_inappwebview_platform_interface/lib/src/in_app_webview/in_app_webview_settings.dart b/flutter_inappwebview_platform_interface/lib/src/in_app_webview/in_app_webview_settings.dart index 779a005fc73675b8363cecdde8253e8f0628b70f..7450679f79a6912a822fd4655c864cfd38e34191 100755 --- a/flutter_inappwebview_platform_interface/lib/src/in_app_webview/in_app_webview_settings.dart +++ b/flutter_inappwebview_platform_interface/lib/src/in_app_webview/in_app_webview_settings.dart @@ -556,7 +556,7 @@ because there isn't any way to make the website data store non-persistent for th OhosPlatform( apiName: "onlineImageAccess", apiUrl: - "https://docs.openharmony.cn/pages/v4.1/zh-cn/application-dev/reference/apis-arkweb/ts-basic-components-web.md#onlineimageaccess") + "https://docs.openharmony.cn/pages/v4.1/zh-cn/application-dev/reference/apis-arkweb/ts-basic-components-web.md#onlineimageaccess") ]) bool? blockNetworkImage; @@ -1763,7 +1763,7 @@ as it can cause framerate drops on animations in Android 9 and lower (see [Hybri ]) bool? pinchSmooth; - ///设置Web布局模式。 + ///设置Web布局模式。 @SupportedPlatforms(platforms: [ OhosPlatform( apiName: "layoutMode", @@ -1781,6 +1781,15 @@ as it can cause framerate drops on animations in Android 9 and lower (see [Hybri ]) bool? enableNativeEmbedMode; + ///设置是否开启调试功能,默认不开启。 + @SupportedPlatforms(platforms: [ + OhosPlatform( + apiName: "webContentsDebuggingEnabled", + apiUrl: + "https://docs.openharmony.cn/pages/v4.0/zh-cn/application-dev/web/web-debugging-with-devtools.md") + ]) + bool? webContentsDebuggingEnabled; + @ExchangeableObjectConstructor() InAppWebViewSettings_({ this.useShouldOverrideUrlLoading, @@ -1926,7 +1935,8 @@ as it can cause framerate drops on animations in Android 9 and lower (see [Hybri this.pinchSmooth = false, this.forceDarkAccess = false, this.layoutMode = LayoutMode_.NONE, - this.enableNativeEmbedMode = false + this.enableNativeEmbedMode = false, + this.webContentsDebuggingEnabled = false, }) { if (this.minimumFontSize == null) this.minimumFontSize = Util.isAndroid ? 8 : 0; diff --git a/flutter_inappwebview_platform_interface/lib/src/in_app_webview/in_app_webview_settings.g.dart b/flutter_inappwebview_platform_interface/lib/src/in_app_webview/in_app_webview_settings.g.dart index 1aef55174141956d42a4e77d9681ac3c71477974..4b4c806fa85c5d0bffa7cfb9c4e1e1a18ac7e2a7 100644 --- a/flutter_inappwebview_platform_interface/lib/src/in_app_webview/in_app_webview_settings.g.dart +++ b/flutter_inappwebview_platform_interface/lib/src/in_app_webview/in_app_webview_settings.g.dart @@ -450,6 +450,12 @@ class InAppWebViewSettings { ///- Ohos native WebView ([Official API - enableNativeEmbedMode](https://docs.openharmony.cn/pages/v4.1/zh-cn/application-dev/reference/apis-arkweb/ts-basic-components-web.md#enablenativeembedmode11)) bool? enableNativeEmbedMode; + ///设置是否开启调试功能,默认不开启。 + /// + ///**Officially Supported Platforms/Implementations**: + ///- Ohos native WebView ([Official API - webContentsDebuggingEnabled](https://docs.openharmony.cn/pages/v4.0/zh-cn/application-dev/web/web-debugging-with-devtools.md)) + bool? webContentsDebuggingEnabled; + ///Set to `true` to allow a viewport meta tag to either disable or restrict the range of user scaling. The default value is `false`. /// ///**Officially Supported Platforms/Implementations**: @@ -1390,7 +1396,8 @@ class InAppWebViewSettings { this.pinchSmooth = false, this.forceDarkAccess = false, this.layoutMode = LayoutMode.NONE, - this.enableNativeEmbedMode = false}) { + this.enableNativeEmbedMode = false, + this.webContentsDebuggingEnabled = false}) { if (this.minimumFontSize == null) this.minimumFontSize = Util.isAndroid ? 8 : 0; assert(this.resourceCustomSchemes == null || @@ -1544,6 +1551,7 @@ class InAppWebViewSettings { instance.displayZoomControls = map['displayZoomControls']; instance.domStorageEnabled = map['domStorageEnabled']; instance.enableNativeEmbedMode = map['enableNativeEmbedMode']; + instance.webContentsDebuggingEnabled = map['webContentsDebuggingEnabled']; instance.enableViewportScale = map['enableViewportScale']; instance.enterpriseAuthenticationAppLinkPolicyEnabled = map['enterpriseAuthenticationAppLinkPolicyEnabled']; @@ -1680,6 +1688,7 @@ class InAppWebViewSettings { "displayZoomControls": displayZoomControls, "domStorageEnabled": domStorageEnabled, "enableNativeEmbedMode": enableNativeEmbedMode, + "webContentsDebuggingEnabled": webContentsDebuggingEnabled, "enableViewportScale": enableViewportScale, "enterpriseAuthenticationAppLinkPolicyEnabled": enterpriseAuthenticationAppLinkPolicyEnabled, @@ -1792,6 +1801,6 @@ class InAppWebViewSettings { @override String toString() { - return 'InAppWebViewSettings{accessibilityIgnoresInvertColors: $accessibilityIgnoresInvertColors, algorithmicDarkeningAllowed: $algorithmicDarkeningAllowed, allowBackgroundAudioPlaying: $allowBackgroundAudioPlaying, allowContentAccess: $allowContentAccess, allowFileAccess: $allowFileAccess, allowFileAccessFromFileURLs: $allowFileAccessFromFileURLs, allowUniversalAccessFromFileURLs: $allowUniversalAccessFromFileURLs, allowingReadAccessTo: $allowingReadAccessTo, allowsAirPlayForMediaPlayback: $allowsAirPlayForMediaPlayback, allowsBackForwardNavigationGestures: $allowsBackForwardNavigationGestures, allowsInlineMediaPlayback: $allowsInlineMediaPlayback, allowsLinkPreview: $allowsLinkPreview, allowsPictureInPictureMediaPlayback: $allowsPictureInPictureMediaPlayback, alwaysBounceHorizontal: $alwaysBounceHorizontal, alwaysBounceVertical: $alwaysBounceVertical, appCachePath: $appCachePath, applePayAPIEnabled: $applePayAPIEnabled, applicationNameForUserAgent: $applicationNameForUserAgent, automaticallyAdjustsScrollIndicatorInsets: $automaticallyAdjustsScrollIndicatorInsets, blockNetworkImage: $blockNetworkImage, blockNetworkLoads: $blockNetworkLoads, builtInZoomControls: $builtInZoomControls, cacheEnabled: $cacheEnabled, cacheMode: $cacheMode, contentBlockers: $contentBlockers, contentInsetAdjustmentBehavior: $contentInsetAdjustmentBehavior, cursiveFontFamily: $cursiveFontFamily, dataDetectorTypes: $dataDetectorTypes, databaseEnabled: $databaseEnabled, decelerationRate: $decelerationRate, defaultFixedFontSize: $defaultFixedFontSize, defaultFontSize: $defaultFontSize, defaultTextEncodingName: $defaultTextEncodingName, defaultVideoPoster: $defaultVideoPoster, disableContextMenu: $disableContextMenu, disableDefaultErrorPage: $disableDefaultErrorPage, disableHorizontalScroll: $disableHorizontalScroll, disableInputAccessoryView: $disableInputAccessoryView, disableLongPressContextMenuOnLinks: $disableLongPressContextMenuOnLinks, disableVerticalScroll: $disableVerticalScroll, disabledActionModeMenuItems: $disabledActionModeMenuItems, disallowOverScroll: $disallowOverScroll, displayZoomControls: $displayZoomControls, domStorageEnabled: $domStorageEnabled, enableNativeEmbedMode: $enableNativeEmbedMode, enableViewportScale: $enableViewportScale, enterpriseAuthenticationAppLinkPolicyEnabled: $enterpriseAuthenticationAppLinkPolicyEnabled, fantasyFontFamily: $fantasyFontFamily, fixedFontFamily: $fixedFontFamily, forceDark: $forceDark, forceDarkAccess: $forceDarkAccess, forceDarkStrategy: $forceDarkStrategy, geolocationEnabled: $geolocationEnabled, hardwareAcceleration: $hardwareAcceleration, horizontalScrollBarEnabled: $horizontalScrollBarEnabled, horizontalScrollbarThumbColor: $horizontalScrollbarThumbColor, horizontalScrollbarTrackColor: $horizontalScrollbarTrackColor, iframeAllow: $iframeAllow, iframeAllowFullscreen: $iframeAllowFullscreen, iframeCsp: $iframeCsp, iframeName: $iframeName, iframeReferrerPolicy: $iframeReferrerPolicy, iframeSandbox: $iframeSandbox, ignoresViewportScaleLimits: $ignoresViewportScaleLimits, incognito: $incognito, initialScale: $initialScale, interceptOnlyAsyncAjaxRequests: $interceptOnlyAsyncAjaxRequests, isDirectionalLockEnabled: $isDirectionalLockEnabled, isElementFullscreenEnabled: $isElementFullscreenEnabled, isFindInteractionEnabled: $isFindInteractionEnabled, isFraudulentWebsiteWarningEnabled: $isFraudulentWebsiteWarningEnabled, isInspectable: $isInspectable, isPagingEnabled: $isPagingEnabled, isSiteSpecificQuirksModeEnabled: $isSiteSpecificQuirksModeEnabled, isTextInteractionEnabled: $isTextInteractionEnabled, javaScriptCanOpenWindowsAutomatically: $javaScriptCanOpenWindowsAutomatically, javaScriptEnabled: $javaScriptEnabled, layoutAlgorithm: $layoutAlgorithm, layoutMode: $layoutMode, limitsNavigationsToAppBoundDomains: $limitsNavigationsToAppBoundDomains, loadWithOverviewMode: $loadWithOverviewMode, loadsImagesAutomatically: $loadsImagesAutomatically, maximumViewportInset: $maximumViewportInset, maximumZoomScale: $maximumZoomScale, mediaPlaybackRequiresUserGesture: $mediaPlaybackRequiresUserGesture, mediaType: $mediaType, minimumFontSize: $minimumFontSize, minimumLogicalFontSize: $minimumLogicalFontSize, minimumViewportInset: $minimumViewportInset, minimumZoomScale: $minimumZoomScale, mixedContentMode: $mixedContentMode, needInitialFocus: $needInitialFocus, networkAvailable: $networkAvailable, offscreenPreRaster: $offscreenPreRaster, overScrollMode: $overScrollMode, pageZoom: $pageZoom, pinchSmooth: $pinchSmooth, preferredContentMode: $preferredContentMode, regexToCancelSubFramesLoading: $regexToCancelSubFramesLoading, rendererPriorityPolicy: $rendererPriorityPolicy, requestedWithHeaderOriginAllowList: $requestedWithHeaderOriginAllowList, resourceCustomSchemes: $resourceCustomSchemes, safeBrowsingEnabled: $safeBrowsingEnabled, sansSerifFontFamily: $sansSerifFontFamily, saveFormData: $saveFormData, scrollBarDefaultDelayBeforeFade: $scrollBarDefaultDelayBeforeFade, scrollBarFadeDuration: $scrollBarFadeDuration, scrollBarStyle: $scrollBarStyle, scrollbarFadingEnabled: $scrollbarFadingEnabled, scrollsToTop: $scrollsToTop, selectionGranularity: $selectionGranularity, serifFontFamily: $serifFontFamily, sharedCookiesEnabled: $sharedCookiesEnabled, shouldPrintBackgrounds: $shouldPrintBackgrounds, standardFontFamily: $standardFontFamily, supportMultipleWindows: $supportMultipleWindows, supportZoom: $supportZoom, suppressesIncrementalRendering: $suppressesIncrementalRendering, textZoom: $textZoom, thirdPartyCookiesEnabled: $thirdPartyCookiesEnabled, transparentBackground: $transparentBackground, underPageBackgroundColor: $underPageBackgroundColor, upgradeKnownHostsToHTTPS: $upgradeKnownHostsToHTTPS, useHybridComposition: $useHybridComposition, useOnDownloadStart: $useOnDownloadStart, useOnLoadResource: $useOnLoadResource, useOnNavigationResponse: $useOnNavigationResponse, useOnRenderProcessGone: $useOnRenderProcessGone, useShouldInterceptAjaxRequest: $useShouldInterceptAjaxRequest, useShouldInterceptFetchRequest: $useShouldInterceptFetchRequest, useShouldInterceptRequest: $useShouldInterceptRequest, useShouldOverrideUrlLoading: $useShouldOverrideUrlLoading, useWideViewPort: $useWideViewPort, userAgent: $userAgent, verticalScrollBarEnabled: $verticalScrollBarEnabled, verticalScrollbarPosition: $verticalScrollbarPosition, verticalScrollbarThumbColor: $verticalScrollbarThumbColor, verticalScrollbarTrackColor: $verticalScrollbarTrackColor, webViewAssetLoader: $webViewAssetLoader}'; + return 'InAppWebViewSettings{accessibilityIgnoresInvertColors: $accessibilityIgnoresInvertColors, algorithmicDarkeningAllowed: $algorithmicDarkeningAllowed, allowBackgroundAudioPlaying: $allowBackgroundAudioPlaying, allowContentAccess: $allowContentAccess, allowFileAccess: $allowFileAccess, allowFileAccessFromFileURLs: $allowFileAccessFromFileURLs, allowUniversalAccessFromFileURLs: $allowUniversalAccessFromFileURLs, allowingReadAccessTo: $allowingReadAccessTo, allowsAirPlayForMediaPlayback: $allowsAirPlayForMediaPlayback, allowsBackForwardNavigationGestures: $allowsBackForwardNavigationGestures, allowsInlineMediaPlayback: $allowsInlineMediaPlayback, allowsLinkPreview: $allowsLinkPreview, allowsPictureInPictureMediaPlayback: $allowsPictureInPictureMediaPlayback, alwaysBounceHorizontal: $alwaysBounceHorizontal, alwaysBounceVertical: $alwaysBounceVertical, appCachePath: $appCachePath, applePayAPIEnabled: $applePayAPIEnabled, applicationNameForUserAgent: $applicationNameForUserAgent, automaticallyAdjustsScrollIndicatorInsets: $automaticallyAdjustsScrollIndicatorInsets, blockNetworkImage: $blockNetworkImage, blockNetworkLoads: $blockNetworkLoads, builtInZoomControls: $builtInZoomControls, cacheEnabled: $cacheEnabled, cacheMode: $cacheMode, contentBlockers: $contentBlockers, contentInsetAdjustmentBehavior: $contentInsetAdjustmentBehavior, cursiveFontFamily: $cursiveFontFamily, dataDetectorTypes: $dataDetectorTypes, databaseEnabled: $databaseEnabled, decelerationRate: $decelerationRate, defaultFixedFontSize: $defaultFixedFontSize, defaultFontSize: $defaultFontSize, defaultTextEncodingName: $defaultTextEncodingName, defaultVideoPoster: $defaultVideoPoster, disableContextMenu: $disableContextMenu, disableDefaultErrorPage: $disableDefaultErrorPage, disableHorizontalScroll: $disableHorizontalScroll, disableInputAccessoryView: $disableInputAccessoryView, disableLongPressContextMenuOnLinks: $disableLongPressContextMenuOnLinks, disableVerticalScroll: $disableVerticalScroll, disabledActionModeMenuItems: $disabledActionModeMenuItems, disallowOverScroll: $disallowOverScroll, displayZoomControls: $displayZoomControls, domStorageEnabled: $domStorageEnabled, enableNativeEmbedMode: $enableNativeEmbedMode, webContentsDebuggingEnabled: $webContentsDebuggingEnabled, enableViewportScale: $enableViewportScale, enterpriseAuthenticationAppLinkPolicyEnabled: $enterpriseAuthenticationAppLinkPolicyEnabled, fantasyFontFamily: $fantasyFontFamily, fixedFontFamily: $fixedFontFamily, forceDark: $forceDark, forceDarkAccess: $forceDarkAccess, forceDarkStrategy: $forceDarkStrategy, geolocationEnabled: $geolocationEnabled, hardwareAcceleration: $hardwareAcceleration, horizontalScrollBarEnabled: $horizontalScrollBarEnabled, horizontalScrollbarThumbColor: $horizontalScrollbarThumbColor, horizontalScrollbarTrackColor: $horizontalScrollbarTrackColor, iframeAllow: $iframeAllow, iframeAllowFullscreen: $iframeAllowFullscreen, iframeCsp: $iframeCsp, iframeName: $iframeName, iframeReferrerPolicy: $iframeReferrerPolicy, iframeSandbox: $iframeSandbox, ignoresViewportScaleLimits: $ignoresViewportScaleLimits, incognito: $incognito, initialScale: $initialScale, interceptOnlyAsyncAjaxRequests: $interceptOnlyAsyncAjaxRequests, isDirectionalLockEnabled: $isDirectionalLockEnabled, isElementFullscreenEnabled: $isElementFullscreenEnabled, isFindInteractionEnabled: $isFindInteractionEnabled, isFraudulentWebsiteWarningEnabled: $isFraudulentWebsiteWarningEnabled, isInspectable: $isInspectable, isPagingEnabled: $isPagingEnabled, isSiteSpecificQuirksModeEnabled: $isSiteSpecificQuirksModeEnabled, isTextInteractionEnabled: $isTextInteractionEnabled, javaScriptCanOpenWindowsAutomatically: $javaScriptCanOpenWindowsAutomatically, javaScriptEnabled: $javaScriptEnabled, layoutAlgorithm: $layoutAlgorithm, layoutMode: $layoutMode, limitsNavigationsToAppBoundDomains: $limitsNavigationsToAppBoundDomains, loadWithOverviewMode: $loadWithOverviewMode, loadsImagesAutomatically: $loadsImagesAutomatically, maximumViewportInset: $maximumViewportInset, maximumZoomScale: $maximumZoomScale, mediaPlaybackRequiresUserGesture: $mediaPlaybackRequiresUserGesture, mediaType: $mediaType, minimumFontSize: $minimumFontSize, minimumLogicalFontSize: $minimumLogicalFontSize, minimumViewportInset: $minimumViewportInset, minimumZoomScale: $minimumZoomScale, mixedContentMode: $mixedContentMode, needInitialFocus: $needInitialFocus, networkAvailable: $networkAvailable, offscreenPreRaster: $offscreenPreRaster, overScrollMode: $overScrollMode, pageZoom: $pageZoom, pinchSmooth: $pinchSmooth, preferredContentMode: $preferredContentMode, regexToCancelSubFramesLoading: $regexToCancelSubFramesLoading, rendererPriorityPolicy: $rendererPriorityPolicy, requestedWithHeaderOriginAllowList: $requestedWithHeaderOriginAllowList, resourceCustomSchemes: $resourceCustomSchemes, safeBrowsingEnabled: $safeBrowsingEnabled, sansSerifFontFamily: $sansSerifFontFamily, saveFormData: $saveFormData, scrollBarDefaultDelayBeforeFade: $scrollBarDefaultDelayBeforeFade, scrollBarFadeDuration: $scrollBarFadeDuration, scrollBarStyle: $scrollBarStyle, scrollbarFadingEnabled: $scrollbarFadingEnabled, scrollsToTop: $scrollsToTop, selectionGranularity: $selectionGranularity, serifFontFamily: $serifFontFamily, sharedCookiesEnabled: $sharedCookiesEnabled, shouldPrintBackgrounds: $shouldPrintBackgrounds, standardFontFamily: $standardFontFamily, supportMultipleWindows: $supportMultipleWindows, supportZoom: $supportZoom, suppressesIncrementalRendering: $suppressesIncrementalRendering, textZoom: $textZoom, thirdPartyCookiesEnabled: $thirdPartyCookiesEnabled, transparentBackground: $transparentBackground, underPageBackgroundColor: $underPageBackgroundColor, upgradeKnownHostsToHTTPS: $upgradeKnownHostsToHTTPS, useHybridComposition: $useHybridComposition, useOnDownloadStart: $useOnDownloadStart, useOnLoadResource: $useOnLoadResource, useOnNavigationResponse: $useOnNavigationResponse, useOnRenderProcessGone: $useOnRenderProcessGone, useShouldInterceptAjaxRequest: $useShouldInterceptAjaxRequest, useShouldInterceptFetchRequest: $useShouldInterceptFetchRequest, useShouldInterceptRequest: $useShouldInterceptRequest, useShouldOverrideUrlLoading: $useShouldOverrideUrlLoading, useWideViewPort: $useWideViewPort, userAgent: $userAgent, verticalScrollBarEnabled: $verticalScrollBarEnabled, verticalScrollbarPosition: $verticalScrollbarPosition, verticalScrollbarThumbColor: $verticalScrollbarThumbColor, verticalScrollbarTrackColor: $verticalScrollbarTrackColor, webViewAssetLoader: $webViewAssetLoader}'; } } diff --git a/flutter_inappwebview_platform_interface/lib/src/types/permission_resource_type.g.dart b/flutter_inappwebview_platform_interface/lib/src/types/permission_resource_type.g.dart index 3a3a702ff0cc2b1a8cc6c48300ff9a8208fc4541..cc5ae9c0efc530eb93856df0108f28f304d755e8 100644 --- a/flutter_inappwebview_platform_interface/lib/src/types/permission_resource_type.g.dart +++ b/flutter_inappwebview_platform_interface/lib/src/types/permission_resource_type.g.dart @@ -96,6 +96,17 @@ class PermissionResourceType { return null; }); + static final TYPE_AUDIO_CAPTURE = + PermissionResourceType._internalMultiPlatform('TYPE_AUDIO_CAPTURE', () { + switch (defaultTargetPlatform) { + case TargetPlatform.ohos: + return 'TYPE_AUDIO_CAPTURE'; + default: + break; + } + return null; + }); + ///Resource will allow sysex messages to be sent to or received from MIDI devices. ///These messages are privileged operations, e.g. modifying sound libraries and sampling data, or even updating the MIDI device's firmware. ///Permission may be requested for this resource in API levels 21 and above, if the Android device has been updated to WebView 45 or above. @@ -134,6 +145,7 @@ class PermissionResourceType { PermissionResourceType.CAMERA_AND_MICROPHONE, PermissionResourceType.DEVICE_ORIENTATION_AND_MOTION, PermissionResourceType.MICROPHONE, + PermissionResourceType.TYPE_AUDIO_CAPTURE, PermissionResourceType.MIDI_SYSEX, PermissionResourceType.PROTECTED_MEDIA_ID, ].toSet(); diff --git a/flutter_inappwebview_platform_interface/pubspec.yaml b/flutter_inappwebview_platform_interface/pubspec.yaml index dc10a51dc5cbb4a6a97fc01ba8633ab8b049c447..db82fe92b22d555c539cb14ed1ecb5946fbded31 100644 --- a/flutter_inappwebview_platform_interface/pubspec.yaml +++ b/flutter_inappwebview_platform_interface/pubspec.yaml @@ -20,7 +20,7 @@ dependencies: sdk: flutter flutter_inappwebview_internal_annotations: git: - url: "https://gitee.com/openharmony-sig/flutter_inappwebview.git" + url: "https://gitee.com/wefuture/flutter_inappwebview.git" path: "dev_packages/flutter_inappwebview_internal_annotations" plugin_platform_interface: ^2.1.6 diff --git a/flutter_inappwebview_web/pubspec.yaml b/flutter_inappwebview_web/pubspec.yaml index b38951b7993c96dc9570b0286eb8fdb1d4b4185e..75535fe6bdf283f38a725e955702177a311bd0b6 100644 --- a/flutter_inappwebview_web/pubspec.yaml +++ b/flutter_inappwebview_web/pubspec.yaml @@ -23,7 +23,7 @@ dependencies: js: ^0.6.4 flutter_inappwebview_platform_interface: git: - url: "https://gitee.com/openharmony-sig/flutter_inappwebview.git" + url: "https://gitee.com/wefuture/flutter_inappwebview.git" path: "flutter_inappwebview_platform_interface" dev_dependencies: