Skip to content
Snippets Groups Projects
Commit deaa7107 authored by Benoît Harrault's avatar Benoît Harrault
Browse files

Merge branch '10-avoid-print-calls-in-production-code' into 'master'

Resolve "Avoid print calls in production code"

Closes #10

See merge request !7
parents 28c7db93 30be1b29
No related branches found
No related tags found
1 merge request!7Resolve "Avoid print calls in production code"
Pipeline #5339 canceled
org.gradle.jvmargs=-Xmx1536M
android.useAndroidX=true
android.enableJetifier=true
app.versionName=0.0.7
app.versionCode=7
app.versionName=0.0.8
app.versionCode=8
Avoid print calls in production code.
Supprime les appels à print dans le code de production.
import 'package:midisynth/provider/data.dart';
import 'package:midisynth/utils/tools.dart';
class GameUtils {
static Future<void> quitGame(Data myProvider) async {
myProvider.updateGameIsRunning(false);
}
static Future<void> startNewGame(Data myProvider) async {
print('Starting new game');
printlog('Starting new game');
myProvider.resetGame();
myProvider.updateGameIsRunning(true);
......
import 'package:flutter/foundation.dart';
void printlog(String message) {
if (!kReleaseMode) {
debugPrint(message);
}
}
......@@ -151,10 +151,10 @@ packages:
dependency: "direct main"
description:
name: provider
sha256: "9a96a0a19b594dbc5bf0f1f27d2bc67d5f95957359b461cd9feb44ed6ae75096"
sha256: c8a055ee5ce3fd98d6fc872478b03823ffdb448699c6ebdbbc71d59b596fd48c
url: "https://pub.dev"
source: hosted
version: "6.1.1"
version: "6.1.2"
shared_preferences:
dependency: "direct main"
description:
......
name: midisynth
description: MIDI Synth
publish_to: 'none'
version: 0.0.7+7
version: 0.0.8+8
environment:
sdk: '^3.0.0'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment