I'm working on a company project that is already in the store for years, using Fabric. When trying to migrate to Firebase, it forces me to use AndroidX, but as the code is old this generates hundreds of errors and becomes unviable. Does anyone have an idea on how to use Firebase Crashlytics WITHOUT using AndroidX? Or does anyone know another way to avoid this error?
Related
How to fix below error in Google Play store(React native)
Your app is using an unsafe implementation of hostname verifier. Please see this Google Help Centre article for details, including the deadline for fixing the vulnerability.
Lh/a/a/a/a/l/e$a;
Lh/a/a/a/a/l/f$a;
Your project or any libraries may use an unsafe hostname verifier. You may successfully updated this app using the same code without any error on previous time. But it is a new review strategy from google play.
If you are not sure which package is used this unsafe-hostname, you can contact google play support team using the link: https://support.google.com/googleplay/android-developer/contact/app_vuln
Don't forget to select the same Google account to which you have uploaded your project
You will receive an email within 2 or 3 business days with details of this issue, including the name of the library that used the unsafe-hostname.
You can upgrade this library to the latest version, or you can remove this if you are actually not implementing this library in your code.
I got the following detailed email from google when I contacted with the above link.
*
For example, your app is currently using the following vulnerable
implementation of HostnameVerifier:
Llib/android/paypal/com/magnessdk/network/d$1;
Llib/android/paypal/com/magnessdk/network/e$1;
My project was not using the PayPal library directly, but paypal is used by another library "braintreepayments". Actually, I am not using this library in my live project, I added this at the initial time of my project. So I commented this library in app/build.gradle, this fixed my issue.
I'm currently stuck at one Problem regarding Gradle dependancy. I'm implementing application where I need to use various Third-party libraries to get work done & they are working great but currently situation is that I need their version numbers used in Gradle file.
I've found this question most closely related to my problem Is there a way to list all gradle dependencies programmatically?
But its printing dependency tree using Gradle task using Gradle console so, is there anyway we can get this using Android code?
Also I would like to explain my question in simpler terms , How can I get retrofit2 library version Programmatically ?
I am trying to configure Firebase Crashlytics in my library project. According to Firebase its not possible to configure Crashlytics in the library project.
I am getting this error message.
Crashlytics was applied to an android-library project.
Android-library support is currently an incubating feature.
Help me if you have any solution or workaround.
I just wanted to log library project crashes in Firebase Crashlytics.
I recently worked on a library and from the get go, we knew that we won't be able to integrate an out of the box solution for this as it'll always conflict with consumer apps' implementation of the service like Firebase.
We opted for a different strategy. Handle all the crashes in the library ourselves and then heres what we do with them:
A listener set by the consumer app is notified of the error as a callback
Post the error logs to our own custom API server on next restart of the app and forward these logs onto different services like Firebase.
I understand this is not an exact solution that tells you how to use Firebase Crashlytics in a library but posting here as it gets the same work done.
As the title mentions, I am using buildSrc and Kotlin for Gradle Dependency management in a modularized android project as per the following tutorial:
https://caster.io/lessons/gradle-dependency-management-using-kotlin-and-buildsrc-for-buildgradle-autocomplete-in-android-studio
it's working all fine but the question is how can I be notified if there are any libraries that have an update on their version? (i am not getting the notification on the library where it gets marked showing that there is an update)
is there another way of doing this?
There are a few approaches you can take here:
Leave out the dependencies in build.gradle. Currently, there is no hint shown in Android Studio if you extract out them into variables. So you can just use strings here.
Use Gradle-versions-plugin to check for dependency updates. You can read more about this here.
In historical Fabric/Crashlytics for Android documentation and various online examples there is mention of the Fabric 'apiSecret' that should be included in your fabric.properties file. However, in the latest official documentation for setup with Gradle, there is no mention of it: https://fabric.io/kits/android/crashlytics/install. It also appears that the Gradle setup is no longer using fabric.properties and instead using the apiKey defined in the AndroidManifest.xml.
What is the recommended way to handle the 'apiSecret' and 'apiKey' in Android Gradle projects?
Currently Google is making the transition from fabric/crashlytics towards firebase/crashlytics. I'd recommend you look into this guide if you're currently implementing crashlytics
https://firebase.google.com/docs/crashlytics/
If going this route, you have to download a .json file from firebase after creating an app project there and include it in your app. No key needed.