-
-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fa21c79
commit 9b6bc74
Showing
25 changed files
with
105 additions
and
340 deletions.
There are no files selected for viewing
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,2 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<manifest | ||
xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:tools="http://schemas.android.com/tools"> | ||
|
||
<application> | ||
|
||
<provider | ||
android:name="androidx.startup.InitializationProvider" | ||
android:authorities="${applicationId}.androidx-startup" | ||
android:exported="false" | ||
tools:node="merge"> | ||
|
||
<meta-data | ||
android:name="androidx.work.WorkManagerInitializer" | ||
android:value="androidx.startup" | ||
tools:node="remove" /> | ||
|
||
<!--<meta-data | ||
android:name="org.michaelbel.movies.common.crashlytics.FirebaseCrashlyticsInitializer" | ||
android:value="androidx.startup"/>--> | ||
|
||
<meta-data | ||
android:name="org.michaelbel.movies.common.timber.TimberInitializer" | ||
android:value="androidx.startup"/> | ||
|
||
</provider> | ||
|
||
</application> | ||
|
||
</manifest> | ||
<manifest /> |
8 changes: 8 additions & 0 deletions
8
core/common/src/main/kotlin/org/michaelbel/movies/common/config/ktx/FirebaseKtx.kt
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package org.michaelbel.movies.common.config.ktx | ||
|
||
import android.content.Context | ||
import com.google.firebase.FirebaseApp | ||
|
||
fun Context.installFirebaseApp() { | ||
FirebaseApp.initializeApp(this) | ||
} |
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
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
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
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
27 changes: 0 additions & 27 deletions
27
core/interactor/src/main/kotlin/org/michaelbel/movies/interactor/usecase/DelayUseCase.kt
This file was deleted.
Oops, something went wrong.
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
17 changes: 17 additions & 0 deletions
17
core/network/src/main/kotlin/org/michaelbel/movies/network/flaker/FlakerInitializer.kt
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package org.michaelbel.movies.network.flaker | ||
|
||
import android.content.Context | ||
import androidx.startup.Initializer | ||
import io.github.rotbolt.flakerandroidokhttp.di.FlakerAndroidOkhttpContainer | ||
|
||
@Suppress("unused") | ||
class FlakerInitializer: Initializer<Unit> { | ||
|
||
override fun create(context: Context) { | ||
FlakerAndroidOkhttpContainer.install(context) | ||
} | ||
|
||
override fun dependencies(): List<Class<out Initializer<*>>> { | ||
return emptyList() | ||
} | ||
} |
25 changes: 25 additions & 0 deletions
25
core/network/src/main/kotlin/org/michaelbel/movies/network/flaker/di/FlakerModule.kt
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package org.michaelbel.movies.network.flaker.di | ||
|
||
import dagger.Module | ||
import dagger.Provides | ||
import dagger.hilt.InstallIn | ||
import dagger.hilt.components.SingletonComponent | ||
import io.github.rotbolt.flakerokhttpcore.FlakerInterceptor | ||
import io.github.rotbolt.flakerokhttpcore.dto.FlakerFailResponse | ||
|
||
@Module | ||
@InstallIn(SingletonComponent::class) | ||
internal object FlakerModule { | ||
|
||
@Provides | ||
fun provideFlakerInterceptor(): FlakerInterceptor { | ||
val flakerFailResponse = FlakerFailResponse( | ||
httpCode = 500, | ||
message = "Flaker is enabled. This is a flaky response", | ||
responseBodyString = "Test Failure" | ||
) | ||
return FlakerInterceptor.Builder() | ||
.failResponse(flakerFailResponse) | ||
.build() | ||
} | ||
} |
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
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
Oops, something went wrong.