Skip to content

Commit

Permalink
ui branch
Browse files Browse the repository at this point in the history
  • Loading branch information
TraXIcoN committed Feb 19, 2021
1 parent 9638b5f commit 8700d79
Show file tree
Hide file tree
Showing 293 changed files with 1,469 additions and 46 deletions.
Binary file modified Cropping/__pycache__/ocr.cpython-37.pyc
Binary file not shown.
Binary file added Cropping/__pycache__/scanner.cpython-37.pyc
Binary file not shown.
Binary file modified Cropping/__pycache__/transform.cpython-37.pyc
Binary file not shown.
Binary file added Duplicate Detection/frame0.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Duplicate Detection/frame00.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Duplicate Detection/frame108.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Duplicate Detection/frame1080.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Duplicate Detection/frame173.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Duplicate Detection/frame1730.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Duplicate Detection/frame91.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Duplicate Detection/frame910.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
67 changes: 29 additions & 38 deletions Duplicate_detection1.py
Original file line number Diff line number Diff line change
@@ -1,42 +1,33 @@
import numpy as np
import cv2
import os
from PIL import Image, ImageStat

img = cv2.imread('shapes.jpg')
imgGrey = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)
_, thrash = cv2.threshold(imgGrey, 240, 255, cv2.THRESH_BINARY)
contours, _ = cv2.findContours(thrash, cv2.RETR_TREE, cv2.CHAIN_APPROX_NONE)
try:
if not os.path.exists('final'):
os.makedirs('final')
except OSError:
print('Error: Creating directory of final')

cv2.imshow("img", img)
for contour in contours:
approx = cv2.approxPolyDP(
contour, 0.01 * cv2.arcLength(contour, True), True)
cv2.drawContours(img, [approx], 0, (0, 0, 0), 5)
x = approx.ravel()[0]
y = approx.ravel()[1] - 5
if len(approx) == 3:
cv2.putText(img, "Triangle", (x, y),
cv2.FONT_HERSHEY_COMPLEX, 0.5, (0, 0, 0))
elif len(approx) == 4:
x1, y1, w, h = cv2.boundingRect(approx)
aspectRatio = float(w)/h
print(aspectRatio)
if aspectRatio >= 0.95 and aspectRatio <= 1.05:
cv2.putText(img, "square", (x, y),
cv2.FONT_HERSHEY_COMPLEX, 0.5, (0, 0, 0))
else:
cv2.putText(img, "rectangle", (x, y),
cv2.FONT_HERSHEY_COMPLEX, 0.5, (0, 0, 0))
elif len(approx) == 5:
cv2.putText(img, "Pentagon", (x, y),
cv2.FONT_HERSHEY_COMPLEX, 0.5, (0, 0, 0))
elif len(approx) == 10:
cv2.putText(img, "Star", (x, y),
cv2.FONT_HERSHEY_COMPLEX, 0.5, (0, 0, 0))
else:
cv2.putText(img, "Circle", (x, y),
cv2.FONT_HERSHEY_COMPLEX, 0.5, (0, 0, 0))
image_folder = r'M:\TEPROJECT\CamScannerClone\Scan4U\blur_clear'
image_files = [_ for _ in os.listdir(image_folder) if _.endswith('jpg')]

org_files = []
duplicate_files = []

cv2.imshow("shapes", img)
cv2.waitKey(0)
cv2.destroyAllWindows()
for file_org in image_files:
if not file_org in duplicate_files:
image_org = Image.open(os.path.join(image_folder, file_org))
pix_mean1 = ImageStat.Stat(image_org).mean

for file_check in image_files:
if file_check != file_org:
image_check = Image.open(
os.path.join(image_folder, file_check))
pix_mean2 = ImageStat.Stat(image_check).mean
print(pix_mean2)

if pix_mean1 == pix_mean2:
org_files.append(file_org)
duplicate_files.append(file_check)

