aporat / store-receipt-validator

PHP receipt validator for Apple iTunes, Google Play and Amazon App Store
Apache License 2.0
633 stars 153 forks source link

Reduce dependencies size #128

Closed Orkin closed 4 years ago

Orkin commented 4 years ago

Hello @aporat,

I have a suggestion to reduce the size of google dependencies. The google package has at least 200 services and for the receipt purpose we don't need all of thoses. What do you think about adding in composer.json an extra command to reduce the package size or just add documentation about that. It's explain here in google sdk documentation : https://github.com/googleapis/google-api-php-client#cleaning-up-unused-services

With this the google sdk switch from 58M to 928K 😉

I notice we only need AndroidPublisher service what do you think about this enhancement ?

Stafox commented 4 years ago

I agree with that. But it should be done on the final project where this lib is going to be implemented.

Orkin commented 4 years ago

Yes that the scope of my PR #129 ;)