Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 30d50dc

Browse files
committed
修改example,适配3.22版本使用
Signed-off-by: laoguanyao <[email protected]>
1 parent 07de067 commit 30d50dc

File tree

10 files changed

+8
-167
lines changed

10 files changed

+8
-167
lines changed

.idea/libraries/Flutter_Plugins.xml

Lines changed: 1 addition & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

example/lib/main.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class MyApp extends StatefulWidget {
1313

1414
class _MyAppState extends State<MyApp> implements IScreenshotCallback {
1515
String _imagePath = 'Unknown';
16-
ScreenshotCallback _screenshotCallback;
16+
late ScreenshotCallback _screenshotCallback;
1717

1818
@override
1919
void initState() {

example/ohos/build-profile.json5

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@
55
{
66
"name": "default",
77
"signingConfig": "default",
8-
"compileSdkVersion": "4.1.0(11)",
9-
"compatibleSdkVersion": "4.1.0(11)",
8+
"compatibleSdkVersion": "5.0.0(12)",
109
"runtimeOS": "HarmonyOS"
1110
}
1211
]
Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,5 @@
1-
/*
2-
* Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd.
3-
* Licensed under the Apache License, Version 2.0 (the "License");
4-
* you may not use this file except in compliance with the License.
5-
* You may obtain a copy of the License at
6-
*
7-
* http://www.apache.org/licenses/LICENSE-2.0
8-
*
9-
* Unless required by applicable law or agreed to in writing, software
10-
* distributed under the License is distributed on an "AS IS" BASIS,
11-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12-
* See the License for the specific language governing permissions and
13-
* limitations under the License.
14-
*/
15-
16-
{
17-
"hvigorVersion": "4.1.2",
1+
{
2+
"modelVersion": "5.0.0",
183
"dependencies": {
19-
"@ohos/hvigor-ohos-plugin": "4.1.2"
204
}
215
}

example/ohos/hvigor/hvigor-wrapper.js

Lines changed: 0 additions & 2 deletions
This file was deleted.

example/ohos/hvigorw

Lines changed: 0 additions & 61 deletions
This file was deleted.

example/ohos/hvigorw.bat

Lines changed: 0 additions & 77 deletions
This file was deleted.

example/ohos/oh-package.json5

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"modelVersion": "5.0.0",
23
"name": "flutter_screenshot_callback_example",
34
"version": "1.0.0",
45
"description": "Please describe the basic information.",

example/pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ description: Demonstrates how to use the screenshot_callback plugin.
66
publish_to: 'none' # Remove this line if you wish to publish to pub.dev
77

88
environment:
9-
sdk: ">=2.7.0 <3.0.0"
9+
sdk: ">=2.12.0 <4.0.0"
1010

1111
dependencies:
1212
flutter:
@@ -22,7 +22,7 @@ dependencies:
2222

2323
# The following adds the Cupertino Icons font to your application.
2424
# Use with the CupertinoIcons class for iOS style icons.
25-
cupertino_icons: ^1.0.0
25+
cupertino_icons: ^1.0.6
2626

2727
dev_dependencies:
2828
flutter_test:

0 commit comments

Comments
 (0)