Skip to content

Commit

Permalink
Native properties moved into extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-kew committed Aug 29, 2024
1 parent 1a9a14a commit 3eb1a0c
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion firebase-auth/api/android/firebase-auth.api
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ public final class dev/gitlive/firebase/auth/ActionCodeSettings {

public final class dev/gitlive/firebase/auth/AdditionalUserInfo {
public fun <init> (Lcom/google/firebase/auth/AdditionalUserInfo;)V
public final fun getAndroid ()Lcom/google/firebase/auth/AdditionalUserInfo;
public final fun getProfile ()Ljava/util/Map;
public final fun getProviderId ()Ljava/lang/String;
public final fun getUsername ()Ljava/lang/String;
Expand Down Expand Up @@ -290,6 +289,7 @@ 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/AdditionalUserInfo;)Lcom/google/firebase/auth/AdditionalUserInfo;
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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,11 @@ public actual class AuthResult(internal val android: com.google.firebase.auth.Au
get() = android.additionalUserInfo?.let { AdditionalUserInfo(it) }
}

public val AdditionalUserInfo.android: com.google.firebase.auth.AdditionalUserInfo
get() = android

public actual class AdditionalUserInfo(
public val android: com.google.firebase.auth.AdditionalUserInfo,
internal val android: com.google.firebase.auth.AdditionalUserInfo,
) {
public actual val providerId: String?
get() = android.providerId
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,10 @@ public actual class AuthResult(internal val ios: FIRAuthDataResult) {
get() = ios.additionalUserInfo?.let { AdditionalUserInfo(it) }
}

public val AdditionalUserInfo.ios: FIRAdditionalUserInfo get() = ios

public actual class AdditionalUserInfo(
public val ios: FIRAdditionalUserInfo,
internal val ios: FIRAdditionalUserInfo,
) {
public actual val providerId: String?
get() = ios.providerID
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,10 @@ public actual class AuthResult(internal val js: JsAuthResult) {
get() = rethrow { js.additionalUserInfo?.let { AdditionalUserInfo(it) } }
}

public val AdditionalUserInfo.js: JsAdditionalUserInfo get() = js

public actual class AdditionalUserInfo(
public val js: JsAdditionalUserInfo,
internal val js: JsAdditionalUserInfo,
) {
public actual val providerId: String?
get() = js.providerId
Expand Down

0 comments on commit 3eb1a0c

Please sign in to comment.