Skip to content

Commit

Permalink
optimizing.
Browse files Browse the repository at this point in the history
  • Loading branch information
郑晓勇 committed May 3, 2017
1 parent fcd6271 commit 7ef6d0e
Show file tree
Hide file tree
Showing 11 changed files with 6 additions and 5 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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**
Expand All @@ -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
}
}
}
Expand All @@ -48,14 +48,15 @@ android {
### **Initialization**

```
Tiny.getInstance().init(this);
Tiny.getInstance().init(this);
```
### **Compression**

#### **AsBitmap**

```
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) {
Expand Down Expand Up @@ -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**

Expand Down
2 changes: 1 addition & 1 deletion tiny/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ public static String getVersion() {
}

static {
System.loadLibrary("jpeg-turbo");
System.loadLibrary("tiny");
}

Expand Down
Binary file removed tiny/src/main/jniLibs/arm64-v8a/libjpeg-turbo.so
Binary file not shown.
Binary file modified tiny/src/main/jniLibs/arm64-v8a/libtiny.so
Binary file not shown.
Binary file removed tiny/src/main/jniLibs/armeabi-v7a/libjpeg-turbo.so
Binary file not shown.
Binary file modified tiny/src/main/jniLibs/armeabi-v7a/libtiny.so
Binary file not shown.
Binary file removed tiny/src/main/jniLibs/armeabi/libjpeg-turbo.so
Binary file not shown.
Binary file modified tiny/src/main/jniLibs/armeabi/libtiny.so
Binary file not shown.
Binary file removed tiny/src/main/jniLibs/x86/libjpeg-turbo.so
Binary file not shown.
Binary file modified tiny/src/main/jniLibs/x86/libtiny.so
Binary file not shown.

0 comments on commit 7ef6d0e

Please sign in to comment.