Skip to content

Commit

Permalink
upgrade to 1.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
wuapnjie committed Apr 25, 2017
1 parent 901de15 commit b605ccb
Show file tree
Hide file tree
Showing 11 changed files with 16 additions and 26 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ A view which can add sticker and zoom,drag,flip,delete it
In your **build.gradle**

```gradle
compile 'com.flying.xiaopo:sticker:1.4.0'
compile 'com.flying.xiaopo:sticker:1.6.0'
```

**Tips**:StickerView extends FrameLayout
Expand Down Expand Up @@ -67,6 +67,7 @@ stickerView.setIcons(Arrays.asList(deleteIcon, zoomIcon, flipIcon, heartIcon));
* **2016/12/16** Add Double Tap Callback
* **2016/12/17** Add Constrain Sticker's move area
* **2017/02/07** Custom your icon and icon event
* **2017/04/25** Fix scale err and add more useful function

## Todo
- [x] Constrain the sticker's moving area
Expand Down
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ buildscript {
}
dependencies {
classpath 'com.android.tools.build:gradle:2.2.3'
//

// classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.6'
// classpath 'com.github.dcendents:android-maven-gradle-plugin:1.4.1'
// NOTE: Do not place your application dependencies here; they belong
Expand All @@ -26,6 +26,6 @@ task clean(type: Delete) {
}

ext {
supportLibraryVersion = '25.1.1'
supportLibraryVersion = '25.3.1'
photoViewVersion = 'v1.2.5'
}
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
# org.gradle.parallel=true
#Thu Jan 26 19:36:53 CST 2017
systemProp.http.proxyHost=127.0.0.1
#systemProp.http.proxyHost=127.0.0.1
org.gradle.jvmargs=-Xmx1536m
systemProp.http.proxyPort=1080
#systemProp.http.proxyPort=1080
11 changes: 8 additions & 3 deletions sticker/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,11 @@ dependencies {
compile "com.android.support:appcompat-v7:$rootProject.ext.supportLibraryVersion"
}

//
//apply plugin: 'com.android.library'
//apply plugin: 'com.github.dcendents.android-maven'
//apply plugin: 'com.jfrog.bintray'
//
//version = "1.4.0" // #修改# // 这里是aar的版本号
//version = "1.6.0" // #修改# // 这里是aar的版本号
//
//android {
// compileSdkVersion 25
Expand Down Expand Up @@ -59,7 +58,7 @@ dependencies {
//}
//
//dependencies {
// compile fileTree(dir: 'libs', include: ['*.jar'])
// compile fileTree(include: ['*.jar'], dir: 'libs')
// compile "com.android.support:appcompat-v7:$rootProject.ext.supportLibraryVersion"
//}
//
Expand Down Expand Up @@ -141,3 +140,9 @@ dependencies {
// }
//}

tasks.withType(Javadoc) {
options.addStringOption('Xdoclint:none', '-quiet')
options.addStringOption('encoding', 'UTF-8')
options.addStringOption('charSet', 'UTF-8')
}

Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import android.graphics.drawable.Drawable;
import android.support.annotation.IntDef;
import android.view.MotionEvent;

import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package com.xiaopo.flying.sticker;

import android.view.MotionEvent;

/**
* @author wupanjie
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package com.xiaopo.flying.sticker;

import android.view.MotionEvent;

/**
* @author wupanjie
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
import android.support.annotation.IntRange;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;

import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import android.provider.MediaStore;
import android.support.annotation.NonNull;
import android.util.Log;

import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
Expand Down
12 changes: 2 additions & 10 deletions sticker/src/main/java/com/xiaopo/flying/sticker/StickerView.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
import android.view.MotionEvent;
import android.view.ViewConfiguration;
import android.widget.FrameLayout;

import java.io.File;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
Expand All @@ -31,8 +30,8 @@
import java.util.List;

/**
* Sticker view
* Created by snowbean on 16-8-2.
* Sticker View
* @author wupanjie
*/
public class StickerView extends FrameLayout {

Expand Down Expand Up @@ -80,7 +79,6 @@ public class StickerView extends FrameLayout {
private final float[] tmp = new float[2];
private PointF midPoint = new PointF();
// endregion

private final int touchSlop;

private BitmapStickerIcon currentIcon;
Expand Down Expand Up @@ -157,9 +155,6 @@ public void configDefaultIcons() {
/**
* Swaps sticker at layer [[oldPos]] with the one at layer [[newPos]].
* Does nothing if either of the specified layers doesn't exist.
*
* @param oldPos
* @param newPos
*/
public void swapLayers(int oldPos, int newPos) {
if (stickers.size() >= oldPos && stickers.size() >= newPos) {
Expand All @@ -171,9 +166,6 @@ public void swapLayers(int oldPos, int newPos) {
/**
* Sends sticker from layer [[oldPos]] to layer [[newPos]].
* Does nothing if either of the specified layers doesn't exist.
*
* @param oldPos
* @param newPos
*/
public void sendToLayer(int oldPos, int newPos) {
if (stickers.size() >= oldPos && stickers.size() >= newPos) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
* See https://adilatwork.blogspot.com/2014/08/android-textview-which-resizes-its-text.html
* Notice: It's not efficient to add long text due to too much of
* StaticLayout object allocation.
* <p>
* Created by liutao on 30/11/2016.
*/

Expand Down

0 comments on commit b605ccb

Please sign in to comment.