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

Avoid print calls in production code

parent 28c7db93
No related branches found
No related tags found
No related merge requests found
Pipeline #5245 passed
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);
}
}
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