Skip to content

Commit eda152c

Browse files
Merge pull request #6 from javichaques/master
Update Kotlin version, Android SDK and migrate to AndroidX
2 parents 6ccaac2 + ba05f36 commit eda152c

File tree

13 files changed

+39
-144
lines changed

13 files changed

+39
-144
lines changed

.idea/misc.xml

Lines changed: 9 additions & 61 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/vcs.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ allprojects {
2323
**Step 2.** Add the dependency
2424
```
2525
dependencies {
26-
compile 'com.github.Omega-R:OmegaCenterIconButton:0.0.1@aar'
26+
implementation 'com.github.Omega-R:OmegaCenterIconButton:0.0.3@aar'
2727
}
2828
```
2929

@@ -33,10 +33,8 @@ Example of usage in xml layout
3333
<com.omega_r.libs.OmegaCenterIconButton
3434
android:layout_width="match_parent"
3535
android:layout_height="wrap_content"
36-
android:drawableLeft="@drawable/ic_android_black_24dp"
37-
android:text="Great"
38-
android:textSize="14sp"
39-
android:theme="@style/BlueButtonStyle"/>
36+
android:drawableStart="@drawable/ic_android_black_24dp"
37+
       android:text="Great"/>
4038
```
4139

4240
# License

app/build.gradle

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,15 @@ apply plugin: 'kotlin-android-extensions'
44

55
android {
66
compileSdkVersion rootProject.compileSdkVersion
7+
78
defaultConfig {
89
applicationId "com.omega"
910
minSdkVersion rootProject.minSdkVersion
1011
targetSdkVersion rootProject.targetSdkVersion
1112
versionCode 1
1213
versionName "1.0"
13-
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
1414
}
15+
1516
buildTypes {
1617
release {
1718
minifyEnabled false
@@ -22,12 +23,8 @@ android {
2223

2324
dependencies {
2425
api fileTree(dir: 'libs', include: ['*.jar'])
25-
api "org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version"
26-
api "com.android.support:appcompat-v7:$supportLibraryVersion"
26+
api "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlinVersion"
27+
api "androidx.appcompat:appcompat:$appCompatLibraryVersion"
2728

2829
api project(":center_icon_button")
29-
30-
testImplementation 'junit:junit:4.12'
31-
androidTestImplementation 'com.android.support.test:runner:1.0.1'
32-
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'
3330
}

app/src/androidTest/java/com/omega/ExampleInstrumentedTest.kt

Lines changed: 0 additions & 24 deletions
This file was deleted.

app/src/main/java/com/omega/MainActivity.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package com.omega
22

3-
import android.support.v7.app.AppCompatActivity
43
import android.os.Bundle
4+
import androidx.appcompat.app.AppCompatActivity
55

66
class MainActivity : AppCompatActivity() {
77

app/src/test/java/com/omega/ExampleUnitTest.kt

Lines changed: 0 additions & 17 deletions
This file was deleted.

build.gradle

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,21 @@
1-
// Top-level build file where you can add configuration options common to all sub-projects/modules.
2-
31
buildscript {
4-
ext.kotlin_version = '1.2.30'
5-
ext.supportLibraryVersion = '27.1.1'
6-
ext.targetSdkVersion = 27
7-
ext.compileSdkVersion = 27
2+
ext.kotlinVersion = '1.2.71'
3+
ext.appCompatLibraryVersion = '1.0.0'
4+
ext.targetSdkVersion = 28
5+
ext.compileSdkVersion = 28
86
ext.minSdkVersion = 14
97

108

119
repositories {
1210
google()
1311
jcenter()
12+
mavenCentral()
1413
maven { url 'https://jitpack.io' }
1514
}
1615
dependencies {
17-
classpath 'com.android.tools.build:gradle:3.1.1'
18-
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
19-
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.0'
20-
21-
// NOTE: Do not place your application dependencies here; they belong
22-
// in the individual module build.gradle files
16+
classpath 'com.android.tools.build:gradle:3.2.1'
17+
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
18+
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
2319
}
2420
}
2521

center_icon_button/build.gradle

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@ android {
1010
targetSdkVersion rootProject.targetSdkVersion
1111
versionCode 1
1212
versionName "1.0"
13-
14-
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
15-
1613
}
1714

1815
buildTypes {
@@ -21,10 +18,9 @@ android {
2118
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
2219
}
2320
}
24-
2521
}
2622

2723
dependencies {
2824
implementation fileTree(dir: 'libs', include: ['*.jar'])
29-
compileOnly "com.android.support:appcompat-v7:$supportLibraryVersion"
25+
compileOnly "androidx.appcompat:appcompat:$appCompatLibraryVersion"
3026
}
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2-
package="com.omega_r.libs.centericonbutton" />
1+
<manifest package="com.omega_r.libs.centericonbutton" />

0 commit comments

Comments
 (0)