Skip to content

Commit

Permalink
Added new api docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Reedyuk committed Aug 16, 2024
1 parent 62571b5 commit 2e5eb27
Show file tree
Hide file tree
Showing 18 changed files with 23 additions and 40 deletions.
4 changes: 1 addition & 3 deletions firebase-app/api/android/firebase-app.api
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,10 @@ public final class dev/gitlive/firebase/Firebase {
}

public final class dev/gitlive/firebase/FirebaseApp {
public final fun component1 ()Lcom/google/firebase/FirebaseApp;
public final fun copy (Lcom/google/firebase/FirebaseApp;)Ldev/gitlive/firebase/FirebaseApp;
public static synthetic fun copy$default (Ldev/gitlive/firebase/FirebaseApp;Lcom/google/firebase/FirebaseApp;ILjava/lang/Object;)Ldev/gitlive/firebase/FirebaseApp;
public final fun delete (Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
public fun equals (Ljava/lang/Object;)Z
public final fun getAndroid ()Lcom/google/firebase/FirebaseApp;
public final fun getName ()Ljava/lang/String;
public final fun getOptions ()Ldev/gitlive/firebase/FirebaseOptions;
public fun hashCode ()I
Expand All @@ -23,8 +21,8 @@ public final class dev/gitlive/firebase/FirebaseKt {
public static final fun app (Ldev/gitlive/firebase/Firebase;Ljava/lang/String;)Ldev/gitlive/firebase/FirebaseApp;
public static final fun apps (Ldev/gitlive/firebase/Firebase;Ljava/lang/Object;)Ljava/util/List;
public static synthetic fun apps$default (Ldev/gitlive/firebase/Firebase;Ljava/lang/Object;ILjava/lang/Object;)Ljava/util/List;
public static final fun getAndroid (Ldev/gitlive/firebase/FirebaseApp;)Lcom/google/firebase/FirebaseApp;
public static final fun getApp (Ldev/gitlive/firebase/Firebase;)Ldev/gitlive/firebase/FirebaseApp;
public static final fun getPublicAndroid (Ldev/gitlive/firebase/FirebaseApp;)Lcom/google/firebase/FirebaseApp;
public static final fun initialize (Ldev/gitlive/firebase/Firebase;Ljava/lang/Object;)Ldev/gitlive/firebase/FirebaseApp;
public static final fun initialize (Ldev/gitlive/firebase/Firebase;Ljava/lang/Object;Ldev/gitlive/firebase/FirebaseOptions;)Ldev/gitlive/firebase/FirebaseApp;
public static final fun initialize (Ldev/gitlive/firebase/Firebase;Ljava/lang/Object;Ldev/gitlive/firebase/FirebaseOptions;Ljava/lang/String;)Ldev/gitlive/firebase/FirebaseApp;
Expand Down
4 changes: 1 addition & 3 deletions firebase-app/api/jvm/firebase-app.api
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,10 @@ public final class dev/gitlive/firebase/Firebase {
}

public final class dev/gitlive/firebase/FirebaseApp {
public final fun component1 ()Lcom/google/firebase/FirebaseApp;
public final fun copy (Lcom/google/firebase/FirebaseApp;)Ldev/gitlive/firebase/FirebaseApp;
public static synthetic fun copy$default (Ldev/gitlive/firebase/FirebaseApp;Lcom/google/firebase/FirebaseApp;ILjava/lang/Object;)Ldev/gitlive/firebase/FirebaseApp;
public final fun delete (Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
public fun equals (Ljava/lang/Object;)Z
public final fun getAndroid ()Lcom/google/firebase/FirebaseApp;
public final fun getName ()Ljava/lang/String;
public final fun getOptions ()Ldev/gitlive/firebase/FirebaseOptions;
public fun hashCode ()I
Expand All @@ -23,8 +21,8 @@ public final class dev/gitlive/firebase/FirebaseKt {
public static final fun app (Ldev/gitlive/firebase/Firebase;Ljava/lang/String;)Ldev/gitlive/firebase/FirebaseApp;
public static final fun apps (Ldev/gitlive/firebase/Firebase;Ljava/lang/Object;)Ljava/util/List;
public static synthetic fun apps$default (Ldev/gitlive/firebase/Firebase;Ljava/lang/Object;ILjava/lang/Object;)Ljava/util/List;
public static final fun getAndroid (Ldev/gitlive/firebase/FirebaseApp;)Lcom/google/firebase/FirebaseApp;
public static final fun getApp (Ldev/gitlive/firebase/Firebase;)Ldev/gitlive/firebase/FirebaseApp;
public static final fun getPublicAndroid (Ldev/gitlive/firebase/FirebaseApp;)Lcom/google/firebase/FirebaseApp;
public static final fun initialize (Ldev/gitlive/firebase/Firebase;Ljava/lang/Object;)Ldev/gitlive/firebase/FirebaseApp;
public static final fun initialize (Ldev/gitlive/firebase/Firebase;Ljava/lang/Object;Ldev/gitlive/firebase/FirebaseOptions;)Ldev/gitlive/firebase/FirebaseApp;
public static final fun initialize (Ldev/gitlive/firebase/Firebase;Ljava/lang/Object;Ldev/gitlive/firebase/FirebaseOptions;Ljava/lang/String;)Ldev/gitlive/firebase/FirebaseApp;
Expand Down
5 changes: 2 additions & 3 deletions firebase-auth/api/android/firebase-auth.api
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,11 @@ public class dev/gitlive/firebase/auth/AuthCredential {
}

public final class dev/gitlive/firebase/auth/AuthResult {
public final fun getAndroid ()Lcom/google/firebase/auth/AuthResult;
public final fun getUser ()Ldev/gitlive/firebase/auth/FirebaseUser;
}

public final class dev/gitlive/firebase/auth/AuthTokenResult {
public fun <init> (Lcom/google/firebase/auth/GetTokenResult;)V
public final fun getAndroid ()Lcom/google/firebase/auth/GetTokenResult;
public final fun getClaims ()Ljava/util/Map;
public final fun getSignInProvider ()Ljava/lang/String;
public final fun getToken ()Ljava/lang/String;
Expand All @@ -103,7 +101,6 @@ public final class dev/gitlive/firebase/auth/FirebaseAuth {
public final fun confirmPasswordReset (Ljava/lang/String;Ljava/lang/String;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
public final fun createUserWithEmailAndPassword (Ljava/lang/String;Ljava/lang/String;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
public final fun fetchSignInMethodsForEmail (Ljava/lang/String;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
public final fun getAndroid ()Lcom/google/firebase/auth/FirebaseAuth;
public final fun getAuthStateChanged ()Lkotlinx/coroutines/flow/Flow;
public final fun getCurrentUser ()Ldev/gitlive/firebase/auth/FirebaseUser;
public final fun getIdTokenChanged ()Lkotlinx/coroutines/flow/Flow;
Expand Down Expand Up @@ -272,6 +269,8 @@ public final class dev/gitlive/firebase/auth/UserMetaData {

public final class dev/gitlive/firebase/auth/android {
public static final fun auth (Ldev/gitlive/firebase/Firebase;Ldev/gitlive/firebase/FirebaseApp;)Ldev/gitlive/firebase/auth/FirebaseAuth;
public static final fun getAndroid (Ldev/gitlive/firebase/auth/AuthResult;)Lcom/google/firebase/auth/AuthResult;
public static final fun getAndroid (Ldev/gitlive/firebase/auth/AuthTokenResult;)Lcom/google/firebase/auth/GetTokenResult;
public static final fun getAndroid (Ldev/gitlive/firebase/auth/FirebaseAuth;)Lcom/google/firebase/auth/FirebaseAuth;
public static final fun getAuth (Ldev/gitlive/firebase/Firebase;)Ldev/gitlive/firebase/auth/FirebaseAuth;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import com.google.firebase.auth.ActionCodeResult.*
import com.google.firebase.auth.FirebaseAuth.AuthStateListener
import dev.gitlive.firebase.Firebase
import dev.gitlive.firebase.FirebaseApp
import dev.gitlive.firebase.publicAndroid
import kotlinx.coroutines.channels.awaitClose
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.callbackFlow
Expand All @@ -21,9 +22,9 @@ public actual val Firebase.auth
get() = FirebaseAuth(com.google.firebase.auth.FirebaseAuth.getInstance())

public actual fun Firebase.auth(app: FirebaseApp) =
FirebaseAuth(com.google.firebase.auth.FirebaseAuth.getInstance(app.android))
FirebaseAuth(com.google.firebase.auth.FirebaseAuth.getInstance(app.publicAndroid))

public actual class FirebaseAuth internal constructor(public val android: com.google.firebase.auth.FirebaseAuth) {
public actual class FirebaseAuth internal constructor(internal val android: com.google.firebase.auth.FirebaseAuth) {
public actual val currentUser: FirebaseUser?
get() = android.currentUser?.let { FirebaseUser(it) }

Expand Down
1 change: 0 additions & 1 deletion firebase-config/api/android/firebase-config.api
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ public final class dev/gitlive/firebase/remoteconfig/FirebaseRemoteConfig {
public static synthetic fun fetch-dnQKTGw$default (Ldev/gitlive/firebase/remoteconfig/FirebaseRemoteConfig;Lkotlin/time/Duration;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
public final fun fetchAndActivate (Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
public final fun getAll ()Ljava/util/Map;
public final fun getAndroid ()Lcom/google/firebase/remoteconfig/FirebaseRemoteConfig;
public final fun getInfo ()Ldev/gitlive/firebase/remoteconfig/FirebaseRemoteConfigInfo;
public final fun getKeysByPrefix (Ljava/lang/String;)Ljava/util/Set;
public final fun getValue (Ljava/lang/String;)Ldev/gitlive/firebase/remoteconfig/FirebaseRemoteConfigValue;
Expand Down
1 change: 0 additions & 1 deletion firebase-config/api/jvm/firebase-config.api
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ public final class dev/gitlive/firebase/remoteconfig/FirebaseRemoteConfig {
public static synthetic fun fetch-dnQKTGw$default (Ldev/gitlive/firebase/remoteconfig/FirebaseRemoteConfig;Lkotlin/time/Duration;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
public final fun fetchAndActivate (Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
public final fun getAll ()Ljava/util/Map;
public final fun getAndroid ()Lcom/google/firebase/remoteconfig/FirebaseRemoteConfig;
public final fun getInfo ()Ldev/gitlive/firebase/remoteconfig/FirebaseRemoteConfigInfo;
public final fun getKeysByPrefix (Ljava/lang/String;)Ljava/util/Set;
public final fun getValue (Ljava/lang/String;)Ldev/gitlive/firebase/remoteconfig/FirebaseRemoteConfigValue;
Expand Down
1 change: 0 additions & 1 deletion firebase-crashlytics/api/firebase-crashlytics.api
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ public final class dev/gitlive/firebase/crashlytics/CrashlyticsKt {
public final class dev/gitlive/firebase/crashlytics/FirebaseCrashlytics {
public final fun deleteUnsentReports ()V
public final fun didCrashOnPreviousExecution ()Z
public final fun getAndroid ()Lcom/google/firebase/crashlytics/FirebaseCrashlytics;
public final fun log (Ljava/lang/String;)V
public final fun recordException (Ljava/lang/Throwable;)V
public final fun sendUnsentReports ()V
Expand Down
5 changes: 2 additions & 3 deletions firebase-database/api/android/firebase-database.api
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ public final class dev/gitlive/firebase/database/ChildEvent$Type : java/lang/Enu

public final class dev/gitlive/firebase/database/DataSnapshot {
public final fun child (Ljava/lang/String;)Ldev/gitlive/firebase/database/DataSnapshot;
public final fun getAndroid ()Lcom/google/firebase/database/DataSnapshot;
public final fun getChildren ()Ljava/lang/Iterable;
public final fun getExists ()Z
public final fun getHasChildren ()Z
Expand Down Expand Up @@ -55,7 +54,6 @@ public final class dev/gitlive/firebase/database/DatabaseReference : dev/gitlive

public final class dev/gitlive/firebase/database/FirebaseDatabase {
public static final field Companion Ldev/gitlive/firebase/database/FirebaseDatabase$Companion;
public final fun getAndroid ()Lcom/google/firebase/database/FirebaseDatabase;
public final fun goOffline ()V
public final fun goOnline ()V
public final fun reference ()Ldev/gitlive/firebase/database/DatabaseReference;
Expand Down Expand Up @@ -97,7 +95,6 @@ public class dev/gitlive/firebase/database/Query {
public static synthetic fun equalTo$default (Ldev/gitlive/firebase/database/Query;DLjava/lang/String;ILjava/lang/Object;)Ldev/gitlive/firebase/database/Query;
public static synthetic fun equalTo$default (Ldev/gitlive/firebase/database/Query;Ljava/lang/String;Ljava/lang/String;ILjava/lang/Object;)Ldev/gitlive/firebase/database/Query;
public static synthetic fun equalTo$default (Ldev/gitlive/firebase/database/Query;ZLjava/lang/String;ILjava/lang/Object;)Ldev/gitlive/firebase/database/Query;
public fun getAndroid ()Lcom/google/firebase/database/Query;
public final fun getPersistenceEnabled ()Z
public final fun getValueEvents ()Lkotlinx/coroutines/flow/Flow;
public final fun limitToFirst (I)Ldev/gitlive/firebase/database/Query;
Expand Down Expand Up @@ -143,8 +140,10 @@ public final class dev/gitlive/firebase/database/databaseAndroid {
public static final fun getAndroid (Ldev/gitlive/firebase/database/DatabaseReference;)Lcom/google/firebase/database/DatabaseReference;
public static final fun getAndroid (Ldev/gitlive/firebase/database/FirebaseDatabase;)Lcom/google/firebase/database/FirebaseDatabase;
public static final fun getAndroid (Ldev/gitlive/firebase/database/OnDisconnect;)Lcom/google/firebase/database/OnDisconnect;
public static final fun getAndroid (Ldev/gitlive/firebase/database/Query;)Lcom/google/firebase/database/Query;
public static final fun getDatabase (Ldev/gitlive/firebase/Firebase;)Ldev/gitlive/firebase/database/FirebaseDatabase;
public static final fun getDatabase (Ldev/gitlive/firebase/database/OnDisconnect;)Ldev/gitlive/firebase/database/FirebaseDatabase;
public static final fun getPersistenceEnabled (Ldev/gitlive/firebase/database/OnDisconnect;)Z
public static final fun getPublicAndroid (Ldev/gitlive/firebase/database/DataSnapshot;)Lcom/google/firebase/database/DataSnapshot;
}

5 changes: 2 additions & 3 deletions firebase-database/api/jvm/firebase-database.api
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ public final class dev/gitlive/firebase/database/ChildEvent$Type : java/lang/Enu

public final class dev/gitlive/firebase/database/DataSnapshot {
public final fun child (Ljava/lang/String;)Ldev/gitlive/firebase/database/DataSnapshot;
public final fun getAndroid ()Lcom/google/firebase/database/DataSnapshot;
public final fun getChildren ()Ljava/lang/Iterable;
public final fun getExists ()Z
public final fun getHasChildren ()Z
Expand Down Expand Up @@ -55,7 +54,6 @@ public final class dev/gitlive/firebase/database/DatabaseReference : dev/gitlive

public final class dev/gitlive/firebase/database/FirebaseDatabase {
public static final field Companion Ldev/gitlive/firebase/database/FirebaseDatabase$Companion;
public final fun getAndroid ()Lcom/google/firebase/database/FirebaseDatabase;
public final fun goOffline ()V
public final fun goOnline ()V
public final fun reference ()Ldev/gitlive/firebase/database/DatabaseReference;
Expand Down Expand Up @@ -97,7 +95,6 @@ public class dev/gitlive/firebase/database/Query {
public static synthetic fun equalTo$default (Ldev/gitlive/firebase/database/Query;DLjava/lang/String;ILjava/lang/Object;)Ldev/gitlive/firebase/database/Query;
public static synthetic fun equalTo$default (Ldev/gitlive/firebase/database/Query;Ljava/lang/String;Ljava/lang/String;ILjava/lang/Object;)Ldev/gitlive/firebase/database/Query;
public static synthetic fun equalTo$default (Ldev/gitlive/firebase/database/Query;ZLjava/lang/String;ILjava/lang/Object;)Ldev/gitlive/firebase/database/Query;
public fun getAndroid ()Lcom/google/firebase/database/Query;
public final fun getPersistenceEnabled ()Z
public final fun getValueEvents ()Lkotlinx/coroutines/flow/Flow;
public final fun limitToFirst (I)Ldev/gitlive/firebase/database/Query;
Expand Down Expand Up @@ -143,8 +140,10 @@ public final class dev/gitlive/firebase/database/databaseAndroid {
public static final fun getAndroid (Ldev/gitlive/firebase/database/DatabaseReference;)Lcom/google/firebase/database/DatabaseReference;
public static final fun getAndroid (Ldev/gitlive/firebase/database/FirebaseDatabase;)Lcom/google/firebase/database/FirebaseDatabase;
public static final fun getAndroid (Ldev/gitlive/firebase/database/OnDisconnect;)Lcom/google/firebase/database/OnDisconnect;
public static final fun getAndroid (Ldev/gitlive/firebase/database/Query;)Lcom/google/firebase/database/Query;
public static final fun getDatabase (Ldev/gitlive/firebase/Firebase;)Ldev/gitlive/firebase/database/FirebaseDatabase;
public static final fun getDatabase (Ldev/gitlive/firebase/database/OnDisconnect;)Ldev/gitlive/firebase/database/FirebaseDatabase;
public static final fun getPersistenceEnabled (Ldev/gitlive/firebase/database/OnDisconnect;)Z
public static final fun getPublicAndroid (Ldev/gitlive/firebase/database/DataSnapshot;)Lcom/google/firebase/database/DataSnapshot;
}

8 changes: 4 additions & 4 deletions firebase-firestore/api/android/firebase-firestore.api
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ public final class dev/gitlive/firebase/firestore/CollectionReference$Companion

public final class dev/gitlive/firebase/firestore/DocumentChange {
public fun <init> (Lcom/google/firebase/firestore/DocumentChange;)V
public final fun getAndroid ()Lcom/google/firebase/firestore/DocumentChange;
public final fun getDocument ()Ldev/gitlive/firebase/firestore/DocumentSnapshot;
public final fun getNewIndex ()I
public final fun getOldIndex ()I
Expand Down Expand Up @@ -142,7 +141,6 @@ public final class dev/gitlive/firebase/firestore/FieldPath {
public static final field Companion Ldev/gitlive/firebase/firestore/FieldPath$Companion;
public fun <init> ([Ljava/lang/String;)V
public fun equals (Ljava/lang/Object;)Z
public final fun getAndroid ()Lcom/google/firebase/firestore/FieldPath;
public final fun getDocumentId ()Ldev/gitlive/firebase/firestore/FieldPath;
public final fun getEncoded ()Lcom/google/firebase/firestore/FieldPath;
public fun hashCode ()I
Expand Down Expand Up @@ -471,7 +469,6 @@ public final class dev/gitlive/firebase/firestore/Query$Companion {

public final class dev/gitlive/firebase/firestore/QuerySnapshot {
public fun <init> (Lcom/google/firebase/firestore/QuerySnapshot;)V
public final fun getAndroid ()Lcom/google/firebase/firestore/QuerySnapshot;
public final fun getDocumentChanges ()Ljava/util/List;
public final fun getDocuments ()Ljava/util/List;
public final fun getMetadata ()Ldev/gitlive/firebase/firestore/SnapshotMetadata;
Expand All @@ -497,7 +494,6 @@ public final class dev/gitlive/firebase/firestore/ServerTimestampSerializer : ko

public final class dev/gitlive/firebase/firestore/SnapshotMetadata {
public fun <init> (Lcom/google/firebase/firestore/SnapshotMetadata;)V
public final fun getAndroid ()Lcom/google/firebase/firestore/SnapshotMetadata;
public final fun getHasPendingWrites ()Z
public final fun isFromCache ()Z
}
Expand Down Expand Up @@ -782,11 +778,15 @@ public final class dev/gitlive/firebase/firestore/android {
public static final fun firestoreSettings (Ldev/gitlive/firebase/firestore/FirebaseFirestoreSettings;Lkotlin/jvm/functions/Function1;)Ldev/gitlive/firebase/firestore/FirebaseFirestoreSettings;
public static synthetic fun firestoreSettings$default (Ldev/gitlive/firebase/firestore/FirebaseFirestoreSettings;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)Ldev/gitlive/firebase/firestore/FirebaseFirestoreSettings;
public static final fun getAndroid (Ldev/gitlive/firebase/firestore/CollectionReference;)Lcom/google/firebase/firestore/CollectionReference;
public static final fun getAndroid (Ldev/gitlive/firebase/firestore/DocumentChange;)Lcom/google/firebase/firestore/DocumentChange;
public static final fun getAndroid (Ldev/gitlive/firebase/firestore/DocumentReference;)Lcom/google/firebase/firestore/DocumentReference;
public static final fun getAndroid (Ldev/gitlive/firebase/firestore/DocumentSnapshot;)Lcom/google/firebase/firestore/DocumentSnapshot;
public static final fun getAndroid (Ldev/gitlive/firebase/firestore/FieldPath;)Lcom/google/firebase/firestore/FieldPath;
public static final fun getAndroid (Ldev/gitlive/firebase/firestore/FirebaseFirestore;)Lcom/google/firebase/firestore/FirebaseFirestore;
public static final fun getAndroid (Ldev/gitlive/firebase/firestore/LocalCacheSettings;)Lcom/google/firebase/firestore/LocalCacheSettings;
public static final fun getAndroid (Ldev/gitlive/firebase/firestore/Query;)Lcom/google/firebase/firestore/Query;
public static final fun getAndroid (Ldev/gitlive/firebase/firestore/QuerySnapshot;)Lcom/google/firebase/firestore/QuerySnapshot;
public static final fun getAndroid (Ldev/gitlive/firebase/firestore/SnapshotMetadata;)Lcom/google/firebase/firestore/SnapshotMetadata;
public static final fun getAndroid (Ldev/gitlive/firebase/firestore/Transaction;)Lcom/google/firebase/firestore/Transaction;
public static final fun getAndroid (Ldev/gitlive/firebase/firestore/WriteBatch;)Lcom/google/firebase/firestore/WriteBatch;
public static final fun getCode (Lcom/google/firebase/firestore/FirebaseFirestoreException;)Lcom/google/firebase/firestore/FirebaseFirestoreException$Code;
Expand Down
Loading

0 comments on commit 2e5eb27

Please sign in to comment.