Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
61 changes: 47 additions & 14 deletions CameraX-MLKit/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,17 @@
plugins {
id 'com.android.application'
id 'org.jetbrains.kotlin.android'
id 'org.jetbrains.kotlin.plugin.compose'
}

android {
namespace 'com.example.camerax_mlkit'
compileSdk 33
compileSdk 35

defaultConfig {
applicationId "com.example.camerax_mlkit"
minSdk 21
targetSdk 33
targetSdk 35
versionCode 1
versionName "1.0"

Expand All @@ -40,33 +41,65 @@ android {
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
sourceCompatibility JavaVersion.VERSION_18
targetCompatibility JavaVersion.VERSION_18
}
kotlinOptions {
jvmTarget = '1.8'
jvmTarget = '18'
}
buildFeatures {
viewBinding true
compose true

composeOptions {
kotlinCompilerExtensionVersion = "1.5.15"
}

kotlinOptions {
jvmTarget = "18"
}
}

buildToolsVersion '35.0.0'
}

dependencies {
implementation "androidx.camera.viewfinder:viewfinder-view:1.5.0-beta01"
implementation "androidx.camera.viewfinder:viewfinder-compose:1.5.0-beta01"
implementation "androidx.camera.viewfinder:viewfinder-core:1.5.0-beta01"

implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.9.0'
implementation 'androidx.activity:activity-compose:1.10.1'
implementation platform('androidx.compose:compose-bom:2025.05.00')
implementation 'androidx.compose.ui:ui-graphics'
implementation 'androidx.camera.viewfinder:viewfinder-core:1.5.0-beta01'
androidTestImplementation platform('androidx.compose:compose-bom:2025.05.00')
androidTestImplementation 'androidx.compose.ui:ui-test-junit4'
def compose_version = "1.8.1"
implementation 'androidx.compose.material3:material3:1.3.2'
implementation "androidx.compose.ui:ui:$compose_version"
implementation "androidx.compose.material:material:$compose_version"
implementation "androidx.compose.ui:ui-tooling-preview:$compose_version"

implementation 'androidx.core:core-ktx:1.16.0'
implementation 'androidx.appcompat:appcompat:1.7.0'
implementation 'androidx.constraintlayout:constraintlayout:2.2.1'
implementation 'androidx.camera:camera-mlkit-vision:1.4.2'

// Android Studio Preview support
implementation 'androidx.compose.ui:ui-tooling-preview'
debugImplementation 'androidx.compose.ui:ui-tooling'

implementation 'androidx.core:core-ktx:1.7.0'
implementation 'androidx.appcompat:appcompat:1.5.1'
implementation 'com.google.android.material:material:1.7.0'
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
implementation 'androidx.camera:camera-mlkit-vision:1.2.0-beta02'
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
androidTestImplementation 'androidx.test.ext:junit:1.2.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.6.1'

def camerax_version = "1.2.0-rc01"
def camerax_version = "1.4.2"
implementation "androidx.camera:camera-core:${camerax_version}"
implementation "androidx.camera:camera-camera2:${camerax_version}"
implementation "androidx.camera:camera-lifecycle:${camerax_version}"
implementation "androidx.camera:camera-view:${camerax_version}"

implementation 'com.google.mlkit:barcode-scanning:17.0.2'
implementation 'com.google.mlkit:barcode-scanning:17.3.0'
debugImplementation 'androidx.compose.ui:ui-test-manifest'
}
1 change: 0 additions & 1 deletion CameraX-MLKit/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/Theme.CameraxMLKit"
tools:targetApi="31">
<activity
android:name=".MainActivity"
Expand Down
Loading
Loading