Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 19 additions & 5 deletions SignaturePad-Example/build.gradle
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
apply plugin: 'com.android.application'
plugins {
id 'com.android.application'
}

android {
compileSdkVersion Integer.parseInt(project.ANDROID_BUILD_SDK_VERSION)
namespace project.PROJECT_NAMESPACE_APP
compileSdk Integer.parseInt(project.ANDROID_BUILD_SDK_VERSION)

defaultConfig {
minSdkVersion 14
defaultConfig {
minSdkVersion 21
targetSdkVersion Integer.parseInt(project.ANDROID_BUILD_TARGET_SDK_VERSION)
versionName project.VERSION_NAME
versionCode Integer.parseInt(project.VERSION_CODE)
Expand All @@ -17,9 +20,20 @@ android {
minifyEnabled false
}
}

}

dependencies {
implementation project(":signature-pad")
implementation 'androidx.appcompat:appcompat:1.0.0'
implementation 'androidx.appcompat:appcompat:1.7.0'
}

configurations.implementation {
exclude group: "org.jetbrains.kotlin", module: "kotlin-stdlib-jdk8"
}

java {
toolchain {
languageVersion = JavaLanguageVersion.of(17)
}
}
4 changes: 2 additions & 2 deletions SignaturePad-Example/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="it.gcacace.signaturepad">
<manifest xmlns:android="http://schemas.android.com/apk/res/android">

<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.INTERNET" />
Expand All @@ -12,6 +11,7 @@
android:theme="@style/AppTheme" >
<activity
android:name="com.github.gcacace.signaturepad.MainActivity"
android:exported="true"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
Expand Down
8 changes: 3 additions & 5 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
buildscript {
repositories {
google()
jcenter()
mavenCentral()
}

dependencies {
classpath 'com.android.tools.build:gradle:3.6.1'
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'
classpath 'com.android.tools.build:gradle:8.8.2'
}
}

plugins {
id 'com.jfrog.bintray' version '1.8.4'
id 'maven-publish'
}

Expand All @@ -21,6 +19,6 @@ allprojects {

repositories {
google()
jcenter()
mavenCentral()
}
}
7 changes: 5 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,11 @@ POM_DEVELOPER_ID=gcacace
POM_DEVELOPER_NAME=Gianluca Cacace
[email protected]

ANDROID_BUILD_TARGET_SDK_VERSION=29
ANDROID_BUILD_SDK_VERSION=29
ANDROID_BUILD_TARGET_SDK_VERSION=35
ANDROID_BUILD_SDK_VERSION=35

PROJECT_NAMESPACE_APP=it.gcacace.signaturepad
PROJECT_NAMESPACE=com.github.gcacace.signaturepad

android.useAndroidX=true
android.enableJetifier=true
4 changes: 2 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Tue Aug 08 11:36:01 SGT 2017
#Wed Apr 02 19:02:21 CST 2025
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.11.1-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.2.2-all.zip
3 changes: 3 additions & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
plugins {
id 'org.gradle.toolchains.foojay-resolver-convention' version '0.8.0'
}
rootProject.name = 'signaturepad'

include ':signature-pad', ':SignaturePad-Example'
50 changes: 14 additions & 36 deletions signature-pad/build.gradle
Original file line number Diff line number Diff line change
@@ -1,53 +1,31 @@
apply plugin: 'com.android.library'
apply plugin: 'maven-publish'
apply plugin: 'com.jfrog.bintray'
plugins {
id 'com.android.library'
id 'maven-publish'
}

Properties properties = new Properties()
final def bintrayPropertiesFile = project.rootProject.file('bintray.properties')
if (bintrayPropertiesFile.exists()) properties.load(bintrayPropertiesFile.newDataInputStream())

android {
compileSdkVersion Integer.parseInt(project.ANDROID_BUILD_SDK_VERSION)
namespace project.PROJECT_NAMESPACE
compileSdk Integer.parseInt(project.ANDROID_BUILD_SDK_VERSION)

defaultConfig {
minSdkVersion 14
minSdkVersion 21
targetSdkVersion Integer.parseInt(project.ANDROID_BUILD_TARGET_SDK_VERSION)
consumerProguardFiles 'proguard-rules-consumer.pro'
}

compileOptions {
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}

dataBinding {
enabled = true
}
}

bintray {
user = properties.getProperty("bintray.user")
key = properties.getProperty("bintray.apikey")

configurations = ['archives']
publications = ['aar']
pkg {
repo = "maven"
name = project.POM_ARTIFACT_ID
desc = project.POM_DESCRIPTION
websiteUrl = project.POM_URL
vcsUrl = project.POM_SCM_URL
licenses = ["Apache-2.0"]
publish = true

version {
gpg {
sign = true
passphrase = properties.getProperty("bintray.gpg.passphrase")
}
mavenCentralSync {
sync = true
user = properties.getProperty("oss.userToken")
password = properties.getProperty("oss.userTokenValue")
close = '1'
}
}
}
dependencies {
implementation "androidx.core:core:1.15.0"
}

project.ext {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
import android.view.View;

public class ViewCompat {

private ViewCompat() {
// empty constructor
}

/**
* Returns true if {@code view} has been through at least one layout since it
* was last attached to or detached from a window.
Expand All @@ -21,4 +26,4 @@ public static boolean isLaidOut(View view) {
// Legacy...
return view.getWidth() > 0 && view.getHeight() > 0;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@
import android.view.ViewTreeObserver;

public class ViewTreeObserverCompat {

private ViewTreeObserverCompat() {
// empty constructor
}

/**
* Remove a previously installed global layout callback.
* @param observer the view observer
Expand Down
Loading