jnbt / candy_check

Check and verify in-app receipts
MIT License
125 stars 71 forks source link

remove file open #67

Closed christopheragnus closed 1 year ago

christopheragnus commented 3 years ago

Removed File.open() Users should be able to choose whether to link directly to their JSON file or otherwise specify it directly as a Hash (eg. in Rails).

eg. 
authorization = CandyCheck::PlayStore.authorization(StringIO.new(credentials))

authorization = CandyCheck::PlayStore.authorization(File.open("../../path-to-file"))
styrken commented 2 years ago

Can this be merged? I mean, I would really like this feature as well.

jnbt commented 1 year ago

As the usage of PlayStore#authorization is optional (see also #66) and only a convience method, I think we don't need this change.