Skip to content

Commit 9d14eac

Browse files
committed
环境升级, 迁移mavenCentral
1 parent 753efee commit 9d14eac

File tree

6 files changed

+30
-29
lines changed

6 files changed

+30
-29
lines changed

README.md

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -7,27 +7,26 @@
77
![效果图](/images/image_normal.jpg) ![效果图](/images/image_left.jpg) ![效果图](/images/image_right.jpg)
88

99
### Use
10-
implementation 'com.uis:stackviewlayout:0.1.1'
10+
implementation 'io.github.luiing:stackviewlayout:0.1.2'
1111

1212
### [老版本StackLayout](README-StackLayout.md)
1313

14-
*Name*| *Descript*|*Value*
15-
-----|--------|---
16-
stackEdgeModel|层叠位置(stack model)|left/right
17-
stackEdge|边界距离(edge)|默认值(default):10dp
18-
stackPaddingX|x方向偏移距离|10dp
19-
stackOffsetX|x方向偏移因子|2dp
20-
stackPaddingY|y方向偏移距离|10dp
21-
stackOffsetY|y方向偏移因子|2dp
22-
stackAutoPlay|自动轮播(looper)|true
23-
stackDelay|自动轮播延时时间mills|3000
24-
stackDuration|自动轮播播放时间mills|600
25-
stackSize|层叠数量(stack size)|3
26-
stackAspectRatio|顶层宽高比,宽度须有值|0
14+
| *Name* | *Descript* | *Value* |
15+
|------------------|-------------------|-------------------|
16+
| stackEdgeModel | 层叠位置(stack model) | left/right |
17+
| stackEdge | 边界距离(edge) | 默认值(default):10dp |
18+
| stackPaddingX | x方向偏移距离 | 10dp |
19+
| stackOffsetX | x方向偏移因子 | 2dp |
20+
| stackPaddingY | y方向偏移距离 | 10dp |
21+
| stackOffsetY | y方向偏移因子 | 2dp |
22+
| stackAutoPlay | 自动轮播(looper) | true |
23+
| stackDelay | 自动轮播延时时间mills | 3000 |
24+
| stackDuration | 自动轮播播放时间mills | 600 |
25+
| stackSize | 层叠数量(stack size) | 3 |
26+
| stackAspectRatio | 顶层宽高比,宽度须有值 | 0 |
2727

2828
### Version
29-
v0.1.0->初始版本,滑动利用Scroller,支持手动滑动和自动轮播,支持多种布局
30-
v0.1.1->fixed 点击后自动轮播失效,增加轮播延时、轮播时间设置
29+
0.1.2 迁移到mavenCentral, compile、gradle升级
3130

3231
### License
3332

build.gradle

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,25 @@
33
buildscript {
44

55
repositories {
6-
maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
6+
mavenLocal()
7+
mavenCentral()
8+
maven { url 'https://maven.aliyun.com/nexus/content/groups/public/' }
79
google()
8-
jcenter()
910
}
1011

1112
dependencies {
12-
classpath 'com.android.tools.build:gradle:4.0.0'
13+
classpath 'com.android.tools.build:gradle:7.1.2'
1314
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.4'
1415
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
1516
}
1617
}
1718

1819
allprojects {
1920
repositories {
20-
maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
21+
mavenLocal()
22+
mavenCentral()
23+
maven { url 'https://maven.aliyun.com/nexus/content/groups/public/' }
2124
google()
22-
jcenter()
2325
}
2426
}
2527

@@ -29,7 +31,7 @@ task clean(type: Delete) {
2931

3032
ext{
3133
androidx = '1.0.0'
32-
compileVer = 29
33-
minVer = 15
34-
buildVer = '29.0.3'
34+
compileVer = 33
35+
minVer = 16
36+
buildVer = '33.0.2'
3537
}

demo/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ android {
1111
versionName "1.0"
1212
manifestPlaceholders = [
1313
APP_PKGNAME: "${applicationId}"
14-
]
14+
]
1515
}
1616
buildTypes {
1717
release {
@@ -27,7 +27,7 @@ dependencies {
2727
implementation "androidx.recyclerview:recyclerview:${androidx}"
2828
implementation 'com.github.bumptech.glide:glide:3.8.0'
2929
implementation 'com.makeramen:roundedimageview:2.3.0'
30-
implementation 'com.google.code.gson:gson:2.8.5'
30+
implementation 'com.google.code.gson:gson:2.10.1'
3131
implementation "androidx.viewpager:viewpager:${androidx}"
3232
implementation 'com.facebook.fresco:fresco:2.2.0'
3333
implementation project(':stackviewlayout')

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ 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-6.4-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-all.zip

stacklayout/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ android {
2020
}
2121
}
2222

23-
//apply from: '../../bintray.gradle'
23+
//apply from: '../../publish.gradle'

stackviewlayout/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ dependencies{
2424
compileOnly "androidx.appcompat:appcompat:${androidx}"
2525
}
2626

27-
//apply from: '../../bintray.gradle'
27+
//apply from: '../../publish.gradle'

0 commit comments

Comments
 (0)