52 lines
1.8 KiB
Groovy
52 lines
1.8 KiB
Groovy
plugins {
|
|
id 'com.android.application'
|
|
}
|
|
|
|
android {
|
|
compileSdkVersion 30
|
|
buildToolsVersion "30.0.3"
|
|
|
|
defaultConfig {
|
|
applicationId "com.google.mediapipe.apps.hands"
|
|
minSdkVersion 21
|
|
targetSdkVersion 30
|
|
versionCode 1
|
|
versionName "1.0"
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled false
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
}
|
|
}
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation fileTree(dir: 'libs', include: ['*.jar', '*.aar'])
|
|
implementation 'androidx.appcompat:appcompat:1.3.0'
|
|
implementation 'com.google.android.material:material:1.3.0'
|
|
implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
|
|
implementation 'androidx.exifinterface:exifinterface:1.3.3'
|
|
testImplementation 'junit:junit:4.+'
|
|
androidTestImplementation 'androidx.test.ext:junit:1.1.2'
|
|
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
|
|
// MediaPipe Hands Solution components.
|
|
implementation 'com.google.mediapipe:solution-core:latest.release'
|
|
implementation 'com.google.mediapipe:hands:latest.release'
|
|
// MediaPipe deps
|
|
implementation 'com.google.flogger:flogger:0.6'
|
|
implementation 'com.google.flogger:flogger-system-backend:0.6'
|
|
implementation 'com.google.guava:guava:27.0.1-android'
|
|
implementation 'com.google.protobuf:protobuf-java:3.11.4'
|
|
// CameraX core library
|
|
def camerax_version = "1.0.0-beta10"
|
|
implementation "androidx.camera:camera-core:$camerax_version"
|
|
implementation "androidx.camera:camera-camera2:$camerax_version"
|
|
implementation "androidx.camera:camera-lifecycle:$camerax_version"
|
|
}
|