Skip to content

Commit 7998025

Browse files
Report the correct version for the RTDB (#605)
1 parent bcaadb2 commit 7998025

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

firebase-database/CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
# Unreleased
1+
# 18.0.1
2+
- [changed] The SDK now reports the correct version number (via
3+
`FirebaseDatabase.getSdkVersion()`).
4+
5+
# 17.0.0
26
- [changed] Added `@RestrictTo` annotations to discourage the use of APIs that
37
are not public. This affects internal APIs that were previously obfuscated
48
and are not mentioned in our documentation.

firebase-database/src/main/java/com/google/firebase/database/FirebaseDatabase.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
@PublicApi
3939
public class FirebaseDatabase {
4040

41-
private static final String SDK_VERSION = "3.0.0";
41+
private static final String SDK_VERSION = BuildConfig.VERSION_NAME;
4242

4343
private final FirebaseApp app;
4444
private final RepoInfo repoInfo;

0 commit comments

Comments
 (0)