V1.0(1)
15
.gitignore
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
*.iml
|
||||
.gradle
|
||||
/local.properties
|
||||
/.idea/caches
|
||||
/.idea/libraries
|
||||
/.idea/modules.xml
|
||||
/.idea/workspace.xml
|
||||
/.idea/navEditor.xml
|
||||
/.idea/assetWizardSettings.xml
|
||||
.DS_Store
|
||||
/build
|
||||
/captures
|
||||
.externalNativeBuild
|
||||
.cxx
|
||||
local.properties
|
||||
BIN
DrawSketch.jks
Normal file
1
app/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
/build
|
||||
76
app/build.gradle.kts
Normal file
@ -0,0 +1,76 @@
|
||||
import java.util.Date
|
||||
import java.text.SimpleDateFormat
|
||||
plugins {
|
||||
alias(libs.plugins.android.application)
|
||||
alias(libs.plugins.kotlin.android)
|
||||
id("io.objectbox")
|
||||
id ("kotlin-kapt")
|
||||
}
|
||||
val timestamp = SimpleDateFormat("MM_dd_HH_mm").format(Date())
|
||||
android {
|
||||
namespace = "com.drawing.drawsketch"
|
||||
compileSdk = 35
|
||||
|
||||
defaultConfig {
|
||||
applicationId = "com.drawing.drawsketch"
|
||||
minSdk = 24
|
||||
targetSdk = 35
|
||||
versionCode = 1
|
||||
versionName = "1.0"
|
||||
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
||||
setProperty(
|
||||
"archivesBaseName",
|
||||
"Draw Sketch_V" + versionName + "(${versionCode})_$timestamp"
|
||||
)
|
||||
}
|
||||
|
||||
buildTypes {
|
||||
release {
|
||||
isMinifyEnabled = true
|
||||
proguardFiles(
|
||||
getDefaultProguardFile("proguard-android-optimize.txt"),
|
||||
"proguard-rules.pro"
|
||||
)
|
||||
}
|
||||
}
|
||||
compileOptions {
|
||||
sourceCompatibility = JavaVersion.VERSION_11
|
||||
targetCompatibility = JavaVersion.VERSION_11
|
||||
}
|
||||
kotlinOptions {
|
||||
jvmTarget = "11"
|
||||
}
|
||||
buildFeatures{
|
||||
viewBinding = true
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
|
||||
implementation(libs.androidx.core.ktx)
|
||||
implementation(libs.androidx.appcompat)
|
||||
implementation(libs.material)
|
||||
implementation(libs.androidx.activity)
|
||||
implementation(libs.androidx.constraintlayout)
|
||||
testImplementation(libs.junit)
|
||||
androidTestImplementation(libs.androidx.junit)
|
||||
androidTestImplementation(libs.androidx.espresso.core)
|
||||
|
||||
implementation ("com.github.bumptech.glide:glide:4.16.0")
|
||||
kapt ("com.github.bumptech.glide:compiler:4.16.0")
|
||||
implementation ("com.caverock:androidsvg:1.4")
|
||||
|
||||
val camerax_version = "1.1.0-beta01"
|
||||
//noinspection GradleDependency
|
||||
implementation("androidx.camera:camera-core:${camerax_version}")
|
||||
//noinspection GradleDependency
|
||||
implementation("androidx.camera:camera-camera2:${camerax_version}")
|
||||
//noinspection GradleDependency
|
||||
implementation("androidx.camera:camera-lifecycle:${camerax_version}")
|
||||
//noinspection GradleDependency
|
||||
// implementation("androidx.camera:camera-video:${camerax_version}")
|
||||
//noinspection GradleDependency
|
||||
implementation("androidx.camera:camera-view:${camerax_version}")
|
||||
//noinspection GradleDependency
|
||||
implementation("androidx.camera:camera-extensions:${camerax_version}")
|
||||
}
|
||||
56
app/objectbox-models/default.json
Normal file
@ -0,0 +1,56 @@
|
||||
{
|
||||
"_note1": "KEEP THIS FILE! Check it into a version control system (VCS) like git.",
|
||||
"_note2": "ObjectBox manages crucial IDs for your object model. See docs for details.",
|
||||
"_note3": "If you have VCS merge conflicts, you must resolve them according to ObjectBox docs.",
|
||||
"entities": [
|
||||
{
|
||||
"id": "1:8100968151377306278",
|
||||
"lastPropertyId": "2:4034128162217158384",
|
||||
"name": "ResSvg",
|
||||
"properties": [
|
||||
{
|
||||
"id": "1:6002898615830092731",
|
||||
"name": "id",
|
||||
"type": 6,
|
||||
"flags": 1
|
||||
},
|
||||
{
|
||||
"id": "2:4034128162217158384",
|
||||
"name": "path",
|
||||
"type": 9
|
||||
}
|
||||
],
|
||||
"relations": []
|
||||
},
|
||||
{
|
||||
"id": "2:5539268867661506202",
|
||||
"lastPropertyId": "2:2048956036538624768",
|
||||
"name": "UpLoad",
|
||||
"properties": [
|
||||
{
|
||||
"id": "1:4708216963827249931",
|
||||
"name": "id",
|
||||
"type": 6,
|
||||
"flags": 1
|
||||
},
|
||||
{
|
||||
"id": "2:2048956036538624768",
|
||||
"name": "uri",
|
||||
"type": 9
|
||||
}
|
||||
],
|
||||
"relations": []
|
||||
}
|
||||
],
|
||||
"lastEntityId": "2:5539268867661506202",
|
||||
"lastIndexId": "0:0",
|
||||
"lastRelationId": "0:0",
|
||||
"lastSequenceId": "0:0",
|
||||
"modelVersion": 5,
|
||||
"modelVersionParserMinimum": 5,
|
||||
"retiredEntityUids": [],
|
||||
"retiredIndexUids": [],
|
||||
"retiredPropertyUids": [],
|
||||
"retiredRelationUids": [],
|
||||
"version": 1
|
||||
}
|
||||
21
app/proguard-rules.pro
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
# Add project specific ProGuard rules here.
|
||||
# You can control the set of applied configuration files using the
|
||||
# proguardFiles setting in build.gradle.
|
||||
#
|
||||
# For more details, see
|
||||
# http://developer.android.com/guide/developing/tools/proguard.html
|
||||
|
||||
# If your project uses WebView with JS, uncomment the following
|
||||
# and specify the fully qualified class name to the JavaScript interface
|
||||
# class:
|
||||
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
|
||||
# public *;
|
||||
#}
|
||||
|
||||
# Uncomment this to preserve the line number information for
|
||||
# debugging stack traces.
|
||||
#-keepattributes SourceFile,LineNumberTable
|
||||
|
||||
# If you keep the line number information, uncomment this to
|
||||
# hide the original source file name.
|
||||
#-renamesourcefileattribute SourceFile
|
||||
@ -0,0 +1,24 @@
|
||||
package com.drawing.drawsketch
|
||||
|
||||
import androidx.test.platform.app.InstrumentationRegistry
|
||||
import androidx.test.ext.junit.runners.AndroidJUnit4
|
||||
|
||||
import org.junit.Test
|
||||
import org.junit.runner.RunWith
|
||||
|
||||
import org.junit.Assert.*
|
||||
|
||||
/**
|
||||
* Instrumented test, which will execute on an Android device.
|
||||
*
|
||||
* See [testing documentation](http://d.android.com/tools/testing).
|
||||
*/
|
||||
@RunWith(AndroidJUnit4::class)
|
||||
class ExampleInstrumentedTest {
|
||||
@Test
|
||||
fun useAppContext() {
|
||||
// Context of the app under test.
|
||||
val appContext = InstrumentationRegistry.getInstrumentation().targetContext
|
||||
assertEquals("com.drawing.drawsketch", appContext.packageName)
|
||||
}
|
||||
}
|
||||
64
app/src/main/AndroidManifest.xml
Normal file
@ -0,0 +1,64 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools">
|
||||
|
||||
<uses-feature
|
||||
android:name="android.hardware.camera"
|
||||
android:required="false" />
|
||||
|
||||
<uses-permission android:name="android.permission.CAMERA" />
|
||||
<uses-permission android:name="android.permission.INTERNET" />
|
||||
<uses-permission
|
||||
android:name="android.permission.READ_EXTERNAL_STORAGE"
|
||||
android:maxSdkVersion="32" />
|
||||
<uses-permission
|
||||
android:name="android.permission.READ_MEDIA_IMAGES"
|
||||
tools:ignore="SelectedPhotoAccess" />
|
||||
|
||||
<application
|
||||
android:name=".App"
|
||||
android:allowBackup="true"
|
||||
android:dataExtractionRules="@xml/data_extraction_rules"
|
||||
android:fullBackupContent="@xml/backup_rules"
|
||||
android:icon="@mipmap/logo"
|
||||
android:label="@string/app_name"
|
||||
android:roundIcon="@mipmap/logo"
|
||||
android:supportsRtl="true"
|
||||
android:theme="@style/Theme.DrawSketch"
|
||||
tools:targetApi="31">
|
||||
<activity
|
||||
android:name=".collection.CollectionActivity"
|
||||
android:exported="false" />
|
||||
<activity
|
||||
android:name=".upload.UploadActivity"
|
||||
android:exported="false" />
|
||||
<activity
|
||||
android:name=".preview.PreviewActivity"
|
||||
android:exported="false" />
|
||||
<activity
|
||||
android:name=".all.CategoryListActivity"
|
||||
android:exported="false" />
|
||||
<activity
|
||||
android:name=".FullWelcomeActivity"
|
||||
android:exported="true">
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN" />
|
||||
|
||||
<category android:name="android.intent.category.LAUNCHER" />
|
||||
</intent-filter>
|
||||
</activity>
|
||||
<activity
|
||||
android:name=".main.MainActivity"
|
||||
android:exported="true" />
|
||||
<provider
|
||||
android:name="androidx.core.content.FileProvider"
|
||||
android:authorities="${applicationId}.fileprovider"
|
||||
android:exported="false"
|
||||
android:grantUriPermissions="true">
|
||||
<meta-data
|
||||
android:name="android.support.FILE_PROVIDER_PATHS"
|
||||
android:resource="@xml/file_paths" />
|
||||
</provider>
|
||||
</application>
|
||||
|
||||
</manifest>
|
||||
1
app/src/main/assets/kt_Aesthetic/1.svg
Normal file
|
After Width: | Height: | Size: 912 KiB |
1
app/src/main/assets/kt_Aesthetic/2.svg
Normal file
|
After Width: | Height: | Size: 140 KiB |
1
app/src/main/assets/kt_Aesthetic/3.svg
Normal file
|
After Width: | Height: | Size: 112 KiB |
1
app/src/main/assets/kt_Aesthetic/4.svg
Normal file
|
After Width: | Height: | Size: 6.0 KiB |
1
app/src/main/assets/kt_Aesthetic/5.svg
Normal file
|
After Width: | Height: | Size: 99 KiB |
1
app/src/main/assets/kt_Aesthetic/6.svg
Normal file
|
After Width: | Height: | Size: 7.1 KiB |
BIN
app/src/main/assets/kt_Animals/1.jpg
Normal file
|
After Width: | Height: | Size: 89 KiB |
1
app/src/main/assets/kt_Animals/1.svg
Normal file
|
After Width: | Height: | Size: 69 KiB |
BIN
app/src/main/assets/kt_Animals/10.jpg
Normal file
|
After Width: | Height: | Size: 29 KiB |
BIN
app/src/main/assets/kt_Animals/11.jpg
Normal file
|
After Width: | Height: | Size: 55 KiB |
BIN
app/src/main/assets/kt_Animals/12.jpg
Normal file
|
After Width: | Height: | Size: 44 KiB |
BIN
app/src/main/assets/kt_Animals/13.jpg
Normal file
|
After Width: | Height: | Size: 37 KiB |
BIN
app/src/main/assets/kt_Animals/14.jpg
Normal file
|
After Width: | Height: | Size: 12 KiB |
BIN
app/src/main/assets/kt_Animals/15.jpg
Normal file
|
After Width: | Height: | Size: 87 KiB |
BIN
app/src/main/assets/kt_Animals/16.jpg
Normal file
|
After Width: | Height: | Size: 21 KiB |
BIN
app/src/main/assets/kt_Animals/17.jpg
Normal file
|
After Width: | Height: | Size: 14 KiB |
BIN
app/src/main/assets/kt_Animals/18.jpg
Normal file
|
After Width: | Height: | Size: 19 KiB |
BIN
app/src/main/assets/kt_Animals/19.jpg
Normal file
|
After Width: | Height: | Size: 18 KiB |
BIN
app/src/main/assets/kt_Animals/2.jpg
Normal file
|
After Width: | Height: | Size: 108 KiB |
1
app/src/main/assets/kt_Animals/2.svg
Normal file
|
After Width: | Height: | Size: 27 KiB |
BIN
app/src/main/assets/kt_Animals/20.jpg
Normal file
|
After Width: | Height: | Size: 13 KiB |
BIN
app/src/main/assets/kt_Animals/21.jpg
Normal file
|
After Width: | Height: | Size: 12 KiB |
BIN
app/src/main/assets/kt_Animals/22.jpg
Normal file
|
After Width: | Height: | Size: 17 KiB |
BIN
app/src/main/assets/kt_Animals/23.jpg
Normal file
|
After Width: | Height: | Size: 18 KiB |
BIN
app/src/main/assets/kt_Animals/24.jpg
Normal file
|
After Width: | Height: | Size: 16 KiB |
BIN
app/src/main/assets/kt_Animals/25.jpg
Normal file
|
After Width: | Height: | Size: 9.0 KiB |
BIN
app/src/main/assets/kt_Animals/26.jpg
Normal file
|
After Width: | Height: | Size: 13 KiB |
BIN
app/src/main/assets/kt_Animals/27.jpg
Normal file
|
After Width: | Height: | Size: 21 KiB |
BIN
app/src/main/assets/kt_Animals/28.jpg
Normal file
|
After Width: | Height: | Size: 22 KiB |
BIN
app/src/main/assets/kt_Animals/29.jpg
Normal file
|
After Width: | Height: | Size: 29 KiB |
BIN
app/src/main/assets/kt_Animals/3.jpg
Normal file
|
After Width: | Height: | Size: 15 KiB |
1
app/src/main/assets/kt_Animals/3.svg
Normal file
|
After Width: | Height: | Size: 49 KiB |
BIN
app/src/main/assets/kt_Animals/30.jpg
Normal file
|
After Width: | Height: | Size: 33 KiB |
BIN
app/src/main/assets/kt_Animals/31.jpg
Normal file
|
After Width: | Height: | Size: 36 KiB |
BIN
app/src/main/assets/kt_Animals/4.jpg
Normal file
|
After Width: | Height: | Size: 26 KiB |
1
app/src/main/assets/kt_Animals/4.svg
Normal file
|
After Width: | Height: | Size: 40 KiB |
BIN
app/src/main/assets/kt_Animals/5.jpg
Normal file
|
After Width: | Height: | Size: 16 KiB |
1
app/src/main/assets/kt_Animals/5.svg
Normal file
|
After Width: | Height: | Size: 67 KiB |
BIN
app/src/main/assets/kt_Animals/6.jpg
Normal file
|
After Width: | Height: | Size: 18 KiB |
1
app/src/main/assets/kt_Animals/6.svg
Normal file
|
After Width: | Height: | Size: 115 KiB |
BIN
app/src/main/assets/kt_Animals/7.jpg
Normal file
|
After Width: | Height: | Size: 19 KiB |
1
app/src/main/assets/kt_Animals/7.svg
Normal file
|
After Width: | Height: | Size: 16 KiB |
BIN
app/src/main/assets/kt_Animals/8.jpg
Normal file
|
After Width: | Height: | Size: 17 KiB |
BIN
app/src/main/assets/kt_Animals/9.jpg
Normal file
|
After Width: | Height: | Size: 22 KiB |
BIN
app/src/main/assets/kt_Architectures/1.jpg
Normal file
|
After Width: | Height: | Size: 27 KiB |
1
app/src/main/assets/kt_Architectures/1.svg
Normal file
|
After Width: | Height: | Size: 1.8 MiB |
BIN
app/src/main/assets/kt_Architectures/10.jpg
Normal file
|
After Width: | Height: | Size: 44 KiB |
BIN
app/src/main/assets/kt_Architectures/11.jpg
Normal file
|
After Width: | Height: | Size: 28 KiB |
BIN
app/src/main/assets/kt_Architectures/12.jpg
Normal file
|
After Width: | Height: | Size: 44 KiB |
BIN
app/src/main/assets/kt_Architectures/13.jpg
Normal file
|
After Width: | Height: | Size: 29 KiB |
BIN
app/src/main/assets/kt_Architectures/14.jpg
Normal file
|
After Width: | Height: | Size: 41 KiB |
BIN
app/src/main/assets/kt_Architectures/15.jpg
Normal file
|
After Width: | Height: | Size: 30 KiB |
BIN
app/src/main/assets/kt_Architectures/16.jpg
Normal file
|
After Width: | Height: | Size: 20 KiB |
BIN
app/src/main/assets/kt_Architectures/17.jpg
Normal file
|
After Width: | Height: | Size: 27 KiB |
BIN
app/src/main/assets/kt_Architectures/18.jpg
Normal file
|
After Width: | Height: | Size: 29 KiB |
BIN
app/src/main/assets/kt_Architectures/19.jpg
Normal file
|
After Width: | Height: | Size: 26 KiB |
BIN
app/src/main/assets/kt_Architectures/2.jpg
Normal file
|
After Width: | Height: | Size: 28 KiB |
1
app/src/main/assets/kt_Architectures/2.svg
Normal file
|
After Width: | Height: | Size: 86 KiB |
BIN
app/src/main/assets/kt_Architectures/3.jpg
Normal file
|
After Width: | Height: | Size: 31 KiB |
1
app/src/main/assets/kt_Architectures/3.svg
Normal file
|
After Width: | Height: | Size: 7.6 KiB |
BIN
app/src/main/assets/kt_Architectures/4.jpg
Normal file
|
After Width: | Height: | Size: 31 KiB |
1
app/src/main/assets/kt_Architectures/4.svg
Normal file
|
After Width: | Height: | Size: 146 KiB |
BIN
app/src/main/assets/kt_Architectures/5.jpg
Normal file
|
After Width: | Height: | Size: 34 KiB |
1
app/src/main/assets/kt_Architectures/5.svg
Normal file
|
After Width: | Height: | Size: 14 KiB |
BIN
app/src/main/assets/kt_Architectures/6.jpg
Normal file
|
After Width: | Height: | Size: 27 KiB |
1
app/src/main/assets/kt_Architectures/6.svg
Normal file
|
After Width: | Height: | Size: 16 KiB |
BIN
app/src/main/assets/kt_Architectures/7.jpg
Normal file
|
After Width: | Height: | Size: 50 KiB |
BIN
app/src/main/assets/kt_Architectures/8.jpg
Normal file
|
After Width: | Height: | Size: 35 KiB |
BIN
app/src/main/assets/kt_Architectures/9.jpg
Normal file
|
After Width: | Height: | Size: 34 KiB |
BIN
app/src/main/assets/kt_Birds/1.jpg
Normal file
|
After Width: | Height: | Size: 13 KiB |
BIN
app/src/main/assets/kt_Birds/10.jpg
Normal file
|
After Width: | Height: | Size: 18 KiB |
BIN
app/src/main/assets/kt_Birds/11.jpg
Normal file
|
After Width: | Height: | Size: 21 KiB |
BIN
app/src/main/assets/kt_Birds/12.jpg
Normal file
|
After Width: | Height: | Size: 20 KiB |
BIN
app/src/main/assets/kt_Birds/13.jpg
Normal file
|
After Width: | Height: | Size: 21 KiB |
BIN
app/src/main/assets/kt_Birds/14.jpg
Normal file
|
After Width: | Height: | Size: 41 KiB |
BIN
app/src/main/assets/kt_Birds/15.jpg
Normal file
|
After Width: | Height: | Size: 21 KiB |
BIN
app/src/main/assets/kt_Birds/16.jpg
Normal file
|
After Width: | Height: | Size: 22 KiB |
BIN
app/src/main/assets/kt_Birds/17.jpg
Normal file
|
After Width: | Height: | Size: 33 KiB |
BIN
app/src/main/assets/kt_Birds/18.jpg
Normal file
|
After Width: | Height: | Size: 20 KiB |
BIN
app/src/main/assets/kt_Birds/19.jpg
Normal file
|
After Width: | Height: | Size: 18 KiB |
BIN
app/src/main/assets/kt_Birds/2.jpg
Normal file
|
After Width: | Height: | Size: 17 KiB |
BIN
app/src/main/assets/kt_Birds/3.jpg
Normal file
|
After Width: | Height: | Size: 22 KiB |
BIN
app/src/main/assets/kt_Birds/4.jpg
Normal file
|
After Width: | Height: | Size: 22 KiB |
BIN
app/src/main/assets/kt_Birds/5.jpg
Normal file
|
After Width: | Height: | Size: 17 KiB |
BIN
app/src/main/assets/kt_Birds/6.jpg
Normal file
|
After Width: | Height: | Size: 14 KiB |
BIN
app/src/main/assets/kt_Birds/7.jpg
Normal file
|
After Width: | Height: | Size: 22 KiB |
BIN
app/src/main/assets/kt_Birds/8.jpg
Normal file
|
After Width: | Height: | Size: 16 KiB |
BIN
app/src/main/assets/kt_Birds/9.jpg
Normal file
|
After Width: | Height: | Size: 16 KiB |
BIN
app/src/main/assets/kt_Butterfly/1.jpg
Normal file
|
After Width: | Height: | Size: 44 KiB |
BIN
app/src/main/assets/kt_Butterfly/10.jpg
Normal file
|
After Width: | Height: | Size: 19 KiB |
BIN
app/src/main/assets/kt_Butterfly/11.jpg
Normal file
|
After Width: | Height: | Size: 46 KiB |
BIN
app/src/main/assets/kt_Butterfly/12.jpg
Normal file
|
After Width: | Height: | Size: 19 KiB |