Skip to content

Commit

Permalink
fix: android remove dep on annotationx
Browse files Browse the repository at this point in the history
  • Loading branch information
farfromrefug committed Dec 23, 2021
1 parent ea68ba9 commit c9fdfbe
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 7 additions & 3 deletions plugin/platforms/android/include.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,16 @@ dependencies {
implementation("com.facebook.fresco:fresco:$frescoVersion") {
exclude group: 'com.facebook.soloader', module: 'soloader'
exclude group: 'com.facebook.fresco', module: 'soloader'
exclude group: 'com.facebook.fresco', module: 'nativeimagefilters'
exclude group: 'com.facebook.fresco', module: 'nativeimagetranscoder'
exclude group: 'com.facebook.fresco', module: 'memory-type-native'
exclude group: 'com.facebook.fresco', module: 'imagepipeline-native'
}
implementation("com.facebook.fresco:imagepipeline-okhttp3:$frescoVersion") {
exclude group: 'com.facebook.soloader', module: 'soloader'
}
implementation ("com.facebook.fresco:animated-gif:$frescoVersion") {
exclude group: 'com.facebook.soloader', module: 'soloader'
}
// implementation ("com.facebook.fresco:animated-gif:$frescoVersion") {
// exclude group: 'com.facebook.soloader', module: 'soloader'
// }
implementation(name:'widgets-release', ext:'aar')
}
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@

import java.util.Arrays;

import androidx.annotation.RequiresApi;

public class DraweeView extends SimpleDraweeView {
public int imageWidth = 0;
public int imageHeight = 0;
Expand Down Expand Up @@ -108,7 +106,6 @@ protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
Path innerBorderPath;
Path innerBorderTempPath;

@RequiresApi(api = Build.VERSION_CODES.KITKAT)
private Path generateInnerBorderPath(BorderDrawable borderDrawable) {

float borderTopLeftRadius = borderDrawable.getBorderTopLeftRadius();
Expand Down Expand Up @@ -154,7 +151,6 @@ private Path generateInnerBorderPath(BorderDrawable borderDrawable) {
return innerBorderPath;
}

@RequiresApi(api = Build.VERSION_CODES.KITKAT)
@Override
protected void onDraw(Canvas canvas) {
Drawable drawable = getBackground();
Expand Down

0 comments on commit c9fdfbe

Please sign in to comment.