Fixed makefile

This commit is contained in:
Junpei Tsuji
2020-02-20 13:02:14 +09:00
parent 3c88ce1648
commit a61c519ac8
5 changed files with 19 additions and 12 deletions

View File

@@ -8,16 +8,17 @@ import (
"crypto/x509"
"encoding/base64"
"fmt"
"google.golang.org/api/option"
"net/http"
"time"
"google.golang.org/api/option"
"golang.org/x/oauth2"
"golang.org/x/oauth2/google"
androidpublisher "google.golang.org/api/androidpublisher/v3"
)
//go:generate mockgen -destination=mocks/mock_playstore.go -package=mocks github.com/awa/go-iap/playstore IABProduct,IABSubscription
//go:generate mockgen -destination=mocks/playstore.go -package=mocks github.com/awa/go-iap/playstore IABProduct,IABSubscription
// The IABProduct type is an interface for product service
type IABProduct interface {
@@ -46,7 +47,6 @@ func New(jsonKey []byte) (*Client, error) {
c := &http.Client{Timeout: 10 * time.Second}
ctx := context.WithValue(context.Background(), oauth2.HTTPClient, c)
conf, err := google.JWTConfigFromJSON(jsonKey, androidpublisher.AndroidpublisherScope)
if err != nil {
return nil, err