Skip to content

Commit

Permalink
Firebase integration
Browse files Browse the repository at this point in the history
  • Loading branch information
sim15 committed Apr 20, 2022
1 parent b217f5f commit 7d5eb93
Show file tree
Hide file tree
Showing 8 changed files with 105 additions and 10 deletions.
20 changes: 20 additions & 0 deletions .idea/jarRepositories.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 1 addition & 6 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
plugins {
id 'com.android.application'
id 'com.google.gms.google-services'
}

android {
Expand Down Expand Up @@ -50,11 +51,12 @@ dependencies {
implementation 'com.google.android.material:material:1.4.0'
implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation 'com.google.firebase:firebase-database:20.0.4'
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'

// Scalable Size Unit (different screen sizes
// Scalable Size Unit (different screen sizes)
implementation 'com.intuit.sdp:sdp-android:1.0.6'
implementation 'com.intuit.ssp:ssp-android:1.0.6'

Expand Down
69 changes: 69 additions & 0 deletions app/google-services.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
{
"project_info": {
"project_number": "555953112089",
"firebase_url": "https://mealgo-a5d11-default-rtdb.firebaseio.com",
"project_id": "mealgo-a5d11",
"storage_bucket": "mealgo-a5d11.appspot.com"
},
"client": [
{
"client_info": {
"mobilesdk_app_id": "1:555953112089:android:dcc36fc7c433e8f983d688",
"android_client_info": {
"package_name": "com.example.mealgo"
}
},
"oauth_client": [
{
"client_id": "555953112089-lb3dcdejrkff88go1bb7kvh0654jt40p.apps.googleusercontent.com",
"client_type": 3
}
],
"api_key": [
{
"current_key": "AIzaSyAuUBup3oVRPqrtk99fr3Er84Qm_9rnof4"
}
],
"services": {
"appinvite_service": {
"other_platform_oauth_client": [
{
"client_id": "555953112089-lb3dcdejrkff88go1bb7kvh0654jt40p.apps.googleusercontent.com",
"client_type": 3
}
]
}
}
},
{
"client_info": {
"mobilesdk_app_id": "1:555953112089:android:18826bf0b826d9b183d688",
"android_client_info": {
"package_name": "com.example.mealgo3"
}
},
"oauth_client": [
{
"client_id": "555953112089-lb3dcdejrkff88go1bb7kvh0654jt40p.apps.googleusercontent.com",
"client_type": 3
}
],
"api_key": [
{
"current_key": "AIzaSyAuUBup3oVRPqrtk99fr3Er84Qm_9rnof4"
}
],
"services": {
"appinvite_service": {
"other_platform_oauth_client": [
{
"client_id": "555953112089-lb3dcdejrkff88go1bb7kvh0654jt40p.apps.googleusercontent.com",
"client_type": 3
}
]
}
}
}
],
"configuration_version": "1"
}
2 changes: 1 addition & 1 deletion app/src/main/res/layout/activity_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

<com.google.android.material.button.MaterialButton
android:id="@+id/buttonMenu"
android:background="@drawable/menu_button"
android:background="@color/black"
android:layout_width="@dimen/_20sdp"
android:layout_height="@dimen/_20sdp"/>

Expand Down
8 changes: 7 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
dependencies {
classpath 'com.google.gms:google-services:4.3.10'
}
}// Top-level build file where you can add configuration options common to all sub-projects/modules.


plugins {
id 'com.android.application' version '7.1.3' apply false
id 'com.android.library' version '7.1.3' apply false
Expand Down
3 changes: 3 additions & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ pluginManagement {
mavenCentral()
}
}
// Note 4/20/22: commented out to fix 'Build was configured to prefer settings repositories...' error
// while setting up Firebase.

dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
Expand Down

0 comments on commit 7d5eb93

Please sign in to comment.