summaryrefslogtreecommitdiff
path: root/android/app/src
diff options
context:
space:
mode:
authorxAlpharax <42233094+xAlpharax@users.noreply.github.com>2023-09-20 03:55:58 +0300
committerxAlpharax <42233094+xAlpharax@users.noreply.github.com>2023-09-20 03:55:58 +0300
commit64e2b6a39d0c8884832124c6e54991a385f98352 (patch)
treeb84e95b2e379bee7329acb4cda454528a6f1692f /android/app/src
parenta935ea6e88bbc15f9a0b02f54d9010aa185dab86 (diff)
Initial migration of the project.
Changes to be committed: new file: .gitignore new file: .metadata new file: README.md new file: analysis_options.yaml new file: android/.gitignore new file: android/app/build.gradle new file: android/app/src/debug/AndroidManifest.xml new file: android/app/src/main/AndroidManifest.xml new file: android/app/src/main/kotlin/com/example/yolo/MainActivity.kt new file: android/app/src/main/res/drawable-hdpi/ic_launcher_foreground.png new file: android/app/src/main/res/drawable-mdpi/ic_launcher_foreground.png new file: android/app/src/main/res/drawable-v21/launch_background.xml new file: android/app/src/main/res/drawable-xhdpi/ic_launcher_foreground.png new file: android/app/src/main/res/drawable-xxhdpi/ic_launcher_foreground.png new file: android/app/src/main/res/drawable-xxxhdpi/ic_launcher_foreground.png new file: android/app/src/main/res/drawable/launch_background.xml new file: android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml new file: android/app/src/main/res/mipmap-hdpi/ic_launcher.png new file: android/app/src/main/res/mipmap-mdpi/ic_launcher.png new file: android/app/src/main/res/mipmap-xhdpi/ic_launcher.png new file: android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png new file: android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png new file: android/app/src/main/res/values-night/styles.xml new file: android/app/src/main/res/values/colors.xml new file: android/app/src/main/res/values/styles.xml new file: android/app/src/profile/AndroidManifest.xml new file: android/build.gradle new file: android/gradle.properties new file: android/gradle/wrapper/gradle-wrapper.properties new file: android/settings.gradle new file: assets/MegaViewLogo.png new file: assets/mobilenet_v1_1.0_224.tflite new file: assets/mobilenet_v1_1.0_224.txt new file: assets/yolov2_tiny.tflite new file: assets/yolov2_tiny.txt new file: ios/.gitignore new file: ios/Flutter/AppFrameworkInfo.plist new file: ios/Flutter/Debug.xcconfig new file: ios/Flutter/Release.xcconfig new file: ios/Runner.xcodeproj/project.pbxproj new file: ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file: ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file: ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings new file: ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme new file: ios/Runner.xcworkspace/contents.xcworkspacedata new file: ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file: ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings new file: ios/Runner/AppDelegate.swift new file: ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json new file: ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png new file: ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png new file: ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png new file: ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png new file: ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png new file: ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png new file: ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png new file: ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png new file: ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png new file: ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png new file: ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-50x50@1x.png new file: ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-50x50@2x.png new file: ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-57x57@1x.png new file: ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-57x57@2x.png new file: ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png new file: ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png new file: ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-72x72@1x.png new file: ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-72x72@2x.png new file: ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png new file: ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png new file: ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png new file: ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json new file: ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png new file: ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png new file: ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png new file: ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md new file: ios/Runner/Base.lproj/LaunchScreen.storyboard new file: ios/Runner/Base.lproj/Main.storyboard new file: ios/Runner/Info.plist new file: ios/Runner/Runner-Bridging-Header.h new file: ios/RunnerTests/RunnerTests.swift new file: lib/main.dart new file: pubspec.lock new file: pubspec.yaml new file: test/widget_test.dart
Diffstat (limited to 'android/app/src')
-rw-r--r--android/app/src/debug/AndroidManifest.xml7
-rw-r--r--android/app/src/main/AndroidManifest.xml38
-rw-r--r--android/app/src/main/kotlin/com/example/yolo/MainActivity.kt6
-rw-r--r--android/app/src/main/res/drawable-hdpi/ic_launcher_foreground.pngbin0 -> 4927 bytes
-rw-r--r--android/app/src/main/res/drawable-mdpi/ic_launcher_foreground.pngbin0 -> 2974 bytes
-rw-r--r--android/app/src/main/res/drawable-v21/launch_background.xml12
-rw-r--r--android/app/src/main/res/drawable-xhdpi/ic_launcher_foreground.pngbin0 -> 7264 bytes
-rw-r--r--android/app/src/main/res/drawable-xxhdpi/ic_launcher_foreground.pngbin0 -> 12371 bytes
-rw-r--r--android/app/src/main/res/drawable-xxxhdpi/ic_launcher_foreground.pngbin0 -> 18528 bytes
-rw-r--r--android/app/src/main/res/drawable/launch_background.xml12
-rw-r--r--android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml5
-rw-r--r--android/app/src/main/res/mipmap-hdpi/ic_launcher.pngbin0 -> 1720 bytes
-rw-r--r--android/app/src/main/res/mipmap-mdpi/ic_launcher.pngbin0 -> 1043 bytes
-rw-r--r--android/app/src/main/res/mipmap-xhdpi/ic_launcher.pngbin0 -> 2549 bytes
-rw-r--r--android/app/src/main/res/mipmap-xxhdpi/ic_launcher.pngbin0 -> 4284 bytes
-rw-r--r--android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.pngbin0 -> 6230 bytes
-rw-r--r--android/app/src/main/res/values-night/styles.xml18
-rw-r--r--android/app/src/main/res/values/colors.xml4
-rw-r--r--android/app/src/main/res/values/styles.xml18
-rw-r--r--android/app/src/profile/AndroidManifest.xml7
20 files changed, 127 insertions, 0 deletions
diff --git a/android/app/src/debug/AndroidManifest.xml b/android/app/src/debug/AndroidManifest.xml
new file mode 100644
index 0000000..399f698
--- /dev/null
+++ b/android/app/src/debug/AndroidManifest.xml
@@ -0,0 +1,7 @@
+<manifest xmlns:android="http://schemas.android.com/apk/res/android">
+ <!-- The INTERNET permission is required for development. Specifically,
+ the Flutter tool needs it to communicate with the running application
+ to allow setting breakpoints, to provide hot reload, etc.
+ -->
+ <uses-permission android:name="android.permission.INTERNET"/>
+</manifest>
diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml
new file mode 100644
index 0000000..dd90eee
--- /dev/null
+++ b/android/app/src/main/AndroidManifest.xml
@@ -0,0 +1,38 @@
+<manifest xmlns:android="http://schemas.android.com/apk/res/android">
+
+ <uses-permission android:name="android.permission.CAMERA" />
+ <uses-feature android:name="android.hardware.camera" />
+ <uses-feature android:name="android.hardware.camera.autofocus" />
+
+ <application
+ android:label="MegaView"
+ android:name="${applicationName}"
+ android:icon="@mipmap/ic_launcher">
+ <activity
+ android:name=".MainActivity"
+ android:exported="true"
+ android:launchMode="singleTop"
+ android:theme="@style/LaunchTheme"
+ android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
+ android:hardwareAccelerated="true"
+ android:windowSoftInputMode="adjustResize">
+ <!-- Specifies an Android theme to apply to this Activity as soon as
+ the Android process has started. This theme is visible to the user
+ while the Flutter UI initializes. After that, this theme continues
+ to determine the Window background behind the Flutter UI. -->
+ <meta-data
+ android:name="io.flutter.embedding.android.NormalTheme"
+ android:resource="@style/NormalTheme"
+ />
+ <intent-filter>
+ <action android:name="android.intent.action.MAIN"/>
+ <category android:name="android.intent.category.LAUNCHER"/>
+ </intent-filter>
+ </activity>
+ <!-- Don't delete the meta-data below.
+ This is used by the Flutter tool to generate GeneratedPluginRegistrant.java -->
+ <meta-data
+ android:name="flutterEmbedding"
+ android:value="2" />
+ </application>
+</manifest>
diff --git a/android/app/src/main/kotlin/com/example/yolo/MainActivity.kt b/android/app/src/main/kotlin/com/example/yolo/MainActivity.kt
new file mode 100644
index 0000000..5cd250f
--- /dev/null
+++ b/android/app/src/main/kotlin/com/example/yolo/MainActivity.kt
@@ -0,0 +1,6 @@
+package com.example.yolo
+
+import io.flutter.embedding.android.FlutterActivity
+
+class MainActivity: FlutterActivity() {
+}
diff --git a/android/app/src/main/res/drawable-hdpi/ic_launcher_foreground.png b/android/app/src/main/res/drawable-hdpi/ic_launcher_foreground.png
new file mode 100644
index 0000000..12c504e
--- /dev/null
+++ b/android/app/src/main/res/drawable-hdpi/ic_launcher_foreground.png
Binary files differ
diff --git a/android/app/src/main/res/drawable-mdpi/ic_launcher_foreground.png b/android/app/src/main/res/drawable-mdpi/ic_launcher_foreground.png
new file mode 100644
index 0000000..942dafe
--- /dev/null
+++ b/android/app/src/main/res/drawable-mdpi/ic_launcher_foreground.png
Binary files differ
diff --git a/android/app/src/main/res/drawable-v21/launch_background.xml b/android/app/src/main/res/drawable-v21/launch_background.xml
new file mode 100644
index 0000000..f74085f
--- /dev/null
+++ b/android/app/src/main/res/drawable-v21/launch_background.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Modify this file to customize your launch splash screen -->
+<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
+ <item android:drawable="?android:colorBackground" />
+
+ <!-- You can insert your own image assets here -->
+ <!-- <item>
+ <bitmap
+ android:gravity="center"
+ android:src="@mipmap/launch_image" />
+ </item> -->
+</layer-list>
diff --git a/android/app/src/main/res/drawable-xhdpi/ic_launcher_foreground.png b/android/app/src/main/res/drawable-xhdpi/ic_launcher_foreground.png
new file mode 100644
index 0000000..dc649a0
--- /dev/null
+++ b/android/app/src/main/res/drawable-xhdpi/ic_launcher_foreground.png
Binary files differ
diff --git a/android/app/src/main/res/drawable-xxhdpi/ic_launcher_foreground.png b/android/app/src/main/res/drawable-xxhdpi/ic_launcher_foreground.png
new file mode 100644
index 0000000..e7d5767
--- /dev/null
+++ b/android/app/src/main/res/drawable-xxhdpi/ic_launcher_foreground.png
Binary files differ
diff --git a/android/app/src/main/res/drawable-xxxhdpi/ic_launcher_foreground.png b/android/app/src/main/res/drawable-xxxhdpi/ic_launcher_foreground.png
new file mode 100644
index 0000000..72bc366
--- /dev/null
+++ b/android/app/src/main/res/drawable-xxxhdpi/ic_launcher_foreground.png
Binary files differ
diff --git a/android/app/src/main/res/drawable/launch_background.xml b/android/app/src/main/res/drawable/launch_background.xml
new file mode 100644
index 0000000..304732f
--- /dev/null
+++ b/android/app/src/main/res/drawable/launch_background.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Modify this file to customize your launch splash screen -->
+<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
+ <item android:drawable="@android:color/white" />
+
+ <!-- You can insert your own image assets here -->
+ <!-- <item>
+ <bitmap
+ android:gravity="center"
+ android:src="@mipmap/launch_image" />
+ </item> -->
+</layer-list>
diff --git a/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml b/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
new file mode 100644
index 0000000..5f349f7
--- /dev/null
+++ b/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="utf-8"?>
+<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
+ <background android:drawable="@color/ic_launcher_background"/>
+ <foreground android:drawable="@drawable/ic_launcher_foreground"/>
+</adaptive-icon>
diff --git a/android/app/src/main/res/mipmap-hdpi/ic_launcher.png b/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
new file mode 100644
index 0000000..6b3d6d6
--- /dev/null
+++ b/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
Binary files differ
diff --git a/android/app/src/main/res/mipmap-mdpi/ic_launcher.png b/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
new file mode 100644
index 0000000..2e7d1b6
--- /dev/null
+++ b/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
Binary files differ
diff --git a/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
new file mode 100644
index 0000000..fa971cb
--- /dev/null
+++ b/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
Binary files differ
diff --git a/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
new file mode 100644
index 0000000..b942a71
--- /dev/null
+++ b/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
Binary files differ
diff --git a/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
new file mode 100644
index 0000000..7bddebb
--- /dev/null
+++ b/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
Binary files differ
diff --git a/android/app/src/main/res/values-night/styles.xml b/android/app/src/main/res/values-night/styles.xml
new file mode 100644
index 0000000..06952be
--- /dev/null
+++ b/android/app/src/main/res/values-night/styles.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+ <!-- Theme applied to the Android Window while the process is starting when the OS's Dark Mode setting is on -->
+ <style name="LaunchTheme" parent="@android:style/Theme.Black.NoTitleBar">
+ <!-- Show a splash screen on the activity. Automatically removed when
+ the Flutter engine draws its first frame -->
+ <item name="android:windowBackground">@drawable/launch_background</item>
+ </style>
+ <!-- Theme applied to the Android Window as soon as the process has started.
+ This theme determines the color of the Android Window while your
+ Flutter UI initializes, as well as behind your Flutter UI while its
+ running.
+
+ This Theme is only used starting with V2 of Flutter's Android embedding. -->
+ <style name="NormalTheme" parent="@android:style/Theme.Black.NoTitleBar">
+ <item name="android:windowBackground">?android:colorBackground</item>
+ </style>
+</resources>
diff --git a/android/app/src/main/res/values/colors.xml b/android/app/src/main/res/values/colors.xml
new file mode 100644
index 0000000..beab31f
--- /dev/null
+++ b/android/app/src/main/res/values/colors.xml
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+ <color name="ic_launcher_background">#000000</color>
+</resources> \ No newline at end of file
diff --git a/android/app/src/main/res/values/styles.xml b/android/app/src/main/res/values/styles.xml
new file mode 100644
index 0000000..cb1ef88
--- /dev/null
+++ b/android/app/src/main/res/values/styles.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+ <!-- Theme applied to the Android Window while the process is starting when the OS's Dark Mode setting is off -->
+ <style name="LaunchTheme" parent="@android:style/Theme.Light.NoTitleBar">
+ <!-- Show a splash screen on the activity. Automatically removed when
+ the Flutter engine draws its first frame -->
+ <item name="android:windowBackground">@drawable/launch_background</item>
+ </style>
+ <!-- Theme applied to the Android Window as soon as the process has started.
+ This theme determines the color of the Android Window while your
+ Flutter UI initializes, as well as behind your Flutter UI while its
+ running.
+
+ This Theme is only used starting with V2 of Flutter's Android embedding. -->
+ <style name="NormalTheme" parent="@android:style/Theme.Light.NoTitleBar">
+ <item name="android:windowBackground">?android:colorBackground</item>
+ </style>
+</resources>
diff --git a/android/app/src/profile/AndroidManifest.xml b/android/app/src/profile/AndroidManifest.xml
new file mode 100644
index 0000000..399f698
--- /dev/null
+++ b/android/app/src/profile/AndroidManifest.xml
@@ -0,0 +1,7 @@
+<manifest xmlns:android="http://schemas.android.com/apk/res/android">
+ <!-- The INTERNET permission is required for development. Specifically,
+ the Flutter tool needs it to communicate with the running application
+ to allow setting breakpoints, to provide hot reload, etc.
+ -->
+ <uses-permission android:name="android.permission.INTERNET"/>
+</manifest>