Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ android {
versionCode 1
versionName "1.0"
ndk {
abiFilters "armeabi-v7a", "x86"
abiFilters "armeabi-v7a"
}
}
}
Expand All @@ -28,6 +28,5 @@ allprojects {

dependencies {
api 'com.facebook.react:react-native:+'
api files('libs/libammsdk.jar')
// compile 'com.tencent.mm.opensdk:wechat-sdk-android-without-mta:+'
api 'com.tencent.mm.opensdk:wechat-sdk-android:+'
}
Binary file removed android/libs/libammsdk.jar
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ private static byte[] bitmapResizeGetBytes(Bitmap image, int size) {
if (options > 10) {
options -= 8;
} else {
return bitmapResizeGetBytes(Bitmap.createScaledBitmap(image, 280, image.getHeight() / image.getWidth() * 280, true), size);
return bitmapResizeGetBytes(Bitmap.createScaledBitmap(image, 280, image.getHeight() * 280 / image.getWidth(), true), size);
}
// 这里压缩options%,把压缩后的数据存放到baos中
image.compress(Bitmap.CompressFormat.JPEG, options, baos);
Expand Down