These are chat archives for Arasthel/SwissKnife

15th
Jul 2015
Mario Garcia
@mariogarcia
Jul 15 2015 09:16
Hi all I've got a problem with a method provided by extensions. startActivity(Class,Closure) works in some activities and in others it doesnt. Somebody has faced the same issue before ?
Jorge Martin Espinosa
@Arasthel
Jul 15 2015 09:20
define "doesn't work"
runtime error?
Mario Garcia
@mariogarcia
Jul 15 2015 09:46
Yeap. The method is not defined. It gives me the other 5 alternatives (android api) but not the one I wanted
Jorge Martin Espinosa
@Arasthel
Jul 15 2015 09:48
Did you add the closure?
Arasthel/SwissKnife#33
Mario Garcia
@mariogarcia
Jul 15 2015 09:50
Yes I d, I'm adding an extra serializable instance
Jorge Martin Espinosa
@Arasthel
Jul 15 2015 09:51
Weird
Mario Garcia
@mariogarcia
Jul 15 2015 09:51
startActivity(ByCityResultActivity) {
putExtra('city', new City(name: 'Madrid', latitude: 40.4168762d, longitude: -3.7033046d)) }
Jorge Martin Espinosa
@Arasthel
Jul 15 2015 09:51
Could you add the error log?
Mario Garcia
@mariogarcia
Jul 15 2015 09:51
And the error log...
Oh wait, it's working when adding the @CompileStatic annotation
Jorge Martin Espinosa
@Arasthel
Jul 15 2015 09:52
Even weirder
Mario Garcia
@mariogarcia
Jul 15 2015 09:54
Yeah, let me do a couple of more test and I'll be back with a clear scenario.
Mario Garcia
@mariogarcia
Jul 15 2015 10:18
My fault, is the plugin I'm working on it doesn't work. Apk is still using the wrong ExtensionModule descriptor :(
Mario Garcia
@mariogarcia
Jul 15 2015 11:35
Got it :thumbsup:
I was generating the ExtensionModule file in the wrong directory