Skip to content

Commit

Permalink
[1.x] fix: remove GOOGLE_APPLICATION_CREDENTIALS env (#435)
Browse files Browse the repository at this point in the history
  • Loading branch information
imdhemy authored Nov 3, 2024
1 parent 5ee02ee commit df2c942
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 17 deletions.
11 changes: 0 additions & 11 deletions config/liap.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,6 @@
*/
'google_play_package_name' => env('GOOGLE_PLAY_PACKAGE_NAME', 'com.some.thing'),

/*
|--------------------------------------------------------------------------
| Google Application Credentials
|--------------------------------------------------------------------------
|
| This value is the path to the Google Application Credentials file.
| @see https://imdhemy.com/laravel-iap-docs/docs/credentials/google-play
|
*/
'google_application_credentials' => base_path((string)env('GOOGLE_APPLICATION_CREDENTIALS')),

/*
|--------------------------------------------------------------------------
| App Store Password
Expand Down
6 changes: 0 additions & 6 deletions src/ServiceProviders/LiapServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,12 +112,6 @@ public function register(): void
private function registerConfig(): void
{
$this->mergeConfigFrom(self::CONFIG_PATH, self::CONFIG_KEY);

$googleApplicationCredentials = (string)config('liap.google_application_credentials');

if (! empty($googleApplicationCredentials) && file_exists($googleApplicationCredentials)) {
putenv("GOOGLE_APPLICATION_CREDENTIALS=$googleApplicationCredentials");
}
}

/**
Expand Down

0 comments on commit df2c942

Please sign in to comment.