This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.base.di.component | |
import android.app.Application | |
import android.content.res.Resources | |
import com.base.di.module.ApiModule | |
import com.base.di.module.AppModule | |
import com.base.di.module.RetrofitModule | |
import com.burakeregar.kotlinmvparchitecture.api.Endpoints | |
import com.google.gson.Gson | |
import dagger.Component |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.base.di.module | |
import android.app.Application | |
import android.content.res.Resources | |
import dagger.Module | |
import dagger.Provides | |
import javax.inject.Singleton | |
import com.google.gson.Gson; | |
import com.google.gson.GsonBuilder |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.burakeregar.kotlinmvparchitecture.home.viewholder | |
import android.view.View | |
import com.burakeregar.kotlinmvparchitecture.home.model.MarsItem | |
import com.burakeregar.easiestgenericrecycleradapter.base.GenericViewHolder | |
import kotlinx.android.synthetic.main.row_mars.view.* | |
import org.greenrobot.eventbus.EventBus | |
/** | |
* Created by Burak Eregar on 23.05.2017. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.burakeregar.kotlinmvparchitecture.home | |
import android.os.Bundle | |
import android.support.v7.widget.LinearLayoutManager | |
import com.base.BaseActivity | |
import com.burakeregar.kotlinmvparchitecture.R | |
import com.burakeregar.kotlinmvparchitecture.home.di.DaggerHomeActivityComponent | |
import com.burakeregar.kotlinmvparchitecture.home.di.HomeActivityModule | |
import com.burakeregar.kotlinmvparchitecture.home.model.MarsPhotos | |
import com.burakeregar.kotlinmvparchitecture.home.model.MarsItem |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.util | |
import com.base.util.SchedulerProvider | |
import io.reactivex.Scheduler | |
import io.reactivex.schedulers.TestScheduler | |
/** | |
* Created by Burak Eregar on 18.11.2017. | |
* burakeregar@gmail.com | |
* https://github.com/burakeregar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.burakeregar.githubsearch.home.presenter | |
import com.burakeregar.githubsearch.api.Endpoints | |
import com.burakeregar.githubsearch.home.model.RepoItem | |
import com.burakeregar.githubsearch.home.model.RepoResponse | |
import com.nhaarman.mockito_kotlin.doReturn | |
import com.nhaarman.mockito_kotlin.mock | |
import com.nhaarman.mockito_kotlin.verify | |
import com.util.TestSchedulerProvider | |
import io.reactivex.Observable |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.burakeregar.kotlinparcelize | |
import android.os.Parcelable | |
import kotlinx.android.parcel.Parcelize | |
/** | |
* Created by Burak Eregar on 1.12.2017. | |
* burakeregar@gmail.com | |
* https://github.com/burakeregar | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Student implements Parcelable{ | |
private String id; | |
private String name; | |
private String grade; | |
// Constructor | |
public Student(String id, String name, String grade){ | |
this.id = id; | |
this.name = name; | |
this.grade = grade; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Parcelize | |
data class Student(val id: String, val name: String, val grade: String) : Parcelable |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interface LocalSession { | |
sessionId?: string; | |
timestamp?: number; | |
} | |
interface PageViewParams { | |
hit: "page_view"; | |
params: { | |
page_location: string; | |
page_title: string; |