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 f516e4a commit f423ea0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
8 changes: 4 additions & 4 deletions shared/core/util/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
@file:Suppress("DSL_SCOPE_VIOLATION")

import com.codingfeline.buildkonfig.compiler.FieldSpec.Type.INT
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 {
Expand Down Expand Up @@ -43,13 +42,14 @@ buildkonfig {
exposeObjectWithName = "UtilBuildKonfig"

defaultConfigs {
buildConfigField(STRING, "name", "value")
buildConfigField(INT, "AD_ID", "")
buildConfigField(INT, "RUSTORE_AD_ID", 1494678.toString())
}

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

create("ios") {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ internal constructor(
private val likesJobsMap: HashMap<Int, Job> = hashMapOf()

fun onAppear() {

checkUpdatedNote()

launchJob {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.velkonost.getbetter.shared.features.social.contracts

import com.velkonost.getbetter.UtilBuildKonfig
import com.velkonost.getbetter.shared.core.model.note.Note
import com.velkonost.getbetter.shared.core.util.PrefetchDistanceValue
import com.velkonost.getbetter.shared.core.vm.contracts.UIContract
Expand All @@ -9,7 +10,8 @@ data class SocialViewState(
val tabs: List<SocialTab> = SocialTab.entries,
val generalFeed: FeedViewState = FeedViewState(),
val areasFeed: FeedViewState = FeedViewState(),
val adPosition: Int = (6..10).random()
val adPosition: Int = (6..10).random(),
val adId: Int = UtilBuildKonfig.AD_ID//UtilBuildKonfig.RUSTORE_AD_ID
) : UIContract.State

data class FeedViewState(
Expand Down

0 comments on commit f423ea0

Please sign in to comment.