Интеграция AppMetrika
This commit is contained in:
parent
49b4c2f6cf
commit
20c63cd334
@ -1,6 +1,6 @@
|
|||||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
<application
|
<application
|
||||||
android:label="matule"
|
android:label="TitovetsMatule"
|
||||||
android:name="${applicationName}"
|
android:name="${applicationName}"
|
||||||
android:icon="@mipmap/ic_launcher">
|
android:icon="@mipmap/ic_launcher">
|
||||||
<activity
|
<activity
|
||||||
|
BIN
apk/app-release.apk
Normal file
BIN
apk/app-release.apk
Normal file
Binary file not shown.
@ -1,6 +1,7 @@
|
|||||||
import 'package:matule_query/matule_query.dart';
|
import 'package:matule_query/matule_query.dart';
|
||||||
|
|
||||||
class Storage {
|
class Storage {
|
||||||
|
final String appMetrikaToken = "ec0227b9-efb1-4d30-811d-4cf57119b100";
|
||||||
final ProductModel productItem = ProductModel(
|
final ProductModel productItem = ProductModel(
|
||||||
approximateCost: "",
|
approximateCost: "",
|
||||||
description: "",
|
description: "",
|
||||||
|
@ -4,4 +4,5 @@ import '../../main.dart';
|
|||||||
|
|
||||||
class StorageUseCase {
|
class StorageUseCase {
|
||||||
ProductModel getProductItem() => storage.productItem;
|
ProductModel getProductItem() => storage.productItem;
|
||||||
|
String getAppMetrikaToken() => storage.appMetrikaToken;
|
||||||
}
|
}
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
import 'package:appmetrica_plugin/appmetrica_plugin.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:matule/domain/services/exception_caster.dart';
|
import 'package:matule/domain/services/exception_caster.dart';
|
||||||
import 'package:matule/domain/use_cases/storage_use_case.dart';
|
import 'package:matule/domain/use_cases/storage_use_case.dart';
|
||||||
@ -11,6 +12,13 @@ final StorageUseCase storageUseCase = StorageUseCase();
|
|||||||
final BaseUseCase useCase = BaseUseCase(startLoading: () {}, endLoading: () {});
|
final BaseUseCase useCase = BaseUseCase(startLoading: () {}, endLoading: () {});
|
||||||
final ExceptionCaster eC = ExceptionCaster();
|
final ExceptionCaster eC = ExceptionCaster();
|
||||||
|
|
||||||
void main() {
|
AppMetricaConfig get _config =>
|
||||||
runApp(const Application());
|
AppMetricaConfig(storageUseCase.getAppMetrikaToken(), logs: true);
|
||||||
|
|
||||||
|
Future<void> main() async {
|
||||||
|
AppMetrica.runZoneGuarded(() {
|
||||||
|
WidgetsFlutterBinding.ensureInitialized();
|
||||||
|
AppMetrica.activate(_config);
|
||||||
|
runApp(Application());
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
||||||
import 'package:flutter_svg/svg.dart';
|
|
||||||
import 'package:get/get.dart';
|
import 'package:get/get.dart';
|
||||||
import 'package:matule/main.dart';
|
import 'package:matule/main.dart';
|
||||||
import 'package:matule/presentation/pages/tabbar.dart';
|
import 'package:matule/presentation/pages/tabbar.dart';
|
||||||
|
32
pubspec.lock
32
pubspec.lock
@ -9,6 +9,14 @@ packages:
|
|||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "2.0.3"
|
version: "2.0.3"
|
||||||
|
appmetrica_plugin:
|
||||||
|
dependency: "direct main"
|
||||||
|
description:
|
||||||
|
name: appmetrica_plugin
|
||||||
|
sha256: "6834ac24cef2f84433069d3e20b1c3c144ddc1879685c8fe72c3fcd73c78aa7c"
|
||||||
|
url: "https://pub.dev"
|
||||||
|
source: hosted
|
||||||
|
version: "3.2.0"
|
||||||
archive:
|
archive:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
@ -129,6 +137,14 @@ packages:
|
|||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "0.7.11"
|
version: "0.7.11"
|
||||||
|
decimal:
|
||||||
|
dependency: transitive
|
||||||
|
description:
|
||||||
|
name: decimal
|
||||||
|
sha256: "28239b8b929c1bd8618702e6dbc96e2618cf99770bbe9cb040d6cf56a11e4ec3"
|
||||||
|
url: "https://pub.dev"
|
||||||
|
source: hosted
|
||||||
|
version: "3.2.1"
|
||||||
device_frame:
|
device_frame:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
@ -336,6 +352,14 @@ packages:
|
|||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "5.1.1"
|
version: "5.1.1"
|
||||||
|
logging:
|
||||||
|
dependency: transitive
|
||||||
|
description:
|
||||||
|
name: logging
|
||||||
|
sha256: c8245ada5f1717ed44271ed1c26b8ce85ca3228fd2ffdb75468ab01979309d61
|
||||||
|
url: "https://pub.dev"
|
||||||
|
source: hosted
|
||||||
|
version: "1.3.0"
|
||||||
mask_text_input_formatter:
|
mask_text_input_formatter:
|
||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
@ -522,6 +546,14 @@ packages:
|
|||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "6.1.5"
|
version: "6.1.5"
|
||||||
|
rational:
|
||||||
|
dependency: transitive
|
||||||
|
description:
|
||||||
|
name: rational
|
||||||
|
sha256: cb808fb6f1a839e6fc5f7d8cb3b0a10e1db48b3be102de73938c627f0b636336
|
||||||
|
url: "https://pub.dev"
|
||||||
|
source: hosted
|
||||||
|
version: "2.2.3"
|
||||||
recase:
|
recase:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
|
15
pubspec.yaml
15
pubspec.yaml
@ -28,6 +28,7 @@ environment:
|
|||||||
# the latest version available on pub.dev. To see which dependencies have newer
|
# the latest version available on pub.dev. To see which dependencies have newer
|
||||||
# versions available, run `flutter pub outdated`.
|
# versions available, run `flutter pub outdated`.
|
||||||
dependencies:
|
dependencies:
|
||||||
|
appmetrica_plugin: ^3.2.0
|
||||||
matule_uikit:
|
matule_uikit:
|
||||||
git:
|
git:
|
||||||
url: https://git.skillmad.ru/user8/matule_uikit.git
|
url: https://git.skillmad.ru/user8/matule_uikit.git
|
||||||
@ -40,24 +41,24 @@ dependencies:
|
|||||||
|
|
||||||
storybook_flutter: ^0.14.1
|
storybook_flutter: ^0.14.1
|
||||||
flutter_svg: ^2.1.0
|
flutter_svg: ^2.1.0
|
||||||
mask_text_input_formatter: ^2.9.0
|
|
||||||
|
|
||||||
connectivity_plus: ^6.1.4
|
connectivity_plus: ^6.1.4
|
||||||
dio: ^5.8.0+1
|
dio: ^5.8.0+1
|
||||||
intl: ^0.20.2
|
|
||||||
|
|
||||||
google_fonts: ^6.2.1
|
|
||||||
pinput: ^5.0.1
|
|
||||||
flutter_launcher_icons: ^0.14.3
|
|
||||||
flutter_native_splash: ^2.4.6
|
|
||||||
get: ^4.7.2
|
get: ^4.7.2
|
||||||
flutter_screenutil: ^5.9.3
|
flutter_screenutil: ^5.9.3
|
||||||
flutter_pdfview: ^1.4.0+1
|
|
||||||
flutter:
|
flutter:
|
||||||
sdk: flutter
|
sdk: flutter
|
||||||
|
|
||||||
# The following adds the Cupertino Icons font to your application.
|
# The following adds the Cupertino Icons font to your application.
|
||||||
# Use with the CupertinoIcons class for iOS style icons.
|
# Use with the CupertinoIcons class for iOS style icons.
|
||||||
|
google_fonts: ^6.2.1
|
||||||
|
flutter_pdfview: ^1.4.0+1
|
||||||
|
flutter_launcher_icons: ^0.14.3
|
||||||
|
flutter_native_splash: ^2.4.6
|
||||||
|
pinput: ^5.0.1
|
||||||
|
mask_text_input_formatter: ^2.9.0
|
||||||
|
intl: ^0.20.2
|
||||||
cupertino_icons: ^1.0.8
|
cupertino_icons: ^1.0.8
|
||||||
|
|
||||||
dev_dependencies:
|
dev_dependencies:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user