Skip to content

Commit

Permalink
[#8] Fix PR comment. Renaming files.
Browse files Browse the repository at this point in the history
  • Loading branch information
blyscuit committed Oct 18, 2022
1 parent 576332c commit ed98f64
Show file tree
Hide file tree
Showing 12 changed files with 27 additions and 42 deletions.
15 changes: 0 additions & 15 deletions .github/workflows/deploy_ios_firebase.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,6 @@ defaults:
working-directory: iosApp

jobs:
Lint:
name: lint
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
fetch-depth: 0
submodules: recursive

- name: Run SwiftLint
uses: norio-nomura/action-swiftlint@3.1.0
with:
args: --strict

build:
name: Build
runs-on: macOS-latest
Expand Down
17 changes: 1 addition & 16 deletions .github/workflows/deploy_ios_release_firebase.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,6 @@ defaults:
working-directory: iosApp

jobs:
Lint:
name: lint
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
fetch-depth: 0
submodules: recursive

- name: Run SwiftLint
uses: norio-nomura/action-swiftlint@3.1.0
with:
args: --strict

build:
name: Build
runs-on: macOS-latest
Expand All @@ -56,7 +41,7 @@ jobs:
env:
KMM_KONFIG_PROPERTIES: ${{ secrets.KMM_KONFIG_PROPERTIES }}
run: |
cd ../buildSrc/src/main/kotlin/myPackage
cd ../buildSrc/src/main/kotlin/appPackage
touch BuildKonfig.kt
echo $KMM_KONFIG_PROPERTIES | base64 --decode > BuildKonfig.kt
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ios_review_pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
env:
KMM_KONFIG_PROPERTIES: ${{ secrets.KMM_KONFIG_PROPERTIES }}
run: |
cd ../buildSrc/src/main/kotlin/myPackage
cd ../buildSrc/src/main/kotlin/appPackage
touch BuildKonfig.kt
echo $KMM_KONFIG_PROPERTIES | base64 --decode > BuildKonfig.kt
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/kmm_review_pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
env:
KMM_KONFIG_PROPERTIES: ${{ secrets.KMM_KONFIG_PROPERTIES }}
run: |
cd buildSrc/src/main/kotlin/myPackage
cd buildSrc/src/main/kotlin/appPackage
touch BuildKonfig.kt
echo $KMM_KONFIG_PROPERTIES | base64 --decode > BuildKonfig.kt
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -90,4 +90,4 @@ iosApp/DerivedData

.idea
GoogleService-*.plist
buildSrc/src/main/kotlin/myPackage/BuildKonfig.kt
buildSrc/src/main/kotlin/appPackage/BuildKonfig.kt
1 change: 0 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ buildscript {
classpath(Dependency.DETEKT)
classpath(Dependency.KOVER)
classpath(Dependency.KOTLIN_SERIALIZATION)
classpath(Dependency.KOTLIN_TEST)
classpath(Dependency.BUILD_KONFIG)
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
object Modules {
object Module {
const val JSONAPI_CORE = ":nimble-jsonapi-kotlin:core"
}
22 changes: 21 additions & 1 deletion shared/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ kotlin {
implementation(Dependency.COROUTINES_TEST)
implementation(Dependency.KOIN)
implementation(Dependency.KOIN_TEST)
implementation(project(Modules.JSONAPI_CORE))
implementation(project(Module.JSONAPI_CORE))
implementation(Dependency.KOTLIN_TEST)
}
}
Expand Down Expand Up @@ -143,6 +143,16 @@ buildkonfig {
}

defaultConfigs("production") {
buildConfigField(
STRING,
"CLIENT_ID",
BuildKonfig.CLIENT_ID
)
buildConfigField(
STRING,
"CLIENT_SECRET",
BuildKonfig.CLIENT_SECRET
)
buildConfigField(
STRING,
"BASE_URL",
Expand All @@ -151,6 +161,16 @@ buildkonfig {
}

defaultConfigs("staging") {
buildConfigField(
STRING,
"CLIENT_ID_STAGING",
BuildKonfig.CLIENT_ID
)
buildConfigField(
STRING,
"CLIENT_SECRET_STAGING",
BuildKonfig.CLIENT_SECRET
)
buildConfigField(
STRING,
"BASE_URL",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,7 @@ class NetworkClient {
client = HttpClient() {
install(Logging)
install(ContentNegotiation) {
json(Json {
prettyPrint = true
isLenient = true
ignoreUnknownKeys = true
})
json(json)
}
}
} else {
Expand Down

0 comments on commit ed98f64

Please sign in to comment.