Skip to content

Commit

Permalink
Merge pull request #215 from michaelbel/develop
Browse files Browse the repository at this point in the history
1.5.3
  • Loading branch information
michaelbel authored Feb 11, 2024
2 parents fe9c8f9 + 767a85e commit 5fa4f5e
Show file tree
Hide file tree
Showing 392 changed files with 6,408 additions and 2,731 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/check_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ jobs:
run: ./gradlew spotlessCheck

- name: Test
run: ./gradlew testDebug
run: ./gradlew testDebugUnitTest

- name: Build
run: ./gradlew compileDebugKotlin
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -712,3 +712,10 @@
/.idea/
/buildSrc/build/classes/kotlin/main/ktx/
/buildSrc/.gradle/
/core/build/reports/detekt/detekt.html
/core/build/reports/detekt/detekt.md
/core/build/reports/detekt/detekt.sarif
/core/build/reports/detekt/detekt.txt
/core/build/reports/detekt/detekt.xml
/buildSrc/build/classes/kotlin/main/MoviesBuildType.class
/buildSrc/build/source-roots/buildSrc/source-roots.txt
File renamed without changes.
File renamed without changes.
69 changes: 61 additions & 8 deletions app/build.gradle.kts → android-app/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
import java.io.FileInputStream
import com.google.firebase.appdistribution.gradle.AppDistributionExtension
import org.apache.commons.io.output.ByteArrayOutputStream
import org.jetbrains.kotlin.konan.properties.Properties
import java.io.FileInputStream

@Suppress("dsl_scope_violation")
plugins {
alias(libs.plugins.application)
alias(libs.plugins.kotlin)
alias(libs.plugins.androidx.navigation.safeargs)
alias(libs.plugins.google.services)
alias(libs.plugins.firebase.appdistribution)
alias(libs.plugins.firebase.crashlytics)
alias(libs.plugins.palantir.git)
id("movies-android-hilt")
}
Expand Down Expand Up @@ -46,7 +44,8 @@ afterEvaluate {
}

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

