diff --git a/.gitignore b/.gitignore
index 25a05ff..3cbf407 100644
--- a/.gitignore
+++ b/.gitignore
@@ -110,3 +110,4 @@ app.*.map.json
!.idea/codeStyles/
!.idea/dictionaries/
!.idea/runConfigurations/
+/.fvmrc
diff --git a/.idea/codeStyles/Project.xml b/.idea/codeStyles/Project.xml
new file mode 100644
index 0000000..4bec4ea
--- /dev/null
+++ b/.idea/codeStyles/Project.xml
@@ -0,0 +1,117 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+ xmlns:android
+
+ ^$
+
+
+
+
+
+
+
+
+ xmlns:.*
+
+ ^$
+
+
+ BY_NAME
+
+
+
+
+
+
+ .*:id
+
+ http://schemas.android.com/apk/res/android
+
+
+
+
+
+
+
+
+ .*:name
+
+ http://schemas.android.com/apk/res/android
+
+
+
+
+
+
+
+
+ name
+
+ ^$
+
+
+
+
+
+
+
+
+ style
+
+ ^$
+
+
+
+
+
+
+
+
+ .*
+
+ ^$
+
+
+ BY_NAME
+
+
+
+
+
+
+ .*
+
+ http://schemas.android.com/apk/res/android
+
+
+ ANDROID_ATTRIBUTE_ORDER
+
+
+
+
+
+
+ .*
+
+ .*
+
+
+ BY_NAME
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/codeStyles/codeStyleConfig.xml b/.idea/codeStyles/codeStyleConfig.xml
new file mode 100644
index 0000000..79ee123
--- /dev/null
+++ b/.idea/codeStyles/codeStyleConfig.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/.vscode/launch.json b/.vscode/launch.json
index b4e33ce..42cbbdc 100644
--- a/.vscode/launch.json
+++ b/.vscode/launch.json
@@ -21,14 +21,25 @@
"request": "launch",
"type": "dart",
"program": "lib/main_staging.dart",
- "args": ["--flavor", "staging", "--target", "lib/main_staging.dart"]
+ "args": [
+ "--flavor",
+ "staging",
+ "--target",
+ "lib/main_staging.dart"
+ ]
},
{
"name": "Launch production",
"request": "launch",
"type": "dart",
+ "flutterMode": "release",
"program": "lib/main_production.dart",
- "args": ["--flavor", "production", "--target", "lib/main_production.dart"]
+ "args": [
+ "--flavor",
+ "production",
+ "--target",
+ "lib/main_production.dart"
+ ]
}
]
-}
+}
\ No newline at end of file
diff --git a/analysis_options.yaml b/analysis_options.yaml
index fa798a8..a4c790c 100644
--- a/analysis_options.yaml
+++ b/analysis_options.yaml
@@ -1,3 +1,12 @@
+analyzer:
+ exclude:
+ - '**.freezed.dart'
+ - '**.g.dart'
+ - '**.gr.dart'
+ - '**.gen.dart'
+ - '**/app_localizations**.dart'
+ - '**/generated_plugin_registrant.dart'
+
include: package:very_good_analysis/analysis_options.5.1.0.yaml
linter:
rules:
diff --git a/android/app/build.gradle b/android/app/build.gradle
index ec53d92..7fa3e1d 100644
--- a/android/app/build.gradle
+++ b/android/app/build.gradle
@@ -1,3 +1,10 @@
+plugins {
+ id "com.android.application"
+ id "kotlin-android"
+ id "kotlin-kapt"
+ id "dev.flutter.flutter-gradle-plugin"
+}
+
def localProperties = new Properties()
def localPropertiesFile = rootProject.file('local.properties')
if (localPropertiesFile.exists()) {
@@ -6,11 +13,6 @@ if (localPropertiesFile.exists()) {
}
}
-def flutterRoot = localProperties.getProperty('flutter.sdk')
-if (flutterRoot == null) {
- throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
-}
-
def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
if (flutterVersionCode == null) {
flutterVersionCode = '1'
@@ -27,11 +29,6 @@ if (keystorePropertiesFile.exists()) {
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
}
-apply plugin: 'com.android.application'
-apply plugin: 'kotlin-android'
-apply plugin: 'kotlin-kapt'
-apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
-
android {
namespace "com.BBKDevelopment.VMerge"
compileSdkVersion localProperties.getProperty('flutter.compileSdkVersion').toInteger()
@@ -51,10 +48,7 @@ android {
}
defaultConfig {
- // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId "com.BBKDevelopment.VMerge"
- // You can update the following values to match your application needs.
- // For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.
minSdkVersion localProperties.getProperty('flutter.minSdkVersion').toInteger()
targetSdkVersion localProperties.getProperty('flutter.targetSdkVersion').toInteger()
versionCode flutterVersionCode.toInteger()
@@ -80,7 +74,7 @@ android {
}
flavorDimensions "default"
- productFlavors {
+ productFlavors {
production {
dimension "default"
applicationIdSuffix ""
@@ -115,7 +109,6 @@ flutter {
}
dependencies {
- implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation 'com.github.bumptech.glide:glide:4.14.2'
kapt 'com.github.bumptech.glide:compiler:4.14.2'
}
\ No newline at end of file
diff --git a/android/app/src/debug/AndroidManifest.xml b/android/app/src/debug/AndroidManifest.xml
index 7e39c2a..c46807a 100644
--- a/android/app/src/debug/AndroidManifest.xml
+++ b/android/app/src/debug/AndroidManifest.xml
@@ -4,5 +4,12 @@
the Flutter tool needs it to communicate with the running application
to allow setting breakpoints, to provide hot reload, etc.
-->
-
+
+
+
+
diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml
index b503be1..d2a1f81 100644
--- a/android/app/src/main/AndroidManifest.xml
+++ b/android/app/src/main/AndroidManifest.xml
@@ -1,29 +1,36 @@
-
-
+
+
+
+
+ android:icon="@mipmap/ic_launcher"
+ android:label="${appName}">
+ android:name="io.flutter.embedding.android.NormalTheme"
+ android:resource="@style/NormalTheme" />
-
-
+
+
+
+
+
diff --git a/android/build.gradle b/android/build.gradle
index f7eb7f6..8f31e8c 100644
--- a/android/build.gradle
+++ b/android/build.gradle
@@ -1,16 +1,3 @@
-buildscript {
- ext.kotlin_version = '1.7.10'
- repositories {
- google()
- mavenCentral()
- }
-
- dependencies {
- classpath 'com.android.tools.build:gradle:7.3.0'
- classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
- }
-}
-
allprojects {
repositories {
google()
@@ -28,4 +15,4 @@ subprojects {
tasks.register("clean", Delete) {
delete rootProject.buildDir
-}
+}
\ No newline at end of file
diff --git a/android/gradle/wrapper/gradle-wrapper.properties b/android/gradle/wrapper/gradle-wrapper.properties
index 6b66533..8bd70f3 100644
--- a/android/gradle/wrapper/gradle-wrapper.properties
+++ b/android/gradle/wrapper/gradle-wrapper.properties
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
-distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-all.zip
+distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-all.zip
diff --git a/android/settings.gradle b/android/settings.gradle
index 44e62bc..05e070b 100644
--- a/android/settings.gradle
+++ b/android/settings.gradle
@@ -1,11 +1,25 @@
-include ':app'
+pluginManagement {
+ def flutterSdkPath = {
+ def properties = new Properties()
+ file("local.properties").withInputStream { properties.load(it) }
+ def flutterSdkPath = properties.getProperty("flutter.sdk")
+ assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
+ return flutterSdkPath
+ }()
-def localPropertiesFile = new File(rootProject.projectDir, "local.properties")
-def properties = new Properties()
+ includeBuild("$flutterSdkPath/packages/flutter_tools/gradle")
-assert localPropertiesFile.exists()
-localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) }
+ repositories {
+ google()
+ mavenCentral()
+ gradlePluginPortal()
+ }
+}
-def flutterSdkPath = properties.getProperty("flutter.sdk")
-assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
-apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle"
+plugins {
+ id "dev.flutter.flutter-plugin-loader" version "1.0.0"
+ id "com.android.application" version "7.3.0" apply false
+ id "org.jetbrains.kotlin.android" version "1.8.0" apply false
+}
+
+include ":app"
\ No newline at end of file
diff --git a/assets/fonts/README.txt b/assets/fonts/roboto_mono/README.txt
similarity index 100%
rename from assets/fonts/README.txt
rename to assets/fonts/roboto_mono/README.txt
diff --git a/assets/fonts/RobotoMono-Bold.ttf b/assets/fonts/roboto_mono/RobotoMono-Bold.ttf
similarity index 100%
rename from assets/fonts/RobotoMono-Bold.ttf
rename to assets/fonts/roboto_mono/RobotoMono-Bold.ttf
diff --git a/assets/fonts/RobotoMono-BoldItalic.ttf b/assets/fonts/roboto_mono/RobotoMono-BoldItalic.ttf
similarity index 100%
rename from assets/fonts/RobotoMono-BoldItalic.ttf
rename to assets/fonts/roboto_mono/RobotoMono-BoldItalic.ttf
diff --git a/assets/fonts/RobotoMono-ExtraLight.ttf b/assets/fonts/roboto_mono/RobotoMono-ExtraLight.ttf
similarity index 100%
rename from assets/fonts/RobotoMono-ExtraLight.ttf
rename to assets/fonts/roboto_mono/RobotoMono-ExtraLight.ttf
diff --git a/assets/fonts/RobotoMono-ExtraLightItalic.ttf b/assets/fonts/roboto_mono/RobotoMono-ExtraLightItalic.ttf
similarity index 100%
rename from assets/fonts/RobotoMono-ExtraLightItalic.ttf
rename to assets/fonts/roboto_mono/RobotoMono-ExtraLightItalic.ttf
diff --git a/assets/fonts/RobotoMono-Italic.ttf b/assets/fonts/roboto_mono/RobotoMono-Italic.ttf
similarity index 100%
rename from assets/fonts/RobotoMono-Italic.ttf
rename to assets/fonts/roboto_mono/RobotoMono-Italic.ttf
diff --git a/assets/fonts/RobotoMono-Light.ttf b/assets/fonts/roboto_mono/RobotoMono-Light.ttf
similarity index 100%
rename from assets/fonts/RobotoMono-Light.ttf
rename to assets/fonts/roboto_mono/RobotoMono-Light.ttf
diff --git a/assets/fonts/RobotoMono-LightItalic.ttf b/assets/fonts/roboto_mono/RobotoMono-LightItalic.ttf
similarity index 100%
rename from assets/fonts/RobotoMono-LightItalic.ttf
rename to assets/fonts/roboto_mono/RobotoMono-LightItalic.ttf
diff --git a/assets/fonts/RobotoMono-Medium.ttf b/assets/fonts/roboto_mono/RobotoMono-Medium.ttf
similarity index 100%
rename from assets/fonts/RobotoMono-Medium.ttf
rename to assets/fonts/roboto_mono/RobotoMono-Medium.ttf
diff --git a/assets/fonts/RobotoMono-MediumItalic.ttf b/assets/fonts/roboto_mono/RobotoMono-MediumItalic.ttf
similarity index 100%
rename from assets/fonts/RobotoMono-MediumItalic.ttf
rename to assets/fonts/roboto_mono/RobotoMono-MediumItalic.ttf
diff --git a/assets/fonts/RobotoMono-Regular.ttf b/assets/fonts/roboto_mono/RobotoMono-Regular.ttf
similarity index 100%
rename from assets/fonts/RobotoMono-Regular.ttf
rename to assets/fonts/roboto_mono/RobotoMono-Regular.ttf
diff --git a/assets/fonts/RobotoMono-SemiBold.ttf b/assets/fonts/roboto_mono/RobotoMono-SemiBold.ttf
similarity index 100%
rename from assets/fonts/RobotoMono-SemiBold.ttf
rename to assets/fonts/roboto_mono/RobotoMono-SemiBold.ttf
diff --git a/assets/fonts/RobotoMono-SemiBoldItalic.ttf b/assets/fonts/roboto_mono/RobotoMono-SemiBoldItalic.ttf
similarity index 100%
rename from assets/fonts/RobotoMono-SemiBoldItalic.ttf
rename to assets/fonts/roboto_mono/RobotoMono-SemiBoldItalic.ttf
diff --git a/assets/fonts/RobotoMono-Thin.ttf b/assets/fonts/roboto_mono/RobotoMono-Thin.ttf
similarity index 100%
rename from assets/fonts/RobotoMono-Thin.ttf
rename to assets/fonts/roboto_mono/RobotoMono-Thin.ttf
diff --git a/assets/fonts/RobotoMono-ThinItalic.ttf b/assets/fonts/roboto_mono/RobotoMono-ThinItalic.ttf
similarity index 100%
rename from assets/fonts/RobotoMono-ThinItalic.ttf
rename to assets/fonts/roboto_mono/RobotoMono-ThinItalic.ttf
diff --git a/assets/images/application_logo.svg b/assets/images/application_logo.svg
deleted file mode 100644
index 392614b..0000000
--- a/assets/images/application_logo.svg
+++ /dev/null
@@ -1,3 +0,0 @@
-
diff --git a/assets/images/bbk_logo.png b/assets/images/bbk_logo.png
deleted file mode 100644
index f0bd352..0000000
Binary files a/assets/images/bbk_logo.png and /dev/null differ
diff --git a/assets/images/camera.svg b/assets/images/camera.svg
deleted file mode 100644
index a3c7194..0000000
--- a/assets/images/camera.svg
+++ /dev/null
@@ -1,3 +0,0 @@
-
diff --git a/assets/images/close.svg b/assets/images/close.svg
index 3078ac7..40f990c 100644
--- a/assets/images/close.svg
+++ b/assets/images/close.svg
@@ -1,3 +1,3 @@
diff --git a/assets/images/cut.svg b/assets/images/cut.svg
deleted file mode 100644
index bc63dd4..0000000
--- a/assets/images/cut.svg
+++ /dev/null
@@ -1,3 +0,0 @@
-
diff --git a/assets/images/description.svg b/assets/images/description.svg
new file mode 100644
index 0000000..c6b9592
--- /dev/null
+++ b/assets/images/description.svg
@@ -0,0 +1,3 @@
+
diff --git a/assets/images/error.svg b/assets/images/error.svg
new file mode 100644
index 0000000..cf763e3
--- /dev/null
+++ b/assets/images/error.svg
@@ -0,0 +1,10 @@
+
diff --git a/assets/images/home.svg b/assets/images/home.svg
deleted file mode 100644
index 21cb404..0000000
--- a/assets/images/home.svg
+++ /dev/null
@@ -1,3 +0,0 @@
-
diff --git a/assets/images/license.svg b/assets/images/license.svg
index bf06bf8..dec45f0 100644
--- a/assets/images/license.svg
+++ b/assets/images/license.svg
@@ -1,5 +1,3 @@
-