-
-
Notifications
You must be signed in to change notification settings - Fork 5
Home
N.B. You must use a Mac to build an iOS app using these ANEs. Windows is NOT supported.
You will need
Using Terminal on Mac | Command Prompt on Windows
Check out the repo
git clone https://github.com/tuarua/Firebase-ANE.git
Change directory into the example folder eg
cd /MyMac/dev/AIR/Firebase-ANE/example
Run the "get_dependencies" scripts for iOS
bash /MyMac/dev/AIR/Firebase-ANE/example/get_ios_dependencies.sh
Run the "get_dependencies" scripts for Android
bash /MyMac/dev/AIR/Firebase-ANE/example/get_android_dependencies.sh
If using Windows for Android use Powershell
PS get_android_dependencies.ps1
These scripts download the FirebaseANEs and dependencies. eg:
- example/ios_dependencies/*
- example/android_dependencies/com.google.firebase.firebase-firestore-17.0.1.ane
- native_extension/FirestoreANE/ane/FirestoreANE.ane
- native_extension/AnalyticsANE/ane/AnalyticsANE.ane
- etc ...
The iOS FirebaseANEs are written in Swift. We need to package the Swift libraries (along with a couple of dynamic frameworks) with our AIR app
To find out more about writing Swift based ANEs see FreSwift
We need to patch some files in AIR SDK.
- Copy the files from AIRSDK_additions into the corresponding folders in your AIRSDK.
- Create a file called adt.cfg under lib/ with the following contents:
UncompressedExtensions=jpg,jpeg,tflite,lite,emd,pb,tfl,wav,mp3,mp4
This ANE is built against AIR 33 SDK. If you wish to use with AIR 32 you will need to replace dx.jar in lib/android/bin/ with this one
You should use AIR 32 for iOS builds
If you are including many FirebaseANEs (or many ANEs in general) you may get Memory errors from ADT when compiling your app. Ensure you are allocating a large enough JVM heap size:
For IntelliJ:
For Flash Builder:
https://helpx.adobe.com/flash-builder/kb/sluggish-performance-out-memory-errors.html
Portions of this page are modifications based on work created and shared by Google and used according to terms described in the Creative Commons 3.0 Attribution License.
Project setup
Analytics
Authentication
Dynamic Links
Google Sign In
Firestore
- Configuring the ANE
- Get Started
- Add and Manage Data
- Query Data
- Get Data
- Get Realtime Updates
- Perform Simple and Compound Queries
- Order and Limit Data
- Paginate Data
Messaging
One Signal
Performance
Remote Config
Storage
- Configuring the ANE
- Get Started
- Create a Reference
- Upload Files
- Download Files
- Use File Metadata
- Delete Files
Crashlytics
Vision
- Detect faces
- Scan barcodes
- Label images
- Recognize landmarks
- Natural Language
- Custom Models
External Links