Skip to content

Commit 6652e5b

Browse files
Merge pull request #4 from NicosNicolaou16/updates
Updates
2 parents a78646e + dac69e8 commit 6652e5b

File tree

9 files changed

+105
-85
lines changed

9 files changed

+105
-85
lines changed

.idea/AndroidProjectSystem.xml

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

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ links. It is implemented using Jetpack Compose. <br />
1010
1111
# Versioning
1212

13-
Target SDK version: 35 <br />
14-
Minimum SDK version: 28 <br />
15-
Kotlin version: 2.1.10 <br />
16-
Gradle version: 8.9.0 <br />
13+
Target SDK version: 36 <br />
14+
Minimum SDK version: 29 <br />
15+
Kotlin version: 2.2.20 <br />
16+
Gradle version: 8.13.0 <br />
1717

1818
# References/Tutorials Follow
1919

app/build.gradle

Lines changed: 0 additions & 71 deletions
This file was deleted.

app/build.gradle.kts

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
2+
3+
plugins {
4+
id("com.android.application")
5+
id("org.jetbrains.kotlin.android")
6+
id("org.jetbrains.kotlin.plugin.compose") version "2.2.10"
7+
}
8+
9+
android {
10+
namespace = "com.sampleandtestingmachinelearningandroidcodescanner"
11+
buildToolsVersion = "36.0.0"
12+
compileSdk = 36
13+
14+
defaultConfig {
15+
applicationId = "com.sampleandtestingmachinelearningandroidcodescanner"
16+
minSdk = 29
17+
targetSdk = 36
18+
versionCode = 1
19+
versionName = "1.0"
20+
21+
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
22+
vectorDrawables {
23+
useSupportLibrary = true
24+
}
25+
}
26+
27+
buildTypes {
28+
release {
29+
isMinifyEnabled = false
30+
proguardFiles(
31+
getDefaultProguardFile("proguard-android-optimize.txt"),
32+
"proguard-rules.pro"
33+
)
34+
}
35+
}
36+
compileOptions {
37+
sourceCompatibility = JavaVersion.VERSION_21
38+
targetCompatibility = JavaVersion.VERSION_21
39+
}
40+
kotlin {
41+
compilerOptions {
42+
jvmTarget = JvmTarget.fromTarget("21")
43+
}
44+
}
45+
buildFeatures {
46+
compose = true
47+
}
48+
composeCompiler {
49+
reportsDestination = layout.buildDirectory.dir("compose_compiler")
50+
}
51+
52+
packaging {
53+
resources {
54+
excludes += "/META-INF/{AL2.0,LGPL2.1}"
55+
}
56+
}
57+
}
58+
59+
dependencies {
60+
implementation("androidx.core:core-ktx:1.17.0")
61+
implementation("androidx.fragment:fragment-ktx:1.8.9")
62+
implementation("androidx.lifecycle:lifecycle-runtime-ktx:2.9.3")
63+
implementation("androidx.activity:activity-compose:1.10.1")
64+
implementation(platform("androidx.compose:compose-bom:2025.08.01"))
65+
implementation("androidx.compose.ui:ui")
66+
implementation("androidx.compose.ui:ui-graphics")
67+
implementation("androidx.compose.ui:ui-tooling-preview")
68+
implementation("androidx.compose.material3:material3")
69+
testImplementation("junit:junit:4.13.2")
70+
androidTestImplementation("androidx.test.ext:junit:1.3.0")
71+
androidTestImplementation("androidx.test.espresso:espresso-core:3.7.0")
72+
androidTestImplementation(platform("androidx.compose:compose-bom:2025.08.01"))
73+
androidTestImplementation("androidx.compose.ui:ui-test-junit4")
74+
debugImplementation("androidx.compose.ui:ui-tooling")
75+
debugImplementation("androidx.compose.ui:ui-test-manifest")
76+
//ML kit Code Scanner
77+
implementation("com.google.android.gms:play-services-code-scanner:16.1.0")
78+
}

app/proguard-rules.pro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Add project specific ProGuard rules here.
22
# You can control the set of applied configuration files using the
3-
# proguardFiles setting in build.gradle.
3+
# proguardFiles setting in build.gradle.kts.
44
#
55
# For more details, see
66
# http://developer.android.com/guide/developing/tools/proguard.html

build.gradle

Lines changed: 0 additions & 6 deletions
This file was deleted.

build.gradle.kts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
// Top-level build file where you can add configuration options common to all sub-projects/modules.
2+
plugins {
3+
id("com.android.application") version "8.13.0" apply false
4+
id("com.android.library") version "8.13.0" apply false
5+
id("org.jetbrains.kotlin.android") version "2.2.10" apply false
6+
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#Sat Apr 22 21:39:44 EEST 2023
22
distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
4-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.11.1-bin.zip
4+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
55
zipStoreBase=GRADLE_USER_HOME
66
zipStorePath=wrapper/dists

settings.gradle renamed to settings.gradle.kts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
pluginManagement {
22
repositories {
3-
google()
3+
google {
4+
content {
5+
includeGroupByRegex("com\\.android.*")
6+
includeGroupByRegex("com\\.google.*")
7+
includeGroupByRegex("androidx.*")
8+
}
9+
}
410
mavenCentral()
511
gradlePluginPortal()
612
}
@@ -12,5 +18,6 @@ dependencyResolutionManagement {
1218
mavenCentral()
1319
}
1420
}
21+
1522
rootProject.name = "SampleAndTestingMachineLearningAndroidCodeScanner"
16-
include ':app'
23+
include(":app")

0 commit comments

Comments
 (0)