Skip to content

Commit

Permalink
Configure initial app parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyle Edwards authored and Kyle Edwards committed Feb 9, 2024
1 parent d5d9fba commit 10ae2fb
Show file tree
Hide file tree
Showing 6 changed files with 54 additions and 14 deletions.
8 changes: 4 additions & 4 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ plugins {
kotlin("plugin.parcelize")
kotlin("kapt")

// id("com.google.gms.google-services")
// id("com.google.firebase.appdistribution")
// id("com.google.firebase.crashlytics")
// id("com.google.firebase.firebase-perf")
id("com.google.gms.google-services")
id("com.google.firebase.appdistribution")
id("com.google.firebase.crashlytics")
id("com.google.firebase.firebase-perf")

alias(libs.plugins.grgit)
alias(libs.plugins.ktlint)
Expand Down
39 changes: 39 additions & 0 deletions app/google-services.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"project_info": {
"project_number": "492017052839",
"project_id": "wycliffe-mypd",
"storage_bucket": "wycliffe-mypd.appspot.com"
},
"client": [
{
"client_info": {
"mobilesdk_app_id": "1:492017052839:android:c54f456eecf601db93bf82",
"android_client_info": {
"package_name": "org.wycliffe.mypd"
}
},
"oauth_client": [
{
"client_id": "492017052839-caqlujovpvh63gr1ed0rb1jjfia4cgne.apps.googleusercontent.com",
"client_type": 3
}
],
"api_key": [
{
"current_key": "AIzaSyA2POpqQGuUgz9EzzBfmEWo5_tH6yLNmb4"
}
],
"services": {
"appinvite_service": {
"other_platform_oauth_client": [
{
"client_id": "492017052839-caqlujovpvh63gr1ed0rb1jjfia4cgne.apps.googleusercontent.com",
"client_type": 3
}
]
}
}
}
],
"configuration_version": "1"
}
Binary file added app/mpdx_upload.keystore
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,21 @@ package org.wycliffe.mypd.app.firebase
import dagger.Module
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
// import dagger.Provides
// import dagger.multibindings.ElementsIntoSet
// import org.ccci.gto.android.common.dagger.eager.EagerSingleton
import dagger.Provides
import dagger.multibindings.ElementsIntoSet
import org.ccci.gto.android.common.dagger.eager.EagerSingleton

/**
* This Module is for setting up Firebase Messaging. Code is commented because Firebase is not set up in this example.
*/
@InstallIn(SingletonComponent::class)
@Module
abstract class FirebaseMessagingModule {
// companion object {
// @Provides
// @ElementsIntoSet
// @EagerSingleton(threadMode = EagerSingleton.ThreadMode.MAIN_ASYNC)
// internal fun asyncEagerSingletons(firebaseMessagingManager: FirebaseMessagingManager) =
// setOf<Any>(firebaseMessagingManager)
// }
companion object {
@Provides
@ElementsIntoSet
@EagerSingleton(threadMode = EagerSingleton.ThreadMode.MAIN_ASYNC)
internal fun asyncEagerSingletons(firebaseMessagingManager: FirebaseMessagingManager) =
setOf<Any>(firebaseMessagingManager)
}
}
1 change: 1 addition & 0 deletions firebase/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
firebase_api_key.json
Binary file added firebase/app_distribution.keystore
Binary file not shown.

0 comments on commit 10ae2fb

Please sign in to comment.