Skip to content

Commit df2c942

Browse files
authored
[1.x] fix: remove GOOGLE_APPLICATION_CREDENTIALS env (#435)
1 parent 5ee02ee commit df2c942

File tree

2 files changed

+0
-17
lines changed

2 files changed

+0
-17
lines changed

config/liap.php

-11
Original file line numberDiff line numberDiff line change
@@ -32,17 +32,6 @@
3232
*/
3333
'google_play_package_name' => env('GOOGLE_PLAY_PACKAGE_NAME', 'com.some.thing'),
3434

35-
/*
36-
|--------------------------------------------------------------------------
37-
| Google Application Credentials
38-
|--------------------------------------------------------------------------
39-
|
40-
| This value is the path to the Google Application Credentials file.
41-
| @see https://imdhemy.com/laravel-iap-docs/docs/credentials/google-play
42-
|
43-
*/
44-
'google_application_credentials' => base_path((string)env('GOOGLE_APPLICATION_CREDENTIALS')),
45-
4635
/*
4736
|--------------------------------------------------------------------------
4837
| App Store Password

src/ServiceProviders/LiapServiceProvider.php

-6
Original file line numberDiff line numberDiff line change
@@ -112,12 +112,6 @@ public function register(): void
112112
private function registerConfig(): void
113113
{
114114
$this->mergeConfigFrom(self::CONFIG_PATH, self::CONFIG_KEY);
115-
116-
$googleApplicationCredentials = (string)config('liap.google_application_credentials');
117-
118-
if (! empty($googleApplicationCredentials) && file_exists($googleApplicationCredentials)) {
119-
putenv("GOOGLE_APPLICATION_CREDENTIALS=$googleApplicationCredentials");
120-
}
121115
}
122116

123117
/**

0 commit comments

Comments
 (0)