Skip to content

Commit 2d131ad

Browse files
committed
feat: version 0.0.3 support
1 parent 978385f commit 2d131ad

File tree

6 files changed

+17
-11
lines changed

6 files changed

+17
-11
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,8 @@
55
## 0.0.2
66

77
- feat: fully support IOS on restricting screenshot and screen recording
8+
9+
## 0.0.3
10+
11+
- docs: documentation update
12+
- feat: allow support on previous dart version

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
```yaml
1818
dependencies:
19-
screenshot_guard: ^{version}
19+
screenshot_guard: ^<latest>
2020
```
2121
2222
2. Run the `flutter pub get` to fetch the package.
@@ -54,12 +54,13 @@ class ScreenshotGuardExample extends StatefulWidget {
5454
5555
class _ScreenshotGuardExampleState extends State<ScreenshotGuardExample> {
5656
bool isProtected = false;
57+
final _screenshotGuardPlugin = ScreenshotGuard();
5758
5859
void toggleProtection() async {
5960
if (isProtected) {
60-
await ScreenshotGuard().enableSecureFlag(false);
61+
_screenshotGuardPlugin.enableSecureFlag(false);
6162
} else {
62-
await ScreenshotGuard().enableSecureFlag(true);
63+
_screenshotGuardPlugin.enableSecureFlag(true);
6364
}
6465
setState(() {
6566
isProtected = !isProtected;
@@ -100,7 +101,7 @@ class _ScreenshotGuardExampleState extends State<ScreenshotGuardExample> {
100101

101102
- Description: Enables or disables the secure flag to control screenshot and screen recording
102103
- Parameters:
103-
`enable`: A boolean (`tru`e to enable protection, `false` to disable it).
104+
`enable`: A boolean (`true` to enable protection, `false` to disable it).
104105
- Returns: A `Future<void>`
105106

106107
# Contributions

example/ios/Podfile.lock

Lines changed: 2 additions & 2 deletions
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.1):
6+
- screenshot_guard (0.0.3):
77
- Flutter
88
- ScreenProtectorKit (~> 1.3.1)
99

@@ -29,7 +29,7 @@ SPEC CHECKSUMS:
2929
Flutter: e0871f40cf51350855a761d2e70bf5af5b9b5de7
3030
integration_test: 252f60fa39af5e17c3aa9899d35d908a0721b573
3131
ScreenProtectorKit: 83a6281b02c7a5902ee6eac4f5045f674e902ae4
32-
screenshot_guard: fa7e20ce310937747b8149d84a2f4b009b5333ed
32+
screenshot_guard: db3e9ed4ee94f2db90e7bc792a28e18d9d467961
3333

3434
PODFILE CHECKSUM: 864620248d353e26c8fd7a1ee6b0cf275b9a0138
3535

example/pubspec.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ packages:
192192
path: ".."
193193
relative: true
194194
source: path
195-
version: "0.0.1"
195+
version: "0.0.3"
196196
sky_engine:
197197
dependency: transitive
198198
description: flutter

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.2'
7+
s.version = '0.0.3'
88
s.summary = 'A Flutter plugin for restricting screenshot and screen recording.'
99
s.description = <<-DESC
1010
A new Flutter plugin project.

pubspec.yaml

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

66
environment:
7-
sdk: ^3.6.0
8-
flutter: ">=3.3.0"
7+
sdk: ">=3.0.0 <4.0.0"
8+
flutter: ">=2.12.0"
99

1010
dependencies:
1111
flutter:

0 commit comments

Comments
 (0)