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
7 changes: 6 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
@@ -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
}
Expand All @@ -14,5 +18,6 @@ buildscript {
allprojects {
repositories {
jcenter()
google()
}
}
3 changes: 1 addition & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -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
11 changes: 6 additions & 5 deletions library/build.gradle
Original file line number Diff line number Diff line change
@@ -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"
}
Expand All @@ -19,7 +20,7 @@ android {
}

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
implementation fileTree(dir: 'libs', include: ['*.jar'])
}

sourceSets {
Expand All @@ -34,6 +35,6 @@ sourceSets {
}

task sourcesJar(type: Jar) {
classifier = 'sources'
archiveClassifier = 'sources'
from sourceSets.main.java, sourceSets.main.resources
}
17 changes: 11 additions & 6 deletions sample/build.gradle
Original file line number Diff line number Diff line change
@@ -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"
}
Expand All @@ -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'
}
1 change: 1 addition & 0 deletions sample/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
android:theme="@style/AppTheme" >
<activity
android:name="com.amulyakhare.td.sample.MainActivity"
android:exported="true"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
Expand Down