Skip to content

Commit

Permalink
add AndroidX support.
Browse files Browse the repository at this point in the history
  • Loading branch information
ittianyu committed Sep 29, 2018
1 parent a508568 commit 588452e
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 2 deletions.
7 changes: 6 additions & 1 deletion README.md
Expand Up @@ -139,7 +139,12 @@ compile "com.android.support:design:26.+"
implementation 'com.github.ittianyu:BottomNavigationViewEx:2.0.0'
implementation "com.android.support:design:28.0.0"
```

3. AndroidX
use new version,and add config into gradle.properties
```
android.useAndroidX=true
android.enableJetifier=true
```

#### Manual: ####

Expand Down
6 changes: 6 additions & 0 deletions README_ZH.md
Expand Up @@ -138,6 +138,12 @@ compile "com.android.support:design:26.+"
implementation 'com.github.ittianyu:BottomNavigationViewEx:2.0.0'
implementation "com.android.support:design:28.0.0"
```
3. AndroidX
使用新版本,然后在 gradle.properties 中添加如下配置
```
android.useAndroidX=true
android.enableJetifier=true
```

#### 手动导入: ####

Expand Down
1 change: 1 addition & 0 deletions app/build.gradle
Expand Up @@ -33,6 +33,7 @@ dependencies {
implementation "com.android.support:design:$rootProject.supportLibraryVersion"

implementation project(':widget')
// implementation 'com.github.ittianyu:BottomNavigationViewEx:2.0.0'
// leakcanary
debugImplementation 'com.squareup.leakcanary:leakcanary-android:1.5.4'
releaseImplementation 'com.squareup.leakcanary:leakcanary-android-no-op:1.5.4'
Expand Down
3 changes: 2 additions & 1 deletion build.gradle
Expand Up @@ -16,8 +16,9 @@ buildscript {

allprojects {
repositories {
jcenter()
maven { url 'https://jitpack.io' }
google()
jcenter()
}
}

Expand Down

0 comments on commit 588452e

Please sign in to comment.