-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## <sup><sup>🔴 [Mandatory]</sup></sup> What's the change? - Sign in, Register actions added with Firebase Authentication - Email, Google and Anonymous types added - Credential manager added to safe and quick login ## <sup><sup>🔴 [Mandatory]</sup></sup> Why do we need this change? - To authenticate users for the app ## Related issues/PRs/Jira ticket links - #40 ## <sup><sup>🔴 [Mandatory if it's UI related]</sup></sup> Screenshots -
- Loading branch information
Showing
40 changed files
with
1,298 additions
and
188 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -71,4 +71,4 @@ proguard/ | |
*.log | ||
|
||
# AjCore files | ||
ajcore.* | ||
ajcore.* |
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 |
---|---|---|
|
@@ -71,4 +71,4 @@ proguard/ | |
*.log | ||
|
||
# AjCore files | ||
ajcore.* | ||
ajcore.* |
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
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
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
41 changes: 41 additions & 0 deletions
41
.../src/main/kotlin/dev/enesky/build_logic/convention/plugins/common/AuthenticationPlugin.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,41 @@ | ||
package dev.enesky.build_logic.convention.plugins.common | ||
|
||
import com.android.build.gradle.LibraryExtension | ||
import dev.enesky.build_logic.convention.getLocalProperties | ||
import dev.enesky.build_logic.convention.libs | ||
import org.gradle.api.Plugin | ||
import org.gradle.api.Project | ||
import org.gradle.kotlin.dsl.dependencies | ||
import org.gradle.kotlin.dsl.getByType | ||
|
||
/** | ||
* Created by Enes Kamil YILMAZ on 19/11/2023 | ||
*/ | ||
class AuthenticationPlugin : Plugin<Project> { | ||
override fun apply(target: Project) = with(target) { | ||
val localProperties = getLocalProperties(rootProject) | ||
val googleApiKey: String = checkNotNull( | ||
localProperties.getProperty("doodle.google.api.key") | ||
?: System.getenv("DOODLE_GOOGLE_API_KEY") | ||
?: "\"\"", | ||
) | ||
|
||
with(extensions.getByType<LibraryExtension>()) { | ||
buildFeatures.buildConfig = true | ||
defaultConfig.buildConfigField("String", "DOODLE_GOOGLE_API_KEY", googleApiKey) | ||
} | ||
|
||
dependencies { | ||
// Firebase Authentication | ||
add("implementation", platform(libs.firebase.bom)) | ||
add("implementation", libs.firebase.authentication) | ||
|
||
// Google Sign In | ||
add("implementation", libs.google.auth) | ||
|
||
// Credential Manager | ||
add("implementation", libs.credential.manager) | ||
add("implementation", libs.credential.manager.play.services.auth) | ||
} | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,3 +21,7 @@ plugins { | |
} | ||
|
||
android.namespace = "dev.enesky.core.common" | ||
|
||
dependencies { | ||
implementation(projects.core.data) | ||
} |
Oops, something went wrong.