Skip to content

Commit b2b65cd

Browse files
committed
* Add function protect data leakage with blur off for iOS only
* Upgrade gradle version to 8.0 * Upgrade kotlin version to 1.7.10
1 parent 9596f60 commit b2b65cd

File tree

16 files changed

+112
-60
lines changed

16 files changed

+112
-60
lines changed

CHANGELOG.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## 1.3.0
2+
3+
* Add function protect data leakage with blur off for iOS only
4+
* Upgrade gradle version to 8.0
5+
* Upgrade kotlin version to 1.7.10
6+
17
## 1.2.0
28

39
* Add function check screen recording for iOS only
@@ -8,7 +14,7 @@
814

915
## 1.1.4
1016

11-
* Fix bug Could not find com.github.prongbang:screen-protector:x.x.x
17+
* Fix bug Could not find com.github.prongbang:screen-protector:x.x.x
1218

1319
## 1.1.3+1
1420

@@ -33,4 +39,5 @@
3339

3440
## 1.0.0
3541

36-
* Safe Data Leakage via Application Background Screenshot and Prevent Screenshot for Android and iOS.
42+
* Safe Data Leakage via Application Background Screenshot and Prevent Screenshot for Android and
43+
iOS.

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,18 @@ await ScreenProtector.protectDataLeakageWithImage('LaunchImage');
2222
await ScreenProtector.protectDataLeakageWithColor(Colors.white);
2323
```
2424

25-
- Protect data leakage with blur
25+
- Protect data leakage with blur ON
2626

2727
```dart
2828
await ScreenProtector.protectDataLeakageWithBlur();
2929
```
3030

31+
- Protect data leakage with blur OFF
32+
33+
```dart
34+
await ScreenProtector.protectDataLeakageWithBlurOff();
35+
```
36+
3137
#### Prevent Screenshot
3238

3339
- ON

android/build.gradle

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@ group 'com.prongbang.screen_protector'
22
version '1.0-SNAPSHOT'
33

44
buildscript {
5-
ext.kotlin_version = '1.6.21'
5+
ext.kotlin_version = '1.7.10'
66
repositories {
77
google()
88
mavenCentral()
99
maven { url 'https://jitpack.io' }
1010
}
1111

1212
dependencies {
13-
classpath 'com.android.tools.build:gradle:4.1.3'
13+
classpath 'com.android.tools.build:gradle:8.1.0'
1414
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
1515
}
1616
}
@@ -27,7 +27,8 @@ apply plugin: 'com.android.library'
2727
apply plugin: 'kotlin-android'
2828

2929
android {
30-
compileSdkVersion 33
30+
namespace 'com.prongbang.screen_protector'
31+
compileSdk 33
3132

3233
compileOptions {
3334
sourceCompatibility JavaVersion.VERSION_11

example/android/app/build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ apply plugin: 'kotlin-android'
2626
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
2727

2828
android {
29-
compileSdkVersion 33
29+
namespace 'com.prongbang.screen_protector_example'
30+
compileSdk 33
3031

3132
compileOptions {
3233
sourceCompatibility JavaVersion.VERSION_11

example/android/app/src/debug/AndroidManifest.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2-
package="com.prongbang.screen_protector_example">
1+
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
32
<!-- Flutter needs it to communicate with the running application
43
to allow setting breakpoints, to provide hot reload, etc.
54
-->

example/android/app/src/main/AndroidManifest.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2-
package="com.prongbang.screen_protector_example">
1+
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
32
<application
43
android:label="screen_protector_example"
54
android:name="${applicationName}"

example/android/app/src/profile/AndroidManifest.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2-
package="com.prongbang.screen_protector_example">
1+
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
32
<!-- Flutter needs it to communicate with the running application
43
to allow setting breakpoints, to provide hot reload, etc.
54
-->

example/android/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
buildscript {
2-
ext.kotlin_version = '1.6.21'
2+
ext.kotlin_version = '1.7.10'
33
repositories {
44
google()
55
mavenCentral()
66
maven { url 'https://jitpack.io' }
77
}
88

99
dependencies {
10-
classpath 'com.android.tools.build:gradle:4.1.3'
10+
classpath 'com.android.tools.build:gradle:8.1.0'
1111
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
1212
}
1313
}
@@ -28,6 +28,6 @@ subprojects {
2828
project.evaluationDependsOn(':app')
2929
}
3030

31-
task clean(type: Delete) {
31+
tasks.register("clean", Delete) {
3232
delete rootProject.buildDir
3333
}

example/android/gradle.properties

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
org.gradle.jvmargs=-Xmx1536M
22
android.useAndroidX=true
33
android.enableJetifier=true
4+
android.defaults.buildfeatures.buildconfig=true
5+
android.nonTransitiveRClass=false
6+
android.nonFinalResIds=false

example/android/gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0-all.zip

0 commit comments

Comments
 (0)