File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
app/src/main/java/com/paulcoding/pindownloader/ui/component Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -7,16 +7,19 @@ import androidx.compose.foundation.layout.fillMaxWidth
77import androidx.compose.runtime.Composable
88import androidx.compose.ui.Modifier
99import androidx.compose.ui.res.stringResource
10+ import com.paulcoding.pindownloader.BuildConfig
1011import com.paulcoding.pindownloader.R
1112
1213@Composable
1314fun ColumnWithAd (modifier : Modifier = Modifier , content : @Composable () -> Unit ) {
1415 Column (modifier = modifier.fillMaxSize()) {
15- Box (modifier = Modifier
16- .fillMaxWidth()
17- .weight(1f )) {
16+ Box (
17+ modifier = Modifier
18+ .fillMaxWidth()
19+ .weight(1f )
20+ ) {
1821 content()
1922 }
20- BannerAd (stringResource(R .string.ad_unit_id))
23+ if ( BuildConfig . DEBUG ) BannerAd (stringResource(R .string.ad_unit_id))
2124 }
2225}
You can’t perform that action at this time.
0 commit comments