Skip to content

Commit 65a5ada

Browse files
committed
Releasing v1.1.4. Fixed more bugs with primitives
1 parent 09187cf commit 65a5ada

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Changelog:
22

33
### Versions:
4+
* **1.1.4** - Fixed another minor bug with primitives.
45
* **1.1.3** - Fixed minor bug where methods with primitive parameters weren't found on method search.
56
* **1.1.2** - Fixed BIG bug when SwissKnife couldn't find the method.
67
* **1.1.1** - @OnBackground and @OnUIThread now can be used with static methods. Solved several method search problems, too.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ Once your project App Module is configured to use Groovy you can add this librar
8484
```groovy
8585
dependencies {
8686
...
87-
compile 'com.arasthel:swissknife:1.1.3'
87+
compile 'com.arasthel:swissknife:1.1.4'
8888
...
8989
}
9090
```

SwissKnife/src/main/groovy/com/arasthel/swissknife/SwissKnife.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ public class SwissKnife {
437437
Class parameter = m.getParameterTypes()[i]
438438

439439
// If parameter is a primitive, we have to get its wrapper class so we can check for inheritance
440-
if(parameter.isPrimitive()) {
440+
if(parameter.isPrimitive() && !parameters[i].isPrimitive()) {
441441
parameter = getWrapperForPrimitive(parameter)
442442
}
443443
if(!parameter.isAssignableFrom(parameters[i])) {

gradle.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
1818
# org.gradle.parallel=true
1919

20-
VERSION_NAME=1.1.3
21-
VERSION_CODE=9
20+
VERSION_NAME=1.1.4
21+
VERSION_CODE=10
2222
GROUP=com.arasthel
2323

2424
POM_DESCRIPTION=Android library for View Injection and Async processing

0 commit comments

Comments
 (0)