Skip to content

Commit 1239a2d

Browse files
committed
Commented print statements to get ready for Release
1 parent f7fa296 commit 1239a2d

File tree

7 files changed

+23
-12
lines changed

7 files changed

+23
-12
lines changed

android/app/build.gradle

+2-2
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,9 @@ android {
6464
release {
6565
// Signing with the debug keys for now, so `flutter run --release` works.
6666
// Debug Config
67-
signingConfig signingConfigs.debug
67+
// signingConfig signingConfigs.debug
6868
// Release Config
69-
// signingConfig signingConfigs.release
69+
signingConfig signingConfigs.release
7070
}
7171
}
7272
}

lib/blocs/google_ads/googleads_cubit.dart

+2-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ class GoogleAdsCubit extends Cubit<GoogleAdsState> {
1717
await state.adsState;
1818
emit(state.copyWith(status: AdsStatus.loaded));
1919
} catch (e) {
20-
print('AdLoad Failed');
20+
// * Getting Ready for Release
21+
// print('AdLoad Failed');
2122
emit(state.copyWith(status: AdsStatus.error));
2223
}
2324
}

lib/blocs/google_ads/googleads_state.dart

+13-5
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,27 @@ class GoogleAdsState extends Equatable {
1313

1414
final _bannerAdListener = BannerAdListener(
1515
// Called when an ad is successfully received.
16-
onAdLoaded: (Ad ad) => print('Ad loaded.'),
16+
onAdLoaded: (Ad ad) {
17+
// * Getting Ready for Release
18+
// print('Ad loaded.');
19+
},
1720
// Called when an ad request failed.
1821
onAdFailedToLoad: (Ad ad, LoadAdError error) {
1922
// Dispose the ad here to free resources.
2023
ad.dispose();
21-
print('Ad failed to load: $error');
24+
// * Getting Ready for Release
25+
// print('Ad failed to load: $error');
2226
},
27+
28+
// * Getting Ready for Release
2329
// Called when an ad opens an overlay that covers the screen.
24-
onAdOpened: (Ad ad) => print('Ad opened.'),
30+
// onAdOpened: (Ad ad) {
31+
// print('Ad opened.');
32+
// },
2533
// Called when an ad removes an overlay that covers the screen.
26-
onAdClosed: (Ad ad) => print('Ad closed.'),
34+
// onAdClosed: (Ad ad) => print('Ad closed.'),
2735
// Called when an impression occurs on the ad.
28-
onAdImpression: (Ad ad) => print('Ad impression.'),
36+
// onAdImpression: (Ad ad) => print('Ad impression.'),
2937
);
3038

3139
BannerAd createBannerAd() {

lib/main.dart

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ void main() async {
1111
WidgetsFlutterBinding.ensureInitialized();
1212
await SystemChrome.setPreferredOrientations(
1313
[DeviceOrientation.portraitUp, DeviceOrientation.portraitDown]);
14-
Bloc.observer = AppBlocObserver();
14+
// * Getting Ready for Release
15+
// Bloc.observer = AppBlocObserver();
1516
final sharedPreferences = await SharedPreferences.getInstance();
1617
runApp(new MyApp(sharedPreferences: sharedPreferences));
1718
}

lib/screens/developer.dart

+2-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ class DeveloperPage extends StatelessWidget {
1616
forceWebView: false,
1717
);
1818
} else {
19-
print('Could not launch $url');
19+
// * Getting Ready for Release
20+
// print('Could not launch $url');
2021
}
2122
}
2223

lib/screens/settings.dart

+2-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ class SettingsPage extends StatelessWidget {
4949
forceWebView: false,
5050
);
5151
} else {
52-
print('Could not launch $url');
52+
// * Getting Ready for Release
53+
// print('Could not launch $url');
5354
}
5455
},
5556
icon: Icons.local_parking_outlined,

lib/widgets/week_bar_chart.dart

-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ class WeekBarChartState extends State<WeekBarChart> {
3131
double sum = 0;
3232
for (Transaction transaction in widget._transactions) {
3333
_spendings[transaction.date.weekday - 1] += transaction.amount;
34-
// print('D: ${transaction.date.weekday} A: ${transaction.amount}');
3534
sum += transaction.amount;
3635
}
3736
return sum;

0 commit comments

Comments
 (0)