Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. How do I add Firebase SDK to Qt Android app?
Forum Updated to NodeBB v4.3 + New Features

How do I add Firebase SDK to Qt Android app?

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
2 Posts 2 Posters 378 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • I Offline
    I Offline
    im_him_dev
    wrote on last edited by im_him_dev
    #1

    I am trying to add firebase sdk to my qt android application, I followed the instructions on Firbase documentation but there are a lot of this missing, like firebase asks me to have a root level build.gradle and an app-level build.gradle, but qt only generates one build.gradle in the build folder under android-build. So what I do in this case? The firebase instructions I am following can be found here: https://firebase.google.com/docs/cpp/setup?platform=android#add-config-file. The documentation also asks for a settings.gradle but that isn't generated by qt either.

    J 1 Reply Last reply
    0
    • I im_him_dev

      I am trying to add firebase sdk to my qt android application, I followed the instructions on Firbase documentation but there are a lot of this missing, like firebase asks me to have a root level build.gradle and an app-level build.gradle, but qt only generates one build.gradle in the build folder under android-build. So what I do in this case? The firebase instructions I am following can be found here: https://firebase.google.com/docs/cpp/setup?platform=android#add-config-file. The documentation also asks for a settings.gradle but that isn't generated by qt either.

      J Offline
      J Offline
      jhayar
      wrote on last edited by jhayar
      #2

      you only need to use build.gradle file ,

      you can obtain the QT template used when building the apk
      once you build the QT , look for your build folder , its one folder up from your root project folder , build-{projectname}-Qt{VersionMajor} -{Architecture}-{BuildType}
      then look for android-build, inside that folder you will find the manifest, build.gradle , res, assets , and other folder need by QT , copy the files and folders that i mentioned do not copy the any other folders except res and assets only , then the 2 files manifest and build.gradle , you will need other files/folders for much deep purposes ,

      copy the files to your root project folder but inside android folder(if there is none , create it) ,

      then on your cmake /qt.pro point the ANDROID_PACKAGE_SOURCE_DIR to the android folder then you can now add the firebase sdk from that build.gradle ,

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved