Firebase foreign code

Hi guys , just wondering how we can import all the firebase library as an uno modules , any one already done this? i have done my app design and know i need to add the logic with firebase and geofire, but i know anything about native programming languages and don’t know how can i proceed.

We need this as well. Some direction or a module would be great.

We are working on getting some code out on this, that people can contribute to.

@Rene @Prince Kobo,

As Anders said we are working on this right now. The thing that is making it tricky is that the api requires modification of what both the Android activity & the iOS AppDelegate inherit from. This hasnt exposed in Fuse yet so this would block you if you tried it.

Also we have recently added Cocopod support which is needed for iOS, but this has not shipped to the public yet.

Rest assured that it is on the way. We currently have email authentication on iOS and Android and Google auth on Android working. I’m currently working on Google authentication for iOS.

We need this as well. Will the implementation be available in source, so we can learn/adapt/contribute?

Hi Ish, and yes it will!

+1

+1

Don’t worry guys, we’re working on it :slight_smile:

It has been mentioned in another thread but I forgot to paste it here.

See this repo for what will soon be the Fuse Firebase Authentication library.

I’m pushing code after the next release is out and I can do one more pass on testing on it. Documentation is there for what I have done and I hope it will be in a good enough state that we can all start hacking on it. This will be one of our first properly open projects so I’m pretty excited.

What is done is pretty basic but it’s a place to start

-Cough- they’re live -Cough-

Hi chris, i’m struggling to use this.
cocoapods and gradle build don’t pass

Unfortunately, it’s impossible to offer any assistance without more details on what happens, error logs or a reproduction case.

Hi excuse me.
the for android fail with this in the logs:

Configuring
WARNING: .unoconfig: 'PackageSourcePaths' is deprecated -- use 'Packages.SourcePaths'
(1.3s)

Compiling syntax tree (2.7s)

Generating code and data (13.3s)

