Skip to content

Commit

Permalink
5472
Browse files Browse the repository at this point in the history
  • Loading branch information
Velkonost committed Jan 27, 2024
1 parent 6894d0f commit f516e4a
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ import java.util.Locale
fun AdView(
modifier: Modifier = Modifier
) {


PrimaryBox(
modifier = modifier
.padding(PaddingValues(horizontal = 20.dp))
Expand Down
3 changes: 0 additions & 3 deletions buildSrc/src/main/kotlin/android-ui-plugin.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@ android {

defaultConfig {
minSdk = libs.versions.minSdk.get().toInt()

buildConfigField("String", "RUSTORE_AD_SLOT_ID", "1")
buildConfigField("String", "GP_AD_SLOT_ID", "2")
}

compileOptions {
Expand Down
25 changes: 25 additions & 0 deletions shared/core/util/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,14 @@

import com.velkonost.getbetter.SHARED_PACKAGE
import com.velkonost.getbetter.join
import com.codingfeline.buildkonfig.compiler.FieldSpec.Type.STRING
import com.codingfeline.buildkonfig.compiler.FieldSpec.Type.INT


plugins {
`kmm-shared-module-plugin`
alias(libs.plugins.ksp)
alias(libs.plugins.codingfeline.buildkonfig)
}

android {
Expand All @@ -16,6 +20,7 @@ android {
}

kotlin {

sourceSets {
commonMain {
dependencies {
Expand All @@ -32,3 +37,23 @@ kotlin {
}
}
}

buildkonfig {
packageName = "com.velkonost.getbetter"
exposeObjectWithName = "UtilBuildKonfig"

defaultConfigs {
buildConfigField(STRING, "name", "value")
}

targetConfigs {
create("android") {
buildConfigField(INT, "RUSTORE_AD_ID", 1494678.toString())
buildConfigField(INT, "AD_ID", 1494645.toString())
}

create("ios") {
buildConfigField(INT, "AD_ID", 5517759.toString())
}
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.velkonost.getbetter.shared.core.util

import com.velkonost.getbetter.BuildKonfig
import com.velkonost.getbetter.shared.resources.SharedR
import dev.icerock.moko.resources.desc.Resource
import dev.icerock.moko.resources.desc.ResourceFormatted
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ internal constructor(
private val likesJobsMap: HashMap<Int, Job> = hashMapOf()

fun onAppear() {

checkUpdatedNote()

launchJob {
Expand Down

0 comments on commit f516e4a

Please sign in to comment.