-
-
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.
* Publishing to F-Droid * Publishing to F-Droid
- Loading branch information
1 parent
dccf932
commit 138ebb6
Showing
20 changed files
with
222 additions
and
4 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
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,40 @@ | ||
@Suppress("dsl_scope_violation") | ||
plugins { | ||
alias(libs.plugins.library) | ||
alias(libs.plugins.kotlin) | ||
id("movies-android-hilt") | ||
} | ||
|
||
android { | ||
namespace = "org.michaelbel.movies.platform.foss" | ||
|
||
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")) | ||
} | ||
}*/ | ||
|
||
compileOptions { | ||
sourceCompatibility = JavaVersion.VERSION_17 | ||
targetCompatibility = JavaVersion.VERSION_17 | ||
} | ||
|
||
lint { | ||
quiet = true | ||
abortOnError = false | ||
ignoreWarnings = true | ||
checkDependencies = true | ||
lintConfig = file("${project.rootDir}/config/codestyle/lint.xml") | ||
} | ||
} | ||
|
||
dependencies { | ||
implementation(project(":core:platform-services:interactor")) | ||
} |
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/> |
54 changes: 54 additions & 0 deletions
54
core/platform-services/foss/src/main/kotlin/org/michaelbel/movies/hms/FossServiceModule.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,54 @@ | ||
package org.michaelbel.movies.hms | ||
|
||
import dagger.Binds | ||
import dagger.Module | ||
import dagger.hilt.InstallIn | ||
import dagger.hilt.components.SingletonComponent | ||
import javax.inject.Singleton | ||
import org.michaelbel.movies.hms.analytics.AnalyticsServiceImpl | ||
import org.michaelbel.movies.hms.app.AppServiceImpl | ||
import org.michaelbel.movies.hms.config.ConfigServiceImpl | ||
import org.michaelbel.movies.hms.crashlytics.CrashlyticsServiceImpl | ||
import org.michaelbel.movies.hms.messaging.MessagingServiceImpl | ||
import org.michaelbel.movies.hms.review.ReviewServiceImpl | ||
import org.michaelbel.movies.hms.update.UpdateServiceImpl | ||
import org.michaelbel.movies.platform.main.analytics.AnalyticsService | ||
import org.michaelbel.movies.platform.main.app.AppService | ||
import org.michaelbel.movies.platform.main.config.ConfigService | ||
import org.michaelbel.movies.platform.main.crashlytics.CrashlyticsService | ||
import org.michaelbel.movies.platform.main.messaging.MessagingService | ||
import org.michaelbel.movies.platform.main.review.ReviewService | ||
import org.michaelbel.movies.platform.main.update.UpdateService | ||
|
||
@Module | ||
@InstallIn(SingletonComponent::class) | ||
internal interface FossServiceModule { | ||
|
||
@Binds | ||
@Singleton | ||
fun provideAnalyticsService(service: AnalyticsServiceImpl): AnalyticsService | ||
|
||
@Binds | ||
@Singleton | ||
fun provideAppService(service: AppServiceImpl): AppService | ||
|
||
@Binds | ||
@Singleton | ||
fun provideConfigService(service: ConfigServiceImpl): ConfigService | ||
|
||
@Binds | ||
@Singleton | ||
fun provideCrashlyticsService(service: CrashlyticsServiceImpl): CrashlyticsService | ||
|
||
@Binds | ||
@Singleton | ||
fun provideMessagingService(service: MessagingServiceImpl): MessagingService | ||
|
||
@Binds | ||
@Singleton | ||
fun provideReviewService(service: ReviewServiceImpl): ReviewService | ||
|
||
@Binds | ||
@Singleton | ||
fun provideUpdateService(service: UpdateServiceImpl): UpdateService | ||
} |
14 changes: 14 additions & 0 deletions
14
...services/foss/src/main/kotlin/org/michaelbel/movies/hms/analytics/AnalyticsServiceImpl.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.hms.analytics | ||
|
||
import android.os.Bundle | ||
import javax.inject.Inject | ||
import org.michaelbel.movies.platform.main.analytics.AnalyticsService | ||
|
||
internal class AnalyticsServiceImpl @Inject constructor(): AnalyticsService { | ||
|
||
override val screenView: String = "" | ||
|
||
override val screenName: String = "" | ||
|
||
override fun logEvent(name: String, params: Bundle) {} | ||
} |
15 changes: 15 additions & 0 deletions
15
core/platform-services/foss/src/main/kotlin/org/michaelbel/movies/hms/app/AppServiceImpl.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,15 @@ | ||
package org.michaelbel.movies.hms.app | ||
|
||
import javax.inject.Inject | ||
import org.michaelbel.movies.platform.main.Flavor | ||
import org.michaelbel.movies.platform.main.app.AppService | ||
|
||
internal class AppServiceImpl @Inject constructor(): AppService { | ||
|
||
override val flavor: Flavor = Flavor.Foss | ||
|
||
override val isPlayServicesAvailable: Boolean | ||
get() = false | ||
|
||
override fun installApp() {} | ||
} |
15 changes: 15 additions & 0 deletions
15
...tform-services/foss/src/main/kotlin/org/michaelbel/movies/hms/config/ConfigServiceImpl.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,15 @@ | ||
package org.michaelbel.movies.hms.config | ||
|
||
import javax.inject.Inject | ||
import kotlinx.coroutines.flow.Flow | ||
import kotlinx.coroutines.flow.flowOf | ||
import org.michaelbel.movies.platform.main.config.ConfigService | ||
|
||
internal class ConfigServiceImpl @Inject constructor(): ConfigService { | ||
|
||
override fun fetchAndActivate() {} | ||
|
||
override fun getBooleanFlow(name: String): Flow<Boolean> { | ||
return flowOf(false) | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
...ices/foss/src/main/kotlin/org/michaelbel/movies/hms/crashlytics/CrashlyticsServiceImpl.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,9 @@ | ||
package org.michaelbel.movies.hms.crashlytics | ||
|
||
import javax.inject.Inject | ||
import org.michaelbel.movies.platform.main.crashlytics.CrashlyticsService | ||
|
||
internal class CrashlyticsServiceImpl @Inject constructor(): CrashlyticsService { | ||
|
||
override fun recordException(priority: Int, tag: String, message: String, exception: Throwable) {} | ||
} |
10 changes: 10 additions & 0 deletions
10
...services/foss/src/main/kotlin/org/michaelbel/movies/hms/messaging/MessagingServiceImpl.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,10 @@ | ||
package org.michaelbel.movies.hms.messaging | ||
|
||
import javax.inject.Inject | ||
import org.michaelbel.movies.platform.main.messaging.MessagingService | ||
import org.michaelbel.movies.platform.main.messaging.TokenListener | ||
|
||
internal class MessagingServiceImpl @Inject constructor(): MessagingService { | ||
|
||
override fun setTokenListener(listener: TokenListener) {} | ||
} |
10 changes: 10 additions & 0 deletions
10
...tform-services/foss/src/main/kotlin/org/michaelbel/movies/hms/review/ReviewServiceImpl.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,10 @@ | ||
package org.michaelbel.movies.hms.review | ||
|
||
import android.app.Activity | ||
import javax.inject.Inject | ||
import org.michaelbel.movies.platform.main.review.ReviewService | ||
|
||
internal class ReviewServiceImpl @Inject constructor(): ReviewService { | ||
|
||
override fun requestReview(activity: Activity) {} | ||
} |
13 changes: 13 additions & 0 deletions
13
...tform-services/foss/src/main/kotlin/org/michaelbel/movies/hms/update/UpdateServiceImpl.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.hms.update | ||
|
||
import android.app.Activity | ||
import javax.inject.Inject | ||
import org.michaelbel.movies.platform.main.update.UpdateListener | ||
import org.michaelbel.movies.platform.main.update.UpdateService | ||
|
||
internal class UpdateServiceImpl @Inject constructor(): UpdateService { | ||
|
||
override fun setUpdateAvailableListener(listener: UpdateListener) {} | ||
|
||
override fun startUpdate(activity: Activity) {} | ||
} |
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
3 changes: 3 additions & 0 deletions
3
core/platform-services/hms/src/main/kotlin/org/michaelbel/movies/hms/app/AppServiceImpl.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
11 changes: 11 additions & 0 deletions
11
...latform-services/interactor/src/main/kotlin/org/michaelbel/movies/platform/main/Flavor.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,11 @@ | ||
package org.michaelbel.movies.platform.main | ||
|
||
sealed class Flavor( | ||
val name: String | ||
) { | ||
data object Gms: Flavor("GMS") | ||
|
||
data object Hms: Flavor("HMS") | ||
|
||
data object Foss: Flavor("FOSS") | ||
} |
4 changes: 4 additions & 0 deletions
4
...services/interactor/src/main/kotlin/org/michaelbel/movies/platform/main/app/AppService.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
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