Skip to content

Commit

Permalink
update to 1.5.4
Browse files Browse the repository at this point in the history
  • Loading branch information
JavaNoober committed Aug 9, 2019
1 parent d2edf23 commit cb9811a
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions README-EN.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ A framework for directly generating shape through Tags, no need to write shape.x
Add this to your app's build.gradle:

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

if use androidx:

implementation "androidx.appcompat:appcompat:$supportVersion"
implementation 'com.noober.background:core:1.5.3'
implementation 'com.noober.background:core:1.5.4'


## Example effect
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ A framework for directly generating shape through Tags, no need to write shape.x
依赖方式:

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

如果项目使用了androidx:

implementation "androidx.appcompat:appcompat:$supportVersion"
implementation 'com.noober.background:core:1.5.3'
implementation 'com.noober.background:core:1.5.4'


## 使用文档
Expand Down
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ dependencies {
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
// implementation 'com.noober.background:core:1.5.2'
implementation project(':library')
implementation 'com.noober.background:core:1.5.4'
// implementation project(':library')
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
}
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ ext {
userOrg = 'noober'
groupId = 'com.noober.background'
uploadName = 'LibraryForBackground'
publishVersion = '1.5.4-ALPHA'
publishVersion = '1.5.4'
desc = "A framework for directly generating shape through Tags, no need to write shape.xml again(通过标签直接生成shape,无需再写shape.xml)"
website = 'https://github.com/JavaNoober/BackgroundLibrary'
// gradlew clean build bintrayUpload -PbintrayUser=xiaoqiandroid -PbintrayKey=xxxxxxxxxxxxxxxx -PdryRun=false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ public Drawable create() throws XmlPullParserException {
typedArray.hasValue(R.styleable.background_bl_padding_right) &&
typedArray.hasValue(R.styleable.background_bl_padding_bottom)) {
try {
Field paddingField = drawable.getClass().getField("mPadding");
Field paddingField = drawable.getClass().getDeclaredField("mPadding");
paddingField.setAccessible(true);
paddingField.set(drawable, padding);
} catch (NoSuchFieldException e) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ public Drawable create() throws XmlPullParserException {
typedArray.hasValue(R.styleable.background_bl_padding_right) &&
typedArray.hasValue(R.styleable.background_bl_padding_bottom)) {
try {
Field paddingField = drawable.getClass().getField("mPadding");
Field paddingField = drawable.getClass().getDeclaredField("mPadding");
paddingField.setAccessible(true);
paddingField.set(drawable, padding);
} catch (NoSuchFieldException e) {
Expand Down

0 comments on commit cb9811a

Please sign in to comment.