Skip to content

Commit 270210c

Browse files
committed
Ads config
1 parent 3d59e7a commit 270210c

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

lib/configs/Ads.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import 'dart:math';
44
import 'package:flutter/foundation.dart';
55

66
abstract class Ads {
7-
static bool _forceTest = true;
7+
static bool _forceTest = false;
88
static bool _test = kDebugMode || _forceTest;
99

1010
static String getAppId() {
@@ -20,10 +20,10 @@ abstract class Ads {
2020
if (Platform.isIOS) {
2121
const image = "ca-app-pub-3940256099942544/4411468910";
2222
const video = "ca-app-pub-3940256099942544/5135589807";
23-
final roll = Random().nextInt(2);
24-
return roll == 1 ? image : video;
23+
final roll = Random().nextInt(5);
24+
return roll == 1 ? video : image;
2525
}
26-
return "ca-app-pub-3940256099942544/6300978111";
26+
return "ca-app-pub-3940256099942544/1033173712";
2727
}
2828

2929
static String bannerHome() {

lib/configs/App.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import 'AppTheme.dart';
99
class App {
1010
static late BuildContext ctx;
1111
static late bool isLtr;
12-
static late bool showAds = true;
12+
static late bool showAds = false;
1313

1414
static init(BuildContext context) {
1515
AppDimensions.init(context);

lib/screens/UIDetail/widgets/UIDetailContent.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ class _UIDetailContentState extends State<UIDetailContent> {
6969
}
7070

7171
void openApp(BuildContext context) {
72-
final r = Random().nextInt(3);
72+
final r = Random().nextInt(4);
7373
final adCheck = App.showAds && this.ad != null;
7474
if (r == 2 && adCheck) {
7575
this.ad!.show();

0 commit comments

Comments
 (0)