Skip to content

Commit

Permalink
Fix ad size to avoid ad limits
Browse files Browse the repository at this point in the history
  • Loading branch information
DimitarPetrov committed Apr 7, 2024
1 parent c77382b commit bbcbf9a
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ android {

buildTypes {
release {
// signingConfig signingConfigs.debug // use this during development
signingConfig signingConfigs.release
// signingConfig signingConfigs.debug // use this during development
signingConfig signingConfigs.release // RELEASE
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion lib/ads/ads_factory.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class BannerAdsFactory {

static BannerAd createBannerAd() {
return BannerAd(
adUnitId: "ca-app-pub-8543805483173927/4912638181",
adUnitId: "ca-app-pub-8543805483173927/4912638181", // RELEASE
// adUnitId: "ca-app-pub-3940256099942544/6300978111", // Test
size: AdSize.banner,
request: targetingInfo,
Expand Down
2 changes: 1 addition & 1 deletion lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ void main() async {
final model = SubjectModel.fromJson(json.decode(jsonModel));

WidgetsFlutterBinding.ensureInitialized();
await MobileAds.instance.initialize(); // prod
await MobileAds.instance.initialize(); // RELEASE
// await MobileAds.instance.initialize().then((InitializationStatus status) {
// MobileAds.instance.updateRequestConfiguration(
// RequestConfiguration(testDeviceIds: <String>[
Expand Down
2 changes: 1 addition & 1 deletion lib/widgets/bottom_bar.dart
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class BottomBar extends StatelessWidget {
child: Row(
children: <Widget>[
SizedBox(
width: 320,
width: MediaQuery.of(context).size.width * 0.79,
height: 50,
child: AdWidget(ad: bannerAd),
)
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ description: Flutter app for managing study materials in form of photos.
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
# Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
version: 1.1.1+6
version: 1.1.2+7

environment:
sdk: ">=2.12.0 <3.0.0"
Expand Down

0 comments on commit bbcbf9a

Please sign in to comment.