diff --git a/.hgignore b/.hgignore
index 8d44ee5..4d366ba 100644
--- a/.hgignore
+++ b/.hgignore
@@ -5,7 +5,6 @@
.pub/
.gradle/
.orig
-
build/
gen/
pubspec.lock
@@ -19,10 +18,37 @@ ios/Pods/
android/local.properties
android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java
-android/android.iml
-android/app/app.iml
+android/*.iml
+android/app/*.iml
android/.idea/
android/build/
android/.DS_Store
android/captures
android/gradle
+
+ios/.idea/
+ios/.vagrant/
+ios/.sconsign.dblite
+ios/.svn/
+ios/.DS_Store
+ios/profile
+ios/DerivedData/
+ios/build/
+ios/GeneratedPluginRegistrant.h
+ios/GeneratedPluginRegistrant.m
+ios/!default.pbxuser
+ios/!default.mode1v3
+ios/!default.mode2v3
+ios/!default.perspectivev3
+ios/Runner.xcodeproj/xcuserdata
+ios/Runner.xcworkspace/xcuserdata
+ios/Icon?
+ios/.tags*
+ios/Flutter/app.flx
+ios/Flutter/app.zip
+ios/Flutter/App.framework
+ios/Flutter/Flutter.framework
+ios/Flutter/Generated.xcconfig
+ios/ServiceDefinitions.json
+ios/Pods/
+
diff --git a/README.md b/README.md
index 9b686c0..93920da 100644
--- a/README.md
+++ b/README.md
@@ -48,14 +48,15 @@ flutter build (собирает release apk, не устанавливает н
Иконки проще всего нарезать тут:
https://romannurik.github.io/AndroidAssetStudio/icons-launcher.html
-В качестве Foreground выбрать иконку приложения размером 512x512, выставить необходимые параметры и скачать архив с нарезанными иконками.
+В качестве Foreground выбрать иконку приложения размером 512x512, выставить необходимые параметры и скачать архив с нарещанными иконками.
После выполнения всех этих пунктов появится возможность собирать приложение
как описано выше(flutter run --flavor %name% либо flutter build apk --flavor %name%).
#Добавление локализации приложения
-1) В каталог assets содержит каталоги values-XX в которых находятся файлы локализаций strings.xml
+1) В каталог lib/i18n добавить файл messages_%locale%.dart.
+Файл делать по аналогии с messages_en.dart. Либо с messages_ru.dart.
2) В каталог android/app/src/main/res добавить каталог values-%locale% с единственным файлом strings.xml.
Файл должен иметь структуру полностью аналогичную файлу android/app/src/main/res/values/strings.xml, измениться должны только значения для строк.
@@ -68,18 +69,10 @@ https://romannurik.github.io/AndroidAssetStudio/icons-launcher.html
4) В файле ios/Runner/AppDelegate.m определить словарь настроек аналогично существующим
5) Для того чтобы сбилдить нужный брэнд в Xcode указать нужную схему
-При добавлении таргета необходимо в каталог ios
-1. дописать структуру с именем таргета в podfile
-2. выполнить
-pod deintegrate
-rm Podfile.lock
-rm - rf pods
-source ~/.bash_profile
-pod install
-
-
-добаваление аналитики FireBase в ios/
-Чтобы добавить для ios приложения GoogleServices.plist нужно через Finder создать в каталоге checker/ios подкаталог с названием проекта и туда положить новый GoogleServices.plist
-
-Потом из этого каталога перетащить этот файл в корень проекта. Тащить мышкой в синюю иконку Runner слева над структурой проекта. Появится диалоговое окно, в котором нужно выбрать таргет,
-в котором этот файл будет доступен. Нужно выбрать нужный проект. В pbproject пропишется, что этот plist относится именно к этому таргету и при сборке таргета будет цепляться нужный plist.
+Регламент сборки
+1. Четко фиксируем версию Flutter
+2. Четкая фиксация версии библиотек зависимостей андройд и iOS
+3. При обновлении версий библиотек и flutter разработка в отдельной ветке. (default всегда должен собираться)
+4. Разработка новых фич в отдельных ветках
+5. Настройка CI для Андройд до
+6. Настройка Hg Ignore корректно 22.06
diff --git a/android/app/build.gradle b/android/app/build.gradle
index b2464c3..cbaab32 100644
--- a/android/app/build.gradle
+++ b/android/app/build.gradle
@@ -115,8 +115,8 @@ android {
buildConfigField "String", "locale", "\"ru\""
buildConfigField "String", "flavor", "\"autobonus\""
buildConfigField "int", "currency", "643"
- buildConfigField "String", "supportPhone", "\"8-800-234-6064\""
- buildConfigField "String", "supportUrl", "\"https://www.auto-club.biz\""
+ buildConfigField "String", "supportPhone", "\"Обратитесь к вашему региональному менеджеру\""
+ buildConfigField "String", "supportUrl", "\"https://www.auto-club.biz/coupons_new/contacts\""
buildConfigField "String", "endpoint", "\"https://pos-api-autoclub.dinect.com/20130701/\""
buildConfigField "String", "appToken", "\"bdea0f3ba9034b688019a7cac753d1209e2b227f\""
buildConfigField "String", "appTitle", "\"Autobonus\""
@@ -145,7 +145,7 @@ android {
buildConfigField "String", "supportUrl", "\"https://joys.digital/\""
buildConfigField "String", "endpoint", "\"https://pos-api-crypto-int.dinect.com/20130701/\""
buildConfigField "String", "appToken", "\"bdea0f3ba9034b688019a7cac753d1209e2b227f\""
- buildConfigField "String", "appTitle", "\"miniPOS Joys\""
+ buildConfigField "String", "appTitle", "\"POSapp Joys\""
buildConfigField "boolean", "showBonus", "true"
}
@@ -189,8 +189,6 @@ dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'com.android.support:appcompat-v7:27.1.1'
implementation 'com.android.support:recyclerview-v7:27.1.1'
- implementation 'com.google.firebase:firebase-core:15.0.0'
- implementation 'com.google.firebase:firebase-crash:15.0.0'
implementation 'com.android.support:support-v4:27.1.1'
implementation 'com.android.support:support-media-compat:27.1.1'
implementation 'com.squareup.okhttp3:okhttp:3.9.0'
@@ -199,9 +197,6 @@ dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
}
-
-apply plugin: 'com.google.gms.google-services'
-
repositories {
mavenCentral()
}
diff --git a/android/app/google-services.json b/android/app/google-services.json
deleted file mode 100644
index 183d56a..0000000
--- a/android/app/google-services.json
+++ /dev/null
@@ -1,197 +0,0 @@
-{
- "project_info": {
- "project_number": "694429802129",
- "firebase_url": "https://checker-52132.firebaseio.com",
- "project_id": "checker-52132",
- "storage_bucket": "checker-52132.appspot.com"
- },
- "client": [
- {
- "client_info": {
- "mobilesdk_app_id": "1:694429802129:android:5a64db21df36f8f2",
- "android_client_info": {
- "package_name": "com.dinect.checker.autoclub"
- }
- },
- "oauth_client": [
- {
- "client_id": "694429802129-lm60v596c7cb5fgeikn642pdq6svm91v.apps.googleusercontent.com",
- "client_type": 3
- }
- ],
- "api_key": [
- {
- "current_key": "AIzaSyAnjcApP2JiWVTsWUpiOqAI3D8tTolRe6Q"
- }
- ],
- "services": {
- "analytics_service": {
- "status": 1
- },
- "appinvite_service": {
- "status": 1,
- "other_platform_oauth_client": []
- },
- "ads_service": {
- "status": 2
- }
- }
- },
- {
- "client_info": {
- "mobilesdk_app_id": "1:694429802129:android:c491fe619bc1135b",
- "android_client_info": {
- "package_name": "com.dinect.checker.dinect"
- }
- },
- "oauth_client": [
- {
- "client_id": "694429802129-lm60v596c7cb5fgeikn642pdq6svm91v.apps.googleusercontent.com",
- "client_type": 3
- }
- ],
- "api_key": [
- {
- "current_key": "AIzaSyAnjcApP2JiWVTsWUpiOqAI3D8tTolRe6Q"
- }
- ],
- "services": {
- "analytics_service": {
- "status": 1
- },
- "appinvite_service": {
- "status": 1,
- "other_platform_oauth_client": []
- },
- "ads_service": {
- "status": 2
- }
- }
- },
- {
- "client_info": {
- "mobilesdk_app_id": "1:694429802129:android:7889aafb1e16814e",
- "android_client_info": {
- "package_name": "com.dinect.checker.int"
- }
- },
- "oauth_client": [
- {
- "client_id": "694429802129-lm60v596c7cb5fgeikn642pdq6svm91v.apps.googleusercontent.com",
- "client_type": 3
- }
- ],
- "api_key": [
- {
- "current_key": "AIzaSyAnjcApP2JiWVTsWUpiOqAI3D8tTolRe6Q"
- }
- ],
- "services": {
- "analytics_service": {
- "status": 1
- },
- "appinvite_service": {
- "status": 1,
- "other_platform_oauth_client": []
- },
- "ads_service": {
- "status": 2
- }
- }
- },
- {
- "client_info": {
- "mobilesdk_app_id": "1:694429802129:android:5525e12f52441ac8",
- "android_client_info": {
- "package_name": "com.dinect.checker.ote"
- }
- },
- "oauth_client": [
- {
- "client_id": "694429802129-lm60v596c7cb5fgeikn642pdq6svm91v.apps.googleusercontent.com",
- "client_type": 3
- }
- ],
- "api_key": [
- {
- "current_key": "AIzaSyAnjcApP2JiWVTsWUpiOqAI3D8tTolRe6Q"
- }
- ],
- "services": {
- "analytics_service": {
- "status": 1
- },
- "appinvite_service": {
- "status": 1,
- "other_platform_oauth_client": []
- },
- "ads_service": {
- "status": 2
- }
- }
- },
- {
- "client_info": {
- "mobilesdk_app_id": "1:694429802129:android:c236e1ae34ebab1f",
- "android_client_info": {
- "package_name": "digital.joys.checker"
- }
- },
- "oauth_client": [
- {
- "client_id": "694429802129-lm60v596c7cb5fgeikn642pdq6svm91v.apps.googleusercontent.com",
- "client_type": 3
- }
- ],
- "api_key": [
- {
- "current_key": "AIzaSyAnjcApP2JiWVTsWUpiOqAI3D8tTolRe6Q"
- }
- ],
- "services": {
- "analytics_service": {
- "status": 1
- },
- "appinvite_service": {
- "status": 1,
- "other_platform_oauth_client": []
- },
- "ads_service": {
- "status": 2
- }
- }
- },
- {
- "client_info": {
- "mobilesdk_app_id": "1:694429802129:android:1989d1b101c854c1",
- "android_client_info": {
- "package_name": "ru.fivefit.biochecker"
- }
- },
- "oauth_client": [
- {
- "client_id": "694429802129-lm60v596c7cb5fgeikn642pdq6svm91v.apps.googleusercontent.com",
- "client_type": 3
- }
- ],
- "api_key": [
- {
- "current_key": "AIzaSyAnjcApP2JiWVTsWUpiOqAI3D8tTolRe6Q"
- }
- ],
- "services": {
- "analytics_service": {
- "status": 1
- },
- "appinvite_service": {
- "status": 1,
- "other_platform_oauth_client": []
- },
- "ads_service": {
- "status": 2
- }
- }
- }
- ],
- "configuration_version": "1"
-}
\ No newline at end of file
diff --git a/android/app/src/crypto/res/drawable-v24/ic_launcher_foreground.xml b/android/app/src/crypto/res/drawable-v24/ic_launcher_foreground.xml
deleted file mode 100644
index 54dfc49..0000000
--- a/android/app/src/crypto/res/drawable-v24/ic_launcher_foreground.xml
+++ /dev/null
@@ -1,34 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
diff --git a/android/app/src/crypto/res/drawable/ic_launcher_background.xml b/android/app/src/crypto/res/drawable/ic_launcher_background.xml
deleted file mode 100644
index d5fccc5..0000000
--- a/android/app/src/crypto/res/drawable/ic_launcher_background.xml
+++ /dev/null
@@ -1,170 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/android/app/src/crypto/res/mipmap-anydpi-v26/ic_launcher.xml b/android/app/src/crypto/res/mipmap-anydpi-v26/ic_launcher.xml
deleted file mode 100644
index 036d09b..0000000
--- a/android/app/src/crypto/res/mipmap-anydpi-v26/ic_launcher.xml
+++ /dev/null
@@ -1,5 +0,0 @@
-
-
-
-
-
\ No newline at end of file
diff --git a/android/app/src/crypto/res/mipmap-anydpi-v26/ic_launcher_round.xml b/android/app/src/crypto/res/mipmap-anydpi-v26/ic_launcher_round.xml
deleted file mode 100644
index 036d09b..0000000
--- a/android/app/src/crypto/res/mipmap-anydpi-v26/ic_launcher_round.xml
+++ /dev/null
@@ -1,5 +0,0 @@
-
-
-
-
-
\ No newline at end of file
diff --git a/android/app/src/crypto/res/mipmap-hdpi/ic_launcher.png b/android/app/src/crypto/res/mipmap-hdpi/ic_launcher.png
index ef65a7d..cfc7fba 100644
Binary files a/android/app/src/crypto/res/mipmap-hdpi/ic_launcher.png and b/android/app/src/crypto/res/mipmap-hdpi/ic_launcher.png differ
diff --git a/android/app/src/crypto/res/mipmap-hdpi/ic_launcher_foreground.png b/android/app/src/crypto/res/mipmap-hdpi/ic_launcher_foreground.png
deleted file mode 100644
index e1393bb..0000000
Binary files a/android/app/src/crypto/res/mipmap-hdpi/ic_launcher_foreground.png and /dev/null differ
diff --git a/android/app/src/crypto/res/mipmap-hdpi/ic_launcher_round.png b/android/app/src/crypto/res/mipmap-hdpi/ic_launcher_round.png
deleted file mode 100644
index 276aa28..0000000
Binary files a/android/app/src/crypto/res/mipmap-hdpi/ic_launcher_round.png and /dev/null differ
diff --git a/android/app/src/crypto/res/mipmap-mdpi/ic_launcher.png b/android/app/src/crypto/res/mipmap-mdpi/ic_launcher.png
index fd6e4ce..1f82f28 100644
Binary files a/android/app/src/crypto/res/mipmap-mdpi/ic_launcher.png and b/android/app/src/crypto/res/mipmap-mdpi/ic_launcher.png differ
diff --git a/android/app/src/crypto/res/mipmap-mdpi/ic_launcher_foreground.png b/android/app/src/crypto/res/mipmap-mdpi/ic_launcher_foreground.png
deleted file mode 100644
index e8c3cc4..0000000
Binary files a/android/app/src/crypto/res/mipmap-mdpi/ic_launcher_foreground.png and /dev/null differ
diff --git a/android/app/src/crypto/res/mipmap-mdpi/ic_launcher_round.png b/android/app/src/crypto/res/mipmap-mdpi/ic_launcher_round.png
deleted file mode 100644
index e8c0743..0000000
Binary files a/android/app/src/crypto/res/mipmap-mdpi/ic_launcher_round.png and /dev/null differ
diff --git a/android/app/src/crypto/res/mipmap-xhdpi/ic_launcher.png b/android/app/src/crypto/res/mipmap-xhdpi/ic_launcher.png
index 6302c3b..a9873b8 100644
Binary files a/android/app/src/crypto/res/mipmap-xhdpi/ic_launcher.png and b/android/app/src/crypto/res/mipmap-xhdpi/ic_launcher.png differ
diff --git a/android/app/src/crypto/res/mipmap-xhdpi/ic_launcher_foreground.png b/android/app/src/crypto/res/mipmap-xhdpi/ic_launcher_foreground.png
deleted file mode 100644
index a27553e..0000000
Binary files a/android/app/src/crypto/res/mipmap-xhdpi/ic_launcher_foreground.png and /dev/null differ
diff --git a/android/app/src/crypto/res/mipmap-xhdpi/ic_launcher_round.png b/android/app/src/crypto/res/mipmap-xhdpi/ic_launcher_round.png
deleted file mode 100644
index edade61..0000000
Binary files a/android/app/src/crypto/res/mipmap-xhdpi/ic_launcher_round.png and /dev/null differ
diff --git a/android/app/src/crypto/res/mipmap-xxhdpi/ic_launcher.png b/android/app/src/crypto/res/mipmap-xxhdpi/ic_launcher.png
index 13ce90a..8a22daf 100644
Binary files a/android/app/src/crypto/res/mipmap-xxhdpi/ic_launcher.png and b/android/app/src/crypto/res/mipmap-xxhdpi/ic_launcher.png differ
diff --git a/android/app/src/crypto/res/mipmap-xxhdpi/ic_launcher_foreground.png b/android/app/src/crypto/res/mipmap-xxhdpi/ic_launcher_foreground.png
deleted file mode 100644
index 79378fb..0000000
Binary files a/android/app/src/crypto/res/mipmap-xxhdpi/ic_launcher_foreground.png and /dev/null differ
diff --git a/android/app/src/crypto/res/mipmap-xxhdpi/ic_launcher_round.png b/android/app/src/crypto/res/mipmap-xxhdpi/ic_launcher_round.png
deleted file mode 100644
index ed79c54..0000000
Binary files a/android/app/src/crypto/res/mipmap-xxhdpi/ic_launcher_round.png and /dev/null differ
diff --git a/android/app/src/crypto/res/mipmap-xxxhdpi/ic_launcher.png b/android/app/src/crypto/res/mipmap-xxxhdpi/ic_launcher.png
index a70bcee..3040603 100644
Binary files a/android/app/src/crypto/res/mipmap-xxxhdpi/ic_launcher.png and b/android/app/src/crypto/res/mipmap-xxxhdpi/ic_launcher.png differ
diff --git a/android/app/src/crypto/res/mipmap-xxxhdpi/ic_launcher_foreground.png b/android/app/src/crypto/res/mipmap-xxxhdpi/ic_launcher_foreground.png
deleted file mode 100644
index a9e7fae..0000000
Binary files a/android/app/src/crypto/res/mipmap-xxxhdpi/ic_launcher_foreground.png and /dev/null differ
diff --git a/android/app/src/crypto/res/mipmap-xxxhdpi/ic_launcher_round.png b/android/app/src/crypto/res/mipmap-xxxhdpi/ic_launcher_round.png
deleted file mode 100644
index 73c080d..0000000
Binary files a/android/app/src/crypto/res/mipmap-xxxhdpi/ic_launcher_round.png and /dev/null differ
diff --git a/android/app/src/crypto/res/values/ic_launcher_background.xml b/android/app/src/crypto/res/values/ic_launcher_background.xml
deleted file mode 100644
index c5d5899..0000000
--- a/android/app/src/crypto/res/values/ic_launcher_background.xml
+++ /dev/null
@@ -1,4 +0,0 @@
-
-
- #FFFFFF
-
\ No newline at end of file
diff --git a/android/app/src/crypto/res/values/strings.xml b/android/app/src/crypto/res/values/strings.xml
index 0e10237..8493b3b 100644
--- a/android/app/src/crypto/res/values/strings.xml
+++ b/android/app/src/crypto/res/values/strings.xml
@@ -1,3 +1,3 @@
- miniPOS Joys
+ POSapp Joys
diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml
index 0f491a0..8a64f21 100644
--- a/android/app/src/main/AndroidManifest.xml
+++ b/android/app/src/main/AndroidManifest.xml
@@ -1,8 +1,8 @@
+ android:versionCode="15"
+ android:versionName="1.1.20">