Skip to content

Commit

Permalink
Add FirebaseFunctions
Browse files Browse the repository at this point in the history
  • Loading branch information
kengoon committed Aug 4, 2024
1 parent 3dea4f7 commit 574f000
Show file tree
Hide file tree
Showing 8 changed files with 271 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .idea/kotlinc.xml

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

252 changes: 252 additions & 0 deletions .idea/other.xml

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

2 changes: 1 addition & 1 deletion buildSrc/src/main/java/Coordinates.kt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ object AppCoordinates {
}

object LibraryAndroidCoordinates {
const val LIBRARY_VERSION = "1.2.1"
const val LIBRARY_VERSION = "1.3.0"
const val LIBRARY_VERSION_CODE = 1
}

Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ android.useAndroidX=true
android.enableJetifier=true
# Kotlin code style for this project: "official" or "obsolete":
# kotlin.code.style=official
version=1.2.1
version=1.3.0
# kotlin.stdlib.jdk.variants.substitution=false

2 changes: 2 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ constraint_layout = "2.1.4"
core_ktx = "1.12.0"
detekt = "1.23.4"
espresso_core = "3.5.1"
firebaseBom = "33.1.2"
junit = "4.13.2"
kotlin = "1.9.20"
min_sdk_version = "21"
Expand All @@ -20,6 +21,7 @@ agp2 = "8.2.0"
material = "1.9.0"

[libraries]
firebase-bom = { module = "com.google.firebase:firebase-bom", version.ref = "firebaseBom" }
junit = { module = "junit:junit", version.ref = "junit" }
androidx_activity_compose = { module = "androidx.activity:activity-compose", version.ref = "androidx_activity_compose" }
androidx_appcompat = { module = "androidx.appcompat:appcompat", version.ref = "appcompat" }
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
Expand Down
5 changes: 4 additions & 1 deletion sjfirebase/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ dependencies {
// implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
// implementation("org.jetbrains.kotlin:kotlin-reflect")
// Import the BoM for the Firebase platform
implementation(platform("com.google.firebase:firebase-bom:32.8.1"))
implementation(platform(libs.firebase.bom))

// Add the dependency for the Firebase Authentication library
// When using the BoM, you don't specify versions in Firebase library dependencies
Expand All @@ -72,4 +72,7 @@ dependencies {
implementation("com.google.firebase:firebase-database")
//noinspection UseTomlInstead
implementation("com.google.firebase:firebase-storage")
//noinspection UseTomlInstead
implementation("com.google.firebase:firebase-functions")
}

Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package com.simplejnius.sjfirebase;

import com.google.firebase.functions.FirebaseFunctions;

public class SJFirebaseFunctions {
public static FirebaseFunctions get_instance() {
return FirebaseFunctions.getInstance();
}
}

0 comments on commit 574f000

Please sign in to comment.