Skip to content

Commit

Permalink
Huawei AppGallery
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelbel committed Nov 23, 2023
1 parent feb8073 commit 6eae74b
Show file tree
Hide file tree
Showing 13 changed files with 110 additions and 12 deletions.
2 changes: 1 addition & 1 deletion app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ afterEvaluate {

android {
namespace = "org.michaelbel.movies.app"
flavorDimensions += "version"

defaultConfig {
applicationId = "org.michaelbel.moviemade"
Expand Down Expand Up @@ -130,7 +131,6 @@ android {
compose = true
}

flavorDimensions += "version"
productFlavors {
create("gms") {
dimension = "version"
Expand Down
2 changes: 1 addition & 1 deletion core/analytics-impl/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,5 @@ android {
}

dependencies {
implementation(libs.firebase.analytics.ktx)
implementation(project(":core:platform-services:gms"))
}
2 changes: 1 addition & 1 deletion core/analytics/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,5 @@ android {
}

dependencies {
implementation(libs.firebase.analytics.ktx)
implementation(project(":core:platform-services:gms"))
}
5 changes: 1 addition & 4 deletions core/common/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,10 @@ android {
}

dependencies {
api(project(":core:platform-services:gms"))
implementation(project(":core:analytics"))
implementation(project(":core:network"))
api(libs.bundles.kotlin.coroutines)
api(libs.firebase.config.ktx)
api(libs.gms.play.services.base)
api(libs.play.core.ktx)
api(libs.androidx.activity.compose)
api(libs.androidx.core.ktx)
api(libs.androidx.paging.compose)
Expand All @@ -59,7 +57,6 @@ dependencies {
api(libs.bundles.lifecycle)
api(libs.timber)
implementation(libs.bundles.appcompat)
implementation(libs.firebase.crashlytics.ktx)
implementation(libs.androidx.startup.runtime)
implementation(libs.androidx.browser)

Expand Down
2 changes: 1 addition & 1 deletion core/notifications/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ android {
}

dependencies {
api(project(":core:platform-services:gms"))
implementation(project(":core:common"))
implementation(project(":core:interactor"))
implementation(project(":core:ui"))
api(libs.firebase.messaging.ktx)
}
1 change: 1 addition & 0 deletions core/platform-services/gms/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/build
42 changes: 42 additions & 0 deletions core/platform-services/gms/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
@Suppress("dsl_scope_violation")
plugins {
alias(libs.plugins.library)
alias(libs.plugins.kotlin)
id("movies-android-hilt")
}

android {
namespace = "org.michaelbel.movies.gms"

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 {
api(libs.bundles.firebase)
api(libs.bundles.gms)
api(libs.play.core.ktx)
}
2 changes: 2 additions & 0 deletions core/platform-services/gms/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest/>
1 change: 1 addition & 0 deletions core/platform-services/hms/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/build
40 changes: 40 additions & 0 deletions core/platform-services/hms/build.gradle.kts
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.hms"

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 {

}
2 changes: 2 additions & 0 deletions core/platform-services/hms/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest/>
19 changes: 15 additions & 4 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -147,10 +147,6 @@ gradle-plugin = { module = "com.android.tools.build:gradle", version.ref = "grad
kotlin-plugin = { module = "org.jetbrains.kotlin:kotlin-gradle-plugin", version.ref = "kotlin" }

[bundles]
kotlin-coroutines = [
"kotlin-coroutines-android",
"kotlin-coroutines-core"
]
accompanist = [
"accompanist-appcompat-theme",
"accompanist-drawablepainter",
Expand Down Expand Up @@ -179,11 +175,26 @@ datastore = [
"androidx-datastore-preferences",
"androidx-datastore-preferences-core"
]
gms = [
# "gms-play-services-ads",
"gms-play-services-base",
"gms-play-services-instantapps"
]
kotlin-coroutines = [
"kotlin-coroutines-android",
"kotlin-coroutines-core"
]
lifecycle = [
"androidx-lifecycle-runtime-compose",
"androidx-lifecycle-viewmodel-compose",
"androidx-lifecycle-process"
]
firebase = [
"firebase-analytics-ktx",
"firebase-config-ktx",
"firebase-crashlytics-ktx",
"firebase-messaging-ktx"
]
material = [
"material",
"material-compose-theme-adapter"
Expand Down
2 changes: 2 additions & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ include(
":core:network",
":core:notifications",
":core:persistence",
":core:platform-services:gms",
":core:platform-services:hms",
":core:repository",
":core:repository-impl",
":core:ui",
Expand Down

0 comments on commit 6eae74b

Please sign in to comment.