Skip to content

Commit 6af19b5

Browse files
committed
Initial commit
0 parents  commit 6af19b5

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+1392
-0
lines changed

.gitignore

+183
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,183 @@
1+
*.iml
2+
.gradle
3+
/local.properties
4+
/.idea/libraries
5+
/.idea/modules.xml
6+
/.idea/workspace.xml
7+
.DS_Store
8+
/build
9+
/captures
10+
.externalNativeBuild
11+
### Kotlin template
12+
# Compiled class file
13+
*.class
14+
15+
# Log file
16+
*.log
17+
18+
# BlueJ files
19+
*.ctxt
20+
21+
# Mobile Tools for Java (J2ME)
22+
.mtj.tmp/
23+
24+
# Package Files #
25+
*.jar
26+
*.war
27+
*.nar
28+
*.ear
29+
*.zip
30+
*.tar.gz
31+
*.rar
32+
33+
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
34+
hs_err_pid*
35+
### JetBrains template
36+
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and WebStorm
37+
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
38+
39+
# User-specific stuff
40+
.idea/**/workspace.xml
41+
.idea/**/tasks.xml
42+
.idea/**/usage.statistics.xml
43+
.idea/**/dictionaries
44+
.idea/**/shelf
45+
46+
# Sensitive or high-churn files
47+
.idea/**/dataSources/
48+
.idea/**/dataSources.ids
49+
.idea/**/dataSources.local.xml
50+
.idea/**/sqlDataSources.xml
51+
.idea/**/dynamic.xml
52+
.idea/**/uiDesigner.xml
53+
.idea/**/dbnavigator.xml
54+
55+
# Gradle
56+
.idea/**/gradle.xml
57+
.idea/**/libraries
58+
59+
# Gradle and Maven with auto-import
60+
# When using Gradle or Maven with auto-import, you should exclude module files,
61+
# since they will be recreated, and may cause churn. Uncomment if using
62+
# auto-import.
63+
# .idea/modules.xml
64+
# .idea/*.iml
65+
# .idea/modules
66+
67+
# CMake
68+
cmake-build-*/
69+
70+
# Mongo Explorer plugin
71+
.idea/**/mongoSettings.xml
72+
73+
# File-based project format
74+
*.iws
75+
76+
# IntelliJ
77+
out/
78+
79+
# mpeltonen/sbt-idea plugin
80+
.idea_modules/
81+
82+
# JIRA plugin
83+
atlassian-ide-plugin.xml
84+
85+
# Cursive Clojure plugin
86+
.idea/replstate.xml
87+
88+
# Crashlytics plugin (for Android Studio and IntelliJ)
89+
com_crashlytics_export_strings.xml
90+
crashlytics.properties
91+
crashlytics-build.properties
92+
fabric.properties
93+
94+
# Editor-based Rest Client
95+
.idea/httpRequests
96+
### Gradle template
97+
/build/
98+
99+
# Ignore Gradle GUI config
100+
gradle-app.setting
101+
102+
# Avoid ignoring Gradle wrapper jar file (.jar files are usually ignored)
103+
!gradle-wrapper.jar
104+
105+
# Cache of project
106+
.gradletasknamecache
107+
108+
# # Work around https://youtrack.jetbrains.com/issue/IDEA-116898
109+
# gradle/wrapper/gradle-wrapper.properties
110+
### Java template
111+
# Compiled class file
112+
113+
# Log file
114+
115+
# BlueJ files
116+
117+
# Mobile Tools for Java (J2ME)
118+
119+
# Package Files #
120+
121+
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
122+
### Android template
123+
# Built application files
124+
*.apk
125+
*.ap_
126+
127+
# Files for the ART/Dalvik VM
128+
*.dex
129+
130+
# Java class files
131+
132+
# Generated files
133+
bin/
134+
gen/
135+
136+
# Gradle files
137+
.gradle/
138+
build/
139+
140+
# Local configuration file (sdk path, etc)
141+
local.properties
142+
143+
# Proguard folder generated by Eclipse
144+
proguard/
145+
146+
# Log Files
147+
148+
# Android Studio Navigation editor temp files
149+
.navigation/
150+
151+
# Android Studio captures folder
152+
captures/
153+
154+
# IntelliJ
155+
.idea/workspace.xml
156+
.idea/tasks.xml
157+
.idea/gradle.xml
158+
.idea/assetWizardSettings.xml
159+
.idea/dictionaries
160+
.idea/libraries
161+
.idea/caches
162+
163+
# Keystore files
164+
# Uncomment the following line if you do not want to check your keystore files in.
165+
#*.jks
166+
167+
# External native build folder generated in Android Studio 2.2 and later
168+
169+
# Google Services (e.g. APIs or Firebase)
170+
google-services.json
171+
172+
# Freeline
173+
freeline.py
174+
freeline/
175+
freeline_project_description.json
176+
177+
# fastlane
178+
fastlane/report.xml
179+
fastlane/Preview.html
180+
fastlane/screenshots
181+
fastlane/test_output
182+
fastlane/readme.md
183+
/.idea/

app/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/build

app/build.gradle

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
apply plugin: 'com.android.application'
2+
3+
apply plugin: 'kotlin-android'
4+
5+
apply plugin: 'kotlin-android-extensions'
6+
7+
android {
8+
compileSdkVersion 27
9+
defaultConfig {
10+
applicationId "com.quickbirdstudios.yuv2mat"
11+
minSdkVersion 19
12+
targetSdkVersion 27
13+
versionCode 1
14+
versionName "1.0"
15+
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
16+
}
17+
buildTypes {
18+
release {
19+
minifyEnabled false
20+
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
21+
}
22+
}
23+
}
24+
25+
dependencies {
26+
implementation fileTree(dir: 'libs', include: ['*.jar'])
27+
implementation"org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
28+
implementation 'com.android.support:appcompat-v7:27.1.1'
29+
implementation 'com.android.support.constraint:constraint-layout:1.1.2'
30+
testImplementation 'junit:junit:4.12'
31+
androidTestImplementation 'com.android.support.test:runner:1.0.2'
32+
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
33+
}

