Skip to content

Commit

Permalink
Merge pull request #54 from tuarua/development
Browse files Browse the repository at this point in the history
0.19.0
  • Loading branch information
tuarua authored May 15, 2021
2 parents 369e3c1 + bcfe61a commit b40a886
Show file tree
Hide file tree
Showing 132 changed files with 1,002 additions and 220 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
### 0.19.0
- [Auth] Add support of Google Play Games on Android

### 0.18.0
- [Auth] Fix verificationId was not returned on verifyPhoneNumber

Expand Down
26 changes: 13 additions & 13 deletions example/air_package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "firebase-sample",
"version": "0.18.0",
"version": "0.19.0",
"appDescriptor": "src/Main-app.xml",
"variables": {
"firebase_associated_domain": "xxxx.app.goo.gl",
Expand All @@ -15,17 +15,17 @@
"url": "https://tuarua.github.io/air/air_packages.json"
},
"dependencies": {
"com.tuarua.firebase.FirebaseANE": "0.18.0",
"com.tuarua.firebase.AnalyticsANE": "0.18.0",
"com.tuarua.firebase.AuthANE": "0.18.0",
"com.tuarua.firebase.DynamicLinksANE": "0.18.0",
"com.tuarua.firebase.FirestoreANE": "0.18.0",
"com.tuarua.firebase.MessagingANE": "0.18.0",
"com.tuarua.firebase.PerformanceANE": "0.18.0",
"com.tuarua.firebase.RemoteConfigANE": "0.18.0",
"com.tuarua.firebase.StorageANE": "0.18.0",
"com.tuarua.firebase.CrashlyticsANE": "0.18.0",
"com.tuarua.google.GoogleSignInANE": "0.18.0",
"com.tuarua.OneSignalANE": "0.18.0"
"com.tuarua.firebase.FirebaseANE": "0.19.0",
"com.tuarua.firebase.AnalyticsANE": "0.19.0",
"com.tuarua.firebase.AuthANE": "0.19.0",
"com.tuarua.firebase.DynamicLinksANE": "0.19.0",
"com.tuarua.firebase.FirestoreANE": "0.19.0",
"com.tuarua.firebase.MessagingANE": "0.19.0",
"com.tuarua.firebase.PerformanceANE": "0.19.0",
"com.tuarua.firebase.RemoteConfigANE": "0.19.0",
"com.tuarua.firebase.StorageANE": "0.19.0",
"com.tuarua.firebase.CrashlyticsANE": "0.19.0",
"com.tuarua.google.GoogleSignInANE": "0.19.0",
"com.tuarua.OneSignalANE": "0.19.0"
}
}
2 changes: 1 addition & 1 deletion example/src/Main-app.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<id>com.tuarua.firebaseane.example</id>
<filename>FireBaseExample</filename>
<name>FIR-Example</name>
<versionNumber>0.18.0</versionNumber>
<versionNumber>0.19.0</versionNumber>
<!-- Settings for the application's initial window. Required. -->
<initialWindow>
<content>[This value will be overwritten by Flash Builder in the output app.xml]</content>
Expand Down
4 changes: 4 additions & 0 deletions example/src/views/examples/AuthExample.as
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import com.tuarua.firebase.auth.EmailAuthCredential;
import com.tuarua.firebase.auth.FirebaseUser;
import com.tuarua.firebase.auth.GoogleAuthCredential;
import com.tuarua.google.GoogleSignIn;
import com.tuarua.google.signin.GoogleSignInAccount;
import com.tuarua.google.signin.events.GoogleSignInEvent;

import starling.display.Sprite;
Expand Down Expand Up @@ -128,6 +129,9 @@ public class AuthExample extends Sprite implements IExample {
statusLabel.text = "Google Sign In error: " + event.error.errorID + " : " + event.error.message;
return;
}
var account:GoogleSignInAccount = event.account;
trace("Google Account accessToken:", account.accessToken);
trace("Google Account displayName:", account.displayName);
auth.signInWithCredential(event.credential, onSignedIn);
}

