Skip to content

Commit 574f000

Browse files
committed
Add FirebaseFunctions
1 parent 3dea4f7 commit 574f000

8 files changed

Lines changed: 271 additions & 5 deletions

File tree

.idea/kotlinc.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/other.xml

Lines changed: 252 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

buildSrc/src/main/java/Coordinates.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ object AppCoordinates {
88
}
99

1010
object LibraryAndroidCoordinates {
11-
const val LIBRARY_VERSION = "1.2.1"
11+
const val LIBRARY_VERSION = "1.3.0"
1212
const val LIBRARY_VERSION_CODE = 1
1313
}
1414

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@ android.useAndroidX=true
1919
android.enableJetifier=true
2020
# Kotlin code style for this project: "official" or "obsolete":
2121
# kotlin.code.style=official
22-
version=1.2.1
22+
version=1.3.0
2323
# kotlin.stdlib.jdk.variants.substitution=false
2424

gradle/libs.versions.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ constraint_layout = "2.1.4"
1111
core_ktx = "1.12.0"
1212
detekt = "1.23.4"
1313
espresso_core = "3.5.1"
14+
firebaseBom = "33.1.2"
1415
junit = "4.13.2"
1516
kotlin = "1.9.20"
1617
min_sdk_version = "21"
@@ -20,6 +21,7 @@ agp2 = "8.2.0"
2021
material = "1.9.0"
2122

2223
[libraries]
24+
firebase-bom = { module = "com.google.firebase:firebase-bom", version.ref = "firebaseBom" }
2325
junit = { module = "junit:junit", version.ref = "junit" }
2426
androidx_activity_compose = { module = "androidx.activity:activity-compose", version.ref = "androidx_activity_compose" }
2527
androidx_appcompat = { module = "androidx.appcompat:appcompat", version.ref = "appcompat" }

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

sjfirebase/build.gradle.kts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ dependencies {
6060
// implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
6161
// implementation("org.jetbrains.kotlin:kotlin-reflect")
6262
// Import the BoM for the Firebase platform
63-
implementation(platform("com.google.firebase:firebase-bom:32.8.1"))
63+
implementation(platform(libs.firebase.bom))
6464

6565
// Add the dependency for the Firebase Authentication library
6666
// When using the BoM, you don't specify versions in Firebase library dependencies
@@ -72,4 +72,7 @@ dependencies {
7272
implementation("com.google.firebase:firebase-database")
7373
//noinspection UseTomlInstead
7474
implementation("com.google.firebase:firebase-storage")
75+
//noinspection UseTomlInstead
76+
implementation("com.google.firebase:firebase-functions")
7577
}
78+
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
package com.simplejnius.sjfirebase;
2+
3+
import com.google.firebase.functions.FirebaseFunctions;
4+
5+
public class SJFirebaseFunctions {
6+
public static FirebaseFunctions get_instance() {
7+
return FirebaseFunctions.getInstance();
8+
}
9+
}

0 commit comments

Comments
 (0)