print(duplicate_files)
print(org_files)
6 changes: 3 additions & 3 deletions Frame_Extraction.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
$ python main.py
Which will produce a folder called data with the images. There will be 2000+ images for example.mp4.
'''
import cv2
from cv2 import cv2
import numpy as np
import os

Expand All @@ -21,7 +21,7 @@
if not os.path.exists('data'):
os.makedirs('data')
except OSError:
print ('Error: Creating directory of data')
print('Error: Creating directory of data')

currentFrame = 0
while(True):
Expand All @@ -30,7 +30,7 @@

# Saves image of the current frame in jpg file
name = './data/frame' + str(currentFrame) + '.jpg'
print ('Creating...' + name)
print('Creating...' + name)
cv2.imwrite(name, frame)

# To stop duplicate images
Expand Down
Binary file added __pycache__/Duplicate_detection1.cpython-37.pyc
Binary file not shown.
Binary file added __pycache__/Frame_Extraction.cpython-37.pyc
Binary file not shown.
Binary file added __pycache__/detect_blur.cpython-37.pyc
Binary file not shown.
Binary file added __pycache__/duplicate.cpython-37.pyc
Binary file not shown.
Binary file added blur_clear/frame0.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added blur_clear/frame1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added blur_clear/frame100.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added blur_clear/frame101.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added blur_clear/frame102.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added blur_clear/frame103.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added blur_clear/frame107.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added blur_clear/frame108.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added blur_clear/frame114.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added blur_clear/frame115.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added blur_clear/frame116.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added blur_clear/frame173.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added blur_clear/frame174.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added blur_clear/frame177.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added blur_clear/frame2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added blur_clear/frame3.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added blur_clear/frame34.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added blur_clear/frame35.jpg
Binary file added blur_clear/frame4.jpg
Binary file added blur_clear/frame5.jpg
Binary file added blur_clear/frame6.jpg
Binary file added blur_clear/frame7.jpg
Binary file added blur_clear/frame91.jpg
Binary file added blur_clear/frame95.jpg
Binary file added blur_clear/frame98.jpg
Binary file added blur_clear/frame99.jpg
Binary file added data/frame0.jpg
Binary file added data/frame1.jpg
Binary file added data/frame10.jpg
Binary file added data/frame100.jpg
Binary file added data/frame101.jpg
Binary file added data/frame102.jpg
Binary file added data/frame103.jpg
Binary file added data/frame104.jpg
Binary file added data/frame105.jpg
Binary file added data/frame106.jpg
Binary file added data/frame107.jpg
Binary file added data/frame108.jpg
Binary file added data/frame109.jpg
Binary file added data/frame11.jpg
Binary file added data/frame110.jpg
Binary file added data/frame111.jpg
Binary file added data/frame112.jpg
Binary file added data/frame113.jpg
Binary file added data/frame114.jpg
Binary file added data/frame115.jpg
Binary file added data/frame116.jpg
Binary file added data/frame117.jpg
Binary file added data/frame118.jpg
Binary file added data/frame119.jpg
Binary file added data/frame12.jpg
Binary file added data/frame120.jpg
Binary file added data/frame121.jpg
Binary file added data/frame122.jpg
Binary file added data/frame123.jpg
Binary file added data/frame124.jpg
Binary file added data/frame125.jpg
Binary file added data/frame126.jpg
Binary file added data/frame127.jpg
Binary file added data/frame128.jpg
Binary file added data/frame129.jpg
Binary file added data/frame13.jpg
Binary file added data/frame130.jpg
Binary file added data/frame131.jpg
Binary file added data/frame132.jpg
Binary file added data/frame133.jpg
Binary file added data/frame134.jpg
Binary file added data/frame135.jpg
Binary file added data/frame136.jpg
Binary file added data/frame137.jpg
Binary file added data/frame138.jpg
Binary file added data/frame139.jpg
Binary file added data/frame14.jpg
Binary file added data/frame140.jpg
Binary file added data/frame141.jpg
Binary file added data/frame142.jpg
Binary file added data/frame143.jpg
Binary file added data/frame144.jpg
Binary file added data/frame145.jpg
Binary file added data/frame146.jpg
Binary file added data/frame147.jpg
Binary file added data/frame148.jpg
Binary file added data/frame149.jpg
Binary file added data/frame15.jpg
Binary file added data/frame150.jpg
Binary file added data/frame151.jpg
Binary file added data/frame152.jpg
Binary file added data/frame153.jpg
Binary file added data/frame154.jpg
Binary file added data/frame155.jpg
Binary file added data/frame156.jpg
Binary file added data/frame157.jpg
Binary file added data/frame158.jpg
Binary file added data/frame159.jpg
Binary file added data/frame16.jpg
Binary file added data/frame160.jpg
Binary file added data/frame161.jpg
Binary file added data/frame162.jpg
Binary file added data/frame163.jpg
Binary file added data/frame164.jpg
Binary file added data/frame165.jpg
Binary file added data/frame166.jpg
Binary file added data/frame167.jpg
Binary file added data/frame168.jpg
Binary file added data/frame169.jpg
Binary file added data/frame17.jpg
Binary file added data/frame170.jpg
Binary file added data/frame171.jpg
Binary file added data/frame172.jpg
Binary file added data/frame173.jpg
Binary file added data/frame174.jpg
Binary file added data/frame175.jpg
Binary file added data/frame176.jpg
Binary file added data/frame177.jpg
Binary file added data/frame178.jpg
Binary file added data/frame179.jpg
Binary file added data/frame18.jpg
Binary file added data/frame180.jpg
Binary file added data/frame181.jpg
Binary file added data/frame182.jpg
Binary file added data/frame183.jpg
Binary file added data/frame184.jpg
Binary file added data/frame19.jpg
Binary file added data/frame2.jpg
Binary file added data/frame20.jpg
Binary file added data/frame21.jpg
Binary file added data/frame22.jpg
Binary file added data/frame23.jpg
Binary file added data/frame24.jpg
Binary file added data/frame25.jpg
Binary file added data/frame26.jpg
Binary file added data/frame27.jpg
Binary file added data/frame28.jpg
Binary file added data/frame29.jpg
Binary file added data/frame3.jpg
Binary file added data/frame30.jpg
Binary file added data/frame31.jpg
Binary file added data/frame32.jpg
Binary file added data/frame33.jpg
Binary file added data/frame34.jpg
Binary file added data/frame35.jpg
Binary file added data/frame36.jpg
Binary file added data/frame37.jpg
Binary file added data/frame38.jpg
Binary file added data/frame39.jpg
Binary file added data/frame4.jpg
Binary file added data/frame40.jpg
Binary file added data/frame41.jpg
Binary file added data/frame42.jpg
Binary file added data/frame43.jpg
Binary file added data/frame44.jpg
Binary file added data/frame45.jpg
Binary file added data/frame46.jpg
Binary file added data/frame47.jpg
Binary file added data/frame48.jpg
Binary file added data/frame49.jpg
Binary file added data/frame5.jpg
Binary file added data/frame50.jpg
Binary file added data/frame51.jpg
Binary file added data/frame52.jpg
Binary file added data/frame53.jpg
Binary file added data/frame54.jpg
Binary file added data/frame55.jpg
Binary file added data/frame56.jpg
Binary file added data/frame57.jpg
Binary file added data/frame58.jpg
Binary file added data/frame59.jpg
Binary file added data/frame6.jpg
Binary file added data/frame60.jpg
Binary file added data/frame61.jpg
Binary file added data/frame62.jpg
Binary file added data/frame63.jpg
Binary file added data/frame64.jpg
Binary file added data/frame65.jpg
Binary file added data/frame66.jpg
Binary file added data/frame67.jpg
Binary file added data/frame68.jpg
Binary file added data/frame69.jpg
Binary file added data/frame7.jpg
Binary file added data/frame70.jpg
Binary file added data/frame71.jpg
Binary file added data/frame72.jpg
Binary file added data/frame73.jpg
Binary file added data/frame74.jpg
Binary file added data/frame75.jpg
Binary file added data/frame76.jpg
Binary file added data/frame77.jpg
Binary file added data/frame78.jpg
Binary file added data/frame79.jpg
Binary file added data/frame8.jpg
Binary file added data/frame80.jpg
Binary file added data/frame81.jpg
Binary file added data/frame82.jpg
Binary file added data/frame83.jpg
Binary file added data/frame84.jpg
Binary file added data/frame85.jpg
Binary file added data/frame86.jpg
Binary file added data/frame87.jpg
Binary file added data/frame88.jpg
Binary file added data/frame89.jpg
Binary file added data/frame9.jpg
Binary file added data/frame90.jpg
Binary file added data/frame91.jpg
Binary file added data/frame92.jpg
Binary file added data/frame93.jpg
Binary file added data/frame94.jpg
Binary file added data/frame95.jpg
Binary file added data/frame96.jpg
Binary file added data/frame97.jpg
Binary file added data/frame98.jpg
Binary file added data/frame99.jpg
2 changes: 1 addition & 1 deletion detect_blur.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# import the necessary packages
from imutils import paths
import argparse
import cv2
from cv2 import cv2
import os
import shutil

Expand Down
Binary file added detecting-blur/__pycache__/test.cpython-37.pyc
Binary file not shown.
41 changes: 41 additions & 0 deletions scanner/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# Miscellaneous
*.class
*.log
*.pyc
*.swp
.DS_Store
.atom/
.buildlog/
.history
.svn/

# IntelliJ related
*.iml
*.ipr
*.iws
.idea/

# The .vscode folder contains launch configuration and tasks you configure in
# VS Code which you may wish to be included in version control, so this line
# is commented out by default.
#.vscode/

# Flutter/Dart/Pub related
**/doc/api/
**/ios/Flutter/.last_build_id
.dart_tool/
.flutter-plugins
.flutter-plugins-dependencies
.packages
.pub-cache/
.pub/
/build/

# Web related
lib/generated_plugin_registrant.dart

# Symbolication related
app.*.symbols

# Obfuscation related
app.*.map.json
10 changes: 10 additions & 0 deletions scanner/.metadata
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# This file tracks properties of this Flutter project.
# Used by Flutter tool to assess capabilities and perform upgrades etc.
#
# This file should be version controlled and should not be manually edited.

version:
revision: f30b7f4db93ee747cd727df747941a28ead25ff5
channel: stable

project_type: app
16 changes: 16 additions & 0 deletions scanner/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# scanner

A new Flutter project.

## Getting Started

This project is a starting point for a Flutter application.

A few resources to get you started if this is your first Flutter project:

- [Lab: Write your first Flutter app](https://flutter.dev/docs/get-started/codelab)
- [Cookbook: Useful Flutter samples](https://flutter.dev/docs/cookbook)

For help getting started with Flutter, view our
[online documentation](https://flutter.dev/docs), which offers tutorials,
samples, guidance on mobile development, and a full API reference.
11 changes: 11 additions & 0 deletions scanner/android/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
gradle-wrapper.jar
/.gradle
/captures/
/gradlew
/gradlew.bat
/local.properties
GeneratedPluginRegistrant.java

# Remember to never publicly share your keystore.
# See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app
key.properties
63 changes: 63 additions & 0 deletions scanner/android/app/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
def localProperties = new Properties()
def localPropertiesFile = rootProject.file('local.properties')
if (localPropertiesFile.exists()) {
localPropertiesFile.withReader('UTF-8') { reader ->
localProperties.load(reader)
}
}

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'
}

def flutterVersionName = localProperties.getProperty('flutter.versionName')
if (flutterVersionName == null) {
flutterVersionName = '1.0'
}

apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"

android {
compileSdkVersion 29

sourceSets {
main.java.srcDirs += 'src/main/kotlin'
}

lintOptions {
disable 'InvalidPackage'
}

defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId "com.example.scanner"
minSdkVersion 16
targetSdkVersion 29
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
}

buildTypes {
release {
// TODO: Add your own signing config for the release build.
// Signing with the debug keys for now, so `flutter run --release` works.
signingConfig signingConfigs.debug
}
}
}

flutter {
source '../..'
}

dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
}
7 changes: 7 additions & 0 deletions scanner/android/app/src/debug/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.scanner">
<!-- Flutter 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>
47 changes: 47 additions & 0 deletions scanner/android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.scanner">
<!-- io.flutter.app.FlutterApplication is an android.app.Application that
calls FlutterMain.startInitialization(this); in its onCreate method.
In most cases you can leave this as-is, but you if you want to provide
additional functionality it is fine to subclass or reimplement
FlutterApplication and put your custom class here. -->
<application
android:name="io.flutter.app.FlutterApplication"
android:label="scanner"
android:icon="@mipmap/ic_launcher">
<activity
android:name=".MainActivity"
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"
/>
<!-- Displays an Android View that continues showing the launch screen
Drawable until Flutter paints its first frame, then this splash
screen fades out. A splash screen is useful to avoid any visual
gap between the end of Android's launch screen and the painting of
Flutter's first frame. -->
<meta-data
android:name="io.flutter.embedding.android.SplashScreenDrawable"
android:resource="@drawable/launch_background"
/>
<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>
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
package com.example.scanner

import io.flutter.embedding.android.FlutterActivity

class MainActivity: FlutterActivity() {
}
12 changes: 12 additions & 0 deletions scanner/android/app/src/main/res/drawable/launch_background.xml
Original file line number Diff line number Diff line change
@@ -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>
18 changes: 18 additions & 0 deletions scanner/android/app/src/main/res/values/styles.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- Theme applied to the Android Window while the process is starting -->
<style name="LaunchTheme" parent="@android:style/Theme.Black.NoTitleBar">
<!-- Show a splash screen on the activity. Automatically removed when
Flutter 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:color/white</item>
</style>
</resources>
7 changes: 7 additions & 0 deletions scanner/android/app/src/profile/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.scanner">
<!-- Flutter 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>
31 changes: 31 additions & 0 deletions scanner/android/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
buildscript {
ext.kotlin_version = '1.3.50'
repositories {
google()
jcenter()
}

dependencies {
classpath 'com.android.tools.build:gradle:3.5.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}

allprojects {
repositories {
google()
jcenter()
}
}

rootProject.buildDir = '../build'
subprojects {
project.buildDir = "${rootProject.buildDir}/${project.name}"
}
subprojects {
project.evaluationDependsOn(':app')
}

task clean(type: Delete) {
delete rootProject.buildDir
}
3 changes: 3 additions & 0 deletions scanner/android/gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
org.gradle.jvmargs=-Xmx1536M
android.useAndroidX=true
android.enableJetifier=true
6 changes: 6 additions & 0 deletions scanner/android/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#Fri Jun 23 08:50:38 CEST 2017
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.2-all.zip
Loading

0 comments on commit 8700d79

Please sign in to comment.