From 1ffcb6e44f77eba377f12b6099cf6526321f99f3 Mon Sep 17 00:00:00 2001 From: aengu Date: Fri, 12 Jul 2024 15:57:29 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E5=90=AF=E7=94=A8=E8=B0=83=E8=AF=95?= =?UTF-8?q?=E7=9B=AE=E5=89=8D=E5=8F=91=E7=8E=B0=E7=9A=84=E5=AD=98=E5=9C=A8?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98=EF=BC=9A=E5=8F=AA=E6=9C=89=E6=9E=84?= =?UTF-8?q?=E9=80=A0Web=E7=9A=84=E7=94=9F=E5=91=BD=E5=91=A8=E5=BC=80?= =?UTF-8?q?=E5=A7=8B=E5=90=8E=EF=BC=8C=E4=B8=94=E5=9C=A8Web=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=E6=B8=B2=E6=9F=93=E6=97=B6=E5=88=BB=E4=B9=8B=E5=89=8D?= =?UTF-8?q?=EF=BC=8C=E8=B0=83=E7=94=A8=E5=BC=80=E5=90=AF=E8=B0=83=E8=AF=95?= =?UTF-8?q?=E6=89=8D=E6=9C=89=E6=95=88=EF=BC=8C=E5=A4=AA=E8=BF=87=E4=BA=8E?= =?UTF-8?q?=E4=B9=8B=E5=89=8D=E6=88=96=E6=B8=B2=E6=9F=93=E4=B9=8B=E5=90=8E?= =?UTF-8?q?=EF=BC=8C=E9=83=BD=E6=97=A0=E6=B3=95=E5=BC=80=E5=90=AF=E8=B5=B7?= =?UTF-8?q?=E6=9D=A5=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: aengu --- .../in_app_webview/InAppWebViewSettings.ets | 5 +++++ .../webview/in_app_webview/OhosWebView.ets | 3 +++ .../in_app_webview/in_app_webview_settings.dart | 16 +++++++++++++--- .../in_app_webview_settings.g.dart | 13 +++++++++++-- 4 files changed, 32 insertions(+), 5 deletions(-) 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 003bc328..9cca8a55 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_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 779a005f..7450679f 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 1aef5517..4b4c806f 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}'; } } -- Gitee From c4a0016f7a50d09931acf758e9b4ae844022a5d6 Mon Sep 17 00:00:00 2001 From: aengu Date: Fri, 12 Jul 2024 16:01:00 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E9=B8=BF=E8=92=99next=E7=89=88=E6=9C=AC?= =?UTF-8?q?=E7=9A=84=E5=BD=95=E9=9F=B3=E6=9D=83=E9=99=90=E8=AF=B7=E6=B1=82?= =?UTF-8?q?=E6=9E=9A=E4=B8=BE=EF=BC=8C=E5=AE=9E=E9=99=85=E6=8B=BF=E5=88=B0?= =?UTF-8?q?=E7=9A=84=E6=98=AFTYPE=5FAUDIO=5FCAPTURE=E5=AD=97=E7=AC=A6?= =?UTF-8?q?=EF=BC=8C=E6=B2=A1=E6=80=8E=E4=B9=88=E7=90=86=E8=A7=A3=EF=BC=8C?= =?UTF-8?q?=E4=B8=BA=E5=95=A5=E4=B8=8D=E6=98=AFMICROPHONE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: aengu --- .../lib/src/types/permission_resource_type.g.dart | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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 3a3a702f..cc5ae9c0 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(); -- Gitee From e2d2a786977f19b7e78947f85c69950ab887e2c1 Mon Sep 17 00:00:00 2001 From: aengu Date: Fri, 12 Jul 2024 16:11:20 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E7=A7=81=E6=9C=89=E5=88=86=E6=94=AF?= =?UTF-8?q?=E4=B8=80=E5=B9=B6=E6=94=B9=E4=B8=BA=E7=A7=81=E6=9C=89=E7=BB=84?= =?UTF-8?q?=E7=BB=87=E5=9C=B0=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dev_packages/generators/pubspec.yaml | 2 +- flutter_inappwebview/example/pubspec.yaml | 10 +++++----- flutter_inappwebview/pubspec.yaml | 12 ++++++------ flutter_inappwebview_android/pubspec.yaml | 2 +- flutter_inappwebview_ios/pubspec.yaml | 2 +- flutter_inappwebview_macos/pubspec.yaml | 2 +- flutter_inappwebview_ohos/pubspec.yaml | 2 +- flutter_inappwebview_platform_interface/pubspec.yaml | 2 +- flutter_inappwebview_web/pubspec.yaml | 2 +- 9 files changed, 18 insertions(+), 18 deletions(-) diff --git a/dev_packages/generators/pubspec.yaml b/dev_packages/generators/pubspec.yaml index d9c75396..3dd6677d 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 1baca98a..4b6b5bdb 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 e038ccad..944a67c1 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 10de24b9..ff997de5 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 7981692b..b4d3c2c9 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 92f2d395..37d7b551 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/pubspec.yaml b/flutter_inappwebview_ohos/pubspec.yaml index 9ea1ed20..8c16cd13 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/pubspec.yaml b/flutter_inappwebview_platform_interface/pubspec.yaml index dc10a51d..db82fe92 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 b38951b7..75535fe6 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: -- Gitee