diff --git a/README.md b/README.md index 244862c..8463da3 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ or ### **Installation** ``` -compile 'com.zxy.android:tiny:0.0.2' +compile 'com.zxy.android:tiny:0.0.3' ``` ### **Choose an abi** @@ -39,7 +39,7 @@ Choose what you need **"abi"** version: android { defaultConfig { ndk { - abiFilters 'armeabi-v7a','x86'//or armeabi、arm64-v8a、x86 + abiFilters 'armeabi','x86'//or armeabi-v7a、arm64-v8a、x86 } } } @@ -48,7 +48,7 @@ android { ### **Initialization** ``` -Tiny.getInstance().init(this); + Tiny.getInstance().init(this); ``` ### **Compression** @@ -56,6 +56,7 @@ Tiny.getInstance().init(this); ``` Tiny.BitmapCompressOptions options = new Tiny.BitmapCompressOptions(); + //options.height = xxx;//some compression configuration. Tiny.getInstance().source("").asBitmap().withOptions(options).compress(new BitmapCallback() { @Override public void callback(boolean isSuccess, Bitmap bitmap) { @@ -125,6 +126,7 @@ Tiny.getInstance().init(this); * **v0.0.1**:The first version. * **v0.0.2**:Optimize the compression strategy,and handle with the orientation of bitmap. +* **v0.0.3**:Unified as `libtiny.so` ## **License** diff --git a/tiny/build.gradle b/tiny/build.gradle index 78e0b1e..edc32a0 100644 --- a/tiny/build.gradle +++ b/tiny/build.gradle @@ -31,7 +31,7 @@ dependencies { ext { upload_group_id = 'com.zxy.android' - upload_version = '0.0.2' + upload_version = '0.0.3' site_url = 'https://github.com/Sunzxyong/Tiny' git_url = 'https://github.com/Sunzxyong/Tiny.git' diff --git a/tiny/src/main/java/com/zxy/libjpegturbo/JpegTurboCompressor.java b/tiny/src/main/java/com/zxy/libjpegturbo/JpegTurboCompressor.java index 28cbde4..a45491a 100644 --- a/tiny/src/main/java/com/zxy/libjpegturbo/JpegTurboCompressor.java +++ b/tiny/src/main/java/com/zxy/libjpegturbo/JpegTurboCompressor.java @@ -16,7 +16,6 @@ public static String getVersion() { } static { - System.loadLibrary("jpeg-turbo"); System.loadLibrary("tiny"); } diff --git a/tiny/src/main/jniLibs/arm64-v8a/libjpeg-turbo.so b/tiny/src/main/jniLibs/arm64-v8a/libjpeg-turbo.so deleted file mode 100755 index 5230961..0000000 Binary files a/tiny/src/main/jniLibs/arm64-v8a/libjpeg-turbo.so and /dev/null differ diff --git a/tiny/src/main/jniLibs/arm64-v8a/libtiny.so b/tiny/src/main/jniLibs/arm64-v8a/libtiny.so index 49d5b15..ff5fe7a 100755 Binary files a/tiny/src/main/jniLibs/arm64-v8a/libtiny.so and b/tiny/src/main/jniLibs/arm64-v8a/libtiny.so differ diff --git a/tiny/src/main/jniLibs/armeabi-v7a/libjpeg-turbo.so b/tiny/src/main/jniLibs/armeabi-v7a/libjpeg-turbo.so deleted file mode 100755 index b54d4a4..0000000 Binary files a/tiny/src/main/jniLibs/armeabi-v7a/libjpeg-turbo.so and /dev/null differ diff --git a/tiny/src/main/jniLibs/armeabi-v7a/libtiny.so b/tiny/src/main/jniLibs/armeabi-v7a/libtiny.so index fb87161..108a456 100755 Binary files a/tiny/src/main/jniLibs/armeabi-v7a/libtiny.so and b/tiny/src/main/jniLibs/armeabi-v7a/libtiny.so differ diff --git a/tiny/src/main/jniLibs/armeabi/libjpeg-turbo.so b/tiny/src/main/jniLibs/armeabi/libjpeg-turbo.so deleted file mode 100755 index f2cf311..0000000 Binary files a/tiny/src/main/jniLibs/armeabi/libjpeg-turbo.so and /dev/null differ diff --git a/tiny/src/main/jniLibs/armeabi/libtiny.so b/tiny/src/main/jniLibs/armeabi/libtiny.so index 28cc03f..4fccc84 100755 Binary files a/tiny/src/main/jniLibs/armeabi/libtiny.so and b/tiny/src/main/jniLibs/armeabi/libtiny.so differ diff --git a/tiny/src/main/jniLibs/x86/libjpeg-turbo.so b/tiny/src/main/jniLibs/x86/libjpeg-turbo.so deleted file mode 100755 index a6c7949..0000000 Binary files a/tiny/src/main/jniLibs/x86/libjpeg-turbo.so and /dev/null differ diff --git a/tiny/src/main/jniLibs/x86/libtiny.so b/tiny/src/main/jniLibs/x86/libtiny.so index ebe1441..4ec48d4 100755 Binary files a/tiny/src/main/jniLibs/x86/libtiny.so and b/tiny/src/main/jniLibs/x86/libtiny.so differ