Expand Down
18 changes: 9 additions & 9 deletions example_vision/air_package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "firebase-sample",
"version": "0.18.0",
"version": "0.19.0",
"appDescriptor": "src/Main-app.xml",
"variables": {},
"airDotPrefix": true,
Expand All @@ -9,13 +9,13 @@
"url": "https://tuarua.github.io/air/air_packages.json"
},
"dependencies": {
"com.tuarua.firebase.FirebaseANE": "0.18.0",
"com.tuarua.firebase.AnalyticsANE": "0.18.0",
"com.tuarua.firebase.VisionANE": "0.18.0",
"com.tuarua.firebase.VisionCloudTextANE": "0.18.0",
"com.tuarua.firebase.VisionCloudDocumentANE": "0.18.0",
"com.tuarua.firebase.VisionCloudLabelANE": "0.18.0",
"com.tuarua.firebase.VisionLandmarkANE": "0.18.0",
"com.tuarua.firebase.ModelInterpreterANE": "0.18.0"
"com.tuarua.firebase.FirebaseANE": "0.19.0",
"com.tuarua.firebase.AnalyticsANE": "0.19.0",
"com.tuarua.firebase.VisionANE": "0.19.0",
"com.tuarua.firebase.VisionCloudTextANE": "0.19.0",
"com.tuarua.firebase.VisionCloudDocumentANE": "0.19.0",
"com.tuarua.firebase.VisionCloudLabelANE": "0.19.0",
"com.tuarua.firebase.VisionLandmarkANE": "0.19.0",
"com.tuarua.firebase.ModelInterpreterANE": "0.19.0"
}
}
2 changes: 1 addition & 1 deletion example_vision/src/Main-app.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<id>com.tuarua.firebaseane.example</id>
<filename>FireBaseExample</filename>
<name>FIR-Example</name>
<versionNumber>0.18.0</versionNumber>
<versionNumber>0.19.0</versionNumber>
<!-- Settings for the application's initial window. Required. -->
<initialWindow>
<content>[This value will be overwritten by Flash Builder in the output app.xml]</content>
Expand Down
2 changes: 1 addition & 1 deletion native_extension/AnalyticsANE/ane/air_package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "com.tuarua.firebase.AnalyticsANE",
"version": "0.18.0",
"version": "0.19.0",
"repository": {
"url": "https://tuarua.github.io/air/air_packages.json"
},
Expand Down
2 changes: 1 addition & 1 deletion native_extension/AnalyticsANE/ane/extension_multi.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<id>com.tuarua.firebase.AnalyticsANE</id>
<name>Firebase Analytics ANE</name>
<copyright>This work is licensed under Apache License, Copyright (c) 2018 Tua Rua Ltd.</copyright>
<versionNumber>0.18.0</versionNumber>
<versionNumber>0.19.0</versionNumber>
<platforms>
<platform name="iPhone-ARM">
<applicationDeployment>
Expand Down
Binary file modified native_extension/AnalyticsANE/bin/AnalyticsANE.swc
Binary file not shown.
2 changes: 1 addition & 1 deletion native_extension/AuthANE/ane/air_package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "com.tuarua.firebase.AuthANE",
"version": "0.18.0",
"version": "0.19.0",
"repository": {
"url": "https://tuarua.github.io/air/air_packages.json"
},
Expand Down
2 changes: 1 addition & 1 deletion native_extension/AuthANE/ane/extension_multi.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<id>com.tuarua.firebase.AuthANE</id>
<name>Firebase Auth ANE</name>
<copyright>This work is licensed under Apache License, Copyright (c) 2018 Tua Rua Ltd.</copyright>
<versionNumber>0.18.0</versionNumber>
<versionNumber>0.19.0</versionNumber>
<platforms>
<platform name="iPhone-ARM">
<applicationDeployment>
Expand Down
Binary file modified native_extension/AuthANE/bin/AuthANE.swc
Binary file not shown.
16 changes: 16 additions & 0 deletions native_extension/AuthANE/src/com/tuarua/firebase/Auth.as
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright 2021 Tua Rua Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package com.tuarua.firebase {
import com.tuarua.firebase.auth.AuthCredential;
import com.tuarua.firebase.auth.FirebaseUser;
Expand Down
16 changes: 16 additions & 0 deletions native_extension/AuthANE/src/com/tuarua/firebase/AuthANEContext.as
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright 2021 Tua Rua Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package com.tuarua.firebase {
import com.tuarua.firebase.auth.AdditionalUserInfo;
import com.tuarua.firebase.auth.AuthError;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright 2021 Tua Rua Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package com.tuarua.firebase.auth {
public class AuthCredential {
private var _provider:String;
Expand Down
16 changes: 16 additions & 0 deletions native_extension/AuthANE/src/com/tuarua/firebase/auth/AuthError.as
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright 2021 Tua Rua Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package com.tuarua.firebase.auth {
public class AuthError extends Error {
public function AuthError(message:* = "", id:* = 0) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright 2021 Tua Rua Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package com.tuarua.firebase.auth {
// https://firebase.google.com/docs/reference/swift/firebaseauth/api/reference/Enums/AuthErrorCode
public final class AuthErrorCode {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright 2021 Tua Rua Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package com.tuarua.firebase.auth {
public class EmailAuthCredential extends AuthCredential {
public function EmailAuthCredential(email:String, password:String) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright 2021 Tua Rua Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package com.tuarua.firebase.auth {
public class FacebookAuthCredential extends AuthCredential {
public function FacebookAuthCredential(accessToken:String) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright 2021 Tua Rua Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package com.tuarua.firebase.auth {
import com.tuarua.firebase.AuthANEContext;
import com.tuarua.fre.ANEError;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright 2021 Tua Rua Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package com.tuarua.firebase.auth {
public class GithubAuthCredential extends AuthCredential {
public function GithubAuthCredential(accessToken:String) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright 2021 Tua Rua Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package com.tuarua.firebase.auth {
public class GoogleAuthCredential extends AuthCredential {
public function GoogleAuthCredential(idToken:String, accessToken:String) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright 2021 Tua Rua Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package com.tuarua.firebase.auth {
public class PhoneAuthCredential extends AuthCredential {
public function PhoneAuthCredential(verificationId:String, code:String) {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
/*
* Copyright 2021 Tua Rua Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package com.tuarua.firebase.auth {
public class PlayGamesAuthCredential extends AuthCredential {
public function PlayGamesAuthCredential(serverAuthCode:String) {
super(Provider.PLAY_GAMES, serverAuthCode);
}
}
}
Loading

0 comments on commit b40a886

Please sign in to comment.