Skip to content

Commit

Permalink
升级 androidx
Browse files Browse the repository at this point in the history
  • Loading branch information
wenchaosong committed Aug 10, 2021
1 parent 4acc922 commit 8ff8735
Show file tree
Hide file tree
Showing 71 changed files with 116 additions and 2,857 deletions.
25 changes: 2 additions & 23 deletions LibBanner/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,36 +2,15 @@ apply plugin: 'com.android.library'

android {
compileSdkVersion rootProject.ext.compileSdkVersion
buildToolsVersion rootProject.ext.buildToolsVersion

defaultConfig {
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
}

buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}

lintOptions {
abortOnError false
}
}

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation "com.android.support:appcompat-v7:$rootProject.ext.supportVersion"
}

apply plugin: 'com.novoda.bintray-release'

publish {
userOrg = 'songwenchao0714'
groupId = 'com.ms'
artifactId = 'banner'
publishVersion = '1.0.0'
desc = 'A simple banner lib'
website = 'https://github.com/wenchaosong/Banner'
implementation "androidx.appcompat:appcompat:$rootProject.ext.appcompat"
}
7 changes: 4 additions & 3 deletions LibBanner/src/main/java/com/ms/banner/Banner.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.drawable.Drawable;
import android.support.annotation.IntRange;
import android.support.v4.view.PagerAdapter;
import android.support.v4.view.ViewPager;
import android.util.AttributeSet;
import android.util.DisplayMetrics;
import android.util.TypedValue;
Expand All @@ -21,6 +18,10 @@
import android.widget.RelativeLayout;
import android.widget.TextView;

import androidx.annotation.IntRange;
import androidx.viewpager.widget.PagerAdapter;
import androidx.viewpager.widget.ViewPager;

import com.ms.banner.holder.BannerViewHolder;
import com.ms.banner.listener.OnBannerClickListener;
import com.ms.banner.view.ArcShapeView;
Expand Down
Loading

0 comments on commit 8ff8735

Please sign in to comment.