app/proguard-rules.pro

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Add project specific ProGuard rules here.
2+
# You can control the set of applied configuration files using the
3+
# proguardFiles setting in build.gradle.
4+
#
5+
# For more details, see
6+
# http://developer.android.com/guide/developing/tools/proguard.html
7+
8+
# If your project uses WebView with JS, uncomment the following
9+
# and specify the fully qualified class name to the JavaScript interface
10+
# class:
11+
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
12+
# public *;
13+
#}
14+
15+
# Uncomment this to preserve the line number information for
16+
# debugging stack traces.
17+
#-keepattributes SourceFile,LineNumberTable
18+
19+
# If you keep the line number information, uncomment this to
20+
# hide the original source file name.
21+
#-renamesourcefileattribute SourceFile
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
package com.quickbirdstudios.yuv2mat
2+
3+
import android.support.test.InstrumentationRegistry
4+
import android.support.test.runner.AndroidJUnit4
5+
6+
import org.junit.Test
7+
import org.junit.runner.RunWith
8+
9+
import org.junit.Assert.*
10+
11+
/**
12+
* Instrumented test, which will execute on an Android device.
13+
*
14+
* See [testing documentation](http://d.android.com/tools/testing).
15+
*/
16+
@RunWith(AndroidJUnit4::class)
17+
class ExampleInstrumentedTest {
18+
@Test
19+
fun useAppContext() {
20+
// Context of the app under test.
21+
val appContext = InstrumentationRegistry.getTargetContext()
22+
assertEquals("com.quickbirdstudios.yuv2mat", appContext.packageName)
23+
}
24+
}

app/src/main/AndroidManifest.xml

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3+
package="com.quickbirdstudios.yuv2mat">
4+
5+
<application
6+
android:allowBackup="true"
7+
android:icon="@mipmap/ic_launcher"
8+
android:label="@string/app_name"
9+
android:roundIcon="@mipmap/ic_launcher_round"
10+
android:supportsRtl="true"
11+
android:theme="@style/AppTheme">
12+
<activity android:name=".MainActivity">
13+
<intent-filter>
14+
<action android:name="android.intent.action.MAIN" />
15+
16+
<category android:name="android.intent.category.LAUNCHER" />
17+
</intent-filter>
18+
</activity>
19+
</application>
20+
21+
</manifest>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
package com.quickbirdstudios.yuv2mat
2+
3+
import android.support.v7.app.AppCompatActivity
4+
import android.os.Bundle
5+
6+
class MainActivity : AppCompatActivity() {
7+
8+
override fun onCreate(savedInstanceState: Bundle?) {
9+
super.onCreate(savedInstanceState)
10+
setContentView(R.layout.activity_main)
11+
}
12+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
<vector xmlns:android="http://schemas.android.com/apk/res/android"
2+
xmlns:aapt="http://schemas.android.com/aapt"
3+
android:width="108dp"
4+
android:height="108dp"
5+
android:viewportHeight="108"
6+
android:viewportWidth="108">
7+
<path
8+
android:fillType="evenOdd"
9+
android:pathData="M32,64C32,64 38.39,52.99 44.13,50.95C51.37,48.37 70.14,49.57 70.14,49.57L108.26,87.69L108,109.01L75.97,107.97L32,64Z"
10+
android:strokeColor="#00000000"
11+
android:strokeWidth="1">
12+
<aapt:attr name="android:fillColor">
13+
<gradient
14+
android:endX="78.5885"
15+
android:endY="90.9159"
16+
android:startX="48.7653"
17+
android:startY="61.0927"
18+
android:type="linear">
19+
<item
20+
android:color="#44000000"
21+
android:offset="0.0" />
22+
<item
23+
android:color="#00000000"
24+
android:offset="1.0" />
25+
</gradient>
26+
</aapt:attr>
27+
</path>
28+
<path
29+
android:fillColor="#FFFFFF"
30+
android:fillType="nonZero"
31+
android:pathData="M66.94,46.02L66.94,46.02C72.44,50.07 76,56.61 76,64L32,64C32,56.61 35.56,50.11 40.98,46.06L36.18,41.19C35.45,40.45 35.45,39.3 36.18,38.56C36.91,37.81 38.05,37.81 38.78,38.56L44.25,44.05C47.18,42.57 50.48,41.71 54,41.71C57.48,41.71 60.78,42.57 63.68,44.05L69.11,38.56C69.84,37.81 70.98,37.81 71.71,38.56C72.44,39.3 72.44,40.45 71.71,41.19L66.94,46.02ZM62.94,56.92C64.08,56.92 65,56.01 65,54.88C65,53.76 64.08,52.85 62.94,52.85C61.8,52.85 60.88,53.76 60.88,54.88C60.88,56.01 61.8,56.92 62.94,56.92ZM45.06,56.92C46.2,56.92 47.13,56.01 47.13,54.88C47.13,53.76 46.2,52.85 45.06,52.85C43.92,52.85 43,53.76 43,54.88C43,56.01 43.92,56.92 45.06,56.92Z"
32+
android:strokeColor="#00000000"
33+
android:strokeWidth="1" />
34+
</vector>

0 commit comments

Comments
 (0)