Skip to content

Commit

Permalink
Linting
Browse files Browse the repository at this point in the history
  • Loading branch information
VictorKabata committed May 5, 2024
1 parent 6ba700d commit 93cfb6d
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,11 @@ import kotlinx.serialization.json.Json
internal class DarajaHttpClientFactory(private val environment: DarajaEnvironment) {

private val baseURL =
if (environment == DarajaEnvironment.SANDBOX_ENVIRONMENT) DarajaEndpoints.SANDBOX_BASE_URL
else DarajaEndpoints.PROD_BASE_URL
if (environment == DarajaEnvironment.SANDBOX_ENVIRONMENT) {
DarajaEndpoints.SANDBOX_BASE_URL
} else {
DarajaEndpoints.PROD_BASE_URL
}

/**Initialize Ktor Http Client responsible for handling network operations*/
internal fun createDarajaHttpClient() = HttpClient {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright 2024 Daraja Multiplatform
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package com.vickbt.darajakmp.network.models

import kotlinx.serialization.SerialName
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright 2024 Daraja Multiplatform
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package com.vickbt.darajakmp.network.models

import kotlinx.serialization.SerialName
Expand Down

0 comments on commit 93cfb6d

Please sign in to comment.