diff --git a/build.gradle b/build.gradle index 3a8a17e..a269709 100644 --- a/build.gradle +++ b/build.gradle @@ -1,11 +1,15 @@ // Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { + ext { + agp_version = '8.3.0' + } repositories { jcenter() + google() } dependencies { - classpath 'com.android.tools.build:gradle:1.0.0' + classpath "com.android.tools.build:gradle:$agp_version" // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } @@ -14,5 +18,6 @@ buildscript { allprojects { repositories { jcenter() + google() } } diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index ae048bb..e411586 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,5 @@ -#Sun Jan 04 21:42:37 SGT 2015 distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists +distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-2.2.1-all.zip diff --git a/library/build.gradle b/library/build.gradle index ed83687..ee4dba5 100644 --- a/library/build.gradle +++ b/library/build.gradle @@ -1,12 +1,13 @@ apply plugin: 'com.android.library' android { - compileSdkVersion 21 + namespace = "com.amulyakhare.textdrawable" // this should be your namespace from AndroidManifest.xml + compileSdkVersion 33 buildToolsVersion "21.1.1" defaultConfig { - minSdkVersion 10 - targetSdkVersion 21 + minSdkVersion 23 + targetSdkVersion 33 versionCode 2 versionName "1.1" } @@ -19,7 +20,7 @@ android { } dependencies { - compile fileTree(dir: 'libs', include: ['*.jar']) + implementation fileTree(dir: 'libs', include: ['*.jar']) } sourceSets { @@ -34,6 +35,6 @@ sourceSets { } task sourcesJar(type: Jar) { - classifier = 'sources' + archiveClassifier = 'sources' from sourceSets.main.java, sourceSets.main.resources } diff --git a/sample/build.gradle b/sample/build.gradle index 85e0728..b266175 100644 --- a/sample/build.gradle +++ b/sample/build.gradle @@ -1,13 +1,14 @@ apply plugin: 'com.android.application' android { - compileSdkVersion 21 + namespace = "com.amulyakhare.td" // this should be your namespace from AndroidManifest.xml + compileSdkVersion 33 buildToolsVersion "21.1.1" defaultConfig { applicationId "com.amulyakhare.td" - minSdkVersion 10 - targetSdkVersion 21 + minSdkVersion 23 + targetSdkVersion 33 versionCode 2 versionName "1.0" } @@ -20,7 +21,11 @@ android { } dependencies { - compile fileTree(dir: 'libs', include: ['*.jar']) - compile project(':library') - compile 'com.android.support:appcompat-v7:21.0.3' + implementation fileTree(dir: 'libs', include: ['*.jar']) + implementation project(':library') + implementation 'com.android.support:appcompat-v7:21.0.3' +} + +task wrapper(type: Wrapper){ + gradleVersion = '8.4' } \ No newline at end of file diff --git a/sample/src/main/AndroidManifest.xml b/sample/src/main/AndroidManifest.xml index 3f1ab69..88b1bbf 100644 --- a/sample/src/main/AndroidManifest.xml +++ b/sample/src/main/AndroidManifest.xml @@ -9,6 +9,7 @@ android:theme="@style/AppTheme" >