Skip to content

Commit 0ef5633

Browse files
authored
Merge pull request #14 from appdevforall/feat/ADFA-4193-sketch-to-ui-plugin
ADFA-4193 | Implement standalone Sketch to UI plugin
2 parents 116aa2d + b02d3b1 commit 0ef5633

92 files changed

Lines changed: 7426 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
2+
3+
plugins {
4+
id("com.android.application")
5+
id("org.jetbrains.kotlin.android")
6+
id("com.itsaky.androidide.plugins.build")
7+
}
8+
9+
pluginBuilder {
10+
pluginName = "sketch-to-ui"
11+
}
12+
13+
android {
14+
namespace = "com.appdevforall.sketchtoui.plugin"
15+
compileSdk = 35
16+
17+
defaultConfig {
18+
applicationId = "com.appdevforall.sketchtoui.plugin"
19+
minSdk = 28
20+
targetSdk = 35
21+
versionCode = 1
22+
versionName = "1.0.0"
23+
}
24+
25+
buildFeatures {
26+
viewBinding = true
27+
}
28+
29+
buildTypes {
30+
release {
31+
isMinifyEnabled = false
32+
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
33+
}
34+
}
35+
36+
compileOptions {
37+
sourceCompatibility = JavaVersion.VERSION_17
38+
targetCompatibility = JavaVersion.VERSION_17
39+
}
40+
41+
packaging {
42+
resources {
43+
excludes += setOf(
44+
"META-INF/versions/9/OSGI-INF/MANIFEST.MF",
45+
"META-INF/DEPENDENCIES",
46+
"META-INF/LICENSE",
47+
"META-INF/LICENSE.txt",
48+
"META-INF/NOTICE",
49+
"META-INF/NOTICE.txt"
50+
)
51+
}
52+
}
53+
}
54+
55+
kotlin {
56+
compilerOptions {
57+
jvmTarget.set(JvmTarget.JVM_17)
58+
}
59+
}
60+
61+
dependencies {
62+
compileOnly(files("../libs/plugin-api.jar"))
63+
64+
implementation("androidx.appcompat:appcompat:1.6.1")
65+
implementation("com.google.android.material:material:1.10.0")
66+
implementation("androidx.activity:activity-ktx:1.9.3")
67+
implementation("androidx.core:core-ktx:1.13.1")
68+
implementation("androidx.exifinterface:exifinterface:1.3.7")
69+
implementation("androidx.fragment:fragment-ktx:1.8.8")
70+
implementation("androidx.lifecycle:lifecycle-runtime-ktx:2.8.7")
71+
implementation("androidx.lifecycle:lifecycle-viewmodel-ktx:2.8.7")
72+
implementation("org.jetbrains.kotlin:kotlin-stdlib:2.3.0")
73+
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.9.0")
74+
implementation("io.insert-koin:koin-android:4.0.0")
75+
implementation("com.google.code.gson:gson:2.11.0")
76+
implementation("me.xdrop:fuzzywuzzy:1.4.0")
77+
implementation("com.google.ai.edge.litert:litert:1.0.1")
78+
implementation("com.google.ai.edge.litert:litert-support:1.0.1")
79+
implementation("com.google.ai.edge.litert:litert-gpu:1.0.1")
80+
implementation("com.google.mlkit:text-recognition:16.0.1")
81+
implementation("com.google.android.gms:play-services-mlkit-text-recognition-common:19.1.0")
82+
implementation("com.google.mlkit:vision-common:17.3.0")
83+
implementation("com.google.mlkit:common:18.11.0")
84+
85+
testImplementation("junit:junit:4.13.2")
86+
}
87+
88+
tasks.wrapper {
89+
gradleVersion = "8.10.2"
90+
distributionType = Wrapper.DistributionType.BIN
91+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Project-wide Gradle settings
2+
android.useAndroidX=true
3+
android.enableJetifier=true
4+
5+
# Kotlin
6+
kotlin.code.style=official
7+
8+
# Performance optimizations
9+
org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8
10+
org.gradle.parallel=true
11+
org.gradle.caching=true
42.4 KB
Binary file not shown.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
distributionBase=GRADLE_USER_HOME
2+
distributionPath=wrapper/dists
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.3-bin.zip
4+
networkTimeout=10000
5+
validateDistributionUrl=true
6+
zipStoreBase=GRADLE_USER_HOME
7+
zipStorePath=wrapper/dists

‎sketch-to-ui-plugin/gradlew‎

Lines changed: 249 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)