Skip to content

Commit

Permalink
gradle update, JitPack fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nuclearfog committed Oct 21, 2021
1 parent b0bcafc commit 69d6d24
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 16 deletions.
7 changes: 2 additions & 5 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,24 +1,21 @@
buildscript {
repositories {
google()
jcenter()
mavenCentral()
}

dependencies {
classpath 'com.android.tools.build:gradle:4.1.1'
classpath 'com.android.tools.build:gradle:7.0.3'
}
}


allprojects {
repositories {
google()
jcenter()
mavenCentral()
}
}


task clean(type: Delete) {
delete rootProject.buildDir
}
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
2 changes: 2 additions & 0 deletions jitpack.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
jdk:
-openjdk11
34 changes: 25 additions & 9 deletions module/build.gradle
Original file line number Diff line number Diff line change
@@ -1,20 +1,36 @@
apply plugin: 'com.android.library'
apply plugin: 'maven'

group 'com.github.nuclearfog'
plugins {
id 'com.android.library'
id 'maven-publish'
}

android {
compileSdkVersion 30
buildToolsVersion '30.0.3'
defaultConfig {
minSdkVersion 16
targetSdkVersion 30
versionCode 5
versionName "1.4"
}

buildTypes { }
buildTypes {
release {
minifyEnabled false
}
}

compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}

dependencies {
afterEvaluate {
publishing {
publications {
release(MavenPublication) {
from components.release
groupId 'com.github.nuclearfog'
artifactId 'LinkAndScrollMovement'
version '1.4.1'
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
* While scrolling a TextView, the spans stay locked until the next tap event.
*
* @author nuclearfog
* @version 1.4
* @version 1.4.1
* @since 1.0
*/
public class LinkAndScrollMovement extends ScrollingMovementMethod {

Expand All @@ -38,6 +39,8 @@ public class LinkAndScrollMovement extends ScrollingMovementMethod {
private int xScroll = 0;
private int yScroll = 0;

/**
*/
private LinkAndScrollMovement() {
super();
}
Expand Down Expand Up @@ -78,6 +81,7 @@ public boolean onTouchEvent(TextView widget, Spannable buffer, MotionEvent event

/**
* sets maximum threshold to lock link clicks
*
* @param thrX threshold for x axis
* @param thrY threshold for y axis
*/
Expand Down

0 comments on commit 69d6d24

Please sign in to comment.