Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Firebase linked with project. #1

Merged
merged 1 commit into from
Oct 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion auth/auth_data/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/build
build
google-services.json
4 changes: 4 additions & 0 deletions auth/auth_data/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
plugins {
`android-library`
`kotlin-android`
id("com.google.gms.google-services")

}

apply(from = "$rootDir/base-module.gradle")
Expand All @@ -10,6 +12,8 @@ android {
}

dependencies {
implementation(platform(Firebase.firebaseBom))
implementation(project(Modules.core_data))
implementation(project(Modules.auth_domain))

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package com.eltescode.auth_domain.model

data class CustomUser(
val photo: String? = null,
val uid: String = "",
val email: String? = null,
)
5 changes: 5 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
id("com.google.gms.google-services") version "4.4.0" apply false
}
buildscript {
repositories {
google()
Expand All @@ -8,7 +11,9 @@ buildscript {
classpath(Build.androidBuildTools)
classpath(Build.kotlinGradlePlugin)
classpath(Build.hiltAndroidGradlePlugin)

classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.0")

}
}

Expand Down
2 changes: 1 addition & 1 deletion buildSrc/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
.gradlew
.gradle
build
4 changes: 4 additions & 0 deletions buildSrc/src/main/java/Build.kt
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,8 @@ object Build {

private const val hiltAndroidGradlePluginVersion = "2.45"
const val hiltAndroidGradlePlugin = "com.google.dagger:hilt-android-gradle-plugin:$hiltAndroidGradlePluginVersion"

private const val googleServicesPluginVersion = "4.4.0"
const val googleServicesPlugin = "com.google.gms.google-services:$googleServicesPluginVersion"

}
4 changes: 4 additions & 0 deletions buildSrc/src/main/java/Firebase.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
object Firebase {
private const val firebaseBomVersion = "32.4.0"
const val firebaseBom = "com.google.firebase:firebase-bom:$firebaseBomVersion"
}
2 changes: 1 addition & 1 deletion buildSrc/src/main/java/ProjectConfig.kt
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ object ProjectConfig {
const val minSdk = 21
const val targetSdk = 34
const val versionCode = 1
const val versionName = "1.0"
const val versionName = "1.0.0"
}