Skip to content

Commit 5c0db9d

Browse files
committed
update gradle and change compat to androidx
1 parent 717160e commit 5c0db9d

19 files changed

Lines changed: 51 additions & 43 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
```java
1010

1111
dependencies{
12-
compile 'com.stomhong:customizekeyboard:1.0.1'
12+
implementation 'com.stomhong:customizekeyboard:1.0.1'
1313
}
1414
```
1515

app/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
/build
2+
/.idea

app/build.gradle

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,39 @@
11
apply plugin: 'com.android.application'
22

33
android {
4-
compileSdkVersion 26
5-
buildToolsVersion '26.0.2'
6-
4+
compileSdkVersion 28
5+
buildToolsVersion '28.0.3'
76
defaultConfig {
8-
applicationId "com.ziyeyouhu.customizekeyboard"
7+
applicationId "com.stomhong.customizekeyboard"
98
minSdkVersion 14
10-
targetSdkVersion 23
11-
versionCode 1
12-
versionName "1.0"
9+
targetSdkVersion 28
10+
versionCode 2
11+
versionName "1.0.1"
1312
}
1413
buildTypes {
1514
release {
1615
minifyEnabled false
1716
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
1817
}
1918
}
19+
productFlavors {
20+
}
2021
}
2122

2223
dependencies {
23-
compile fileTree(include: ['*.jar'], dir: 'libs')
24-
testCompile 'junit:junit:4.12'
25-
compile 'com.android.support:appcompat-v7:23.3.0'
26-
compile project(':library')
24+
implementation fileTree(include: ['*.jar'], dir: 'libs')
25+
androidTestImplementation 'junit:junit:4.12'
26+
implementation 'androidx.appcompat:appcompat:1.0.0'
27+
implementation project(':library')
2728
}
2829

2930
buildscript {
3031
repositories {
3132
jcenter()
33+
google()
3234
}
3335
dependencies {
34-
classpath 'com.android.tools.build:gradle:2.0.0'
36+
classpath 'com.android.tools.build:gradle:3.5.1'
3537
classpath 'com.novoda:bintray-release:0.3.4'
3638
}
3739
}

app/src/main/AndroidManifest.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<manifest package="com.ziyeyouhu.customkeyboard"
2+
<manifest package="com.stomhong.customkeyboard"
33
xmlns:android="http://schemas.android.com/apk/res/android">
44

55
<uses-permission android:name="android.permission.VIBRATE"/>
@@ -10,7 +10,7 @@
1010
android:label="@string/app_name"
1111
android:supportsRtl="true"
1212
android:theme="@style/AppTheme">
13-
<activity android:name="com.ziyeyouhu.customkeyboard.MainActivity">
13+
<activity android:name=".MainActivity">
1414
<intent-filter>
1515
<action android:name="android.intent.action.MAIN"/>
1616

app/src/main/java/com/ziyeyouhu/customkeyboard/MainActivity.java renamed to app/src/main/java/com/stomhong/customkeyboard/MainActivity.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
package com.ziyeyouhu.customkeyboard;
1+
package com.stomhong.customkeyboard;
22

33
import android.os.Bundle;
4-
import android.support.v7.app.AppCompatActivity;
4+
import androidx.appcompat.app.AppCompatActivity;
55
import android.view.KeyEvent;
66
import android.widget.EditText;
77
import android.widget.LinearLayout;
88
import android.widget.ScrollView;
99

10-
import com.ziyeyouhu.library.KeyboardTouchListener;
11-
import com.ziyeyouhu.library.KeyboardUtil;
10+
import com.stomhong.library.KeyboardTouchListener;
11+
import com.stomhong.library.KeyboardUtil;
1212

1313
public class MainActivity extends AppCompatActivity {
1414

app/src/test/java/com/ziyeyouhu/customkeyboard/ExampleUnitTest.java renamed to app/src/test/java/com/stomhong/customkeyboard/ExampleUnitTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.ziyeyouhu.customkeyboard;
1+
package com.stomhong.customkeyboard;
22

33
import org.junit.Test;
44

build.gradle

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@
33
buildscript {
44
repositories {
55
jcenter()
6+
google()
67
}
78
dependencies {
8-
classpath 'com.android.tools.build:gradle:3.0.0'
9+
classpath 'com.android.tools.build:gradle:3.5.1'
910

1011
// NOTE: Do not place your application dependencies here; they belong
1112
// in the individual module build.gradle files
@@ -15,6 +16,7 @@ buildscript {
1516
allprojects {
1617
repositories {
1718
jcenter()
19+
google()
1820
}
1921
}
2022

gradle.properties

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,6 @@
1515
# When configured, Gradle will run in incubating parallel mode.
1616
# This option should only be used with decoupled projects. More details, visit
1717
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
18-
# org.gradle.parallel=true
18+
# org.gradle.parallel=true
19+
android.enableJetifier=true
20+
android.useAndroidX=true
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#Fri Nov 10 09:51:23 CST 2017
1+
#Wed Nov 20 22:28:25 CST 2019
22
distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-4.3-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-5.4.1-all.zip

library/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
/build
2+
/.idea

0 commit comments

Comments
 (0)