-
-
Notifications
You must be signed in to change notification settings - Fork 222
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #22 from ebayraktar/master
Converted FadingTextView file from Java to Kotlin
- Loading branch information
Showing
11 changed files
with
303 additions
and
469 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
import org.gradle.api.JavaVersion | ||
|
||
plugins { | ||
id("com.android.application") | ||
} | ||
|
||
android { | ||
compileSdk = 33 | ||
|
||
defaultConfig { | ||
applicationId = "com.tomerrosenfeld.fadingtextview" | ||
minSdk = 23 | ||
targetSdk = 33 | ||
vectorDrawables.useSupportLibrary = true | ||
versionCode = 2 | ||
versionName = "1.0" | ||
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" | ||
} | ||
|
||
buildTypes { | ||
getByName("release") { | ||
isMinifyEnabled = false | ||
proguardFiles(getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro") | ||
} | ||
} | ||
|
||
compileOptions { | ||
sourceCompatibility = JavaVersion.VERSION_1_8 | ||
targetCompatibility = JavaVersion.VERSION_1_8 | ||
} | ||
} | ||
|
||
dependencies { | ||
androidTestImplementation("androidx.test.espresso:espresso-core:3.1.0") { | ||
exclude(group = "com.android.support", module = "support-annotations") | ||
} | ||
implementation(project(":fadingtextview")) | ||
implementation("androidx.appcompat:appcompat:1.6.1") | ||
implementation("com.google.android.material:material:1.9.0") | ||
implementation("org.adw.library:discrete-seekbar:1.0.1") | ||
testImplementation("junit:junit:4.13.2") | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
buildscript { | ||
val kotlin_version = "1.6.21" | ||
repositories { | ||
jcenter() | ||
google() | ||
} | ||
dependencies { | ||
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") | ||
} | ||
} | ||
|
||
allprojects { | ||
repositories { | ||
jcenter() | ||
maven { | ||
url = uri("https://maven.google.com") | ||
} | ||
google() | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
plugins { | ||
id("com.android.library") | ||
id("org.jetbrains.kotlin.android") | ||
} | ||
|
||
val bintrayRepo = "maven" | ||
val bintrayName = "fadingtextview" | ||
|
||
val publishedGroupId = "com.tomer" | ||
val libraryName = "fadingtextview" | ||
val artifact = "fadingtextview" | ||
|
||
val libraryDescription = "A textview that changes its content automatically every few seconds Edit" | ||
|
||
val siteUrl = "https://github.com/rosenpin/FadingTextView" | ||
val gitUrl = "https://github.com/rosenpin/FadingTextView.git" | ||
|
||
val libraryVersion = "2.6" | ||
|
||
val developerId = "rosenpin" | ||
val developerName = "Tomer Rosenfeld" | ||
val developerEmail = "[email protected]" | ||
|
||
val licenseName = "The Apache Software License, Version 2.0" | ||
val licenseUrl = "http://www.apache.org/licenses/LICENSE-2.0.txt" | ||
val allLicenses = listOf("Apache-2.0") | ||
|
||
android { | ||
namespace = "com.tomer.fadingtextview" | ||
compileSdk = 32 | ||
|
||
defaultConfig { | ||
minSdk = 14 | ||
targetSdk = 32 | ||
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" | ||
} | ||
|
||
buildTypes { | ||
getByName("release") { | ||
isMinifyEnabled = false | ||
proguardFiles(getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro") | ||
} | ||
} | ||
} | ||
|
||
dependencies { | ||
implementation("androidx.appcompat:appcompat:1.4.2") | ||
testImplementation("junit:junit:4.12") | ||
} |
Oops, something went wrong.