Skip to content

Commit

Permalink
Merge pull request #1 from ebayraktar/feature/kotlin
Browse files Browse the repository at this point in the history
Converted FadingTextView file from Java to Kotlin
  • Loading branch information
ebayraktar authored May 30, 2023
2 parents 0b45bff + 12e973d commit 09ecc4c
Show file tree
Hide file tree
Showing 6 changed files with 207 additions and 363 deletions.
6 changes: 3 additions & 3 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
apply plugin: 'com.android.application'

android {
compileSdkVersion 32
buildToolsVersion '26.0.3'
namespace 'com.tomerrosenfeld.fadingtextview'
compileSdk 32
defaultConfig {
applicationId "com.tomerrosenfeld.fadingtextview"
minSdkVersion 27
Expand All @@ -25,7 +25,7 @@ android {
}

dependencies {
androidTestCompile('androidx.test.espresso:espresso-core:3.1.0', {
androidTestImplementation('androidx.test.espresso:espresso-core:3.1.0', {
exclude group: 'com.android.support', module: 'support-annotations'
})
implementation project(':fadingtextview')
Expand Down
8 changes: 6 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
ext {
kotlin_version = '1.8.21'
}
repositories {
jcenter()
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.2.1'
classpath 'com.android.tools.build:gradle:7.4.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.4'
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.4.1'
}
Expand All @@ -22,6 +26,6 @@ allprojects {
}
}

task clean(type: Delete) {
tasks.register('clean', Delete) {
delete rootProject.buildDir
}
10 changes: 5 additions & 5 deletions fadingtextview/build.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
apply plugin: 'com.android.library'
apply plugin: 'org.jetbrains.kotlin.android'

ext {
bintrayRepo = 'maven'
Expand All @@ -25,8 +26,8 @@ ext {
}

android {
compileSdkVersion 32
buildToolsVersion "26.0.3"
namespace 'com.tomer.fadingtextview'
compileSdk 32

defaultConfig {
minSdkVersion 14
Expand All @@ -47,6 +48,5 @@ dependencies {
testImplementation 'junit:junit:4.12'
}

apply from: 'https://raw.githubusercontent.com/nuuneoi/JCenter/master/installv1.gradle'
apply from: 'https://raw.githubusercontent.com/nuuneoi/JCenter/master/bintrayv1.gradle'

//apply from: 'https://raw.githubusercontent.com/nuuneoi/JCenter/master/installv1.gradle' // deprecated
//apply from: 'https://raw.githubusercontent.com/nuuneoi/JCenter/master/bintrayv1.gradle' // deprecated
Loading

0 comments on commit 09ecc4c

Please sign in to comment.