david.bilik
03/21/2017, 11:18 AMhenrik
03/23/2017, 1:03 PMs.luhmirins
03/23/2017, 3:37 PMsrayhunter
03/23/2017, 3:50 PMhenrik
03/23/2017, 4:02 PMkrokyze
03/24/2017, 9:49 AMmg6maciej
03/24/2017, 11:12 AMaaverin
03/24/2017, 11:50 AMralf
03/24/2017, 12:39 PMjuliocbcotta
03/24/2017, 4:41 PM@Module(subcomponents = ComponentA.class)
public class ActivityAModule
@Inject
ActivityA activity;
@Provides
@ActivityScope
public providePresenter()
{
return new PresenterA( (View) activity);
}
@Binds
@IntoMap
@ActivityKey(ActivityA.class)
abstract AndroidInjector.Factory<? extends Activity> bindActivityInjectorFactory(MainComponent.Builder builder);
The modules that don`t need the Activity.. would not need to have the instance..david.bilik
03/25/2017, 3:53 PMJvmField
is for static variablesanthonyeef
03/25/2017, 3:54 PMmiha-x64
03/27/2017, 11:17 AMjmfayard
03/27/2017, 12:24 PMlouiscad
03/28/2017, 2:18 PMbrianwernick
03/28/2017, 3:53 PMmavenCentral()
as jcenter()
is a superset of maven central)brianwernick
03/29/2017, 3:41 PMmiha-x64
04/02/2017, 6:27 PMuli
04/02/2017, 6:48 PMdalexander
04/03/2017, 1:29 PMimport kotlinx.android.synthetic.main.some_layout.view.*
//class defined here, custom view, which extends FrameLayout
init {
val inflater = context.getSystemService(Context.LAYOUT_INFLATER_SERVICE) as LayoutInflater
inflater.inflate(R.layout.some_layout, this, true)
}
Note the debugger seems to be confused about what's actually imported, but the code works.btilbrook-nextfaze
04/03/2017, 11:07 PMjonnothebonno
04/04/2017, 11:59 AMcompanion object {
val instance by lazy { EventDispatcher() }
}
and whenever I add anything to it and try to dispatch an event, I receive the following error
java.lang.NoClassDefFoundError: jonnothebonno.me.app.notifications.events.EventDispatcher$dispatchEvent$1
The weird thing is, this only appears to happen on older mobiles. Works perfect on my pixel but crashes on my nexus 5.
I’m using Kotlin 1.1.1
and gradle 2.3.0
jonnothebonno
04/04/2017, 3:22 PMjohannes.lagos
04/06/2017, 8:31 AMcurioustechizen
04/06/2017, 8:53 AMrwachol
04/06/2017, 11:54 AMrwachol
04/06/2017, 12:25 PMPaul Woitaschek
04/06/2017, 2:28 PMmichaelsims
04/06/2017, 3:52 PMkotlin-allopen
plugin?dionsegijn
04/06/2017, 6:03 PMmock-maker-inline
?dionsegijn
04/06/2017, 6:03 PMmock-maker-inline
?Paul Woitaschek
04/06/2017, 8:40 PM