diff --git a/src/Plugins/Compilers/AndroidPluginCompiler.php b/src/Plugins/Compilers/AndroidPluginCompiler.php index a65b5da..69ccee2 100644 --- a/src/Plugins/Compilers/AndroidPluginCompiler.php +++ b/src/Plugins/Compilers/AndroidPluginCompiler.php @@ -890,14 +890,25 @@ protected function buildRepositoryBlock(array $repo): ?string { $url = $repo['url']; $credentials = $repo['credentials'] ?? null; + $authentication = $repo['authentication'] ?? null; if ($credentials) { $username = $this->substituteEnvPlaceholders($credentials['username'] ?? 'mapbox'); $password = $this->substituteEnvPlaceholders($credentials['password'] ?? ''); + $authBlock = ''; + if ($authentication === 'basic') { + $authBlock = <<("basic") + } +KOTLIN; + } + return <<