Skip to content

Commit

Permalink
upgrade ucrop to support androidx and sdk 29
Browse files Browse the repository at this point in the history
  • Loading branch information
ivpusic committed May 1, 2020
1 parent 1ddd03e commit 2423efd
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 241 deletions.
9 changes: 5 additions & 4 deletions android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
apply plugin: 'com.android.library'

def DEFAULT_COMPILE_SDK_VERSION = 28
def DEFAULT_BUILD_TOOLS_VERSION = "28.0.3"
def DEFAULT_TARGET_SDK_VERSION = 28
def DEFAULT_COMPILE_SDK_VERSION = 29
def DEFAULT_BUILD_TOOLS_VERSION = "29.0.2"
def DEFAULT_TARGET_SDK_VERSION = 29
def DEFAULT_MIN_SDK_VERSION = 16

android {
Expand All @@ -21,5 +21,6 @@ android {

dependencies {
implementation 'com.facebook.react:react-native:+'
implementation 'com.github.yalantis:ucrop:2.2.2-native'
implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.0.0'
implementation 'com.github.yalantis:ucrop:2.2.5-native'
}
Original file line number Diff line number Diff line change
Expand Up @@ -613,10 +613,10 @@ private void configureCropperColors(UCrop.Options options) {
Default tint is grey => use a more flashy color that stands out more as the call to action
Here we use 'Light Blue 500' from https://material.google.com/style/color.html#color-color-palette
*/
options.setActiveWidgetColor(Color.parseColor(DEFAULT_WIDGET_COLOR));
options.setActiveControlsWidgetColor(Color.parseColor(DEFAULT_WIDGET_COLOR));
} else {
//If they pass a custom tint color in, we use this for everything
options.setActiveWidgetColor(activeWidgetColor);
options.setActiveControlsWidgetColor(activeWidgetColor);
}
}

Expand Down
Loading

0 comments on commit 2423efd

Please sign in to comment.