amitshekhariitbhu / Android-Debug-Database

A library for debugging android databases and shared preferences - Make Debugging Great Again
https://outcomeschool.com
Apache License 2.0
8.42k stars 869 forks source link

JCenter is shutting down #208

Closed makvasic closed 3 months ago

makvasic commented 3 years ago

JCenter is getting shut down in May https://jfrog.com/blog/into-the-sunset-bintray-jcenter-gocenter-and-chartcenter/

sebasira commented 3 years ago

Right now jCenter is down, I think it hast to be an error... where else can we find it?

sebasira commented 3 years ago

I'm using jitpack!

https://jitpack.io/#amitshekhariitbhu/Android-Debug-Database/v1.0.6

Will5 commented 3 years ago

I already have jitpack.io in my project, but for some reason Android-Debug-Database is not working when I remove jcenter from the project. It looks like jitpack.io may be returning a 403 Forbidden? I might try it with an empty project later, but I also tried moving jitpack.io to the top and had the same result.

sebasira commented 3 years ago

You need to change the way you declare your dependency, when using jitpack. In this case it's like:

implementation 'com.github.amitshekhariitbhu.Android-Debug-Database:debug-db:v1.0.6'
Will5 commented 3 years ago

Thanks, you are right; I missed the addition of .Android-Debug-Database 🙂

Sayum24 commented 3 years ago

Maybe update the readme then.

Boxroma commented 2 years ago
'com.github.amitshekhariitbhu.Android-Debug-Database:debug-db:v1.0.6'

It would be great to have the readme updated. Save someone else the hustle..

sebasira commented 2 years ago

VERY IMPORTANT notice about this

Never ever use implementation use debugImplementation. This silly mistake cost me my entire Google Play Developer account shutdown with all my apps. I try and try to reach to Google to amend this, but the bots consider my app as a malware (because of the DataBase access) and that's a violation to their Policy.

Of course my intention was never that, but even after many month of trying to reach a human being at Google, to explain and get back my developer account, I did not succeed.

If you are reading this and work at Google and want to lend me a hand on this, I would greatly appreciate it!

amitshekhariitbhu commented 3 months ago

Solution:

Add this in your settings.gradle:

maven { url 'https://jitpack.io' }

If you are using settings.gradle.kts, add the following:

maven { setUrl("https://jitpack.io") }

Add this in your build.gradle

debugImplementation 'com.github.amitshekhariitbhu.Android-Debug-Database:debug-db:1.0.7'

If you are using build.gradle.kts, add the following:

debugImplementation("com.github.amitshekhariitbhu.Android-Debug-Database:debug-db:1.0.7")

Using the Android Debug Database with encrypted database

Add this in your build.gradle

debugImplementation 'com.github.amitshekhariitbhu.Android-Debug-Database:debug-db-encrypt:1.0.7'

If you are using build.gradle.kts, add the following:

debugImplementation("com.github.amitshekhariitbhu.Android-Debug-Database:debug-db-encrypt:1.0.7")

And to provide the password for the DB, you should add this in the Gradle: DBPASSWORD{VARIABLE}, if for example, PERSON is the database name: DB_PASSWORD_PERSON

debug {
    resValue("string", "DB_PASSWORD_PERSON", "password")
}