Skip to content

Commit

Permalink
v1.9 | Upgraded dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
AnupKumarPanwar committed Jan 22, 2022
1 parent 7bcdaf7 commit b412bee
Show file tree
Hide file tree
Showing 8 changed files with 36 additions and 13 deletions.
25 changes: 25 additions & 0 deletions .idea/jarRepositories.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ repositories {
}
dependencies {
implementation 'com.github.AnupKumarPanwar:ScratchView:1.8'
implementation 'com.github.AnupKumarPanwar:ScratchView:1.9'
}
```

Expand Down
6 changes: 3 additions & 3 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ android {

dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'androidx.appcompat:appcompat:1.3.1'
implementation 'com.google.android.material:material:1.4.0'
implementation 'androidx.constraintlayout:constraintlayout:2.1.1'
implementation 'androidx.appcompat:appcompat:1.4.1'
implementation 'com.google.android.material:material:1.5.0'
implementation 'androidx.constraintlayout:constraintlayout:2.1.3'
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
Expand Down
Binary file modified app/src/main/res/drawable-v24/anup.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ buildscript {
maven { url 'https://jitpack.io' }
}
dependencies {
classpath "com.android.tools.build:gradle:7.0.3"
classpath 'com.android.tools.build:gradle:7.0.4'
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'

// NOTE: Do not place your application dependencies here; they belong
Expand Down
8 changes: 3 additions & 5 deletions scratchview/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ android {
defaultConfig {
minSdk 21
targetSdk 31
versionCode 1
versionName "1.0"

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles "consumer-rules.pro"
Expand All @@ -29,8 +27,8 @@ android {
}

dependencies {
implementation 'androidx.appcompat:appcompat:1.3.1'
implementation 'com.google.android.material:material:1.4.0'
implementation 'androidx.appcompat:appcompat:1.4.1'
implementation 'com.google.android.material:material:1.5.0'
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
Expand All @@ -43,7 +41,7 @@ afterEvaluate {
from components.release
groupId = "com.anupkumarpanwar"
artifactId = "scratchview"
version = '1.8'
version = '1.9'
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ public void setRevealListener(IRevealListener listener) {
}

public boolean isRevealed() {
return mRevealPercent >= 0.50;
return mRevealPercent >= 0.33;
}

private void checkRevealed() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ public static float getTransparentPixelPercent(Bitmap bitmap) {
int len = array.length;
int count = 0;

for (int i = 0; i < len; i++) {
if (array[i] == 0) {
for (byte b : array) {
if (b == 0) {
count++;
}
}
Expand Down

0 comments on commit b412bee

Please sign in to comment.