-
-
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.
Merge pull request #109 from michaelbel/develop
1.4.4
- Loading branch information
Showing
134 changed files
with
1,591 additions
and
732 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,22 @@ | ||
package org.michaelbel.movies | ||
|
||
import android.app.Application | ||
import android.util.Log | ||
import androidx.hilt.work.HiltWorkerFactory | ||
import androidx.work.Configuration | ||
import dagger.hilt.android.HiltAndroidApp | ||
import javax.inject.Inject | ||
import org.michaelbel.moviemade.BuildConfig | ||
|
||
@HiltAndroidApp | ||
internal class App: Application() | ||
internal class App: Application(), Configuration.Provider { | ||
|
||
@Inject lateinit var workerFactory: HiltWorkerFactory | ||
|
||
override fun getWorkManagerConfiguration(): Configuration { | ||
return Configuration.Builder() | ||
.setWorkerFactory(workerFactory) | ||
.setMinimumLoggingLevel(if (BuildConfig.DEBUG) Log.DEBUG else Log.ERROR) | ||
.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
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
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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 @@ | ||
/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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
plugins { | ||
id("movies-android-library") | ||
id("movies-android-hilt") | ||
} | ||
|
||
android { | ||
namespace = "org.michaelbel.movies.analytics_impl" | ||
|
||
defaultConfig { | ||
minSdk = libs.versions.min.sdk.get().toInt() | ||
compileSdk = libs.versions.compile.sdk.get().toInt() | ||
} | ||
|
||
buildTypes { | ||
create("benchmark") { | ||
signingConfig = signingConfigs.getByName("debug") | ||
matchingFallbacks += listOf("release") | ||
initWith(getByName("release")) | ||
} | ||
} | ||
|
||
lint { | ||
quiet = true | ||
abortOnError = false | ||
ignoreWarnings = true | ||
checkDependencies = true | ||
lintConfig = file("${project.rootDir}/config/codestyle/lint.xml") | ||
} | ||
} | ||
|
||
dependencies { | ||
implementation(libs.firebase.analytics) | ||
} |
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,2 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<manifest/> |
2 changes: 1 addition & 1 deletion
2
...el/movies/analytics/model/MoviesEvents.kt → ...ovies/analytics/constants/MoviesEvents.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
2 changes: 1 addition & 1 deletion
2
...el/movies/analytics/model/MoviesParams.kt → ...ovies/analytics/constants/MoviesParams.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
18 changes: 18 additions & 0 deletions
18
...nalytics-impl/src/main/kotlin/org/michaelbel/movies/analytics/di/MoviesAnalyticsModule.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,18 @@ | ||
package org.michaelbel.movies.analytics.di | ||
|
||
import dagger.Binds | ||
import dagger.Module | ||
import dagger.hilt.InstallIn | ||
import dagger.hilt.components.SingletonComponent | ||
import javax.inject.Singleton | ||
import org.michaelbel.movies.analytics.MoviesAnalytics | ||
import org.michaelbel.movies.analytics.impl.MoviesAnalyticsImpl | ||
|
||
@Module | ||
@InstallIn(SingletonComponent::class) | ||
internal interface MoviesAnalyticsModule { | ||
|
||
@Binds | ||
@Singleton | ||
fun provideMoviesAnalytics(analytics: MoviesAnalyticsImpl): MoviesAnalytics | ||
} |
14 changes: 14 additions & 0 deletions
14
...cs-impl/src/main/kotlin/org/michaelbel/movies/analytics/event/ChangeDynamicColorsEvent.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,14 @@ | ||
package org.michaelbel.movies.analytics.event | ||
|
||
import org.michaelbel.movies.analytics.constants.MoviesEvents | ||
import org.michaelbel.movies.analytics.model.BaseEvent | ||
import org.michaelbel.movies.analytics.constants.MoviesParams | ||
|
||
class ChangeDynamicColorsEvent( | ||
enabled: Boolean | ||
): BaseEvent(MoviesEvents.SETTINGS_CHANGE_DYNAMIC_COLORS) { | ||
|
||
init { | ||
add(MoviesParams.PARAM_DYNAMIC_COLORS_ENABLED, enabled) | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
...ytics-impl/src/main/kotlin/org/michaelbel/movies/analytics/event/ChangeRtlEnabledEvent.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,14 @@ | ||
package org.michaelbel.movies.analytics.event | ||
|
||
import org.michaelbel.movies.analytics.model.BaseEvent | ||
import org.michaelbel.movies.analytics.constants.MoviesEvents | ||
import org.michaelbel.movies.analytics.constants.MoviesParams | ||
|
||
class ChangeRtlEnabledEvent( | ||
enabled: Boolean | ||
): BaseEvent(MoviesEvents.SETTINGS_CHANGE_RTL_ENABLED) { | ||
|
||
init { | ||
add(MoviesParams.PARAM_RTL_ENABLED, enabled) | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
...alytics-impl/src/main/kotlin/org/michaelbel/movies/analytics/event/SelectLanguageEvent.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,14 @@ | ||
package org.michaelbel.movies.analytics.event | ||
|
||
import org.michaelbel.movies.analytics.model.BaseEvent | ||
import org.michaelbel.movies.analytics.constants.MoviesEvents | ||
import org.michaelbel.movies.analytics.constants.MoviesParams | ||
|
||
class SelectLanguageEvent( | ||
language: String | ||
): BaseEvent(MoviesEvents.SETTINGS_SELECT_LANGUAGE) { | ||
|
||
init { | ||
add(MoviesParams.PARAM_SELECTED_LANGUAGE, language) | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
.../analytics-impl/src/main/kotlin/org/michaelbel/movies/analytics/event/SelectThemeEvent.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,14 @@ | ||
package org.michaelbel.movies.analytics.event | ||
|
||
import org.michaelbel.movies.analytics.constants.MoviesEvents | ||
import org.michaelbel.movies.analytics.model.BaseEvent | ||
import org.michaelbel.movies.analytics.constants.MoviesParams | ||
|
||
class SelectThemeEvent( | ||
theme: String | ||
): BaseEvent(MoviesEvents.SETTINGS_SELECT_THEME) { | ||
|
||
init { | ||
add(MoviesParams.PARAM_SELECTED_THEME, theme) | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
core/analytics-impl/src/main/kotlin/org/michaelbel/movies/analytics/model/BaseEvent.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,14 @@ | ||
package org.michaelbel.movies.analytics.model | ||
|
||
import android.os.Bundle | ||
import androidx.core.os.bundleOf | ||
|
||
open class BaseEvent( | ||
val name: String | ||
) { | ||
val params: Bundle = bundleOf() | ||
|
||
fun add(key: String, value: Any) { | ||
params.putString(key, value.toString()) | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
core/analytics/src/main/kotlin/org/michaelbel/movies/analytics/constants/MoviesEvents.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,12 @@ | ||
package org.michaelbel.movies.analytics.constants | ||
|
||
import com.google.firebase.analytics.FirebaseAnalytics | ||
|
||
internal object MoviesEvents { | ||
const val SCREEN_VIEW = FirebaseAnalytics.Event.SCREEN_VIEW | ||
|
||
const val SETTINGS_SELECT_LANGUAGE = "select_language" | ||
const val SETTINGS_SELECT_THEME = "select_theme" | ||
const val SETTINGS_CHANGE_DYNAMIC_COLORS = "change_dynamic_colors" | ||
const val SETTINGS_CHANGE_RTL_ENABLED = "change_rtl_enabled" | ||
} |
13 changes: 13 additions & 0 deletions
13
core/analytics/src/main/kotlin/org/michaelbel/movies/analytics/constants/MoviesParams.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,13 @@ | ||
package org.michaelbel.movies.analytics.constants | ||
|
||
import com.google.firebase.analytics.FirebaseAnalytics | ||
|
||
internal object MoviesParams { | ||
const val PARAM_DESTINATION = FirebaseAnalytics.Param.SCREEN_NAME | ||
const val PARAM_ARGUMENTS = "destination_arguments" | ||
|
||
const val PARAM_SELECTED_LANGUAGE = "selected_language" | ||
const val PARAM_SELECTED_THEME = "selected_theme" | ||
const val PARAM_DYNAMIC_COLORS_ENABLED = "dynamic_colors_enabled" | ||
const val PARAM_RTL_ENABLED = "rtl_enabled" | ||
} |
4 changes: 2 additions & 2 deletions
4
...alytics/src/main/kotlin/org/michaelbel/movies/analytics/event/ChangeDynamicColorsEvent.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
4 changes: 2 additions & 2 deletions
4
.../analytics/src/main/kotlin/org/michaelbel/movies/analytics/event/ChangeRtlEnabledEvent.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
4 changes: 2 additions & 2 deletions
4
core/analytics/src/main/kotlin/org/michaelbel/movies/analytics/event/SelectLanguageEvent.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
4 changes: 2 additions & 2 deletions
4
core/analytics/src/main/kotlin/org/michaelbel/movies/analytics/event/SelectThemeEvent.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
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
4 changes: 3 additions & 1 deletion
4
...coroutines/CoroutinesDispatchersModule.kt → ...outines/di/CoroutinesDispatchersModule.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
12 changes: 0 additions & 12 deletions
12
core/common/src/main/kotlin/org/michaelbel/movies/common/ktx/PermissionKtx.kt
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.