change build.gradle, make it easey to run
This commit is contained in:
parent
452f4fafdc
commit
99563c8b32
|
@ -2,7 +2,7 @@ apply plugin: 'com.android.library'
|
|||
|
||||
android {
|
||||
compileSdkVersion 23
|
||||
buildToolsVersion "23.0.2"
|
||||
buildToolsVersion "23.0.1"
|
||||
|
||||
defaultConfig {
|
||||
minSdkVersion 16
|
||||
|
@ -19,5 +19,5 @@ android {
|
|||
|
||||
dependencies {
|
||||
compile 'com.android.support:appcompat-v7:23.1.0'
|
||||
compile 'com.facebook.react:react-native:0.14.+'
|
||||
compile 'com.facebook.react:react-native:+'
|
||||
}
|
||||
|
|
|
@ -112,7 +112,7 @@ class ImageResizer {
|
|||
|
||||
public static String createResizedImage(Context context, String imagePath, int newWidth,
|
||||
int newHeight, Bitmap.CompressFormat compressFormat,
|
||||
int quality, int rotation) {
|
||||
int quality, int rotation) throws IOException{
|
||||
|
||||
Bitmap resizedImage = ImageResizer.rotateImage(ImageResizer.resizeImage(imagePath, newWidth, newHeight,context), rotation);
|
||||
return ImageResizer.saveImage(resizedImage, context.getCacheDir(),
|
||||
|
|
Loading…
Reference in New Issue