Poll: Do you proguard your library before distribu...
# library-development
c
Poll: Do you proguard your library before distribution?
👌 1
no red 15
The only example of a library that proguards (that I can think of) is firebase (I'm pretty sure they proguard because the stacktraces from them seem obfuscated)
m
Tried unzipping
firebase-firestore.aar
and it doesn’t look minified:
Copy code
$ unzip classes.jar
Archive:  classes.jar
   creating: com/
   creating: com/google/
   creating: com/google/firebase/
   creating: com/google/firebase/firestore/
   creating: com/google/firebase/firestore/util/
  inflating: com/google/firebase/firestore/FirebaseFirestoreKtxRegistrar.class
  inflating: com/google/firebase/firestore/FirestoreKt$dataObjects$$inlined$map$1$1.class
  inflating: com/google/firebase/firestore/FirestoreKt$dataObjects$$inlined$map$1$2$1.class
  inflating: com/google/firebase/firestore/FirestoreKt$dataObjects$$inlined$map$1$2.class
  inflating: com/google/firebase/firestore/FirestoreKt$dataObjects$$inlined$map$1.class
  inflating: com/google/firebase/firestore/FirestoreKt$dataObjects$$inlined$map$2$1.class
  inflating: com/google/firebase/firestore/FirestoreKt$dataObjects$$inlined$map$2$2$1.class
  inflating: com/google/firebase/firestore/FirestoreKt$dataObjects$$inlined$map$2$2.class
  inflating: com/google/firebase/firestore/FirestoreKt$dataObjects$$inlined$map$2.class
  inflating: com/google/firebase/firestore/FirestoreKt$snapshots$1.class
  inflating: com/google/firebase/firestore/FirestoreKt$snapshots$2.class
  inflating: com/google/firebase/firestore/FirestoreKt.class
It’s here if you want to try
Can you even minify a lib without making it a fatjar?
c
hm. i feel like i always see some gms.* packages in crashlytics. maybe its maps related?
e
https://github.com/firebase/firebase-android-sdk is open source so definitely no reason to obfuscate the library
google play services are different from firebase of course
gms = google mobile services, from which google play services partly evolved, while firebase started as an external acquisition
c
makes sense when you put it that way. idky i always thought the gms stuff came from firebase. 😅