Skip to content

Commit cb9811a

Browse files
committed
update to 1.5.4
1 parent d2edf23 commit cb9811a

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

README-EN.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ A framework for directly generating shape through Tags, no need to write shape.x
77
Add this to your app's build.gradle:
88

99
implementation "com.android.support:appcompat-v7:$supportVersion"
10-
implementation 'com.noober.background:core:1.5.3'
10+
implementation 'com.noober.background:core:1.5.4'
1111

1212
if use androidx:
1313

1414
implementation "androidx.appcompat:appcompat:$supportVersion"
15-
implementation 'com.noober.background:core:1.5.3'
15+
implementation 'com.noober.background:core:1.5.4'
1616

1717

1818
## Example effect

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ A framework for directly generating shape through Tags, no need to write shape.x
1010
依赖方式:
1111

1212
implementation "com.android.support:appcompat-v7:$supportVersion"
13-
implementation 'com.noober.background:core:1.5.3'
13+
implementation 'com.noober.background:core:1.5.4'
1414

1515
如果项目使用了androidx:
1616

1717
implementation "androidx.appcompat:appcompat:$supportVersion"
18-
implementation 'com.noober.background:core:1.5.3'
18+
implementation 'com.noober.background:core:1.5.4'
1919

2020

2121
## 使用文档

app/build.gradle

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ dependencies {
3737
testImplementation 'junit:junit:4.12'
3838
androidTestImplementation 'com.android.support.test:runner:1.0.2'
3939
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
40-
// implementation 'com.noober.background:core:1.5.2'
41-
implementation project(':library')
40+
implementation 'com.noober.background:core:1.5.4'
41+
// implementation project(':library')
4242
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
4343
}

build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ ext {
3636
userOrg = 'noober'
3737
groupId = 'com.noober.background'
3838
uploadName = 'LibraryForBackground'
39-
publishVersion = '1.5.4-ALPHA'
39+
publishVersion = '1.5.4'
4040
desc = "A framework for directly generating shape through Tags, no need to write shape.xml again(通过标签直接生成shape,无需再写shape.xml)"
4141
website = 'https://github.com/JavaNoober/BackgroundLibrary'
4242
// gradlew clean build bintrayUpload -PbintrayUser=xiaoqiandroid -PbintrayKey=xxxxxxxxxxxxxxxx -PdryRun=false

library/src/main/java/com/noober/background/drawable/GradientDrawableCreator.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ public Drawable create() throws XmlPullParserException {
313313
typedArray.hasValue(R.styleable.background_bl_padding_right) &&
314314
typedArray.hasValue(R.styleable.background_bl_padding_bottom)) {
315315
try {
316-
Field paddingField = drawable.getClass().getField("mPadding");
316+
Field paddingField = drawable.getClass().getDeclaredField("mPadding");
317317
paddingField.setAccessible(true);
318318
paddingField.set(drawable, padding);
319319
} catch (NoSuchFieldException e) {

libraryx/src/main/java/com/noober/background/drawable/GradientDrawableCreator.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ public Drawable create() throws XmlPullParserException {
313313
typedArray.hasValue(R.styleable.background_bl_padding_right) &&
314314
typedArray.hasValue(R.styleable.background_bl_padding_bottom)) {
315315
try {
316-
Field paddingField = drawable.getClass().getField("mPadding");
316+
Field paddingField = drawable.getClass().getDeclaredField("mPadding");
317317
paddingField.setAccessible(true);
318318
paddingField.set(drawable, padding);
319319
} catch (NoSuchFieldException e) {

0 commit comments

Comments
 (0)