Skip to content

Commit

Permalink
Merge pull request #55 from tuarua/development
Browse files Browse the repository at this point in the history
0.20.0
  • Loading branch information
tuarua authored Jun 20, 2021
2 parents b40a886 + b937706 commit c059b8c
Show file tree
Hide file tree
Showing 98 changed files with 756 additions and 736 deletions.
19 changes: 19 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
### 0.20.0
- iOS: Updated to FreSwift 5.2.0
- iOS: Firebase 8.1.1
- iOS: deprecation notice on Firebase Vision ANEs. Google is dropping The Firebase ML Vision SDK.
- iOS: min version 10.0
- iOS: requires AIR 33.1.1.476+
- AND: Analytics 19.0.0
- AND: Crashlytics 18.0.1
- AND: Firestore 23.0.1
- AND: Storage 20.0.0
- AND: Remote Config 21.0.0
- AND: Auth 21.0.1
- AND: Play Services Auth 19.0.0
- AND: Performance 20.0.1
- AND: Messaging 22.0.0
- AND: Dynamic Links 20.1.0
- [Messaging] `token` is now `getToken(listener:Function)`
- [Analytics] remove `Analytics.currentScreen`

### 0.19.0
- [Auth] Add support of Google Play Games on Android

Expand Down
8 changes: 4 additions & 4 deletions example/FirebaseANESample-mobile.iml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<dependency linkage="Merged" />
</entry>
</entries>
<sdk name="AIRSDK_33.1.1.345" />
<sdk name="AIRSDK_33.1.1.476" />
</dependencies>
<compiler-options>
<map>
Expand Down Expand Up @@ -44,7 +44,7 @@
<dependency linkage="Merged" />
</entry>
</entries>
<sdk name="AIRSDK_33.1.1.345" />
<sdk name="AIRSDK_33.1.1.476" />
</dependencies>
<compiler-options>
<map>
Expand Down Expand Up @@ -85,7 +85,7 @@
<dependency linkage="Merged" />
</entry>
</entries>
<sdk name="AIRSDK_33.1.1.345" />
<sdk name="AIRSDK_33.1.1.476" />
</dependencies>
<compiler-options>
<map>
Expand Down Expand Up @@ -123,7 +123,7 @@
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
</content>
<orderEntry type="jdk" jdkName="AIRSDK_33.1.1.345" jdkType="Flex SDK Type (new)" />
<orderEntry type="jdk" jdkName="AIRSDK_33.1.1.476" jdkType="Flex SDK Type (new)" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="library" exported="" name="ZipANE" level="project" />
<orderEntry type="library" exported="" name="com.tuarua.frekotlin" level="project" />
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.19.0",
"version": "0.20.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.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"
"com.tuarua.firebase.FirebaseANE": "0.20.0",
"com.tuarua.firebase.AnalyticsANE": "0.20.0",
"com.tuarua.firebase.AuthANE": "0.20.0",
"com.tuarua.firebase.DynamicLinksANE": "0.20.0",
"com.tuarua.firebase.FirestoreANE": "0.20.0",
"com.tuarua.firebase.MessagingANE": "0.20.0",
"com.tuarua.firebase.PerformanceANE": "0.20.0",
"com.tuarua.firebase.RemoteConfigANE": "0.20.0",
"com.tuarua.firebase.StorageANE": "0.20.0",
"com.tuarua.firebase.CrashlyticsANE": "0.20.0",
"com.tuarua.google.GoogleSignInANE": "0.20.0",
"com.tuarua.OneSignalANE": "0.20.0"
}
}
20 changes: 7 additions & 13 deletions 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.19.0</versionNumber>
<versionNumber>0.20.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 Expand Up @@ -69,7 +69,6 @@
<!-- Required by older versions of Google Play services to create IID tokens -->
<uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" />
<uses-permission android:name="com.google.android.finsky.permission.BIND_GET_INSTALL_REFERRER_SERVICE" />
<uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES" />
<!-- Create a unique permission for your app and use it so only your app can receive your OneSignal messages. -->
<permission android:name="air.com.tuarua.firebaseane.example.permission.C2D_MESSAGE" android:protectionLevel="signature" />
<uses-permission android:name="air.com.tuarua.firebaseane.example.permission.C2D_MESSAGE" />
Expand Down Expand Up @@ -121,11 +120,6 @@
<meta-data android:name="com.google.firebase.components:com.google.firebase.iid.Registrar" android:value="com.google.firebase.components.ComponentRegistrar" />
<meta-data android:name="com.google.firebase.components:com.google.firebase.analytics.connector.internal.AnalyticsConnectorRegistrar" android:value="com.google.firebase.components.ComponentRegistrar" />
<meta-data android:name="com.google.firebase.components:com.google.firebase.analytics.ktx.FirebaseAnalyticsKtxRegistrar" android:value="com.google.firebase.components.ComponentRegistrar" />
<!--
This registrar is not defined in the dynamic-module-support sdk itself to allow non-firebase
clients to use it as well, by defining this registrar in their own core/common library.
-->
<meta-data android:name="com.google.firebase.components:com.google.firebase.dynamicloading.DynamicLoadingRegistrar" android:value="com.google.firebase.components.ComponentRegistrar" />
<meta-data android:name="com.google.firebase.components:com.google.firebase.ktx.FirebaseCommonKtxRegistrar" android:value="com.google.firebase.components.ComponentRegistrar" />
<meta-data android:name="com.google.firebase.components:com.google.firebase.datatransport.TransportRegistrar" android:value="com.google.firebase.components.ComponentRegistrar" />
<meta-data android:name="com.google.firebase.components:com.google.firebase.installations.FirebaseInstallationsRegistrar" android:value="com.google.firebase.components.ComponentRegistrar" />
Expand All @@ -142,14 +136,9 @@
<meta-data android:name="com.google.firebase.components:com.google.firebase.abt.component.AbtRegistrar" android:value="com.google.firebase.components.ComponentRegistrar" />
<meta-data android:name="com.google.firebase.components:com.google.firebase.storage.ktx.FirebaseStorageKtxRegistrar" android:value="com.google.firebase.components.ComponentRegistrar" />
<meta-data android:name="com.google.firebase.components:com.google.firebase.storage.StorageRegistrar" android:value="com.google.firebase.components.ComponentRegistrar" />
<meta-data android:name="com.google.firebase.components:com.google.firebase.appcheck.FirebaseAppCheckRegistrar" android:value="com.google.firebase.components.ComponentRegistrar" />
<meta-data android:name="com.google.firebase.components:com.google.firebase.crashlytics.CrashlyticsRegistrar" android:value="com.google.firebase.components.ComponentRegistrar" />
</service>
<receiver android:name="com.google.firebase.iid.FirebaseInstanceIdReceiver" android:exported="true" android:permission="com.google.android.c2dm.permission.SEND">
<intent-filter>
<action android:name="com.google.android.c2dm.intent.RECEIVE" />
<category android:name="air.com.tuarua.firebaseane.example" />
</intent-filter>
</receiver>
<receiver android:name="com.google.android.gms.measurement.AppMeasurementReceiver" android:enabled="true" android:exported="false"></receiver>
<service android:name="com.google.android.gms.measurement.AppMeasurementService" android:enabled="true" android:exported="false" />
<service android:name="com.google.android.gms.measurement.AppMeasurementJobService" android:enabled="true" android:exported="false" android:permission="android.permission.BIND_JOB_SERVICE" />
Expand Down Expand Up @@ -183,6 +172,11 @@
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</service>
<receiver android:name="com.google.firebase.iid.FirebaseInstanceIdReceiver" android:exported="true" android:permission="com.google.android.c2dm.permission.SEND">
<intent-filter>
<action android:name="com.google.android.c2dm.intent.RECEIVE" />
</intent-filter>
</receiver>
<!--
FirebaseMessagingService performs security checks at runtime,
but set to not exported to explicitly avoid allowing another app to call it.
Expand Down
1 change: 0 additions & 1 deletion example/src/views/examples/AnalyticsExample.as
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ public class AnalyticsExample extends Sprite implements IExample {
if (isInited) return;
analytics = Firebase.analytics();
analytics.analyticsCollectionEnabled = true;
analytics.currentScreen = "Home Screen";
analytics.userId = GUID.create(); // for testing create a different user each session
isInited = true;
}
Expand Down
5 changes: 3 additions & 2 deletions example/src/views/examples/MessagingExample.as
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,9 @@ public class MessagingExample extends Sprite implements IExample {
private function onLogTokenClick(event:TouchEvent):void {
var touch:Touch = event.getTouch(btnLogToken);
if (touch != null && touch.phase == TouchPhase.ENDED) {
trace("FCM Token: ", messaging.token);
statusLabel.text = "FCM Token: " + messaging.token;
trace("FCM Token: ", messaging.getToken(function(token:String, error:Error):void {
statusLabel.text = "FCM Token: " + token;
}));
}
}

Expand Down
6 changes: 3 additions & 3 deletions example_vision/VisionANESample.iml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<dependency linkage="Merged" />
</entry>
</entries>
<sdk name="AIRSDK_33.1.1.345" />
<sdk name="AIRSDK_33.1.1.476" />
</dependencies>
<compiler-options>
<option name="additionalOptions" value="-advanced-telemetry -swf-version=42" />
Expand Down Expand Up @@ -40,7 +40,7 @@
<dependency linkage="Merged" />
</entry>
</entries>
<sdk name="AIRSDK_33.1.1.345" />
<sdk name="AIRSDK_33.1.1.476" />
</dependencies>
<compiler-options>
<option name="additionalOptions" value="-advanced-telemetry" />
Expand All @@ -67,7 +67,7 @@
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
</content>
<orderEntry type="jdk" jdkName="AIRSDK_33.1.1.345" jdkType="Flex SDK Type (new)" />
<orderEntry type="jdk" jdkName="AIRSDK_33.1.1.476" jdkType="Flex SDK Type (new)" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="library" exported="" name="FirebaseANE" level="project" />
<orderEntry type="library" exported="" name="VisionANE" level="project" />
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.19.0",
"version": "0.20.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.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"
"com.tuarua.firebase.FirebaseANE": "0.20.0",
"com.tuarua.firebase.AnalyticsANE": "0.20.0",
"com.tuarua.firebase.VisionANE": "0.20.0",
"com.tuarua.firebase.VisionCloudTextANE": "0.20.0",
"com.tuarua.firebase.VisionCloudDocumentANE": "0.20.0",
"com.tuarua.firebase.VisionCloudLabelANE": "0.20.0",
"com.tuarua.firebase.VisionLandmarkANE": "0.20.0",
"com.tuarua.firebase.ModelInterpreterANE": "0.20.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.19.0</versionNumber>
<versionNumber>0.20.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: 2 additions & 2 deletions native_extension/AnalyticsANE/ane/air_package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"name": "com.tuarua.firebase.AnalyticsANE",
"version": "0.19.0",
"version": "0.20.0",
"repository": {
"url": "https://tuarua.github.io/air/air_packages.json"
},
"dependencies": {
"com.google.firebase.firebase-analytics-ktx": "18.0.0"
"com.google.firebase.firebase-analytics-ktx": "19.0.0"
}
}
2 changes: 1 addition & 1 deletion native_extension/AnalyticsANE/ane/build_multi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ echo "Copying native libraries into place."
cp -R -L "$pathtome/../../../native_library/apple/FirebaseANE/Build/Products/Release-iphonesimulator/lib$PROJECTNAME$libSuffix.a" "$pathtome/platforms/ios/simulator/lib$PROJECTNAME.a"
cp -R -L "$pathtome/../../../native_library/apple/FirebaseANE/Build/Products/Release-iphoneos/lib$PROJECTNAME$libSuffix.a" "$pathtome/platforms/ios/device/lib$PROJECTNAME.a"