defaultConfig {
applicationId = "org.michaelbel.moviemade"
Expand Down Expand Up @@ -98,21 +97,22 @@ android {
"okhttp3.pro",
"coroutines.pro"
)
firebaseAppDistribution {
/*firebaseAppDistribution {
appId = "1:770317857182:android:876190afbc53df31"
artifactType = "APK"
testers = "[email protected]"
groups = "qa"
//releaseNotesFile="$rootProject.rootDir/releaseNotes.txt"
//serviceCredentialsFile = "$rootDir/config/firebase-app-distribution.json"
}
}*/
}
debug {
isDebuggable = true
isMinifyEnabled = false
isShrinkResources = false
applicationIdSuffix = MoviesBuildType.DEBUG.applicationIdSuffix
manifestPlaceholders += mapOf("appName" to "@string/app_name_dev")
isDefault = true
}
create("benchmark") {
initWith(getByName("release"))
Expand All @@ -130,6 +130,22 @@ android {
compose = true
}

productFlavors {
create("gms") {
dimension = "version"
applicationId = "org.michaelbel.moviemade"
isDefault = true
}
create("hms") {
dimension = "version"
applicationId = "org.michaelbel.movies"
}
create("foss") {
dimension = "version"
applicationId = "org.michaelbel.movies"
}
}

dynamicFeatures += setOf(":instant")

composeOptions {
Expand All @@ -150,26 +166,63 @@ android {
}
}

val gmsImplementation: Configuration by configurations
val hmsImplementation: Configuration by configurations
val fossImplementation: Configuration by configurations
dependencies {
gmsImplementation(project(":core:platform-services:inject"))
hmsImplementation(project(":core:platform-services:inject"))
fossImplementation(project(":core:platform-services:inject"))

implementation(project(":core:analytics"))
implementation(project(":core:common"))
implementation(project(":core:interactor"))
implementation(project(":core:navigation"))
implementation(project(":core:notifications"))
implementation(project(":core:platform-services:interactor"))
implementation(project(":core:ui"))
implementation(project(":core:work"))
implementation(project(":feature:auth"))
implementation(project(":feature:account"))
implementation(project(":feature:details"))
implementation(project(":feature:feed"))
implementation(project(":feature:gallery"))
implementation(project(":feature:search"))
implementation(project(":feature:settings"))

implementation(libs.kotlin.reflect)

testImplementation(libs.junit)
androidTestImplementation(libs.androidx.test.ext.junit.ktx)
androidTestImplementation(libs.androidx.espresso.core)
androidTestImplementation(libs.androidx.compose.ui.test.junit4)
androidTestImplementation(libs.androidx.benchmark.junit)

lintChecks(libs.lint.checks)
}

val hasGmsDebug: Boolean = gradle.startParameter.taskNames.any { it.contains("GmsDebug", ignoreCase = true) }
val hasGmsRelease: Boolean = gradle.startParameter.taskNames.any { it.contains("GmsRelease", ignoreCase = true) }
val hasGmsBenchmark: Boolean = gradle.startParameter.taskNames.any { it.contains("GmsBenchmark", ignoreCase = true) }

if (hasGmsDebug || hasGmsRelease || hasGmsBenchmark) {
apply(plugin = libs.plugins.google.services.get().pluginId)
apply(plugin = libs.plugins.firebase.crashlytics.get().pluginId)
apply(plugin = libs.plugins.firebase.appdistribution.get().pluginId)
}

if (hasGmsRelease) {
configure<AppDistributionExtension> {
appId = "1:770317857182:android:876190afbc53df31"
artifactType = "APK"
testers = "[email protected]"
groups = "qa"
}
}

val hasHmsDebug: Boolean = gradle.startParameter.taskNames.any { it.contains("HmsDebug", ignoreCase = true) }
val hasHmsRelease: Boolean = gradle.startParameter.taskNames.any { it.contains("HmsRelease", ignoreCase = true) }
val hasHmsBenchmark: Boolean = gradle.startParameter.taskNames.any { it.contains("HmsBenchmark", ignoreCase = true) }

if (hasHmsDebug || hasHmsRelease || hasHmsBenchmark) {
//apply(plugin = libs.plugins.huawei.services.get().pluginId)
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
94 changes: 94 additions & 0 deletions android-app/src/gmsDebug/google-services.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
{
"project_info": {
"project_number": "770317857182",
"firebase_url": "https://fir-moviemade.firebaseio.com",
"project_id": "firebase-moviemade",
"storage_bucket": "firebase-moviemade.appspot.com"
},
"client": [
{
"client_info": {
"mobilesdk_app_id": "1:770317857182:android:876190afbc53df31",
"android_client_info": {
"package_name": "org.michaelbel.moviemade"
}
},
"oauth_client": [
{
"client_id": "770317857182-ra2roi7lhsd8vl4mbk8kdbdvdgfnmpfg.apps.googleusercontent.com",
"client_type": 1,
"android_info": {
"package_name": "org.michaelbel.moviemade",
"certificate_hash": "13b59c3892a3fb6ffd9627bd660de5f51f7327c0"
}
},
{
"client_id": "770317857182-4jq65b5vb04ocgdo2pveiua7b64lp2mn.apps.googleusercontent.com",
"client_type": 1,
"android_info": {
"package_name": "org.michaelbel.moviemade",
"certificate_hash": "b861ce301449dcac09e522caa68deef9467cc702"
}
},
{
"client_id": "770317857182-v9pds8nn803n26p5ta3r4i949vkciqv9.apps.googleusercontent.com",
"client_type": 3
}
],
"api_key": [
{
"current_key": "AIzaSyC1Th1aOV2nV88wuyzm2GtxItVfTvAIh8U"
}
],
"services": {
"appinvite_service": {
"other_platform_oauth_client": [
{
"client_id": "770317857182-v9pds8nn803n26p5ta3r4i949vkciqv9.apps.googleusercontent.com",
"client_type": 3
}
]
}
},
"admob_app_id": "ca-app-pub-3651393080934289~1447245983"
},
{
"client_info": {
"mobilesdk_app_id": "1:770317857182:android:df63120ae349fa2f",
"android_client_info": {
"package_name": "org.michaelbel.moviemade.beta"
}
},
"oauth_client": [
{
"client_id": "770317857182-09e8on7fl9s2phnnulblfg5e0h06gre2.apps.googleusercontent.com",
"client_type": 1,
"android_info": {
"package_name": "org.michaelbel.moviemade.beta",
"certificate_hash": "b861ce301449dcac09e522caa68deef9467cc702"
}
},
{
"client_id": "770317857182-v9pds8nn803n26p5ta3r4i949vkciqv9.apps.googleusercontent.com",
"client_type": 3
}
],
"api_key": [
{
"current_key": "AIzaSyC1Th1aOV2nV88wuyzm2GtxItVfTvAIh8U"
}
],
"services": {
"appinvite_service": {
"other_platform_oauth_client": [
{
"client_id": "770317857182-v9pds8nn803n26p5ta3r4i949vkciqv9.apps.googleusercontent.com",
"client_type": 3
}
]
}
}
}
],
"configuration_version": "1"
}
94 changes: 94 additions & 0 deletions android-app/src/gmsRelease/google-services.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
{
"project_info": {
"project_number": "770317857182",
"firebase_url": "https://fir-moviemade.firebaseio.com",
"project_id": "firebase-moviemade",
"storage_bucket": "firebase-moviemade.appspot.com"
},
"client": [
{
"client_info": {
"mobilesdk_app_id": "1:770317857182:android:876190afbc53df31",
"android_client_info": {
"package_name": "org.michaelbel.moviemade"
}
},
"oauth_client": [
{
"client_id": "770317857182-ra2roi7lhsd8vl4mbk8kdbdvdgfnmpfg.apps.googleusercontent.com",
"client_type": 1,
"android_info": {
"package_name": "org.michaelbel.moviemade",
"certificate_hash": "13b59c3892a3fb6ffd9627bd660de5f51f7327c0"
}
},
{
"client_id": "770317857182-4jq65b5vb04ocgdo2pveiua7b64lp2mn.apps.googleusercontent.com",
"client_type": 1,
"android_info": {
"package_name": "org.michaelbel.moviemade",
"certificate_hash": "b861ce301449dcac09e522caa68deef9467cc702"
}
},
{
"client_id": "770317857182-v9pds8nn803n26p5ta3r4i949vkciqv9.apps.googleusercontent.com",
"client_type": 3
}
],
"api_key": [
{
"current_key": "AIzaSyC1Th1aOV2nV88wuyzm2GtxItVfTvAIh8U"
}
],
"services": {
"appinvite_service": {
"other_platform_oauth_client": [
{
"client_id": "770317857182-v9pds8nn803n26p5ta3r4i949vkciqv9.apps.googleusercontent.com",
"client_type": 3
}
]
}
},
"admob_app_id": "ca-app-pub-3651393080934289~1447245983"
},
{
"client_info": {
"mobilesdk_app_id": "1:770317857182:android:df63120ae349fa2f",
"android_client_info": {
"package_name": "org.michaelbel.moviemade.beta"
}
},
"oauth_client": [
{
"client_id": "770317857182-09e8on7fl9s2phnnulblfg5e0h06gre2.apps.googleusercontent.com",
"client_type": 1,
"android_info": {
"package_name": "org.michaelbel.moviemade.beta",
"certificate_hash": "b861ce301449dcac09e522caa68deef9467cc702"
}
},
{
"client_id": "770317857182-v9pds8nn803n26p5ta3r4i949vkciqv9.apps.googleusercontent.com",
"client_type": 3
}
],
"api_key": [
{
"current_key": "AIzaSyC1Th1aOV2nV88wuyzm2GtxItVfTvAIh8U"
}
],
"services": {
"appinvite_service": {
"other_platform_oauth_client": [
{
"client_id": "770317857182-v9pds8nn803n26p5ta3r4i949vkciqv9.apps.googleusercontent.com",
"client_type": 3
}
]
}
}
}
],
"configuration_version": "1"
}
Loading

0 comments on commit 5fa4f5e

Please sign in to comment.