Skip to content
This repository was archived by the owner on Mar 17, 2025. It is now read-only.

Commit 2517eac

Browse files
committed
Update Auth sample
- com.google.firebase:firebase-auth:10.2.0 - com.google.android.gms:play-services-base:10.2.0 - replace deprecated code
1 parent 3592797 commit 2517eac

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

auth/Classes/FirebaseAuthScene.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,13 +96,13 @@ bool FirebaseAuthScene::init() {
9696
logMessage("Created the Auth %x class for the Firebase app.",
9797
static_cast<int>(reinterpret_cast<intptr_t>(auth)));
9898

99-
// It's possible for CurrentUser() to be non-null if the previous run
99+
// It's possible for current_user() to be non-null if the previous run
100100
// left us in a signed-in state.
101-
if (auth->CurrentUser() == nullptr) {
101+
if (auth->current_user() == nullptr) {
102102
logMessage("No user signed in at creation time.");
103103
} else {
104104
logMessage("Current user %s already signed in, so signing them out.",
105-
auth->CurrentUser()->DisplayName().c_str());
105+
auth->current_user()->display_name().c_str());
106106
}
107107

108108
email_text_field_ = createTextField(kEmailPlaceholderText);

auth/app/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ android {
66

77
defaultConfig {
88
applicationId "org.cocos2dx.hellocpp"
9-
minSdkVersion 10
9+
minSdkVersion 14
1010
targetSdkVersion 22
1111
versionCode 1
1212
versionName "1.0"
@@ -46,8 +46,8 @@ android {
4646
dependencies {
4747
compile fileTree(dir: 'libs', include: ['*.jar'])
4848
compile project(':libcocos2dx')
49-
compile 'com.google.firebase:firebase-auth:10.0.1'
50-
compile 'com.google.android.gms:play-services-base:10.0.1'
49+
compile 'com.google.firebase:firebase-auth:10.2.0'
50+
compile 'com.google.android.gms:play-services-base:10.2.0'
5151
}
5252

5353
apply plugin: 'com.google.gms.google-services'

0 commit comments

Comments
 (0)