From 65a5ada0bb6d294fbdfcba20fabff34ba7b198f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jorge=20Marti=CC=81n?= Date: Sun, 2 Nov 2014 10:49:30 +0100 Subject: [PATCH] Releasing v1.1.4. Fixed more bugs with primitives --- CHANGELOG.md | 1 + README.md | 2 +- .../src/main/groovy/com/arasthel/swissknife/SwissKnife.groovy | 2 +- gradle.properties | 4 ++-- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4b0839e..1b7b59f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ # Changelog: ### Versions: +* **1.1.4** - Fixed another minor bug with primitives. * **1.1.3** - Fixed minor bug where methods with primitive parameters weren't found on method search. * **1.1.2** - Fixed BIG bug when SwissKnife couldn't find the method. * **1.1.1** - @OnBackground and @OnUIThread now can be used with static methods. Solved several method search problems, too. diff --git a/README.md b/README.md index a7a523b..96f93d2 100644 --- a/README.md +++ b/README.md @@ -84,7 +84,7 @@ Once your project App Module is configured to use Groovy you can add this librar ```groovy dependencies { ... - compile 'com.arasthel:swissknife:1.1.3' + compile 'com.arasthel:swissknife:1.1.4' ... } ``` diff --git a/SwissKnife/src/main/groovy/com/arasthel/swissknife/SwissKnife.groovy b/SwissKnife/src/main/groovy/com/arasthel/swissknife/SwissKnife.groovy index 68ce759..86719d0 100644 --- a/SwissKnife/src/main/groovy/com/arasthel/swissknife/SwissKnife.groovy +++ b/SwissKnife/src/main/groovy/com/arasthel/swissknife/SwissKnife.groovy @@ -437,7 +437,7 @@ public class SwissKnife { Class parameter = m.getParameterTypes()[i] // If parameter is a primitive, we have to get its wrapper class so we can check for inheritance - if(parameter.isPrimitive()) { + if(parameter.isPrimitive() && !parameters[i].isPrimitive()) { parameter = getWrapperForPrimitive(parameter) } if(!parameter.isAssignableFrom(parameters[i])) { diff --git a/gradle.properties b/gradle.properties index ac15bb1..e1047d6 100644 --- a/gradle.properties +++ b/gradle.properties @@ -17,8 +17,8 @@ # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects # org.gradle.parallel=true -VERSION_NAME=1.1.3 -VERSION_CODE=9 +VERSION_NAME=1.1.4 +VERSION_CODE=10 GROUP=com.arasthel POM_DESCRIPTION=Android library for View Injection and Async processing