GitLiveApp / firebase-java-sdk

A pure java port of the Firebase Android SDK
Apache License 2.0
16 stars 5 forks source link

Fix dependencies and permissions in AAR extraction #12

Closed fmasa closed 2 months ago

fmasa commented 2 months ago

Closes https://github.com/GitLiveApp/firebase-java-sdk/issues/10

This forces 660 (-rw-rw---) permissions for extracted JAR so repeated extraction does not fail. Previously some JARs were extracted as read-only and these could not be rewritten.

I also changed the way list of AAR files is sourced. Now both extractClasses and copyAars use aar configurations so the list of dependencies is known beforehand and first ./gradlew build no longer fails. I also merged the separate tasks for each dependency to the extractClasses.