Skip to content

Commit

Permalink
Update project
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelbel committed Mar 31, 2024
1 parent 6ac6226 commit 228bc0b
Show file tree
Hide file tree
Showing 11 changed files with 31 additions and 11 deletions.
2 changes: 1 addition & 1 deletion androidApp/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ android {
compileSdk = libs.versions.compile.sdk.get().toInt()
targetSdk = libs.versions.target.sdk.get().toInt()
versionCode = gitCommitsCount
versionName = versionLastTag
versionName = "2.0.0"
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables.useSupportLibrary = true
resourceConfigurations.addAll(listOf("en", "ru"))
Expand Down
2 changes: 2 additions & 0 deletions core/platform-services/foss-kmp/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ kotlin {
sourceSets {
commonMain.dependencies {
implementation(project(":core:platform-services:interactor-kmp"))
implementation(libs.bundles.kotlinx.coroutines.common)
implementation(libs.bundles.koin.common)
}
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package org.michaelbel.movies.platform.impl

import org.koin.dsl.module

val platformKoinModule = module {}
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package org.michaelbel.movies.platform.impl.review

import android.app.Activity
import javax.inject.Inject
import org.michaelbel.movies.platform.review.ReviewService

class ReviewServiceImpl: ReviewService {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import org.koin.dsl.module

private const val FETCH_INTERVAL_IN_SECONDS = 5L

val firebaseKoinModule = module {
internal val firebaseKoinModule = module {
single { Firebase.analytics }
single { FirebaseCrashlytics.getInstance() }
single { FirebaseMessaging.getInstance() }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ package org.michaelbel.movies.platform.impl
import com.google.android.gms.common.GoogleApiAvailability
import org.koin.dsl.module

val googleApiKoinModule = module {
internal val googleApiKoinModule = module {
single { GoogleApiAvailability.getInstance() }
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package org.michaelbel.movies.platform.impl

import org.koin.dsl.module

val platformKoinModule = module {
includes(
firebaseKoinModule,
googleApiKoinModule,
playKoinModule
)
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import org.koin.android.ext.koin.androidContext
import org.koin.dsl.module
import org.michaelbel.movies.platform.impl.update.InAppUpdate

val playKoinModule = module {
internal val playKoinModule = module {
single { ReviewManagerFactory.create(androidContext()) }
single { AppUpdateManagerFactory.create(androidContext()) }
single { InAppUpdate(get(), get()) }
Expand Down
2 changes: 2 additions & 0 deletions core/platform-services/hms-kmp/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ kotlin {
sourceSets {
commonMain.dependencies {
implementation(project(":core:platform-services:interactor-kmp"))
implementation(libs.bundles.kotlinx.coroutines.common)
implementation(libs.bundles.koin.common)
}
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package org.michaelbel.movies.platform.impl

import org.koin.dsl.module

val platformKoinModule = module {}
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,8 @@ import org.michaelbel.movies.platform.impl.analytics.AnalyticsServiceImpl
import org.michaelbel.movies.platform.impl.app.AppServiceImpl
import org.michaelbel.movies.platform.impl.config.ConfigServiceImpl
import org.michaelbel.movies.platform.impl.crashlytics.CrashlyticsServiceImpl
import org.michaelbel.movies.platform.impl.firebaseKoinModule
import org.michaelbel.movies.platform.impl.googleApiKoinModule
import org.michaelbel.movies.platform.impl.messaging.MessagingServiceImpl
import org.michaelbel.movies.platform.impl.playKoinModule
import org.michaelbel.movies.platform.impl.platformKoinModule
import org.michaelbel.movies.platform.impl.review.ReviewServiceImpl
import org.michaelbel.movies.platform.impl.update.UpdateServiceImpl
import org.michaelbel.movies.platform.messaging.MessagingService
Expand All @@ -23,9 +21,7 @@ import org.michaelbel.movies.platform.update.UpdateService

val flavorServiceKtorModule = module {
includes(
firebaseKoinModule,
googleApiKoinModule,
playKoinModule
platformKoinModule
)
singleOf(::AnalyticsServiceImpl) { bind<AnalyticsService>() }
singleOf(::AppServiceImpl) { bind<AppService>() }
Expand Down

0 comments on commit 228bc0b

Please sign in to comment.