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 mdireact | |
import react.RClass | |
@JsModule("mdi-react") | |
external val IconImport: dynamic | |
var DownloadIcon: RClass<dynamic> = IconImport.DownloadIcon | |
var DeleteIcon: RClass<dynamic> = IconImport.DeleteIcon | |
var PlayArrowIcon: RClass<dynamic> = IconImport.PlayArrowIcon |
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
import org.w3c.dom.events.Event | |
import react.RClass | |
import react.RProps | |
@JsModule("react-dropzone") | |
@JsName("default") | |
external val dropzoneImport: dynamic | |
var dropzone: RClass<DRopProps> = dropzoneImport.default |
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
<?xml version="1.0" encoding="utf-8"?> | |
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
package="de.jensklingenberg.jkmanagespaceactivity"> | |
<application | |
... | |
android:manageSpaceActivity=".ManageActivity" | |
... | |
</application> |
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
@Component(modules = [(AppModule::class), (RemoteModule::class)]) | |
@Singleton | |
interface AppComponent { | |
fun inject(mainActivity: MainActivity) | |
} |
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
@Component(modules = [(AppModule::class), (RemoteModule::class)]) | |
@Singleton | |
interface AppComponent { | |
} |
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
@Module | |
class AppModule(private val application: Application) { | |
@Provides | |
@Singleton | |
fun provideContext(): Application = application | |
} |
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 TestApi { | |
@GET("posts") | |
fun getPostList(): Single<Response<List<Post>>> | |
} | |
data class Post( | |
val id: Int? = null, | |
val title: String? = null, | |
val body: String? = null, | |
val userId: Int? = null | |
) |
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
@Module | |
class RemoteModule { | |
@Provides | |
@Singleton | |
fun provideTestApi(retrofit: Retrofit) = | |
retrofit.create(TestApi::class.java) | |
@Provides | |
@Singleton | |
fun provideRetrofit(): Retrofit = Retrofit.Builder() |
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
class App:Application(){ | |
companion object { | |
lateinit var instance: App | |
lateinit var appComponent: AppComponent | |
} | |
fun initializeDagger() { | |
appComponent = DaggerAppComponent.builder() | |
.appModule(AppModule(this)) | |
.remoteModule(RemoteModule()) | |
.build() |