Building Android app
2/2: AuthExample.apk
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Dex: Error converting bytecode to dex:
Cause: com.android.dex.DexException: Multiple dex files define Landroid/support/annotation/AnimRes;
    UNEXPECTED TOP-LEVEL EXCEPTION:
    com.android.dex.DexException: Multiple dex files define Landroid/support/annotation/AnimRes;
    	at com.android.dx.merge.DexMerger.readSortableTypes(DexMerger.java:596)
    	at com.android.dx.merge.DexMerger.getSortedTypes(DexMerger.java:554)
    	at com.android.dx.merge.DexMerger.mergeClassDefs(DexMerger.java:535)
    	at com.android.dx.merge.DexMerger.mergeDexes(DexMerger.java:171)
    	at com.android.dx.merge.DexMerger.merge(DexMerger.java:189)
    	at com.android.dx.command.dexer.Main.mergeLibraryDexBuffers(Main.java:502)
    	at com.android.dx.command.dexer.Main.runMonoDex(Main.java:334)
    	at com.android.dx.command.dexer.Main.run(Main.java:277)
    	at com.android.dx.command.dexer.Main.main(Main.java:245)
    	at com.android.dx.command.Main.main(Main.java:106)
    

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:transformClassesWithDexForArm7Debug'.
> com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/Library/Java/JavaVirtualMachines/jdk1.7.0_79.jdk/Contents/Home/bin/java'' finished with non-zero exit value 2

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
please apply google-services plugin at the bottom of the build file.
Incremental java compilation is an incubating feature.
:app:copyArmeabi-v7aDebugSharedLibraryStlSo UP-TO-DATE
:app:compileAuthExampleArmeabi-v7aDebugSharedLibraryAuthExampleMainCpp UP-TO-DATE
:app:linkAuthExampleArmeabi-v7aDebugSharedLibrary UP-TO-DATE
:app:AuthExampleArmeabi-v7aDebugSharedLibrary UP-TO-DATE
:app:stripSymbolsArmeabi-v7aDebugSharedLibrary UP-TO-DATE
:app:ndkBuildArmeabi-v7aDebugSharedLibrary UP-TO-DATE
:app:ndkBuildArmeabi-v7aDebugStaticLibrary UP-TO-DATE
:app:processAndroidArm7DebugMainJniLibs
:app:androidArm7Debug
:app:preBuild UP-TO-DATE
:app:preArm7DebugBuild UP-TO-DATE
:app:checkArm7DebugManifest
:app:preArm7ReleaseBuild UP-TO-DATE
:app:prepareComAndroidSupportAnimatedVectorDrawable2420Library UP-TO-DATE
:app:prepareComAndroidSupportAppcompatV72420Library UP-TO-DATE
:app:prepareComAndroidSupportCardviewV72340Library UP-TO-DATE
:app:prepareComAndroidSupportCustomtabs2340Library UP-TO-DATE
:app:prepareComAndroidSupportDesign2420Library UP-TO-DATE
:app:prepareComAndroidSupportRecyclerviewV72420Library UP-TO-DATE
:app:prepareComAndroidSupportSupportCompat2420Library UP-TO-DATE
:app:prepareComAndroidSupportSupportCoreUi2420Library UP-TO-DATE
:app:prepareComAndroidSupportSupportCoreUtils2420Library UP-TO-DATE
:app:prepareComAndroidSupportSupportFragment2420Library UP-TO-DATE
:app:prepareComAndroidSupportSupportMediaCompat2420Library UP-TO-DATE
:app:prepareComAndroidSupportSupportV42420Library UP-TO-DATE
:app:prepareComAndroidSupportSupportVectorDrawable2420Library UP-TO-DATE
:app:prepareComFacebookAndroidFacebookAndroidSdk4150Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesAuth920Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesAuthBase920Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesBase921Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesBasement921Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesTasks921Library UP-TO-DATE
:app:prepareComGoogleFirebaseFirebaseAnalytics920Library UP-TO-DATE
:app:prepareComGoogleFirebaseFirebaseAnalyticsImpl920Library UP-TO-DATE
:app:prepareComGoogleFirebaseFirebaseAuth921Library UP-TO-DATE
:app:prepareComGoogleFirebaseFirebaseAuthCommon921Library UP-TO-DATE
:app:prepareComGoogleFirebaseFirebaseAuthModule921Library UP-TO-DATE
:app:prepareComGoogleFirebaseFirebaseCommon921Library UP-TO-DATE
:app:prepareComGoogleFirebaseFirebaseCore920Library UP-TO-DATE
:app:prepareComGoogleFirebaseFirebaseIid920Library UP-TO-DATE
:app:prepareArm7DebugDependencies
:app:compileArm7DebugAidl UP-TO-DATE
:app:compileArm7DebugRenderscript UP-TO-DATE
:app:generateArm7DebugBuildConfig UP-TO-DATE
:app:generateArm7DebugAssets UP-TO-DATE
:app:mergeArm7DebugAssets UP-TO-DATE
:app:generateArm7DebugResValues UP-TO-DATE
:app:generateArm7DebugResources UP-TO-DATE
:app:mergeArm7DebugResources UP-TO-DATE
:app:processArm7DebugManifest UP-TO-DATE
:app:processArm7DebugResources UP-TO-DATE
:app:generateArm7DebugSources UP-TO-DATE
:app:compileArm7DebugJavaWithJavac
:app:compileArm7DebugSources
:app:prePackageMarkerForArm7Debug
:app:transformClassesWithDexForArm7Debug FAILED

BUILD FAILED

Total time: 52.402 secs
(unknown): E0200: Android build failed
(53.6s)

Build completed in 70.94 seconds
    1 error

fuse: Errors were encountered while building the project

for iOS i cannot pass all the code its too big

Check dependencies
Signing for "AuthExample" requires a development team. Select a development team in the project editor.
Code signing is required for product type 'Application' in SDK 'iOS 10.0'
(46.3s)

the problem is signing profil are fine in my Xcode general settings tab

Hey Kobo,

I’ve seen that Android problem occur when you have several dependencies that include the Android support libraries (a quick search for the error message will give you more info). To fix that, I had to add an exclude module to the Gradle.Dependency attribute. See here for an example.

For the iOS issue, this is a problem with the new Xcode 8. We’re working on a fix, and in the meantime you can build with --debug and set the development team in Xcode before building and running the Xcode project.

Many thanks @olle , have been able to get the iOS build working in debug mode , but nothing else , i will wait for an update on this , many thanks

Good to hear that it’s working on iOS, Kobo. Do you get the same error message as before if you do what I suggested above on Android?

Didnt tested for android, i will wait for an update (as we cannot save data , or retrieve uid for example) for deeply testing no matters how much time it will take to have it, thanks