Skip to content

Commit 4c68907

Browse files
Merge pull request #5 from TheCodeDaniel/v0.0.5
feat: bump package version to 0.0.5
2 parents 25afb3e + b350716 commit 4c68907

File tree

10 files changed

+39
-43
lines changed

10 files changed

+39
-43
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,7 @@
1414
## 0.0.4
1515

1616
- fix: fixed crashing issue on IOS versions
17+
18+
## 0.0.5
19+
20+
- feat: Added "Windows Operating System" Support

example/ios/Podfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ PODS:
33
- integration_test (0.0.1):
44
- Flutter
55
- ScreenProtectorKit (1.3.1)
6-
- screenshot_guard (0.0.4):
6+
- screenshot_guard (0.0.5):
77
- Flutter
88
- ScreenProtectorKit (~> 1.3.1)
99

example/lib/main.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,7 @@ class _MyAppState extends State<MyApp> {
3232
// Platform messages may fail, so we use a try/catch PlatformException.
3333
// We also handle the message potentially returning null.
3434
try {
35-
platformVersion = await _screenshotGuardPlugin.getPlatformVersion() ??
36-
'Unknown platform version';
35+
platformVersion = await _screenshotGuardPlugin.getPlatformVersion() ?? 'Unknown platform version';
3736
} on PlatformException {
3837
platformVersion = 'Failed to get platform version.';
3938
}

example/pubspec.lock

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,18 @@ packages:
55
dependency: transitive
66
description:
77
name: async
8-
sha256: d2872f9c19731c2e5f10444b14686eb7cc85c76274bd6c16e1816bff9a3bab63
8+
sha256: "947bfcf187f74dbc5e146c9eb9c0f10c9f8b30743e341481c1e2ed3ecc18c20c"
99
url: "https://pub.dev"
1010
source: hosted
11-
version: "2.12.0"
11+
version: "2.11.0"
1212
boolean_selector:
1313
dependency: transitive
1414
description:
1515
name: boolean_selector
16-
sha256: "8aab1771e1243a5063b8b0ff68042d67334e3feab9e95b9490f9a6ebf73b42ea"
16+
sha256: "6cfb5af12253eaf2b368f07bacc5a80d1301a071c73360d746b7f2e32d762c66"
1717
url: "https://pub.dev"
1818
source: hosted
19-
version: "2.1.2"
19+
version: "2.1.1"
2020
characters:
2121
dependency: transitive
2222
description:
@@ -29,10 +29,10 @@ packages:
2929
dependency: transitive
3030
description:
3131
name: clock
32-
sha256: fddb70d9b5277016c77a80201021d40a2247104d9f4aa7bab7157b7e3f05b84b
32+
sha256: cb6d7f03e1de671e34607e909a7213e31d7752be4fb66a86d29fe1eb14bfb5cf
3333
url: "https://pub.dev"
3434
source: hosted
35-
version: "1.1.2"
35+
version: "1.1.1"
3636
collection:
3737
dependency: transitive
3838
description:
@@ -53,18 +53,18 @@ packages:
5353
dependency: transitive
5454
description:
5555
name: fake_async
56-
sha256: "6a95e56b2449df2273fd8c45a662d6947ce1ebb7aafe80e550a3f68297f3cacc"
56+
sha256: "511392330127add0b769b75a987850d136345d9227c6b94c96a04cf4a391bf78"
5757
url: "https://pub.dev"
5858
source: hosted
59-
version: "1.3.2"
59+
version: "1.3.1"
6060
file:
6161
dependency: transitive
6262
description:
6363
name: file
64-
sha256: a3b4f84adafef897088c160faf7dfffb7696046cb13ae90b508c2cbc95d3b8d4
64+
sha256: "5fc22d7c25582e38ad9a8515372cd9a93834027aacf1801cf01164dac0ffa08c"
6565
url: "https://pub.dev"
6666
source: hosted
67-
version: "7.0.1"
67+
version: "7.0.0"
6868
flutter:
6969
dependency: "direct main"
7070
description: flutter
@@ -102,18 +102,18 @@ packages:
102102
dependency: transitive
103103
description:
104104
name: leak_tracker
105-
sha256: c35baad643ba394b40aac41080300150a4f08fd0fd6a10378f8f7c6bc161acec
105+
sha256: "7bb2830ebd849694d1ec25bf1f44582d6ac531a57a365a803a6034ff751d2d06"
106106
url: "https://pub.dev"
107107
source: hosted
108-
version: "10.0.8"
108+
version: "10.0.7"
109109
leak_tracker_flutter_testing:
110110
dependency: transitive
111111
description:
112112
name: leak_tracker_flutter_testing
113-
sha256: f8b613e7e6a13ec79cfdc0e97638fddb3ab848452eff057653abd3edba760573
113+
sha256: "9491a714cca3667b60b5c420da8217e6de0d1ba7a5ec322fab01758f6998f379"
114114
url: "https://pub.dev"
115115
source: hosted
116-
version: "3.0.9"
116+
version: "3.0.8"
117117
leak_tracker_testing:
118118
dependency: transitive
119119
description:
@@ -158,18 +158,18 @@ packages:
158158
dependency: transitive
159159
description:
160160
name: path
161-
sha256: "75cca69d1490965be98c73ceaea117e8a04dd21217b37b292c9ddbec0d955bc5"
161+
sha256: "087ce49c3f0dc39180befefc60fdb4acd8f8620e5682fe2476afd0b3688bb4af"
162162
url: "https://pub.dev"
163163
source: hosted
164-
version: "1.9.1"
164+
version: "1.9.0"
165165
platform:
166166
dependency: transitive
167167
description:
168168
name: platform
169-
sha256: "5d6b1b0036a5f331ebc77c850ebc8506cbc1e9416c27e59b439f917a902a4984"
169+
sha256: "9b71283fc13df574056616011fb138fd3b793ea47cc509c189a6c3fa5f8a1a65"
170170
url: "https://pub.dev"
171171
source: hosted
172-
version: "3.1.6"
172+
version: "3.1.5"
173173
plugin_platform_interface:
174174
dependency: transitive
175175
description:
@@ -182,17 +182,17 @@ packages:
182182
dependency: transitive
183183
description:
184184
name: process
185-
sha256: "107d8be718f120bbba9dcd1e95e3bd325b1b4a4f07db64154635ba03f2567a0d"
185+
sha256: "21e54fd2faf1b5bdd5102afd25012184a6793927648ea81eea80552ac9405b32"
186186
url: "https://pub.dev"
187187
source: hosted
188-
version: "5.0.3"
188+
version: "5.0.2"
189189
screenshot_guard:
190190
dependency: "direct main"
191191
description:
192192
path: ".."
193193
relative: true
194194
source: path
195-
version: "0.0.4"
195+
version: "0.0.5"
196196
sky_engine:
197197
dependency: transitive
198198
description: flutter
@@ -226,10 +226,10 @@ packages:
226226
dependency: transitive
227227
description:
228228
name: string_scanner
229-
sha256: "0bd04f5bb74fcd6ff0606a888a30e917af9bd52820b178eaa464beb11dca84b6"
229+
sha256: "688af5ed3402a4bde5b3a6c15fd768dbf2621a614950b17f04626c431ab3c4c3"
230230
url: "https://pub.dev"
231231
source: hosted
232-
version: "1.4.0"
232+
version: "1.3.0"
233233
sync_http:
234234
dependency: transitive
235235
description:
@@ -266,10 +266,10 @@ packages:
266266
dependency: transitive
267267
description:
268268
name: vm_service
269-
sha256: "0968250880a6c5fe7edc067ed0a13d4bae1577fe2771dcf3010d52c4a9d3ca14"
269+
sha256: f6be3ed8bd01289b34d679c2b62226f63c0e69f9fd2e50a6b3c1c729a961041b
270270
url: "https://pub.dev"
271271
source: hosted
272-
version: "14.3.1"
272+
version: "14.3.0"
273273
webdriver:
274274
dependency: transitive
275275
description:

example/test/widget_test.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@ void main() {
1818
// Verify that platform version is retrieved.
1919
expect(
2020
find.byWidgetPredicate(
21-
(Widget widget) =>
22-
widget is Text && widget.data!.startsWith('Running on:'),
21+
(Widget widget) => widget is Text && widget.data!.startsWith('Running on:'),
2322
),
2423
findsOneWidget,
2524
);

ios/screenshot_guard.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#
55
Pod::Spec.new do |s|
66
s.name = 'screenshot_guard'
7-
s.version = '0.0.4'
7+
s.version = '0.0.5'
88
s.summary = 'A Flutter plugin for restricting screenshot and screen recording.'
99
s.description = <<-DESC
1010
A new Flutter plugin project.

lib/screenshot_guard_method_channel.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ class MethodChannelScreenshotGuard extends ScreenshotGuardPlatform {
1111

1212
@override
1313
Future<String?> getPlatformVersion() async {
14-
final version =
15-
await methodChannel.invokeMethod<String>('getPlatformVersion');
14+
final version = await methodChannel.invokeMethod<String>('getPlatformVersion');
1615
return version;
1716
}
1817

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: screenshot_guard
22
description: "A Flutter plugin to protect your app from screenshots and screen recordings"
3-
version: 0.0.4
3+
version: 0.0.5
44
homepage: https://github.com/TheCodeDaniel/screenshot_guard.git
55

66
environment:

test/screenshot_guard_method_channel_test.dart

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@ void main() {
99
const MethodChannel channel = MethodChannel('screenshot_guard');
1010

1111
setUp(() {
12-
TestDefaultBinaryMessengerBinding.instance.defaultBinaryMessenger
13-
.setMockMethodCallHandler(
12+
TestDefaultBinaryMessengerBinding.instance.defaultBinaryMessenger.setMockMethodCallHandler(
1413
channel,
1514
(MethodCall methodCall) async {
1615
return '42';
@@ -19,8 +18,7 @@ void main() {
1918
});
2019

2120
tearDown(() {
22-
TestDefaultBinaryMessengerBinding.instance.defaultBinaryMessenger
23-
.setMockMethodCallHandler(channel, null);
21+
TestDefaultBinaryMessengerBinding.instance.defaultBinaryMessenger.setMockMethodCallHandler(channel, null);
2422
});
2523

2624
test('getPlatformVersion', () async {

test/screenshot_guard_test.dart

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@ import 'package:screenshot_guard/screenshot_guard_platform_interface.dart';
44
import 'package:screenshot_guard/screenshot_guard_method_channel.dart';
55
import 'package:plugin_platform_interface/plugin_platform_interface.dart';
66

7-
class MockScreenshotGuardPlatform
8-
with MockPlatformInterfaceMixin
9-
implements ScreenshotGuardPlatform {
7+
class MockScreenshotGuardPlatform with MockPlatformInterfaceMixin implements ScreenshotGuardPlatform {
108
// Mock for enableSecureFlag method
119
@override
1210
Future<void> enableSecureFlag(bool enable) async {
@@ -20,8 +18,7 @@ class MockScreenshotGuardPlatform
2018
}
2119

2220
void main() {
23-
final ScreenshotGuardPlatform initialPlatform =
24-
ScreenshotGuardPlatform.instance;
21+
final ScreenshotGuardPlatform initialPlatform = ScreenshotGuardPlatform.instance;
2522

2623
test('$MethodChannelScreenshotGuard is the default instance', () {
2724
expect(initialPlatform, isInstanceOf<MethodChannelScreenshotGuard>());

0 commit comments

Comments
 (0)