WT 1.1.14 tutorial step track

This commit is contained in:
bossanyit 2021-05-09 10:07:39 +02:00
parent 9066ccd607
commit e20ec5c222
5 changed files with 12 additions and 4 deletions

View File

@ -388,7 +388,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements;
CURRENT_PROJECT_VERSION = 6;
CURRENT_PROJECT_VERSION = 7;
DEVELOPMENT_TEAM = SFJJBDCU6Z;
ENABLE_BITCODE = NO;
FRAMEWORK_SEARCH_PATHS = (
@ -531,7 +531,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements;
CURRENT_PROJECT_VERSION = 6;
CURRENT_PROJECT_VERSION = 7;
DEVELOPMENT_TEAM = SFJJBDCU6Z;
ENABLE_BITCODE = NO;
FRAMEWORK_SEARCH_PATHS = (
@ -566,7 +566,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements;
CURRENT_PROJECT_VERSION = 6;
CURRENT_PROJECT_VERSION = 7;
DEVELOPMENT_TEAM = SFJJBDCU6Z;
ENABLE_BITCODE = NO;
FRAMEWORK_SEARCH_PATHS = (

View File

@ -139,6 +139,7 @@ class LoginBloc extends Bloc<LoginEvent, LoginState> with Trans {
yield LoginReady();
} else if (event is LoginSkip) {
yield LoginLoading();
Track().track(TrackingEvent.login_skip);
Cache().startPage = "home";
yield LoginSkipped();
}

View File

@ -4,6 +4,8 @@ import 'package:aitrainer_app/model/cache.dart';
import 'package:aitrainer_app/model/tutorial.dart';
import 'package:aitrainer_app/model/tutorial_step.dart';
import 'package:aitrainer_app/service/logging.dart';
import 'package:aitrainer_app/util/enums.dart';
import 'package:aitrainer_app/util/track.dart';
import 'package:bloc/bloc.dart';
import 'package:equatable/equatable.dart';
@ -170,6 +172,7 @@ class TutorialBloc extends Bloc<TutorialEvent, TutorialState> with Logging {
if (menuBloc != null) {
menuBloc!.add(MenuCreate());
}
Track().track(TrackingEvent.tutorial_step, eventValue: step.toString());
yield TutorialReady();
}
} else if (event is TutorialWrongAction) {
@ -189,6 +192,7 @@ class TutorialBloc extends Bloc<TutorialEvent, TutorialState> with Logging {
if (activityDone != null) {
await Cache().setActivityDonePrefs(activityDone);
}
Track().track(TrackingEvent.tutorial_finished);
yield TutorialReady();
}
}

View File

@ -10,6 +10,7 @@ enum TrackingEvent {
login,
logout,
registration,
login_skip,
home,
sizes,
sizes_save,
@ -44,6 +45,8 @@ enum TrackingEvent {
settings_server,
test_set_edit,
test_set_new,
tutorial_step,
tutorial_finished
}
T enumFromString<T>(Iterable<T> values, String value) {

View File

@ -15,7 +15,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
# 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.14+73
version: 1.1.14+74
environment:
sdk: ">=2.12.0 <3.0.0"