arr=( "FirebaseAnalytics" "FIRAnalyticsConnector" )
arr=( "FirebaseAnalytics" )
for i in "${arr[@]}"
do
cp -R -L "$pathtome/../../../firebase_frameworks/simulator/$i.framework" "$pathtome/platforms/ios/simulator/Frameworks"
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.19.0</versionNumber>
<versionNumber>0.20.0</versionNumber>
<platforms>
<platform name="iPhone-ARM">
<applicationDeployment>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@

<packagedDependencies>
<packagedDependency>Frameworks/FirebaseAnalytics.framework</packagedDependency>
<packagedDependency>Frameworks/FIRAnalyticsConnector.framework</packagedDependency>
</packagedDependencies>

</platform>
Binary file modified native_extension/AnalyticsANE/bin/AnalyticsANE.swc
Binary file not shown.
11 changes: 0 additions & 11 deletions native_extension/AnalyticsANE/src/com/tuarua/firebase/Analytics.as
Original file line number Diff line number Diff line change
Expand Up @@ -75,17 +75,6 @@ public class Analytics extends EventDispatcher {
if (ret is ANEError) throw ret as ANEError;
}

/**
* The name of the current screen. Should contain 1 to 100 characters.
* Set to null to clear the current screen name.
* @deprecated
* */
public function set currentScreen(screenName:String):void {
AnalyticsANEContext.validate();
var ret:* = AnalyticsANEContext.context.call("setCurrentScreen", screenName);
if (ret is ANEError) throw ret as ANEError;
}

/**
* Sets the minimum engagement time in seconds required to start a new session. The default value
* is 10000 milliseconds.
Expand Down
4 changes: 2 additions & 2 deletions native_extension/AuthANE/ane/air_package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"name": "com.tuarua.firebase.AuthANE",
"version": "0.19.0",
"version": "0.20.0",
"repository": {
"url": "https://tuarua.github.io/air/air_packages.json"
},
"dependencies": {
"com.google.firebase.firebase-auth-ktx": "20.0.1"
"com.google.firebase.firebase-auth-ktx": "21.0.1"
}
}
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.19.0</versionNumber>
<versionNumber>0.20.0</versionNumber>
<platforms>
<platform name="iPhone-ARM">
<applicationDeployment>
Expand Down
Binary file modified native_extension/AuthANE/bin/AuthANE.swc
Binary file not shown.
4 changes: 2 additions & 2 deletions native_extension/CrashlyticsANE/ane/air_package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"name": "com.tuarua.firebase.CrashlyticsANE",
"version": "0.19.0",
"version": "0.20.0",
"repository": {
"url": "https://tuarua.github.io/air/air_packages.json"
},
"dependencies": {
"com.google.firebase.firebase-crashlytics": "17.3.0"
"com.google.firebase.firebase-crashlytics": "18.0.1"
}
}
2 changes: 1 addition & 1 deletion native_extension/CrashlyticsANE/ane/extension_multi.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<id>com.tuarua.firebase.CrashlyticsANE</id>
<name>Firebase Crashlytics ANE</name>
<copyright>This work is licensed under Apache License, Copyright (c) 2018 Tua Rua Ltd.</copyright>
<versionNumber>0.19.0</versionNumber>
<versionNumber>0.20.0</versionNumber>
<platforms>
<platform name="iPhone-ARM">
<applicationDeployment>
Expand Down
Binary file modified native_extension/CrashlyticsANE/bin/CrashlyticsANE.swc
Binary file not shown.
4 changes: 2 additions & 2 deletions native_extension/DynamicLinksANE/ane/air_package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"name": "com.tuarua.firebase.DynamicLinksANE",
"version": "0.19.0",
"version": "0.20.0",
"repository": {
"url": "https://tuarua.github.io/air/air_packages.json"
},
"dependencies": {
"com.google.firebase.firebase-dynamic-links-ktx": "19.1.1"
"com.google.firebase.firebase-dynamic-links-ktx": "20.1.0"
}
}
2 changes: 1 addition & 1 deletion native_extension/DynamicLinksANE/ane/extension_multi.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<id>com.tuarua.firebase.DynamicLinksANE</id>
<name>Firebase Dynamic Links ANE</name>
<copyright>This work is licensed under Apache License, Copyright (c) 2017 Tua Rua Ltd.</copyright>
<versionNumber>0.19.0</versionNumber>
<versionNumber>0.20.0</versionNumber>
<platforms>
<platform name="iPhone-ARM">
<applicationDeployment>
Expand Down
Binary file modified native_extension/DynamicLinksANE/bin/DynamicLinksANE.swc
Binary file not shown.
4 changes: 2 additions & 2 deletions native_extension/FirestoreANE/ane/air_package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"name": "com.tuarua.firebase.FirestoreANE",
"version": "0.19.0",
"version": "0.20.0",
"repository": {
"url": "https://tuarua.github.io/air/air_packages.json"
},
"dependencies": {
"com.google.firebase.firebase-firestore-ktx": "22.0.1"
"com.google.firebase.firebase-firestore-ktx": "23.0.1"
}
}
2 changes: 1 addition & 1 deletion native_extension/FirestoreANE/ane/extension_multi.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<id>com.tuarua.firebase.FirestoreANE</id>
<name>Firebase Firestore ANE</name>
<copyright>This work is licensed under Apache License, Copyright (c) 2017 Tua Rua Ltd.</copyright>
<versionNumber>0.19.0</versionNumber>
<versionNumber>0.20.0</versionNumber>
<platforms>
<platform name="iPhone-ARM">
<applicationDeployment>
Expand Down
Binary file modified native_extension/FirestoreANE/bin/FirestoreANE.swc
Binary file not shown.
2 changes: 1 addition & 1 deletion native_extension/GoogleSignInANE/ane/extension_multi.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<id>com.tuarua.google.GoogleSignInANE</id>
<name>Google Sign In ANE</name>
<copyright>This work is licensed under Apache License, Copyright (c) 2018 Tua Rua Ltd.</copyright>
<versionNumber>0.19.0</versionNumber>
<versionNumber>0.20.0</versionNumber>
<platforms>
<platform name="iPhone-ARM">
<applicationDeployment>
Expand Down
Binary file modified native_extension/GoogleSignInANE/bin/GoogleSignInANE.swc
Binary file not shown.
Loading

0 comments on commit c059b8c

Please sign in to comment.